Skip to content

chartjs-chart-wordcloud / IWordElementOptions

Interface: IWordElementOptions ​

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:4

Extends ​

  • FontSpec.Record<string, unknown>

Indexable ​

[key: string]: unknown

Properties ​

color ​

color: string | CanvasGradient | CanvasPattern

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:5


maxRotation ​

maxRotation: number

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:35

angle in degree for the max rotation

Default ​

ts
0

minRotation ​

minRotation: number

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:30

angle in degree for the min rotation

Default ​

ts
-90

padding ​

padding: number

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:40

padding around each word while doing the layout

Default ​

ts
1

rotate ​

rotate: number

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:20

rotation of the word

Default ​

ts
undefined then it will be randomly derived given the other constraints

rotationSteps ​

rotationSteps: number

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:25

number of rotation steps between min and max rotation

Default ​

ts
2

strokeStyle ​

strokeStyle: string | CanvasGradient | CanvasPattern

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:10

CanvasContext2D.strokeStyle config for rendering a stroke around the text

Default ​

ts
undefined

strokeWidth? ​

optional strokeWidth: number

Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:15

CanvasContext2D.lineWith for stroke

Default ​

ts
undefined