Skip to content

Commit aeca4dd

Browse files
committed
remove DomElement schema
1 parent fdbf53c commit aeca4dd

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/renderer/utils/bounds.cljs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[clojure.core.matrix :as mat]
44
[malli.core :as m]
55
[renderer.snap.db :refer [SnapOptions]]
6-
[renderer.utils.dom :refer [DomElement]]
76
[renderer.utils.math :refer [Vec2D]]))
87

98
(def Bounds
@@ -14,7 +13,7 @@
1413
[number? {:title "right"}]
1514
[number? {:title "bottom"}]])
1615

17-
(m/=> dom-el->bounds [:-> DomElement [:maybe Bounds]])
16+
(m/=> dom-el->bounds [:-> any? [:maybe Bounds]])
1817
(defn dom-el->bounds
1918
"Experimental way of getting the bounds of unknown or complicated elements
2019
using the getBBox method.

src/renderer/utils/dom.cljs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
(ns renderer.utils.dom)
22

3-
(def DomElement
4-
[:fn (fn [x] (instance? js/Element x))])
5-
63
(defn prevent-default!
74
[e]
85
(.preventDefault e))

0 commit comments

Comments
 (0)