IChartWordCloudWord
interface
Chart
Internal word descriptor after geometry placement. Extends IChartWordCloudDatum with layout coordinates (SVG center position, rotation, bounding box) used for rendering and collision detection.
TypeScript
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
Inheritance
Extends
Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- fontSizerequirednumber
- Computed font size in px.
- xrequirednumber
- Horizontal centre of the word in SVG coordinates.
- yrequirednumber
- Vertical centre of the word in SVG coordinates.
- anglerequirednumber
- Rotation angle in degrees.
- indexrequirednumber
- Original index in the sorted data array.
- widthrequirednumber
- Estimated bounding box width (used for collision detection).
- heightrequirednumber
- Estimated bounding box height (used for collision detection).
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Extending IChartWordCloudDatum for layout