chartjs-chart-wordcloud
Advanced tools
Comparing version 4.2.2 to 4.2.3
@@ -8,3 +8,3 @@ /** | ||
import { ChartType, ScriptableAndArrayOptions, ScriptableContext, FontSpec, Element, VisualElement, CoreChartOptions, CartesianScaleTypeRegistry, DatasetController, ControllerDatasetOptions, CommonHoverOptions, AnimationOptions, Chart, ChartItem, ChartConfiguration } from 'chart.js'; | ||
import { ChartType, ScriptableAndArrayOptions, ScriptableContext, FontSpec, Element, VisualElement, CoreChartOptions, CartesianScaleTypeRegistry, DatasetController, UpdateMode, ControllerDatasetOptions, CommonHoverOptions, AnimationOptions, Chart, ChartItem, ChartConfiguration } from 'chart.js'; | ||
@@ -37,2 +37,23 @@ interface IWordElementOptions extends FontSpec, Record<string, unknown> { | ||
static readonly id = "word"; | ||
static readonly defaults: any; | ||
static readonly defaultRoutes: { | ||
color: string; | ||
family: string; | ||
style: string; | ||
weight: string; | ||
lineHeight: string; | ||
}; | ||
static computeRotation(o: IWordElementOptions, rnd: () => number): number; | ||
inRange(mouseX: number, mouseY: number): boolean; | ||
inXRange(mouseX: number): boolean; | ||
inYRange(mouseY: number): boolean; | ||
getCenterPoint(): { | ||
x: number; | ||
y: number; | ||
}; | ||
tooltipPosition(): { | ||
x: number; | ||
y: number; | ||
}; | ||
draw(ctx: CanvasRenderingContext2D): void; | ||
} | ||
@@ -47,3 +68,42 @@ declare module 'chart.js' { | ||
static readonly id = "wordCloud"; | ||
static readonly defaults: { | ||
datasets: { | ||
fit: boolean; | ||
animation: { | ||
colors: { | ||
properties: string[]; | ||
}; | ||
numbers: { | ||
properties: string[]; | ||
}; | ||
}; | ||
}; | ||
maintainAspectRatio: boolean; | ||
dataElementType: string; | ||
}; | ||
static readonly overrides: { | ||
scales: { | ||
x: { | ||
type: string; | ||
min: number; | ||
max: number; | ||
display: boolean; | ||
}; | ||
y: { | ||
type: string; | ||
min: number; | ||
max: number; | ||
display: boolean; | ||
}; | ||
}; | ||
}; | ||
private readonly wordLayout; | ||
rand: () => number; | ||
update(mode: UpdateMode): void; | ||
updateElements(elems: WordElement[], start: number, count: number, mode: UpdateMode): void; | ||
draw(): void; | ||
getLabelAndValue(index: number): { | ||
label: string; | ||
value: any; | ||
}; | ||
} | ||
@@ -50,0 +110,0 @@ interface IWordCloudControllerDatasetOptions extends ControllerDatasetOptions, ScriptableAndArrayOptions<IWordElementOptions, ScriptableContext<'wordCloud'>>, ScriptableAndArrayOptions<CommonHoverOptions, ScriptableContext<'wordCloud'>>, AnimationOptions<'wordCloud'> { |
{ | ||
"name": "chartjs-chart-wordcloud", | ||
"description": "Chart.js module for word clouds", | ||
"version": "4.2.2", | ||
"version": "4.2.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Samuel Gratzl", |
@@ -39,3 +39,3 @@ import { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -59,3 +59,3 @@ static readonly defaults = { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -89,3 +89,3 @@ static readonly overrides = { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -95,3 +95,3 @@ rand: () => number = Math.random; | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -108,3 +108,3 @@ update(mode: UpdateMode): void { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -192,3 +192,3 @@ updateElements(elems: WordElement[], start: number, count: number, mode: UpdateMode): void { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -202,3 +202,3 @@ draw(): void { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -205,0 +205,0 @@ getLabelAndValue(index: number): { label: string; value: any } { |
@@ -75,3 +75,3 @@ import { Element, FontSpec, VisualElement, ScriptableAndArrayOptions, ScriptableContext, ChartType } from 'chart.js'; | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -93,3 +93,3 @@ static readonly defaults: any = /* #__PURE__ */ { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -105,3 +105,3 @@ static readonly defaultRoutes = { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -121,3 +121,3 @@ static computeRotation(o: IWordElementOptions, rnd: () => number): number { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -135,3 +135,3 @@ inRange(mouseX: number, mouseY: number): boolean { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -143,3 +143,3 @@ inXRange(mouseX: number): boolean { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -151,3 +151,3 @@ inYRange(mouseY: number): boolean { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -159,3 +159,3 @@ getCenterPoint(): { x: number; y: number } { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -167,3 +167,3 @@ tooltipPosition(): { x: number; y: number } { | ||
/** | ||
* @internal | ||
* @hidden | ||
*/ | ||
@@ -170,0 +170,0 @@ draw(ctx: CanvasRenderingContext2D): void { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
230743
2368