mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 09:21:38 +02:00
✨ Adds debug for shapes drawing
This commit is contained in:
parent
2a7f115266
commit
ece11c5958
11 changed files with 148 additions and 71 deletions
|
@ -117,17 +117,17 @@
|
|||
(st/emit! (initialize)))
|
||||
|
||||
(defn ^:export reinit
|
||||
[]
|
||||
;; NOTE: in cases of some strange behavior after hot-reload,
|
||||
;; uncomment this lines; they make a hard-rerender instead
|
||||
;; soft-rerender.
|
||||
;;
|
||||
;; (mf/unmount! app-root)
|
||||
;; (mf/unmount! modal-root)
|
||||
;; (set! app-root (mf/create-root (dom/get-element "app")))
|
||||
;; (set! modal-root (mf/create-root (dom/get-element "modal")))
|
||||
(st/emit! (ev/initialize))
|
||||
(init-ui))
|
||||
([]
|
||||
(reinit false))
|
||||
([hard?]
|
||||
;; The hard flag will force to unmount the whole UI and will redraw every component
|
||||
(when hard?
|
||||
(mf/unmount! app-root)
|
||||
(mf/unmount! modal-root)
|
||||
(set! app-root (mf/create-root (dom/get-element "app")))
|
||||
(set! modal-root (mf/create-root (dom/get-element "modal"))))
|
||||
(st/emit! (ev/initialize))
|
||||
(init-ui)))
|
||||
|
||||
(defn ^:dev/after-load after-load
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue