0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

changes in ruler

This commit is contained in:
Juan de la Cruz 2016-02-10 13:35:24 +01:00
parent a3b97e8998
commit 11d08d6a24

View file

@ -55,14 +55,14 @@
[:line {:x1 x1 :y1 y1
:x2 x2 :y2 y2
:style {:cursor "cell"}
:stroke-width "2"
:stroke-width "1"
:stroke "red"}]
[:text
{:transform (str "translate(" (+ x2 15) "," (- y2 10) ")")}
[:tspan {:x "0" :dy="1.2em"}
(str "distance=" distance)]
(str distance " px")]
[:tspan {:x "0" :y "20" :dy="1.2em"}
(str "angle=" angle)]]])))
(str angle "°")]]])))
(defn- overlay-render
[own local]