Skip to content

chartjs-chart-wordcloud v4.4.0 / IWordElementOptions

Interface: IWordElementOptions

Extends

  • FontSpec.Record<string, unknown>

Properties

color

color: string | CanvasGradient | CanvasPattern

Source

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


maxRotation

maxRotation: number

angle in degree for the max rotation

Default

ts
0

Source

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


minRotation

minRotation: number

angle in degree for the min rotation

Default

ts
-90

Source

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


padding

padding: number

padding around each word while doing the layout

Default

ts
1

Source

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


rotate

rotate: number

rotation of the word

Default

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

Source

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


rotationSteps

rotationSteps: number

number of rotation steps between min and max rotation

Default

ts
2

Source

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


strokeStyle

strokeStyle: string | CanvasGradient | CanvasPattern

CanvasContext2D.strokeStyle config for rendering a stroke around the text

Default

ts
undefined

Source

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


strokeWidth?

optional strokeWidth: number

CanvasContext2D.lineWith for stroke

Default

ts
undefined

Source

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