@visactor/vchart-types 1.6.1-alpha.0 → 1.6.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.
@@ -1,9 +1,9 @@
1
1
  import type { IPointLike } from '@visactor/vutils';
2
2
  import type { IComponent } from '../../../interface';
3
- import type { IDataPointSpec, IMarkerSpec, IMarkerSymbol } from '../../interface';
3
+ import type { IDataPointSpec, IMarkerSpec } from '../../interface';
4
4
  import type { IMarkPointTheme } from './theme';
5
5
  export type IMarkPoint = IComponent;
6
- export type IMarkPointSpec = IMarkerSpec & (IMarkPointCoordinateSpec | IMarkPointPositionsSpec) & IMarkPointTheme<IMarkerSymbol>;
6
+ export type IMarkPointSpec = IMarkerSpec & (IMarkPointCoordinateSpec | IMarkPointPositionsSpec) & IMarkPointTheme;
7
7
  export type IMarkPointCoordinateSpec = {
8
8
  coordinates: IDataPointSpec;
9
9
  relativeRelativeSeriesIndex?: number;
@@ -18,20 +18,20 @@ export interface IItemContent extends IMarkerRef {
18
18
  style?: IRichTextGraphicAttribute;
19
19
  };
20
20
  }
21
- export type IItemLine<T extends Partial<IMarkerSymbol> = IMarkerSymbol> = {
21
+ export type IItemLine = {
22
22
  type?: 'type-s' | 'type-do' | 'type-po' | 'type-op';
23
23
  visible?: boolean;
24
24
  decorativeLine?: {
25
25
  visible?: boolean;
26
26
  length?: number;
27
27
  };
28
- startSymbol?: T;
29
- endSymbol?: T;
28
+ startSymbol?: IMarkerSymbol;
29
+ endSymbol?: IMarkerSymbol;
30
30
  line?: {
31
31
  style?: Omit<ILineMarkSpec, 'visible'>;
32
32
  };
33
33
  };
34
- export interface IMarkPointTheme<T extends Partial<IMarkerSymbol> = Partial<IMarkerSymbol>> {
35
- itemLine?: IItemLine<T>;
34
+ export interface IMarkPointTheme {
35
+ itemLine?: IItemLine;
36
36
  itemContent?: IItemContent;
37
37
  }
@@ -3,28 +3,19 @@ export type BuiltinColorPalette = IColorSchemeStruct['palette'] & {
3
3
  backgroundColor: string;
4
4
  borderColor: string;
5
5
  shadowColor: string;
6
- hoverBackgroundColor: string;
7
- sliderRailColor: string;
8
- sliderHandleColor: string;
9
- sliderTrackColor: string;
10
- popupBackgroundColor: string;
11
6
  primaryFontColor: string;
12
7
  secondaryFontColor: string;
13
- tertiaryFontColor: string;
14
- axisLabelFontColor: string;
8
+ axisFontColor: string;
15
9
  disableFontColor: string;
16
- axisMarkerFontColor: string;
10
+ labelReverseFontColor: string;
17
11
  axisGridColor: string;
18
12
  axisDomainColor: string;
19
- dataZoomHandleStrokeColor: string;
13
+ dataZoomHandlerStrokeColor: string;
14
+ dataZoomHandlerFillColor: string;
15
+ dataZoomBackgroundColor: string;
20
16
  dataZoomChartColor: string;
21
- playerControllerColor: string;
17
+ dataZoomSelectedColor: string;
22
18
  scrollBarSliderColor: string;
23
- axisMarkerBackgroundColor: string;
19
+ tooltipBackgroundColor: string;
24
20
  markLabelBackgroundColor: string;
25
- markLineStrokeColor: string;
26
- dangerColor: string;
27
- warningColor: string;
28
- successColor: string;
29
- infoColor: string;
30
21
  };
@@ -0,0 +1,5 @@
1
+ import type { BuiltinColorPalette } from './builtin';
2
+ import type { ColorSchemeItem, IColorSchemeStruct } from './interface';
3
+ export declare const newTokenToLegacyToken: Record<keyof BuiltinColorPalette, string>;
4
+ export declare const legacyTokenToNewToken: Record<string, keyof BuiltinColorPalette>;
5
+ export declare function getUpgradedTokenValue(palette: IColorSchemeStruct['palette'], key: string): ColorSchemeItem;