mirror of
https://github.com/penpot/penpot.git
synced 2025-01-07 15:39:42 -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
|
||||
[own shape]
|
||||
(let [local (:rum/local own)
|
||||
x 30
|
||||
y 30
|
||||
width 100
|
||||
height 100]
|
||||
(html
|
||||
[:g
|
||||
(shapes/render shape {:x x :y y :width width :height height})
|
||||
[:g {:class "controls"}
|
||||
[:rect {:x x :y y :width width :height height
|
||||
:style {:stroke "black" :fill "transparent"
|
||||
:stroke-opacity "0.5"}}]
|
||||
[:circle (merge default-selection-props
|
||||
{:cx x :cy y})]
|
||||
[: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)})]]])))
|
||||
(let [local (:rum/local own)]
|
||||
(shapes/render shape)))
|
||||
|
||||
;; (defn- shape-render
|
||||
;; [own shape]
|
||||
;; (let [local (:rum/local own)
|
||||
;; x 30
|
||||
;; y 30
|
||||
;; width 100
|
||||
;; height 100]
|
||||
;; (html
|
||||
;; [:g
|
||||
;; (shapes/render shape {:x x :y y :width width :height height})
|
||||
;; [:g {:class "controls"}
|
||||
;; [:rect {:x x :y y :width width :height height
|
||||
;; :style {:stroke "black" :fill "transparent"
|
||||
;; :stroke-opacity "0.5"}}]
|
||||
;; [:circle (merge default-selection-props
|
||||
;; {:cx x :cy y})]
|
||||
;; [: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
|
||||
(util/component
|
||||
|
|
Loading…
Reference in a new issue