Skip to content

Intermact API Reference / @intermact/core / TextObjectProps

Interface: TextObjectProps ​

Defined in: packages/core/src/text/text-layout.ts:276

Authoring props for textObject.

Extends ​

Properties ​

align? ​

readonly optional align?: "center" | "left" | "right"

Defined in: packages/core/src/text/text-layout.ts:281


fill? ​

readonly optional fill?: string

Defined in: packages/core/src/text/text-layout.ts:246

Inherited from ​

GlyphStyleProps.fill


font? ​

readonly optional font?: string

Defined in: packages/core/src/text/text-layout.ts:278


letterSpacing? ​

readonly optional letterSpacing?: number

Defined in: packages/core/src/text/text-layout.ts:282


origin? ​

readonly optional origin?: AbsXY

Defined in: packages/core/src/text/text-layout.ts:280


partKey? ​

readonly optional partKey?: (char, index) => string

Defined in: packages/core/src/text/text-layout.ts:283

Parameters ​

char ​

string

index ​

number

Returns ​

string


size? ​

readonly optional size?: number

Defined in: packages/core/src/text/text-layout.ts:279


stroke? ​

readonly optional stroke?: string

Defined in: packages/core/src/text/text-layout.ts:247

Inherited from ​

GlyphStyleProps.stroke


strokeWidth? ​

readonly optional strokeWidth?: number

Defined in: packages/core/src/text/text-layout.ts:248

Inherited from ​

GlyphStyleProps.strokeWidth


style? ​

readonly optional style?: ObjectStyle

Defined in: packages/core/src/text/text-layout.ts:249

Inherited from ​

GlyphStyleProps.style


text ​

readonly text: string

Defined in: packages/core/src/text/text-layout.ts:277

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