stz-chart-maker 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -0
- package/dist/index.js +4099 -4117
- package/package.json +1 -1
- package/CHANGELOG.md +0 -193
package/dist/index.d.ts
CHANGED
|
@@ -451,6 +451,8 @@ type Constructor<TType extends ChartType, TInstance> = new (type: TType, labels:
|
|
|
451
451
|
interface ChartBuilder<TType extends string> {
|
|
452
452
|
setPlugin(plugins: any): this;
|
|
453
453
|
removePlugin(pluginId: string): this;
|
|
454
|
+
clone(): this;
|
|
455
|
+
copy(): this;
|
|
454
456
|
build(id?: string): ChartConfig;
|
|
455
457
|
makeConfig(id?: string): ChartConfig;
|
|
456
458
|
hasPlugin(pluginId: string): boolean;
|
|
@@ -682,6 +684,11 @@ declare abstract class Chart<TType extends ChartType, TOptions extends CustomCha
|
|
|
682
684
|
static create<TType extends ChartType>(type: TType, labels: (string | number)[], datasets: CustomChartDatasets<TType>[], options?: CustomChartOptions<TType>, plugins?: Plugin$1): TType extends keyof ChartBuilderMap ? ChartBuilderMap[TType] : ChartBuilder<TType>;
|
|
683
685
|
static register<TType extends ChartType, TInstance>(type: TType, wrapperClass: Constructor<TType, TInstance>): void;
|
|
684
686
|
static has(type: ChartType): boolean;
|
|
687
|
+
protected cloneValue<T>(value: T): T;
|
|
688
|
+
protected clonePlugins<TPlugins>(plugins: TPlugins): TPlugins;
|
|
689
|
+
clone(): this;
|
|
690
|
+
copy(): this;
|
|
691
|
+
protected mergePlugins<TPlugin>(plugins: TPlugin[] | undefined, required: TPlugin[]): TPlugin[];
|
|
685
692
|
protected abstract normalize(): void;
|
|
686
693
|
protected abstract configAop(config: any): any;
|
|
687
694
|
abstract build(id?: string): ChartConfig;
|