mirror of
https://github.com/penpot/penpot.git
synced 2026-03-12 21:36:39 +00:00
Properly render image shapes on viewer.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
[uxbox.main.ui.shapes.group :refer [group-shape]]
|
||||
[uxbox.main.ui.shapes.path :refer [path-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])
|
||||
(:import goog.events.EventType))
|
||||
|
||||
@@ -26,6 +26,11 @@
|
||||
(-> (comp (l/key :flags) (l/lens :interactions))
|
||||
(l/derive st/state)))
|
||||
|
||||
(defn image-ref
|
||||
[id]
|
||||
(-> (l/in [:images id])
|
||||
(l/derive st/state)))
|
||||
|
||||
;; --- Interactions Wrapper
|
||||
|
||||
(defn- interactions-wrapper-did-mount
|
||||
|
||||
Reference in New Issue
Block a user