0
Fork 0
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:
Andrey Antukh 2020-04-27 17:12:14 +02:00 committed by Alonso Torres
parent 0ee25b6f42
commit 8b6f72a09b
3 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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))