@visactor/vchart-types 2.0.23-alpha.7 → 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.
@@ -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;
@@ -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;
@@ -21,7 +21,6 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
21
21
  private _sizeField;
22
22
  private _shape;
23
23
  private _shapeField;
24
- private _enableLabelAnimationHook?;
25
24
  protected _invalidType: IScatterInvalidType;
26
25
  setAttrFromSpec(): void;
27
26
  private _getSeriesAttribute;
@@ -36,8 +35,6 @@ export declare class ScatterSeries<T extends IScatterSeriesSpec = IScatterSeries
36
35
  initLabelMarkStyle(labelMark?: ILabelMark): void;
37
36
  private _updateSymbolGraphicPosition;
38
37
  private _ensureLabelGraphicPostMatrix;
39
- private _isGeoCoordinateSeries;
40
- private _refreshLabelComponent;
41
38
  handleZoom(e: any): void;
42
39
  handlePan(e: any): void;
43
40
  onLayoutEnd(): 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;