mirror of
https://github.com/penpot/penpot.git
synced 2026-08-05 12:29:00 +00:00
Add missing own argument on canvas render function.
This commit is contained in:
parent
8bc2da0af0
commit
2a94efc4ef
@ -138,12 +138,34 @@
|
|||||||
:name "selected-shapes"
|
:name "selected-shapes"
|
||||||
:mixins [mx/static rum/reactive (mx/local {})]}))
|
:mixins [mx/static rum/reactive (mx/local {})]}))
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; Select Rect
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(defn selrect-render
|
||||||
|
[own]
|
||||||
|
(when-let [data (rum/react wb/selrect-pos)]
|
||||||
|
(let [{:keys [x y width height]} (wb/selrect->rect data)]
|
||||||
|
(html
|
||||||
|
[:rect.selection-rect
|
||||||
|
{:x x
|
||||||
|
:y y
|
||||||
|
:width width
|
||||||
|
:height height}]))))
|
||||||
|
|
||||||
|
(def ^:static selrect
|
||||||
|
(util/component
|
||||||
|
{:render selrect-render
|
||||||
|
:name "selrect"
|
||||||
|
:mixins [mx/static rum/reactive]}))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Canvas
|
;; Canvas
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defn canvas-render
|
(defn canvas-render
|
||||||
[]
|
[own]
|
||||||
(let [page (rum/react wb/page-state)
|
(let [page (rum/react wb/page-state)
|
||||||
shapes (rum/react wb/shapes-state)
|
shapes (rum/react wb/shapes-state)
|
||||||
selected-ids (rum/react wb/selected-state)
|
selected-ids (rum/react wb/selected-state)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user