Skip to content

Commit 91beec0

Browse files
authored
Merge pull request #51 from sgratzl/release/v4.2.3
Release v4.2.3
2 parents 8b382b6 + c95363a commit 91beec0

File tree

4 files changed

+646
-636
lines changed

4 files changed

+646
-636
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "chartjs-chart-wordcloud",
33
"description": "Chart.js module for word clouds",
4-
"version": "4.2.2",
4+
"version": "4.2.3",
55
"author": {
66
"name": "Samuel Gratzl",
77
"email": "sam@sgratzl.com",

src/controllers/WordCloudController.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class WordCloudController extends DatasetController<'wordCloud', WordElem
3636
static readonly id = 'wordCloud';
3737

3838
/**
39-
* @internal
39+
* @hidden
4040
*/
4141
static readonly defaults = {
4242
datasets: {
@@ -55,7 +55,7 @@ export class WordCloudController extends DatasetController<'wordCloud', WordElem
5555
};
5656

5757
/**
58-
* @internal
58+
* @hidden
5959
*/
6060
static readonly overrides = {
6161
scales: {
@@ -84,12 +84,12 @@ export class WordCloudController extends DatasetController<'wordCloud', WordElem
8484
.fontWeight((d) => d.options.weight ?? 1);
8585

8686
/**
87-
* @internal
87+
* @hidden
8888
*/
8989
rand: () => number = Math.random;
9090

9191
/**
92-
* @internal
92+
* @hidden
9393
*/
9494
update(mode: UpdateMode): void {
9595
super.update(mode);
@@ -101,7 +101,7 @@ export class WordCloudController extends DatasetController<'wordCloud', WordElem
101101
}
102102

103103
/**
104-
* @internal
104+
* @hidden
105105
*/
106106
updateElements(elems: WordElement[], start: number, count: number, mode: UpdateMode): void {
107107
this.wordLayout.stop();
@@ -184,7 +184,7 @@ export class WordCloudController extends DatasetController<'wordCloud', WordElem
184184
}
185185

186186
/**
187-
* @internal
187+
* @hidden
188188
*/
189189
draw(): void {
190190
const elements = this._cachedMeta.data as unknown as VisualElement[];
@@ -193,7 +193,7 @@ export class WordCloudController extends DatasetController<'wordCloud', WordElem
193193
}
194194

195195
/**
196-
* @internal
196+
* @hidden
197197
*/
198198
getLabelAndValue(index: number): { label: string; value: any } {
199199
const r = super.getLabelAndValue(index);

src/elements/WordElement.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export class WordElement extends Element<IWordElementProps, IWordElementOptions>
7272
static readonly id = 'word';
7373

7474
/**
75-
* @internal
75+
* @hidden
7676
*/
7777
static readonly defaults: any = /* #__PURE__ */ {
7878
// rotate: 0,
@@ -89,7 +89,7 @@ export class WordElement extends Element<IWordElementProps, IWordElementOptions>
8989
} as Partial<ScriptableAndArrayOptions<IWordElementOptions, ScriptableContext<'wordCloud'>>>;
9090

9191
/**
92-
* @internal
92+
* @hidden
9393
*/
9494
static readonly defaultRoutes = {
9595
color: 'color',
@@ -100,7 +100,7 @@ export class WordElement extends Element<IWordElementProps, IWordElementOptions>
100100
};
101101

102102
/**
103-
* @internal
103+
* @hidden
104104
*/
105105
static computeRotation(o: IWordElementOptions, rnd: () => number): number {
106106
if (o.rotationSteps <= 1) {
@@ -115,7 +115,7 @@ export class WordElement extends Element<IWordElementProps, IWordElementOptions>
115115
}
116116

117117
/**
118-
* @internal
118+
* @hidden
119119
*/
120120
inRange(mouseX: number, mouseY: number): boolean {
121121
const p = this.getProps(['x', 'y', 'width', 'height', 'scale']);
@@ -128,35 +128,35 @@ export class WordElement extends Element<IWordElementProps, IWordElementOptions>
128128
}
129129

130130
/**
131-
* @internal
131+
* @hidden
132132
*/
133133
inXRange(mouseX: number): boolean {
134134
return this.inRange(mouseX, Number.NaN);
135135
}
136136

137137
/**
138-
* @internal
138+
* @hidden
139139
*/
140140
inYRange(mouseY: number): boolean {
141141
return this.inRange(Number.NaN, mouseY);
142142
}
143143

144144
/**
145-
* @internal
145+
* @hidden
146146
*/
147147
getCenterPoint(): { x: number; y: number } {
148148
return this.getProps(['x', 'y']);
149149
}
150150

151151
/**
152-
* @internal
152+
* @hidden
153153
*/
154154
tooltipPosition(): { x: number; y: number } {
155155
return this.getCenterPoint();
156156
}
157157

158158
/**
159-
* @internal
159+
* @hidden
160160
*/
161161
draw(ctx: CanvasRenderingContext2D): void {
162162
const { options } = this;

0 commit comments

Comments
 (0)