Skip to main content

Interface: WriteOptions

Defined in: animation/creation/Create.ts:473

Extends

Properties

duration?

optional duration: number

Defined in: animation/Animation.ts:14

Duration of the animation in seconds (default: 1)

Inherited from

AnimationOptions.duration


lagRatio?

optional lagRatio: number

Defined in: animation/creation/Create.ts:475

Stagger between characters, default 0.05


rateFunc?

optional rateFunc: RateFunction

Defined in: animation/Animation.ts:16

Rate function controlling the animation's pacing (default: smooth)

Inherited from

AnimationOptions.rateFunc


remover?

optional remover: boolean

Defined in: animation/creation/Create.ts:479

Remove after animation, default false


reverse?

optional reverse: boolean

Defined in: animation/creation/Create.ts:477

Write in reverse (right to left), default false


shift?

optional shift: [number, number, number]

Defined in: animation/Animation.ts:18

Shift direction for fade animations

Inherited from

AnimationOptions.shift


strokeRatio?

optional strokeRatio: number

Defined in: animation/creation/Create.ts:481

Ratio of animation time spent on stroke drawing vs cross-fade (default 0.7 = 70% stroke, 30% crossfade)


useSkeletonStroke?

optional useSkeletonStroke: boolean

Defined in: animation/creation/Create.ts:488

When true, the Write animation uses the glyph's skeleton (medial axis) for stroke drawing, producing natural center-line pen strokes instead of perimeter outlines. Requires glyphs to be loaded with useSkeletonStroke: true. Default: false (uses outline strokes).