Skip to content

Intermact API Reference / @intermact/core / StrokeRevealSpec

Interface: StrokeRevealSpec

Defined in: packages/core/src/animation/spec.ts:43

Stroke reveal description for Create / write().

Properties

direction?

readonly optional direction?: "ltr" | "rtl" | "simultaneous"

Defined in: packages/core/src/animation/spec.ts:46

Glyph writing order: left-to-right, right-to-left, or all at once.


glyphOverlap?

readonly optional glyphOverlap?: number

Defined in: packages/core/src/animation/spec.ts:51

Fraction of each glyph stroke that may overlap with the next (0 = strict left-to-right; 0.3 = next glyph starts when the previous is 70% done).


mode?

readonly optional mode?: StrokeRevealMode

Defined in: packages/core/src/animation/spec.ts:44

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)