mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 05:21:38 +02:00
Properly render image shapes on viewer.
This commit is contained in:
parent
31b784f046
commit
0d46c5bac7
1 changed files with 6 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
[uxbox.main.ui.shapes.group :refer [group-shape]]
|
[uxbox.main.ui.shapes.group :refer [group-shape]]
|
||||||
[uxbox.main.ui.shapes.path :refer [path-shape]]
|
[uxbox.main.ui.shapes.path :refer [path-shape]]
|
||||||
[uxbox.main.ui.shapes.circle :refer [circle-shape]]
|
[uxbox.main.ui.shapes.circle :refer [circle-shape]]
|
||||||
[uxbox.main.ui.shapes.image :refer [image-shape image-ref]]
|
[uxbox.main.ui.shapes.image :refer [image-shape]]
|
||||||
[uxbox.util.mixins :as mx :include-macros true])
|
[uxbox.util.mixins :as mx :include-macros true])
|
||||||
(:import goog.events.EventType))
|
(:import goog.events.EventType))
|
||||||
|
|
||||||
|
@ -26,6 +26,11 @@
|
||||||
(-> (comp (l/key :flags) (l/lens :interactions))
|
(-> (comp (l/key :flags) (l/lens :interactions))
|
||||||
(l/derive st/state)))
|
(l/derive st/state)))
|
||||||
|
|
||||||
|
(defn image-ref
|
||||||
|
[id]
|
||||||
|
(-> (l/in [:images id])
|
||||||
|
(l/derive st/state)))
|
||||||
|
|
||||||
;; --- Interactions Wrapper
|
;; --- Interactions Wrapper
|
||||||
|
|
||||||
(defn- interactions-wrapper-did-mount
|
(defn- interactions-wrapper-did-mount
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue