@visactor/vchart-types 2.1.0-alpha.12 → 2.1.0-alpha.14
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.
- package/package.json +3 -3
- package/tsconfig.tsbuildinfo +1 -1
- package/types/animation/callback-disappear.d.ts +1 -1
- package/types/chart/base/base-chart.d.ts +2 -0
- package/types/compile/stage-app.d.ts +10 -2
- package/types/component/axis/base-axis.d.ts +1 -1
- package/types/component/axis/cartesian/linear-axis.d.ts +1 -1
- package/types/component/crosshair/base.d.ts +1 -1
- package/types/component/legend/discrete/legend.d.ts +1 -1
- package/types/component/marker/mark-line/interface/spec.d.ts +9 -2
- package/types/core/index.d.ts +2 -1
- package/types/plugin/components/tooltip-handler/canvas-tooltip-handler.d.ts +2 -2
- package/types/series/base/base-series.d.ts +1 -0
- package/types/util/math.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AStageAnimate } from '@visactor/vrender-animate';
|
|
1
|
+
import { AStageAnimate } from '@visactor/vrender-animate/custom/custom-animate';
|
|
2
2
|
import { EasingType } from '@visactor/vrender-core';
|
|
3
3
|
export declare class CallbackDisappearAnimate extends AStageAnimate<any> {
|
|
4
4
|
protected currentAnimationRatio: number;
|
|
@@ -119,6 +119,8 @@ export declare class BaseChart<T extends IChartSpec> extends CompilableBase impl
|
|
|
119
119
|
updateGlobalScale(result: IUpdateSpecResult): void;
|
|
120
120
|
updateGlobalScaleTheme(): void;
|
|
121
121
|
private _getSpecKeys;
|
|
122
|
+
private _isSeriesRelatedSpecKey;
|
|
123
|
+
private _canChangeSpecKeysWithoutRemake;
|
|
122
124
|
updateSpec(spec: T): IUpdateSpecResult;
|
|
123
125
|
updateChartConfig(result: IUpdateSpecResult, oldSpec: IChartSpec): void;
|
|
124
126
|
updateDataSpec(): void;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import type { IApp, IStage, IStageParams } from '@visactor/vrender-core';
|
|
2
2
|
import { type RenderMode } from '../typings/spec/common';
|
|
3
|
+
type VRenderAppEnv = 'browser' | 'node' | 'feishu' | 'tt' | 'wx' | 'lynx' | 'harmony';
|
|
4
|
+
export type ResolveVRenderAppOptions = {
|
|
5
|
+
app?: IApp;
|
|
6
|
+
mode?: RenderMode;
|
|
7
|
+
modeParams?: unknown;
|
|
8
|
+
};
|
|
3
9
|
export type ResolvedVRenderApp = {
|
|
4
10
|
app: IApp;
|
|
5
11
|
releaseAppRef?: () => void;
|
|
6
12
|
};
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
13
|
+
export declare const getVRenderAppEnv: (mode?: RenderMode) => VRenderAppEnv;
|
|
14
|
+
export declare const getVRenderAppEnvParams: (mode?: RenderMode, modeParams?: unknown) => unknown;
|
|
15
|
+
export declare const resolveVRenderApp: (appOrOptions?: IApp | ResolveVRenderAppOptions, mode?: RenderMode) => ResolvedVRenderApp;
|
|
9
16
|
export declare const createStageFromApp: (app: IApp, params: Partial<IStageParams>) => IStage;
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IGroup } from '@visactor/vrender-core';
|
|
2
|
-
import type { ITickDataOpt } from '@visactor/vrender-components';
|
|
2
|
+
import type { ITickDataOpt } from '@visactor/vrender-components/axis/type';
|
|
3
3
|
import type { IBaseScale } from '@visactor/vscale';
|
|
4
4
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
5
5
|
import type { IOrientType, IPolarOrientType, StringOrNumber, CoordinateType } from '../../typings';
|
|
@@ -4,7 +4,7 @@ import { CartesianAxis } from './axis';
|
|
|
4
4
|
import type { IAxisHelper, ICartesianAxisCommonTheme, ICartesianLinearAxisSpec } from './interface';
|
|
5
5
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
6
6
|
import { LinearAxisMixin } from '../mixin/linear-axis-mixin';
|
|
7
|
-
import type { ICartesianTickDataOpt } from '@visactor/vrender-components';
|
|
7
|
+
import type { ICartesianTickDataOpt } from '@visactor/vrender-components/axis/type';
|
|
8
8
|
export interface CartesianLinearAxis<T extends ICartesianLinearAxisSpec = ICartesianLinearAxisSpec> extends Pick<LinearAxisMixin, 'setExtraAttrFromSpec' | 'computeLinearDomain' | 'valueToPosition' | 'setScaleNice' | '_domain' | 'transformScaleDomain' | 'setExtendDomain' | '_break'>, CartesianAxis<T> {
|
|
9
9
|
}
|
|
10
10
|
export declare class CartesianLinearAxis<T extends ICartesianLinearAxisSpec = ICartesianLinearAxisSpec> extends CartesianAxis<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
|
-
import { Tag } from '@visactor/vrender-components';
|
|
2
|
+
import { Tag } from '@visactor/vrender-components/tag';
|
|
3
3
|
import type { IGraphic } from '@visactor/vrender-core';
|
|
4
4
|
import { BaseComponent } from '../base/base-component';
|
|
5
5
|
import type { IPoint, StringOrNumber, TooltipActiveType, TooltipData } from '../../typings';
|
|
@@ -4,7 +4,7 @@ import type { IDiscreteLegendSpec } from './interface';
|
|
|
4
4
|
import type { ISeries } from '../../../series/interface';
|
|
5
5
|
import type { IModelInitOption, IModelSpecInfo } from '../../../model/interface';
|
|
6
6
|
import { ComponentTypeEnum } from '../../interface/type';
|
|
7
|
-
import { DiscreteLegend as LegendComponent } from '@visactor/vrender-components';
|
|
7
|
+
import { DiscreteLegend as LegendComponent } from '@visactor/vrender-components/legend/discrete';
|
|
8
8
|
import { BaseLegend } from '../base-legend';
|
|
9
9
|
import type { ILayoutRect } from '../../../typings/layout';
|
|
10
10
|
import type { StringOrNumber } from '../../../typings';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import type { DataView } from '@visactor/vdataset';
|
|
1
2
|
import type { IComponent } from '../../../interface';
|
|
2
|
-
import type { IAggrType, IMarkerPositionsSpec, IDataPointSpec, IMarkerSpec, IDataPos, IDataPosCallback, IMarkerLabelSpec, IMarkerCrossSeriesSpec, OffsetPoint, MarkerStateValue, MarkerStateCallback, IMarkerSupportSeries } from '../../interface';
|
|
3
|
+
import type { IAggrType, IMarkerAttributeContext, IMarkerPositionsSpec, IDataPointSpec, IMarkerSpec, IDataPos, IDataPosCallback, IMarkerLabelSpec, IMarkerCrossSeriesSpec, OffsetPoint, MarkerStateValue, MarkerStateCallback, IMarkerSupportSeries } from '../../interface';
|
|
3
4
|
import type { IRegressType } from '../../mark-area/interface';
|
|
4
5
|
import type { IMarkLineTheme } from './theme';
|
|
5
6
|
import type { Datum, ILineMarkSpec, IPoint } from '../../../../typings';
|
|
6
7
|
import type { BaseMarkerAnimation, MarkCommonLineAnimationType } from '@visactor/vrender-components';
|
|
8
|
+
import type { IRegion } from '../../../../region/interface';
|
|
7
9
|
export type IMarkLine = IComponent;
|
|
8
10
|
export type IMarkLineSpec = (IMarkerSpec & (IMarkLineXSpec | IMarkLineYSpec | IMarkLineXYSpec | IMarkLineXYY1Spec | IMarkLineYXX1Spec | IMarkLineAngleSpec | IMarkLineRadiusSpec | IMarkLineAngRadRad1Spec | IMarkLineRadAngAng1Spec | IMarkLineAngRadSpec | IMarkLineCoordinateSpec | IMarkerPositionsSpec) & IMarkLineTheme & BaseMarkerAnimation<MarkCommonLineAnimationType>) | (IStepMarkLineSpec & BaseMarkerAnimation<MarkCommonLineAnimationType>);
|
|
9
11
|
export interface IMarkLineXSpec extends IMarkerCrossSeriesSpec {
|
|
@@ -64,7 +66,12 @@ export type IMarkLineCoordinateSpec = {
|
|
|
64
66
|
export type IStepMarkLineSpec = IMarkerSpec & {
|
|
65
67
|
type: 'type-step';
|
|
66
68
|
connectDirection: 'top' | 'bottom' | 'left' | 'right';
|
|
67
|
-
expandDistance?: number | string
|
|
69
|
+
expandDistance?: number | string | ((markerData: DataView, context: IMarkerAttributeContext & {
|
|
70
|
+
region: IRegion;
|
|
71
|
+
startRegion: IRegion;
|
|
72
|
+
endRegion: IRegion;
|
|
73
|
+
coordinatePoints: IPoint[];
|
|
74
|
+
}) => number | string);
|
|
68
75
|
label?: IMarkerLabelSpec;
|
|
69
76
|
line?: {
|
|
70
77
|
multiSegment?: boolean;
|
package/types/core/index.d.ts
CHANGED
|
@@ -23,7 +23,8 @@ export * from '../typings/visual';
|
|
|
23
23
|
export * from '../typings/tooltip';
|
|
24
24
|
export * from '../theme/index';
|
|
25
25
|
export { vglobal, createGroup, createRichText, createText, createArc, createArea, createRect, createLine, createSymbol } from '@visactor/vrender-core';
|
|
26
|
-
export { ManualTicker
|
|
26
|
+
export { ManualTicker } from '@visactor/vrender-animate/ticker/manual-ticker';
|
|
27
|
+
export { StreamLight } from '@visactor/vrender-animate/custom/streamLight';
|
|
27
28
|
export * from '../util/space';
|
|
28
29
|
export { transformToGraphic } from '../util/style';
|
|
29
30
|
export { getSpecInfo } from '../component/util';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseTooltipHandler } from './base';
|
|
2
|
-
import { Tooltip as TooltipComponent } from '@visactor/vrender-components';
|
|
2
|
+
import { Tooltip as TooltipComponent } from '@visactor/vrender-components/tooltip';
|
|
3
3
|
import type { TooltipHandlerParams } from '../../../component/tooltip';
|
|
4
4
|
import type { IComponentPluginService } from '../interface';
|
|
5
5
|
import type { ITooltipActual } from '../../../typings';
|
|
6
|
-
import type { IContainerSize } from '@visactor/vrender-components';
|
|
6
|
+
import type { IContainerSize } from '@visactor/vrender-components/tooltip/type';
|
|
7
7
|
import type { ITooltipAttributes } from './interface';
|
|
8
8
|
export declare class CanvasTooltipHandler extends BaseTooltipHandler {
|
|
9
9
|
static readonly type: string;
|
|
@@ -170,6 +170,7 @@ export declare abstract class BaseSeries<T extends ISeriesSpec> extends BaseMode
|
|
|
170
170
|
initSeriesStyleState(): void;
|
|
171
171
|
afterInitMark(): void;
|
|
172
172
|
getMarksWithoutRoot(): IMark[];
|
|
173
|
+
protected _getMarkSpecNamesForCompare(): string[];
|
|
173
174
|
getMarksInType(type: string | string[]): IMark[];
|
|
174
175
|
getMarkInName(name: string): IMark | undefined;
|
|
175
176
|
getMarkInId(markId: number): IMark | undefined;
|
package/types/util/math.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IBoundsLike } from '@visactor/vutils';
|
|
2
2
|
import type { IPoint } from '../typings';
|
|
3
3
|
import { isNumberClose, isGreater, isLess, normalizeAngle } from '@visactor/vutils';
|
|
4
|
-
import { angleLabelOrientAttribute } from '@visactor/vrender-components';
|
|
4
|
+
import { angleLabelOrientAttribute } from '@visactor/vrender-components/axis/util';
|
|
5
5
|
export declare const isClose: typeof isNumberClose;
|
|
6
6
|
export { isGreater, isLess, normalizeAngle, angleLabelOrientAttribute };
|
|
7
7
|
export declare function normalizeStartEndAngle(start: number | null, end: number | null): {
|