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
0minRotation
minRotation:
number
Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:30
angle in degree for the min rotation
Default
-90padding
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
1rotate
rotate:
number
Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:20
rotation of the word
Default
undefined then it will be randomly derived given the other constraintsrotationSteps
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
2strokeStyle
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
undefinedstrokeWidth?
optionalstrokeWidth:number
Defined in: work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:15
CanvasContext2D.lineWith for stroke
Default
undefined