@visactor/vchart-types 2.1.3-alpha.4 → 2.1.3
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/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/compile/compiler.d.ts +2 -0
- package/types/compile/interface/compiler.d.ts +1 -0
- package/types/core/factory-registry.d.ts +2 -1
- package/types/core/factory.d.ts +4 -1
- package/types/interaction/interaction.d.ts +2 -0
- package/types/mark/glyph.d.ts +1 -1
- package/types/series/sankey/sankey.d.ts +3 -0
|
@@ -44,6 +44,8 @@ export declare class Compiler implements ICompiler {
|
|
|
44
44
|
getCanvas(): HTMLCanvasElement | undefined;
|
|
45
45
|
_gestureController?: Gesture;
|
|
46
46
|
getStage(): IStage | undefined;
|
|
47
|
+
private _dedupeStagePlugin;
|
|
48
|
+
private _dedupePoptipPlugin;
|
|
47
49
|
initView(): void;
|
|
48
50
|
getLayoutState(): LayoutState;
|
|
49
51
|
updateLayoutTag(): void;
|
|
@@ -57,6 +57,7 @@ export interface IRenderOption {
|
|
|
57
57
|
disableDirtyBounds?: boolean;
|
|
58
58
|
enableView3dTransform?: boolean;
|
|
59
59
|
pluginList?: string[];
|
|
60
|
+
runtimePluginInstallers?: ((app?: IApp) => void)[];
|
|
60
61
|
ticker?: ITicker;
|
|
61
62
|
optimize?: IOptimizeType;
|
|
62
63
|
enableHtmlAttribute?: boolean;
|
|
@@ -7,7 +7,7 @@ import type { IRegionConstructor } from '../region/interface';
|
|
|
7
7
|
import type { ILayoutConstructor } from '../layout/interface';
|
|
8
8
|
import type { IChartPluginConstructor } from '../plugin/chart/interface';
|
|
9
9
|
import type { IComponentPluginConstructor } from '../plugin/components/interface';
|
|
10
|
-
import type { IGraphic } from '@visactor/vrender-core';
|
|
10
|
+
import type { IApp, IGraphic } from '@visactor/vrender-core';
|
|
11
11
|
import type { GrammarTransformOption, IStageEventPlugin, VRenderComponentOptions } from './interface';
|
|
12
12
|
import type { MarkAnimationSpec } from '../animation/interface';
|
|
13
13
|
import type { ITriggerConstructor } from '../interaction/interface/trigger';
|
|
@@ -64,6 +64,7 @@ export interface IFactoryRegistry {
|
|
|
64
64
|
interactionTriggers: Record<string, ITriggerConstructor>;
|
|
65
65
|
composedEventMap: Record<string, IComposedEventConstructor>;
|
|
66
66
|
tooltipProcessors: Record<string, ITooltipProcessorConstructor>;
|
|
67
|
+
runtimePluginInstallers: Record<string, (app?: IApp) => void>;
|
|
67
68
|
formatter?: (text: string | number | string[] | number[], datum: any, formatter: string | string[]) => any;
|
|
68
69
|
}
|
|
69
70
|
export declare const factoryRegistry: IFactoryRegistry;
|
package/types/core/factory.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { Transform, Parser } from '@visactor/vdataset';
|
|
|
8
8
|
import type { ILayoutConstructor } from '../layout/interface';
|
|
9
9
|
import type { IChartPluginConstructor } from '../plugin/chart/interface';
|
|
10
10
|
import type { IComponentPluginConstructor } from '../plugin/components/interface';
|
|
11
|
-
import type { IGraphic } from '@visactor/vrender-core';
|
|
11
|
+
import type { IApp, IGraphic } from '@visactor/vrender-core';
|
|
12
12
|
import type { GrammarTransformOption, IStageEventPlugin, VRenderComponentOptions } from './interface';
|
|
13
13
|
import type { MarkAnimationSpec } from '../animation/interface';
|
|
14
14
|
import type { IBaseTriggerOptions, ITriggerConstructor } from '../interaction/interface/trigger';
|
|
@@ -98,4 +98,7 @@ export declare class Factory {
|
|
|
98
98
|
private static _tooltipProcessors;
|
|
99
99
|
static registerTooltipProcessor: (type: string, processor: ITooltipProcessorConstructor) => void;
|
|
100
100
|
static createTooltipProcessor: (type: string, tooltip: ITooltip) => import("../component/tooltip/processor/interface").ITooltipProcessor<import("../component/tooltip/processor/interface").DimensionTooltipInfo> | import("../component/tooltip/processor/interface").ITooltipProcessor<import("../component/tooltip/processor/interface").MarkTooltipInfo<import("../index-harmony-simple").Datum>>;
|
|
101
|
+
private static _runtimePluginInstallers;
|
|
102
|
+
static registerRuntimePluginInstaller: (type: string, installer: (app?: IApp) => void) => void;
|
|
103
|
+
static getRuntimePluginInstaller: (type: string) => (app?: IApp) => void;
|
|
101
104
|
}
|
|
@@ -9,6 +9,8 @@ export declare class Interaction implements IInteraction {
|
|
|
9
9
|
addTrigger(trigger: ITrigger): void;
|
|
10
10
|
setStatedGraphics(trigger: ITrigger, graphics: IMarkGraphic[]): void;
|
|
11
11
|
getStatedGraphics(trigger: ITrigger): IMarkGraphic[];
|
|
12
|
+
private _getMarkById;
|
|
13
|
+
private _hasAnimationByGraphicState;
|
|
12
14
|
updateStates(trigger: ITrigger, newStatedGraphics: IMarkGraphic[], prevStatedGraphics?: IMarkGraphic[], state?: string, reverseState?: string): IMarkGraphic[];
|
|
13
15
|
protected toggleReverseStateOfGraphics(trigger: ITrigger, newStatedGraphics: IMarkGraphic[], prevStatedGraphics: IMarkGraphic[], reverseState: string): void;
|
|
14
16
|
protected toggleStateOfGraphics(trigger: ITrigger, newStatedGraphics: IMarkGraphic[], prevStatedGraphics: IMarkGraphic[], state: string): void;
|
package/types/mark/glyph.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare abstract class GlyphMark<T extends ICommonSpec = ICommonSpec, Cfg
|
|
|
26
26
|
private _getInheritedStyleAttrsMap;
|
|
27
27
|
private _syncInheritedStyleAttrs;
|
|
28
28
|
private _onGlyphAttributeUpdate;
|
|
29
|
-
protected _setStateOfGraphic: (g: IMarkGraphic) => void;
|
|
29
|
+
protected _setStateOfGraphic: (g: IMarkGraphic, hasAnimation?: boolean) => void;
|
|
30
30
|
protected _createGraphic(attrs?: IGlyphGraphicAttribute): IGraphic;
|
|
31
31
|
protected _runProgressiveEncoder(graphics: IMarkGraphic[]): void;
|
|
32
32
|
}
|
|
@@ -29,6 +29,9 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
|
|
|
29
29
|
private _nodeList;
|
|
30
30
|
private _needClear;
|
|
31
31
|
get direction(): "horizontal" | "vertical";
|
|
32
|
+
private _hasStateAnimation;
|
|
33
|
+
private _hasLinkStateAnimation;
|
|
34
|
+
private _hasNodeStateAnimation;
|
|
32
35
|
getCategoryField(): string;
|
|
33
36
|
setCategoryField(f: string): string;
|
|
34
37
|
protected _valueField: string;
|