g6/packages/site/docs/apis/shape/WIP-TextStyleProps.en.md

1128 lines
21 KiB
Markdown
Raw Normal View History

2023-08-31 22:06:26 +08:00
---
title: TextStyleProps
---
[Overview - v5.0.0-beta.21](../../README.en.md) / [Modules](../../modules.en.md) / [item](../../modules/item.en.md) / TextStyleProps
2023-08-31 22:06:26 +08:00
[item](../../modules/item.en.md).TextStyleProps
## Hierarchy
- `BaseStyleProps`
**`TextStyleProps`**
## Properties
### anchor
`Optional` **anchor**: `string` \| [`number`, `number`, `number`] \| [`number`, `number`] \| `Float32Array`
how do we define the 'position' of a shape?
eg. the default anchor of a Rect is top-left, we can change it to its' center [0.5, 0.5].
#### Inherited from
BaseStyleProps.anchor
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:47
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### billboardRotation
`Optional` **billboardRotation**: `number`
The rotation of the billboard in radians.
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:18
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### class
`Optional` **class**: `string`
#### Inherited from
BaseStyleProps.class
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:34
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### clipPath
`Optional` **clipPath**: `DisplayObject`<`any`, `any`\>
clip path
**`See`**
https://developer.mozilla.org/zh-CN/docs/Web/CSS/clip-path
#### Inherited from
BaseStyleProps.clipPath
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:68
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### cursor
`Optional` **cursor**: `Cursor`
the cursor style when the target is active
#### Inherited from
BaseStyleProps.cursor
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:63
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### display
`Optional` **display**: `string`
#### Inherited from
BaseStyleProps.display
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:171
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### draggable
`Optional` **draggable**: `boolean`
**`See`**
https://g-next.antv.vision/zh/docs/plugins/dragndrop#drag
#### Inherited from
BaseStyleProps.draggable
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:175
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### droppable
`Optional` **droppable**: `boolean`
**`See`**
https://g-next.antv.vision/zh/docs/plugins/dragndrop#drop
#### Inherited from
BaseStyleProps.droppable
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:179
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### dx
`Optional` **dx**: `string` \| `number`
The dx attribute indicates a shift along the x-axis on the position of an element or its content.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dx
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:131
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### dy
`Optional` **dy**: `string` \| `number`
The dy attribute indicates a shift along the y-axis on the position of an element or its content.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dy
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:136
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fill
`Optional` **fill**: `string` \| `Pattern`
填充颜色
#### Inherited from
BaseStyleProps.fill
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:79
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fillOpacity
`Optional` **fillOpacity**: `string` \| `number`
填充透明度
#### Inherited from
BaseStyleProps.fillOpacity
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:81
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fillRule
2023-08-31 23:46:08 +08:00
`Optional` **fillRule**: `"nonzero"` \| `"evenodd"`
2023-08-31 22:06:26 +08:00
The fill-rule attribute is a presentation attribute defining the algorithm to use to determine the inside part of a shape.
**`See`**
https://developer.mozilla.org/zh-CN/docs/Web/SVG/Attribute/fill-rule
#### Inherited from
BaseStyleProps.fillRule
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:86
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### filter
`Optional` **filter**: `string`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/filter
#### Inherited from
BaseStyleProps.filter
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:162
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fontFamily
`Optional` **fontFamily**: `string`
The font-family property specifies a prioritized list of one or more font family names and/or generic family names for the selected element.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:84
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fontSize
`Optional` **fontSize**: `string` \| `number`
The font-size property sets the size of the font.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:79
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fontStyle
2023-08-31 23:46:08 +08:00
`Optional` **fontStyle**: `"normal"` \| `CSSGlobalKeywords` \| `"italic"` \| `"oblique"`
2023-08-31 22:06:26 +08:00
The font-style property sets whether a font should be styled with a normal, italic, or oblique face from its font-family.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/font-style
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:74
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fontVariant
`Optional` **fontVariant**: `string`
The font-variant shorthand property allows you to set all the font variants for a font.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/font-variant
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:94
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### fontWeight
2023-08-31 23:46:08 +08:00
`Optional` **fontWeight**: `number` \| `"normal"` \| `CSSGlobalKeywords` \| `"bold"` \| `"bolder"` \| `"lighter"`
2023-08-31 22:06:26 +08:00
The font-weight property sets the weight (or boldness) of the font. The weights available depend on the font-family that is currently set.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:89
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### hitArea
`Optional` **hitArea**: `DisplayObject`<`any`, `any`\>
交互区域
#### Inherited from
BaseStyleProps.hitArea
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:105
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### increasedLineWidthForHitTesting
`Optional` **increasedLineWidthForHitTesting**: `string` \| `number`
increased line width when hitting test
#### Inherited from
BaseStyleProps.increasedLineWidthForHitTesting
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:101
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### isBillboard
`Optional` **isBillboard**: `boolean`
Always face the camera.
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:14
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### isSizeAttenuation
`Optional` **isSizeAttenuation**: `boolean`
Whether the size of the sprite is attenuated by the camera depth. (Perspective camera only.)
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:22
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### leading
`Optional` **leading**: `number`
There is no "CSS leading" property
**`See`**
https://css-tricks.com/how-to-tame-line-height-in-css/
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:113
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### letterSpacing
`Optional` **letterSpacing**: `string` \| `number`
It specifies the spacing between letters when drawing text.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/letterSpacing
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:104
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### lineCap
`Optional` **lineCap**: `CanvasLineCap`
alias of strokeLinecap
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap
#### Inherited from
BaseStyleProps.lineCap
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:114
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### lineDash
`Optional` **lineDash**: `string` \| `number` \| (`string` \| `number`)[]
alias of strokeDasharray
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getLineDash
#### Inherited from
BaseStyleProps.lineDash
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:132
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### lineDashOffset
`Optional` **lineDashOffset**: `number`
alias of strokeDashoffset
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset
#### Inherited from
BaseStyleProps.lineDashOffset
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:141
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### lineHeight
`Optional` **lineHeight**: `string` \| `number`
The line-height property sets the height of a line box.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:99
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### lineJoin
`Optional` **lineJoin**: `CanvasLineJoin`
alias of strokeLinejoin
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin
#### Inherited from
BaseStyleProps.lineJoin
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:123
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### lineWidth
`Optional` **lineWidth**: `string` \| `number`
alias if strokeWidth
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth
#### Inherited from
BaseStyleProps.lineWidth
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:97
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### maxLines
`Optional` **maxLines**: `number`
Borrow from CanvasKit ParagraphStyle.
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:43
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### miterLimit
`Optional` **miterLimit**: `string` \| `number`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit
#### Inherited from
BaseStyleProps.miterLimit
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:170
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### offsetDistance
`Optional` **offsetDistance**: `number`
#### Inherited from
BaseStyleProps.offsetDistance
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:74
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### offsetPath
`Optional` **offsetPath**: `DisplayObject`<`any`, `any`\>
offset path
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Motion_Path
#### Inherited from
BaseStyleProps.offsetPath
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:73
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### opacity
`Optional` **opacity**: `string` \| `number`
整体透明度
#### Inherited from
BaseStyleProps.opacity
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:88
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### pointerEvents
2023-08-31 23:46:08 +08:00
`Optional` **pointerEvents**: `"fill"` \| `"stroke"` \| `"visible"` \| `CSSGlobalKeywords` \| `"none"` \| `"auto"` \| `"painted"` \| `"visiblestroke"` \| `"visiblefill"` \| `"visiblepainted"` \| `"all"` \| `"non-transparent-pixel"`
2023-08-31 22:06:26 +08:00
**`See`**
https://developer.mozilla.org/zh-CN/docs/Web/CSS/pointer-events
#### Inherited from
BaseStyleProps.pointerEvents
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:55
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### shadowBlur
`Optional` **shadowBlur**: `number`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur
#### Inherited from
BaseStyleProps.shadowBlur
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:146
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### shadowColor
`Optional` **shadowColor**: `string`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor
#### Inherited from
BaseStyleProps.shadowColor
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:150
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### shadowOffsetX
`Optional` **shadowOffsetX**: `number`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX
#### Inherited from
BaseStyleProps.shadowOffsetX
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:154
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### shadowOffsetY
`Optional` **shadowOffsetY**: `number`
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY
#### Inherited from
BaseStyleProps.shadowOffsetY
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:158
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### shadowType
2023-08-31 23:46:08 +08:00
`Optional` **shadowType**: `"both"` \| `"inner"` \| `"outer"`
2023-08-31 22:06:26 +08:00
#### Inherited from
BaseStyleProps.shadowType
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:142
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### stroke
`Optional` **stroke**: `string` \| `Pattern`
#### Inherited from
BaseStyleProps.stroke
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:75
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### strokeDasharray
`Optional` **strokeDasharray**: `string` \| (`string` \| `number`)[]
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dasharray
#### Inherited from
BaseStyleProps.strokeDasharray
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:127
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### strokeDashoffset
`Optional` **strokeDashoffset**: `number`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-dashoffset
#### Inherited from
BaseStyleProps.strokeDashoffset
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:136
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### strokeLinecap
`Optional` **strokeLinecap**: `CanvasLineCap`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap
#### Inherited from
BaseStyleProps.strokeLinecap
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:109
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### strokeLinejoin
`Optional` **strokeLinejoin**: `CanvasLineJoin`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin
#### Inherited from
BaseStyleProps.strokeLinejoin
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:118
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### strokeOpacity
`Optional` **strokeOpacity**: `string` \| `number`
描边透明度
#### Inherited from
BaseStyleProps.strokeOpacity
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:77
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### strokeWidth
`Optional` **strokeWidth**: `string` \| `number`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-width
#### Inherited from
BaseStyleProps.strokeWidth
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:92
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### text
**text**: `string` \| `number`
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:23
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textAlign
2023-08-31 23:46:08 +08:00
`Optional` **textAlign**: `CSSGlobalKeywords` \| `"start"` \| `"center"` \| `"middle"` \| `"end"` \| `"left"` \| `"right"`
2023-08-31 22:06:26 +08:00
The text-align property sets the horizontal alignment of the inline-level content.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/text-align
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:28
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textBaseline
2023-08-31 23:46:08 +08:00
`Optional` **textBaseline**: `CSSGlobalKeywords` \| `"middle"` \| `"top"` \| `"hanging"` \| `"alphabetic"` \| `"ideographic"` \| `"bottom"`
2023-08-31 22:06:26 +08:00
It specifies the current text baseline used when drawing text.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:33
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textDecorationColor
`Optional` **textDecorationColor**: `string`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-color
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:65
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textDecorationLine
`Optional` **textDecorationLine**: `string`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-line
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:61
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textDecorationStyle
`Optional` **textDecorationStyle**: `TextDecorationStyle`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-style
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:69
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textOverflow
`Optional` **textOverflow**: `string`
The text-overflow property sets how hidden overflow content is signaled to users.
It can be clipped, display an ellipsis ('…'), or display a custom string.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow#values
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:39
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textPath
`Optional` **textPath**: `Path`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/textPath
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:47
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textPathSide
2023-08-31 23:46:08 +08:00
`Optional` **textPathSide**: `"left"` \| `"right"`
2023-08-31 22:06:26 +08:00
The side attribute determines the side of a path the text is placed on (relative to the path direction).
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/side
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:52
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textPathStartOffset
`Optional` **textPathStartOffset**: `string` \| `number`
The startOffset attribute defines an offset from the start of the path for the initial current text position along the path after converting the path to the \<textPath\> element's coordinate system.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/startOffset
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:57
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### textTransform
2023-08-31 23:46:08 +08:00
`Optional` **textTransform**: `""` \| `TextTransform`
2023-08-31 22:06:26 +08:00
**`See`**
https://developer.mozilla.org/zh-CN/docs/Web/CSS/text-transform
#### Inherited from
BaseStyleProps.textTransform
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:166
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### transform
`Optional` **transform**: `string`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/transform
#### Inherited from
BaseStyleProps.transform
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:38
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### transformOrigin
`Optional` **transformOrigin**: `string`
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-origin
#### Inherited from
BaseStyleProps.transformOrigin
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:42
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### visibility
2023-08-31 23:46:08 +08:00
`Optional` **visibility**: `"visible"` \| `CSSGlobalKeywords` \| `"hidden"`
2023-08-31 22:06:26 +08:00
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/visibility
#### Inherited from
BaseStyleProps.visibility
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:51
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### wordWrap
`Optional` **wordWrap**: `boolean`
The overflow-wrap CSS property applies to inline elements,
setting whether the browser should insert line breaks within an otherwise unbreakable string to prevent text from overflowing its line box.
The overflow-wrap property acts in the same way as the non-standard property word-wrap.
The word-wrap property is now treated by browsers as an alias of the standard property.
**`See`**
https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:122
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### wordWrapWidth
`Optional` **wordWrapWidth**: `number`
Max width of overflowing box.
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:126
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### x
`Optional` **x**: `string` \| `number`
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:8
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### y
`Optional` **y**: `string` \| `number`
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:9
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### z
`Optional` **z**: `string` \| `number`
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/display-objects/Text.d.ts:10
2023-08-31 23:46:08 +08:00
---
2023-08-31 22:06:26 +08:00
### zIndex
`Optional` **zIndex**: `number`
z-index in CSS
#### Inherited from
BaseStyleProps.zIndex
#### Defined in
node_modules/.pnpm/@antv+g-lite@1.2.12/node_modules/@antv/g-lite/dist/types.d.ts:59