@visactor/vchart-types 2.0.13-alpha.1 → 2.0.13-alpha.2

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.
@@ -33,6 +33,7 @@ export declare class Compiler implements ICompiler {
33
33
  protected _height: number;
34
34
  protected _container: IRenderContainer;
35
35
  protected _option: IRenderOption;
36
+ getOption(): IRenderOption;
36
37
  private _released;
37
38
  private _layoutState?;
38
39
  private _compileChart;
@@ -6,7 +6,7 @@ import type { IMorphConfig } from '../../animation/spec';
6
6
  import type { IBoundsLike } from '@visactor/vutils';
7
7
  import type { EventSourceType, EventType } from '../../event/interface';
8
8
  import type { IMark, IMarkGraphic } from '../../mark/interface';
9
- import type { LayoutState } from '../interface/compiler';
9
+ import type { IRenderOption, LayoutState } from '../interface/compiler';
10
10
  import type { MarkAnimationSpec } from '../../animation/interface';
11
11
  export type CompilerListenerParameters = {
12
12
  type: EventType;
@@ -27,6 +27,7 @@ export interface IGrammarItemMap<T extends IGrammarItem> {
27
27
  }
28
28
  export type ICompilerModel = Record<GrammarType, IProductMap<IGrammarItem>>;
29
29
  export interface ICompiler {
30
+ getOption: () => IRenderOption;
30
31
  isInited?: boolean;
31
32
  readonly stateAnimationConfig?: MarkAnimationSpec;
32
33
  getCanvas: () => HTMLCanvasElement | undefined;
@@ -4,7 +4,7 @@ import { Brush as BrushComponent } from '@visactor/vrender-components';
4
4
  import type { Maybe } from '@visactor/vutils';
5
5
  import type { IModelSpecInfo } from '../../model/interface';
6
6
  import type { IRegion } from '../../region/interface';
7
- import type { IGraphic } from '@visactor/vrender-core';
7
+ import type { IGraphic, IPolygon } from '@visactor/vrender-core';
8
8
  import type { ISeries } from '../../series/interface';
9
9
  import type { IMark, IMarkGraphic } from '../../mark/interface';
10
10
  import type { BrushInteractiveRangeAttr, IBrush, IBrushSpec } from './interface';
@@ -22,6 +22,7 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
22
22
  protected _brushComponents: BrushComponent[];
23
23
  protected _relativeRegions: IRegion[];
24
24
  protected _linkedSeries: ISeries[];
25
+ protected _operateMask: IPolygon;
25
26
  private _itemMap;
26
27
  private _linkedItemMap;
27
28
  protected _inBrushElementsMap: {
@@ -63,6 +64,7 @@ export declare class Brush<T extends IBrushSpec = IBrushSpec> extends BaseCompon
63
64
  };
64
65
  onLayoutEnd(): void;
65
66
  protected _updateBrushComponent(region: IRegion, componentIndex: number): void;
67
+ protected _shouldEnableInteractive(): boolean;
66
68
  protected _createBrushComponent(region: IRegion, componentIndex: number): void;
67
69
  protected _getBrushInteractiveAttr(region: IRegion): BrushInteractiveRangeAttr;
68
70
  private _transformBrushedMarkAttr;