chartjs-chart-wordcloud v4.4.4 / IWordElementOptions
Interface: IWordElementOptions
Extends
FontSpec
.Record
<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
angle in degree for the max rotation
Default
0
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:35
minRotation
minRotation:
number
angle in degree for the min rotation
Default
-90
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:30
padding
padding:
number
padding around each word while doing the layout
Default
1
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:40
rotate
rotate:
number
rotation of the word
Default
undefined then it will be randomly derived given the other constraints
Defined in
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
2
Defined in
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
undefined
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:10
strokeWidth?
optional
strokeWidth:number
CanvasContext2D.lineWith for stroke
Default
undefined
Defined in
work/chartjs-chart-wordcloud/chartjs-chart-wordcloud/src/elements/WordElement.ts:15