Refactor shapes and selection rendering in order to be aware of rotation.

This commit is contained in:
Andrey Antukh 2016-12-25 20:50:04 +01:00
parent 30df813edf
commit c0a81d05eb
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
9 changed files with 278 additions and 283 deletions

View file

@ -19,7 +19,6 @@
[uxbox.util.geom.matrix :as gmt]
[uxbox.util.mixins :as mx :include-macros true]))
;; --- Helpers
(declare group-component)
@ -70,8 +69,7 @@
(let [xfmt (cond-> (or tmp-resize-xform (gmt/matrix))
tmp-displacement (gmt/translate tmp-displacement))
props {:id (str id)
:transform (str xfmt)}
props {:id (str id) :transform (str xfmt)}
attrs (merge props (attrs/extract-style-attrs shape))]
[:g attrs