mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 06:31:37 +02:00
changes in ruler
This commit is contained in:
parent
a3b97e8998
commit
11d08d6a24
1 changed files with 3 additions and 3 deletions
|
@ -55,14 +55,14 @@
|
||||||
[:line {:x1 x1 :y1 y1
|
[:line {:x1 x1 :y1 y1
|
||||||
:x2 x2 :y2 y2
|
:x2 x2 :y2 y2
|
||||||
:style {:cursor "cell"}
|
:style {:cursor "cell"}
|
||||||
:stroke-width "2"
|
:stroke-width "1"
|
||||||
:stroke "red"}]
|
:stroke "red"}]
|
||||||
[:text
|
[:text
|
||||||
{:transform (str "translate(" (+ x2 15) "," (- y2 10) ")")}
|
{:transform (str "translate(" (+ x2 15) "," (- y2 10) ")")}
|
||||||
[:tspan {:x "0" :dy="1.2em"}
|
[:tspan {:x "0" :dy="1.2em"}
|
||||||
(str "distance=" distance)]
|
(str distance " px")]
|
||||||
[:tspan {:x "0" :y "20" :dy="1.2em"}
|
[:tspan {:x "0" :y "20" :dy="1.2em"}
|
||||||
(str "angle=" angle)]]])))
|
(str angle "°")]]])))
|
||||||
|
|
||||||
(defn- overlay-render
|
(defn- overlay-render
|
||||||
[own local]
|
[own local]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue