mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 21:51:39 +02:00
✨ Allow canvas movement and resize.
This commit is contained in:
parent
902f7c4181
commit
daac4486e5
7 changed files with 16 additions and 73 deletions
|
@ -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}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue