🐛 Fixes measurement on root frame

This commit is contained in:
alonso.torres 2021-04-13 13:46:23 +02:00
parent 162b0cfa6c
commit 6161911ff1

View file

@ -9,14 +9,15 @@
(ns app.main.ui.measurements (ns app.main.ui.measurements
(:require (:require
[rumext.alpha :as mf] [app.common.data :as d]
[app.common.geom.point :as gpt]
[app.common.geom.shapes :as gsh]
[app.common.math :as mth]
[app.common.uuid :as uuid]
[app.main.store :as st]
[cuerdas.core :as str] [cuerdas.core :as str]
[okulary.core :as l] [okulary.core :as l]
[app.common.data :as d] [rumext.alpha :as mf]))
[app.common.math :as mth]
[app.common.geom.shapes :as gsh]
[app.common.geom.point :as gpt]
[app.main.store :as st]))
;; ------------------------------------------------ ;; ------------------------------------------------
;; CONSTANTS ;; CONSTANTS
@ -247,7 +248,7 @@
[:& size-display {:selrect selected-selrect :zoom zoom}] [:& size-display {:selrect selected-selrect :zoom zoom}]
(if (or (not hover-shape) (not hover-selected-shape?)) (if (or (not hover-shape) (not hover-selected-shape?))
(when frame (when (and frame (not= uuid/zero (:id frame)))
[:g.hover-shapes [:g.hover-shapes
[:& distance-display {:from (:selrect frame) [:& distance-display {:from (:selrect frame)
:to selected-selrect :to selected-selrect