mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05:00
Comment test code.
This commit is contained in:
parent
43bd56de23
commit
7afe940087
1 changed files with 25 additions and 20 deletions
|
@ -48,26 +48,31 @@
|
||||||
|
|
||||||
(defn- shape-render
|
(defn- shape-render
|
||||||
[own shape]
|
[own shape]
|
||||||
(let [local (:rum/local own)
|
(let [local (:rum/local own)]
|
||||||
x 30
|
(shapes/render shape)))
|
||||||
y 30
|
|
||||||
width 100
|
;; (defn- shape-render
|
||||||
height 100]
|
;; [own shape]
|
||||||
(html
|
;; (let [local (:rum/local own)
|
||||||
[:g
|
;; x 30
|
||||||
(shapes/render shape {:x x :y y :width width :height height})
|
;; y 30
|
||||||
[:g {:class "controls"}
|
;; width 100
|
||||||
[:rect {:x x :y y :width width :height height
|
;; height 100]
|
||||||
:style {:stroke "black" :fill "transparent"
|
;; (html
|
||||||
:stroke-opacity "0.5"}}]
|
;; [:g
|
||||||
[:circle (merge default-selection-props
|
;; (shapes/render shape {:x x :y y :width width :height height})
|
||||||
{:cx x :cy y})]
|
;; [:g {:class "controls"}
|
||||||
[:circle (merge default-selection-props
|
;; [:rect {:x x :y y :width width :height height
|
||||||
{:cx (+ x width) :cy y})]
|
;; :style {:stroke "black" :fill "transparent"
|
||||||
[:circle (merge default-selection-props
|
;; :stroke-opacity "0.5"}}]
|
||||||
{:cx x :cy (+ y height)})]
|
;; [:circle (merge default-selection-props
|
||||||
[:circle (merge default-selection-props
|
;; {:cx x :cy y})]
|
||||||
{:cx (+ x width) :cy (+ y height)})]]])))
|
;; [:circle (merge default-selection-props
|
||||||
|
;; {:cx (+ x width) :cy y})]
|
||||||
|
;; [:circle (merge default-selection-props
|
||||||
|
;; {:cx x :cy (+ y height)})]
|
||||||
|
;; [:circle (merge default-selection-props
|
||||||
|
;; {:cx (+ x width) :cy (+ y height)})]]])))
|
||||||
|
|
||||||
(def shape
|
(def shape
|
||||||
(util/component
|
(util/component
|
||||||
|
|
Loading…
Reference in a new issue