File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 420
420
(let [svgs (reverse (root-svgs db))
421
421
pointer-pos (:adjusted-pointer-pos db)]
422
422
(or
423
- (some #(when (bounds/contain -point? (tool/ bounds %) pointer-pos) %) svgs)
423
+ (some #(when (bounds/contained -point? (: bounds %) pointer-pos) %) svgs)
424
424
(element db :canvas ))))
425
425
426
426
(defn translate
504
504
(let [svgs (reverse (root-svgs db)) ; Reverse to select top svgs first.
505
505
el-bounds (tool/bounds el)]
506
506
(or
507
- (some #(when (bounds/contained? el-bounds (tool/ bounds %)) %) svgs)
508
- (some #(when (bounds/intersected? el-bounds (tool/ bounds %)) %) svgs)
507
+ (some #(when (bounds/contained? el-bounds (: bounds %)) %) svgs)
508
+ (some #(when (bounds/intersected? el-bounds (: bounds %)) %) svgs)
509
509
(element db :canvas ))))
510
510
511
511
(defn create
587
587
offset (mat/sub el-center center)
588
588
el (dissoc el :bounds )
589
589
svg (hovered-svg db)
590
- [s-x1 s-y1] (tool/ bounds svg)
590
+ [s-x1 s-y1] (: bounds svg)
591
591
pointer-pos (:adjusted-pointer-pos db)
592
592
selected (selected-keys db)]
593
593
(reduce
You can’t perform that action at this time.
0 commit comments