Fold
Fold =
object
Defined in: core/src/geometry/fold.ts:40
Properties
Section titled “Properties”activeCorner
Section titled “activeCorner”
readonlyactiveCorner:Point
Defined in: core/src/geometry/fold.ts:55
Where the flipping page’s own origin corner sits.
readonlyangle:number
Defined in: core/src/geometry/fold.ts:42
Rotation of the flipping page in radians, signed by direction.
bottomClip
Section titled “bottomClip”
readonlybottomClip: readonlyPoint[]
Defined in: core/src/geometry/fold.ts:53
Part of the page underneath that the fold reveals.
bottomPagePosition
Section titled “bottomPagePosition”
readonlybottomPagePosition:Point
Defined in: core/src/geometry/fold.ts:56
flippingClip
Section titled “flippingClip”
readonlyflippingClip: readonlyPoint[]
Defined in: core/src/geometry/fold.ts:51
Visible part of the flipping page, as a polygon in page coordinates.
intersections
Section titled “intersections”
readonlyintersections:FoldIntersections
Defined in: core/src/geometry/fold.ts:49
position
Section titled “position”
readonlyposition:Point
Defined in: core/src/geometry/fold.ts:44
Where the dragged corner ended up after clamping to what paper can do.
progress
Section titled “progress”
readonlyprogress:number
Defined in: core/src/geometry/fold.ts:46
0 at rest, 100 fully turned.
readonlyrect:RectPoints
Defined in: core/src/geometry/fold.ts:48
Corners of the flipping page after rotation.
shadow
Section titled “shadow”
readonlyshadow: {angle:number;start:Point; } |null
Defined in: core/src/geometry/fold.ts:58
Drop-shadow origin and rotation, or null when the fold crosses no usable edges.