@visactor/vchart-types 1.6.6 → 1.6.8
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.
|
@@ -5,7 +5,7 @@ import { BaseComponent } from '../base/base-component';
|
|
|
5
5
|
import type { IPadding, Maybe, StringOrNumber } from '../../typings';
|
|
6
6
|
import type { LayoutItem } from '../../model/layout-item';
|
|
7
7
|
import type { IComponentOption } from '../interface';
|
|
8
|
-
import type { ICrossHair, CrossHairTrigger, ICartesianCrosshairSpec, IPolarCrosshairSpec,
|
|
8
|
+
import type { ICrossHair, CrossHairTrigger, ICartesianCrosshairSpec, IPolarCrosshairSpec, ICrosshairCategoryFieldSpec, ICrosshairTheme } from './interface';
|
|
9
9
|
import type { IAxis } from '../axis/interface';
|
|
10
10
|
type IBound = {
|
|
11
11
|
x1: number;
|
package/types/core/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export type { IStateSpec, StateValueType } from '../compile/mark';
|
|
|
7
7
|
export * from '../typings/spec/common';
|
|
8
8
|
export * from '../event/interface';
|
|
9
9
|
export * from '../theme/interface';
|
|
10
|
+
export * from '../constant';
|
|
11
|
+
export * from './interface';
|
|
10
12
|
export * from '../typings/spec/index';
|
|
11
13
|
export * from '../theme/index';
|
|
12
14
|
export { vglobal } from '@visactor/vrender-core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataSet } from '@visactor/vdataset';
|
|
2
2
|
import type { IParserOptions } from '@visactor/vdataset/es/parser';
|
|
3
|
-
import type { Datum, IMarkStateSpec, IPoint, IRegionQuerier, IShowTooltipOption, ISpec, ITooltipHandler, Maybe, MaybeArray, StringOrNumber } from '../typings';
|
|
3
|
+
import type { Datum, IInitOption, IMarkStateSpec, IPoint, IRegionQuerier, IShowTooltipOption, ISpec, ITooltipHandler, Maybe, MaybeArray, StringOrNumber } from '../typings';
|
|
4
4
|
import type { IMorphConfig } from '../animation/spec';
|
|
5
5
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
6
6
|
import type { EventCallback, EventParams, EventQuery, EventType } from '../event/interface';
|
|
@@ -21,6 +21,9 @@ export type DataLinkAxis = {
|
|
|
21
21
|
axisId?: StringOrNumber;
|
|
22
22
|
axisIndex?: number;
|
|
23
23
|
};
|
|
24
|
+
export interface IVChartConstructor {
|
|
25
|
+
new (spec: ISpec, options: IInitOption): IVChart;
|
|
26
|
+
}
|
|
24
27
|
export interface IVChart {
|
|
25
28
|
readonly id: number;
|
|
26
29
|
renderSync: (morphConfig?: IMorphConfig) => IVChart;
|
|
@@ -80,5 +80,5 @@ export declare abstract class BaseModel<T extends IModelSpec> extends LayoutItem
|
|
|
80
80
|
protected _createMark<T extends IMark>(markInfo: IModelMarkInfo, option?: Partial<IMarkOption>): T;
|
|
81
81
|
protected _getDataIdKey(): string | ((datum: Datum) => string) | undefined;
|
|
82
82
|
getColorScheme(): import("..").IThemeColorScheme;
|
|
83
|
-
protected _getChartLevelTheme(): import("
|
|
83
|
+
protected _getChartLevelTheme(): import("..").IChartLevelTheme;
|
|
84
84
|
}
|