Allow canvas movement and resize.

This commit is contained in:
Andrey Antukh 2019-08-24 16:01:17 +02:00
parent 902f7c4181
commit daac4486e5
7 changed files with 16 additions and 73 deletions

View file

@ -14,12 +14,14 @@
[uxbox.main.ui.shapes.image :as image]
[uxbox.main.ui.shapes.path :as path]
[uxbox.main.ui.shapes.rect :as rect]
[uxbox.main.ui.shapes.canvas :as canvas]
[uxbox.main.ui.shapes.text :as text]))
(defn render-shape
[shape]
(mf/html
(case (:type shape)
:canvas [:& canvas/canvas-component {:shape shape}]
:curve [:& path/path-component {:shape shape}]
:text [:& text/text-component {:shape shape}]
:icon [:& icon/icon-component {:shape shape}]