mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 18:21:38 +02:00
Add many codebase optimizations on performance and size.
This commit is contained in:
parent
171f9325a3
commit
34adb68372
19 changed files with 245 additions and 286 deletions
|
@ -41,7 +41,7 @@
|
|||
(mx/defc generic-draw-area
|
||||
[shape zoom]
|
||||
(let [{:keys [x1 y1 width height]} (geom/selection-rect shape)]
|
||||
[:g
|
||||
[:g {}
|
||||
(shapes/render-component shape)
|
||||
[:rect.main {:x x1 :y y1
|
||||
:width width
|
||||
|
@ -62,7 +62,7 @@
|
|||
(on-mouse-leave [event]
|
||||
(st/emit! (udw/set-tooltip nil)))]
|
||||
(when-let [{:keys [x y] :as segment} (first segments)]
|
||||
[:g
|
||||
[:g {}
|
||||
(shapes/render-component shape)
|
||||
(when-not (:free shape)
|
||||
[:circle.close-bezier {:cx x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue