mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 08:29:42 -05:00
🐛 Peroper handle hot-reload on worker.
This commit is contained in:
parent
0ee25b6f42
commit
8b6f72a09b
3 changed files with 8 additions and 4 deletions
|
@ -79,7 +79,6 @@
|
|||
(fn []
|
||||
(st/emit! (dw/initialize-page page-id))
|
||||
#(st/emit! (dw/finalize-page page-id))))
|
||||
|
||||
(when-let [page (mf/deref refs/workspace-page)]
|
||||
[:& workspace-content {:page page
|
||||
:project project
|
||||
|
@ -100,7 +99,6 @@
|
|||
(let [file (mf/deref refs/workspace-file)
|
||||
project (mf/deref refs/workspace-project)
|
||||
layout (mf/deref refs/workspace-layout)]
|
||||
|
||||
[:*
|
||||
[:& header {:file file
|
||||
:project project
|
||||
|
|
|
@ -424,7 +424,7 @@
|
|||
(let [shape-center (center shape)]
|
||||
(-> shape
|
||||
(transform
|
||||
(-> (gmt/matrix)
|
||||
(-> (gmt/matrix)
|
||||
(gmt/translate shape-center)
|
||||
(gmt/multiply matrix)
|
||||
(gmt/translate (gpt/negate shape-center)))))))
|
||||
|
@ -790,7 +790,7 @@
|
|||
(merge rec)
|
||||
(update :transform #(gmt/multiply (or % (gmt/matrix)) stretch-matrix))
|
||||
(update :transform-inverse #(gmt/multiply stretch-matrix-inverse (or % (gmt/matrix)))))]
|
||||
|
||||
|
||||
new-shape))
|
||||
|
||||
(defn transform-path-shape
|
||||
|
|
|
@ -72,3 +72,9 @@
|
|||
|
||||
(defn ^:dev/before-load stop []
|
||||
(.removeEventListener js/self "message" on-message))
|
||||
|
||||
(defn ^:dev/after-load start []
|
||||
[]
|
||||
(.addEventListener js/self "message" on-message))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue