@visactor/vchart-types 1.11.6-alpha.5 → 1.11.6

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.
@@ -71,12 +71,3 @@ export declare function LineLabel(labelInfo: ILabelInfo): {
71
71
  position: string;
72
72
  data: any;
73
73
  };
74
- export declare function sankeyLabel(labelInfo: ILabelInfo): {
75
- position: import("@visactor/vrender-components").Functional<string>;
76
- overlap: boolean | {
77
- strategy: Strategy[];
78
- };
79
- smartInvert: boolean;
80
- offset: number;
81
- syncState: boolean;
82
- };
@@ -1,5 +1,5 @@
1
1
  import type { RichTextWordBreak } from '@visactor/vrender-core';
2
- import type { ITooltipShapeActual, StringOrNumber, TextAlign, TextBaseLine } from '../../../typings';
2
+ import type { ITooltipShapePattern, StringOrNumber, TextAlign, TextBaseLine } from '../../../typings';
3
3
  import type { Padding } from '@visactor/vrender-components';
4
4
  import type { ITokenKey } from '../../../theme/token';
5
5
  export interface ITooltipTextTheme<ColorType = string> {
@@ -37,7 +37,7 @@ export interface ITooltipTheme<ColorType = string> {
37
37
  shape?: {
38
38
  size?: number;
39
39
  spacing?: number;
40
- } & ITooltipShapeActual;
40
+ } & Omit<ITooltipShapePattern, 'seriesId'>;
41
41
  titleLabel?: ITooltipTextTheme<ColorType>;
42
42
  keyLabel?: Omit<ITooltipTextTheme<ColorType>, 'autoWidth'>;
43
43
  valueLabel?: ITooltipTextTheme<ColorType>;
@@ -1,22 +1,19 @@
1
1
  import { CartesianSeries } from '../cartesian/cartesian';
2
2
  import type { SeriesMarkMap } from '../interface';
3
3
  import { SeriesTypeEnum } from '../interface/type';
4
- import type { ITextMark } from '../../mark/text';
5
4
  import type { Datum, StringOrNumber } from '../../typings';
6
5
  import { SeriesData } from '../base/series-data';
7
6
  import type { ISankeySeriesSpec } from './interface';
8
7
  import type { ExtendEventParam } from '../../event/interface';
9
8
  import type { IElement, IGlyphElement, IMark as IVgrammarMark } from '@visactor/vgrammar-core';
10
9
  import type { IMark } from '../../mark/interface';
11
- import { SankeySeriesSpecTransformer } from './sankey-transformer';
12
10
  export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpec> extends CartesianSeries<T> {
13
11
  static readonly type: string;
14
12
  type: SeriesTypeEnum;
15
- static readonly transformerConstructor: any;
16
- readonly transformerConstructor: typeof SankeySeriesSpecTransformer;
17
13
  static readonly mark: SeriesMarkMap;
18
14
  private _nodeMark;
19
15
  private _linkMark;
16
+ private _labelMark?;
20
17
  private _nodeLayoutZIndex;
21
18
  private _labelLayoutZIndex;
22
19
  private _labelLimit;
@@ -26,7 +23,6 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
26
23
  protected _categoryField: string;
27
24
  private _colorScale;
28
25
  private _nodeList;
29
- get direction(): "vertical" | "horizontal";
30
26
  getCategoryField(): string;
31
27
  setCategoryField(f: string): string;
32
28
  protected _valueField: string;
@@ -45,7 +41,7 @@ export declare class SankeySeries<T extends ISankeySeriesSpec = ISankeySeriesSpe
45
41
  protected _fillByNode: (datum: Datum) => any;
46
42
  protected _fillByLink: (datum: Datum) => any;
47
43
  protected _initLinkMarkStyle(): void;
48
- initLabelMarkStyle(textMark: ITextMark): void;
44
+ protected _initLabelMarkStyle(): void;
49
45
  private _createText;
50
46
  initAnimation(): void;
51
47
  protected initEvent(): void;
@@ -3,14 +3,14 @@ import type { IMarkTheme } from '../typings/spec';
3
3
  import type { IArcMarkSpec, IAreaMarkSpec, ILineMarkSpec, IRectMarkSpec, ISymbolMarkSpec, ITextMarkSpec, IPathMarkSpec, ILayoutPaddingSpec } from '../typings';
4
4
  import type { MarkTypeEnum } from '../mark/interface';
5
5
  import type { IColorKey, IThemeColorScheme } from './color-scheme/interface';
6
- import type { IGradientColor } from '@visactor/vrender-core';
6
+ import type { IColor } from '@visactor/vrender-core';
7
7
  import type { IComponentTheme } from '../component/interface';
8
8
  import type { ITokenKey, TokenMap } from './token';
9
9
  export interface ITheme {
10
10
  name?: string;
11
11
  description?: string;
12
12
  type?: 'light' | 'dark';
13
- background?: string | IGradientColor | IColorKey;
13
+ background?: IColor | IColorKey;
14
14
  padding?: ILayoutPaddingSpec;
15
15
  fontFamily?: string | ITokenKey;
16
16
  token?: TokenMap;
@@ -23,7 +23,7 @@ import type { IBrushSpec } from '../../component/brush';
23
23
  import type { ITotalLabelSpec } from '../../component/label';
24
24
  import type { ILegendSpec } from '../../component/legend';
25
25
  import type { ILayoutOrientPadding, ILayoutPaddingSpec } from '../layout';
26
- import type { ICustomPath2D, IRichTextCharacter } from '@visactor/vrender-core';
26
+ import type { IColor, ICustomPath2D, IRichTextCharacter } from '@visactor/vrender-core';
27
27
  import type { ICommonAxisSpec } from '../../component/axis';
28
28
  import type { IMediaQuerySpec } from '..';
29
29
  import type { IModelSpec } from '../../model/interface';
@@ -91,7 +91,7 @@ export type IBackgroundStyleSpec = ConvertToMarkStyleSpec<Omit<IFillMarkSpec, 'w
91
91
  image?: IRectMarkSpec['background'];
92
92
  cornerRadius?: IRectMarkSpec['cornerRadius'];
93
93
  };
94
- export type IBackgroundSpec = string | IBackgroundStyleSpec;
94
+ export type IBackgroundSpec = IColor | IBackgroundStyleSpec;
95
95
  export type IDataType = IDataValues | DataView;
96
96
  export type IData = IDataType | IDataType[];
97
97
  export type DataKeyType = string | string[] | ((data: Datum, index: number) => string);
@@ -10,7 +10,7 @@ import type { Datum } from './common';
10
10
  import type { IPadding } from '@visactor/vutils';
11
11
  import type { IColorKey } from '../theme/color-scheme/interface';
12
12
  import type { ITokenKey } from '../theme/token';
13
- import type { IRepeatType, TextAlignType, TextBaselineType, IRichTextAttribute, IGraphicStyle } from '@visactor/vrender-core';
13
+ import type { IRepeatType, TextAlignType, TextBaselineType, IRichTextAttribute, IGraphicStyle, IColor } from '@visactor/vrender-core';
14
14
  export interface IVisualSpecBase<D, T> {
15
15
  type: ScaleType;
16
16
  domain: D[];
@@ -87,7 +87,7 @@ export interface ICommonSpec {
87
87
  export interface IFillMarkSpec extends ICommonSpec {
88
88
  fill?: VisualType<string> | IGradient | false | IColorKey;
89
89
  fillOpacity?: number;
90
- background?: string | HTMLImageElement | HTMLCanvasElement | null;
90
+ background?: IColor | HTMLImageElement | HTMLCanvasElement | null;
91
91
  }
92
92
  export type IMarkHtmlSpec = Partial<IGraphicStyle['html']>;
93
93
  export interface ISymbolMarkSpec extends IFillMarkSpec {
@@ -1,2 +1 @@
1
- export * from './background';
2
1
  export * from './transform';
@@ -1,5 +0,0 @@
1
- import { BaseSeriesSpecTransformer } from '../base';
2
- import type { ISankeySeriesSpec, ISankeySeriesTheme } from './interface';
3
- export declare class SankeySeriesSpecTransformer<T extends ISankeySeriesSpec = ISankeySeriesSpec, K extends ISankeySeriesTheme = ISankeySeriesTheme> extends BaseSeriesSpecTransformer<T, K> {
4
- protected _transformLabelSpec(spec: T): void;
5
- }