@visactor/vchart-types 2.0.23-alpha.6 → 2.1.0-alpha.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/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/types/compile/compiler.d.ts +4 -0
- package/types/compile/interface/compiler.d.ts +2 -1
- package/types/compile/stage-app.d.ts +9 -0
- package/types/component/marker/mark-line/interface/spec.d.ts +2 -9
- package/types/mark/base/base-mark.d.ts +1 -0
- package/types/util/graphic-state.d.ts +3 -0
|
@@ -20,6 +20,8 @@ export declare class Compiler implements ICompiler {
|
|
|
20
20
|
private _progressiveRafId?;
|
|
21
21
|
protected _rootMarks: IMark[];
|
|
22
22
|
protected _stage: IStage;
|
|
23
|
+
private _isExternalStage;
|
|
24
|
+
private _releaseVRenderAppRef?;
|
|
23
25
|
protected _stateAnimationConfig: Partial<MarkAnimationSpec>;
|
|
24
26
|
get stateAnimationConfig(): Partial<MarkAnimationSpec>;
|
|
25
27
|
protected _rootGroup: IGroup;
|
|
@@ -47,6 +49,8 @@ export declare class Compiler implements ICompiler {
|
|
|
47
49
|
updateLayoutTag(): void;
|
|
48
50
|
protected handleLayoutEnd: () => void;
|
|
49
51
|
protected handleStageRender: () => void;
|
|
52
|
+
private _isGeoRegionRoamDragEnabled;
|
|
53
|
+
private _shouldDisableCanvasTouchAction;
|
|
50
54
|
private _setCanvasStyle;
|
|
51
55
|
compile(ctx: {
|
|
52
56
|
chart: IChart;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IColor, IStageParams, IStage, ILayer, IOption3D, ITicker } from '@visactor/vrender-core';
|
|
1
|
+
import type { IApp, IColor, IStageParams, IStage, ILayer, IOption3D, ITicker } from '@visactor/vrender-core';
|
|
2
2
|
import type { IPerformanceHook, RenderMode } from '../../typings/spec/common';
|
|
3
3
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
4
4
|
import type { StringOrNumber } from '../../typings';
|
|
@@ -42,6 +42,7 @@ export interface IRenderOption {
|
|
|
42
42
|
viewBox?: IBoundsLike;
|
|
43
43
|
canvasControled?: boolean;
|
|
44
44
|
stage?: IStage;
|
|
45
|
+
app?: IApp;
|
|
45
46
|
layer?: ILayer;
|
|
46
47
|
beforeRender?: IStageParams['beforeRender'];
|
|
47
48
|
afterRender?: IStageParams['afterRender'];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IApp, IStage, IStageParams } from '@visactor/vrender-core';
|
|
2
|
+
import { type RenderMode } from '../typings/spec/common';
|
|
3
|
+
export type ResolvedVRenderApp = {
|
|
4
|
+
app: IApp;
|
|
5
|
+
releaseAppRef?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const getDefaultVRenderApp: (mode?: RenderMode) => IApp;
|
|
8
|
+
export declare const resolveVRenderApp: (app: IApp | undefined, mode?: RenderMode) => ResolvedVRenderApp;
|
|
9
|
+
export declare const createStageFromApp: (app: IApp, params: Partial<IStageParams>) => IStage;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type { DataView } from '@visactor/vdataset';
|
|
2
1
|
import type { IComponent } from '../../../interface';
|
|
3
|
-
import type { IAggrType,
|
|
2
|
+
import type { IAggrType, IMarkerPositionsSpec, IDataPointSpec, IMarkerSpec, IDataPos, IDataPosCallback, IMarkerLabelSpec, IMarkerCrossSeriesSpec, OffsetPoint, MarkerStateValue, MarkerStateCallback, IMarkerSupportSeries } from '../../interface';
|
|
4
3
|
import type { IRegressType } from '../../mark-area/interface';
|
|
5
4
|
import type { IMarkLineTheme } from './theme';
|
|
6
5
|
import type { Datum, ILineMarkSpec, IPoint } from '../../../../typings';
|
|
7
6
|
import type { BaseMarkerAnimation, MarkCommonLineAnimationType } from '@visactor/vrender-components';
|
|
8
|
-
import type { IRegion } from '../../../../region/interface';
|
|
9
7
|
export type IMarkLine = IComponent;
|
|
10
8
|
export type IMarkLineSpec = (IMarkerSpec & (IMarkLineXSpec | IMarkLineYSpec | IMarkLineXYSpec | IMarkLineXYY1Spec | IMarkLineYXX1Spec | IMarkLineAngleSpec | IMarkLineRadiusSpec | IMarkLineAngRadRad1Spec | IMarkLineRadAngAng1Spec | IMarkLineAngRadSpec | IMarkLineCoordinateSpec | IMarkerPositionsSpec) & IMarkLineTheme & BaseMarkerAnimation<MarkCommonLineAnimationType>) | (IStepMarkLineSpec & BaseMarkerAnimation<MarkCommonLineAnimationType>);
|
|
11
9
|
export interface IMarkLineXSpec extends IMarkerCrossSeriesSpec {
|
|
@@ -66,12 +64,7 @@ export type IMarkLineCoordinateSpec = {
|
|
|
66
64
|
export type IStepMarkLineSpec = IMarkerSpec & {
|
|
67
65
|
type: 'type-step';
|
|
68
66
|
connectDirection: 'top' | 'bottom' | 'left' | 'right';
|
|
69
|
-
expandDistance?: number | string
|
|
70
|
-
region: IRegion;
|
|
71
|
-
startRegion: IRegion;
|
|
72
|
-
endRegion: IRegion;
|
|
73
|
-
coordinatePoints: IPoint[];
|
|
74
|
-
}) => number | string);
|
|
67
|
+
expandDistance?: number | string;
|
|
75
68
|
label?: IMarkerLabelSpec;
|
|
76
69
|
line?: {
|
|
77
70
|
multiSegment?: boolean;
|
|
@@ -155,6 +155,7 @@ export declare class BaseMark<T extends ICommonSpec> extends GrammarItem impleme
|
|
|
155
155
|
protected _getEncoderOfStyle: (stateName: string, style: Partial<IAttrs<T>>) => Record<string, (datum: Datum) => any>;
|
|
156
156
|
protected _setGraphicFromMarkConfig: (g: IMarkGraphic) => void;
|
|
157
157
|
protected _setStateOfGraphic: (g: IMarkGraphic, hasAnimation?: boolean) => void;
|
|
158
|
+
protected _applySharedStateDefinitions(): void;
|
|
158
159
|
protected _addProgressiveGraphic(parent: IGroup, g: IMarkGraphic): void;
|
|
159
160
|
protected _runEncoder(graphics: IMarkGraphic[], noGroupEncode?: boolean): void;
|
|
160
161
|
protected _runApplyGraphic(graphics: IMarkGraphic[]): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IMarkGraphic } from '../mark/interface';
|
|
2
|
+
export declare const addGraphicState: (graphic: IMarkGraphic, state: string, keepCurrentStates?: boolean, hasAnimation?: boolean) => void;
|
|
3
|
+
export declare const removeGraphicState: (graphic: IMarkGraphic, state: string | string[], hasAnimation?: boolean) => void;
|