Add many codebase optimizations on performance and size.

This commit is contained in:
Andrey Antukh 2017-04-08 19:28:32 +02:00
parent 171f9325a3
commit 34adb68372
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
19 changed files with 245 additions and 286 deletions

View file

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