Skip to content

Fold

Fold = object

Defined in: core/src/geometry/fold.ts:40

readonly activeCorner: Point

Defined in: core/src/geometry/fold.ts:55

Where the flipping page’s own origin corner sits.


readonly angle: number

Defined in: core/src/geometry/fold.ts:42

Rotation of the flipping page in radians, signed by direction.


readonly bottomClip: readonly Point[]

Defined in: core/src/geometry/fold.ts:53

Part of the page underneath that the fold reveals.


readonly bottomPagePosition: Point

Defined in: core/src/geometry/fold.ts:56


readonly flippingClip: readonly Point[]

Defined in: core/src/geometry/fold.ts:51

Visible part of the flipping page, as a polygon in page coordinates.


readonly intersections: FoldIntersections

Defined in: core/src/geometry/fold.ts:49


readonly position: Point

Defined in: core/src/geometry/fold.ts:44

Where the dragged corner ended up after clamping to what paper can do.


readonly progress: number

Defined in: core/src/geometry/fold.ts:46

0 at rest, 100 fully turned.


readonly rect: RectPoints

Defined in: core/src/geometry/fold.ts:48

Corners of the flipping page after rotation.


readonly shadow: { 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.