From 879cb09be118149999e573e83a5745a94ea1d333 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 29 Jan 2016 19:49:17 +0200 Subject: [PATCH] Minor improvements on initial values of draw tools. --- src/uxbox/ui/workspace/options.cljs | 4 ++-- .../ui/workspace/toolboxes/drawtools.cljs | 21 +++---------------- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/src/uxbox/ui/workspace/options.cljs b/src/uxbox/ui/workspace/options.cljs index 396a9299d3..3e5684f8df 100644 --- a/src/uxbox/ui/workspace/options.cljs +++ b/src/uxbox/ui/workspace/options.cljs @@ -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 diff --git a/src/uxbox/ui/workspace/toolboxes/drawtools.cljs b/src/uxbox/ui/workspace/toolboxes/drawtools.cljs index 631e6c819e..7e474e7a20 100644 --- a/src/uxbox/ui/workspace/toolboxes/drawtools.cljs +++ b/src/uxbox/ui/workspace/toolboxes/drawtools.cljs @@ -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}}) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;