0
Fork 0
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:
Andrey Antukh 2023-08-25 11:04:34 +02:00 committed by Andrés Moya
parent ad73c449fd
commit 80826e58ad

View file

@ -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