Skip to main content

Interface: PathState

Defined in: render/descriptors/path.ts:49

Extends

Properties

centerBounds?

optional centerBounds?: PathBounds

Defined in: render/descriptors/path.ts:62

Explicit frame to center the path against, as [minX, minY, maxX, maxY] in the path's own coordinate space. When set, the path is shifted so this box's center lands on the local origin — instead of the path centering on its own bbox.

Use this when several paths share one layout frame (e.g. per-glyph LaTeX tokens). Passing the same whole-shape bounds to every path keeps their relative positions intact, where per-path self-centering would collapse them onto a single point. When unset, the path centers on its own bbox.


d

d: PathData

Defined in: render/descriptors/path.ts:50


effects

effects: SceneEffect[]

Defined in: render/descriptors/transform.ts:12

Inherited from

ShapeState.effects


end

end: number

Defined in: render/descriptors/shape.ts:5

Inherited from

ShapeState.end


height

height: number

Defined in: render/descriptors/transform.ts:8

Inherited from

ShapeState.height


opacity

opacity: number

Defined in: render/descriptors/transform.ts:9

Inherited from

ShapeState.opacity


pivot

pivot: Vector2

Defined in: render/descriptors/transform.ts:14

Pivot point for rotation and scale, in normalised node space. (0,0)=center, (-1,1)=top-left, (1,-1)=bottom-right.

Inherited from

ShapeState.pivot


rotation

rotation: number

Defined in: render/descriptors/transform.ts:10

Inherited from

ShapeState.rotation


scale

scale: number

Defined in: render/descriptors/transform.ts:11

Inherited from

ShapeState.scale


start

start: number

Defined in: render/descriptors/shape.ts:4

Inherited from

ShapeState.start


width

width: number

Defined in: render/descriptors/transform.ts:7

Inherited from

ShapeState.width


x

x: number

Defined in: render/descriptors/transform.ts:5

Inherited from

ShapeState.x


y

y: number

Defined in: render/descriptors/transform.ts:6

Inherited from

ShapeState.y