mirror of
https://github.com/penpot/penpot.git
synced 2025-04-11 06:21:30 -05:00
Minor improvements on initial values of draw tools.
This commit is contained in:
parent
009d27b23d
commit
879cb09be1
2 changed files with 5 additions and 20 deletions
|
@ -207,12 +207,12 @@
|
|||
{:placeholder "x"
|
||||
:type "number"
|
||||
:value (:x shape "")
|
||||
:on-change (partial on-pos-change :x1)}]
|
||||
:on-change (partial on-pos-change :x)}]
|
||||
[:input#width.input-text
|
||||
{:placeholder "y"
|
||||
:type "number"
|
||||
:value (:y shape "")
|
||||
:on-change (partial on-pos-change :y1)}]]
|
||||
:on-change (partial on-pos-change :y)}]]
|
||||
|
||||
[:span "Rotation"]
|
||||
[:div.row-flex
|
||||
|
|
|
@ -37,35 +37,20 @@
|
|||
:help (tr "ds.help.rect")
|
||||
:shape {:type :builtin/rect
|
||||
:name "Rect"
|
||||
:width 20
|
||||
:height 20
|
||||
:stroke "#000000"
|
||||
:stroke-width "1"
|
||||
:view-box [0 0 20 20]}
|
||||
:stroke "#000000"}
|
||||
:priority 10}
|
||||
:circle
|
||||
{:icon i/circle
|
||||
:help (tr "ds.help.circle")
|
||||
:shape {:type :builtin/circle
|
||||
:name "Circle"
|
||||
:cx 60
|
||||
:cy 60
|
||||
:r 60
|
||||
:stroke "#000000"
|
||||
:stroke-width "1"
|
||||
:view-box [0 0 120 120]}
|
||||
:name "Circle"}
|
||||
:priority 20}
|
||||
:line
|
||||
{:icon i/line
|
||||
:help (tr "ds.help.line")
|
||||
:shape {:type :builtin/line
|
||||
:name "Line"
|
||||
:x1 0
|
||||
:y1 0
|
||||
:x2 200
|
||||
:y2 0
|
||||
:stroke "#000000"
|
||||
:view-box [0 0 10 200]}
|
||||
:stroke "#000000"}
|
||||
:priority 30}})
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
Loading…
Add table
Reference in a new issue