feat(frontend): initial work on react and rumext upgrade

This commit is contained in:
Andrey Antukh 2019-06-19 00:18:52 +02:00
parent ff00bdb3eb
commit 88f45fb618
33 changed files with 184 additions and 144 deletions

View file

@ -12,7 +12,7 @@
[uxbox.util.geom.matrix :as gmt]
[uxbox.util.geom.point :as gpt]
[rumext.core :as mx :include-macros true]
[uxbox.util.data :refer [classnames]]
[uxbox.util.data :refer [classnames normalize-props]]
[uxbox.util.dom :as dom]))
;; --- Rect Component
@ -58,9 +58,9 @@
props {:x x1 :y y1
:id (str "shape-" id)
:class (classnames :move-cursor moving?)
:class-name (classnames :move-cursor moving?)
:width width
:height height
:transform (str xfmt)}
attrs (merge (attrs/extract-style-attrs shape) props)]
[:rect attrs]))
[:> :rect (normalize-props attrs)]))