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.

typescript

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.

fontSize
required
number
Computed font size in px.
x
required
number
Horizontal centre of the word in SVG coordinates.
y
required
number
Vertical centre of the word in SVG coordinates.
angle
required
number
Rotation angle in degrees.
index
required
number
Original index in the sorted data array.
width
required
number
Estimated bounding box width (used for collision detection).
height
required
number
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

typescript