mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 09:08:31 -05:00
⚡ Add missing boolean type hints
This commit is contained in:
parent
ad73c449fd
commit
80826e58ad
1 changed files with 4 additions and 2 deletions
|
@ -200,11 +200,13 @@
|
|||
(cond
|
||||
;; The base the base shape, so the other item is below (if not bottom-frames)
|
||||
(= base-id base-shape-id)
|
||||
(and bottom-frames? (cph/frame-shape? objects base-id))
|
||||
(and ^boolean bottom-frames?
|
||||
^boolean (cph/frame-shape? objects base-id))
|
||||
|
||||
;; The base is the testing over, so it's over (if not bottom-frames)
|
||||
(= base-id over-shape-id)
|
||||
(or (not bottom-frames?) (not (cph/frame-shape? objects base-id)))
|
||||
(or (not ^boolean bottom-frames?)
|
||||
(not ^boolean (cph/frame-shape? objects base-id)))
|
||||
|
||||
;; Check which index is lower
|
||||
:else
|
||||
|
|
Loading…
Add table
Reference in a new issue