@visactor/vchart 1.5.1 → 1.5.2-alpha.0
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/build/es5/index.js +1 -1
- package/build/index.js +59 -9
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/gauge/gauge.js +5 -2
- package/cjs/chart/gauge/gauge.js.map +1 -1
- package/cjs/chart/polar/progress-like.d.ts +1 -1
- package/cjs/chart/polar/progress-like.js +11 -4
- package/cjs/chart/polar/progress-like.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/series/pie/interface.d.ts +2 -0
- package/cjs/series/pie/interface.js.map +1 -1
- package/cjs/theme/builtin/common/component/axis/polar-axis.js +1 -1
- package/cjs/theme/builtin/common/component/axis/polar-axis.js.map +1 -1
- package/esm/chart/gauge/gauge.js +5 -1
- package/esm/chart/gauge/gauge.js.map +1 -1
- package/esm/chart/polar/progress-like.d.ts +1 -1
- package/esm/chart/polar/progress-like.js +12 -2
- package/esm/chart/polar/progress-like.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/series/pie/interface.d.ts +2 -0
- package/esm/series/pie/interface.js.map +1 -1
- package/esm/theme/builtin/common/component/axis/polar-axis.js +1 -1
- package/esm/theme/builtin/common/component/axis/polar-axis.js.map +1 -1
- package/package.json +7 -7
package/cjs/chart/gauge/gauge.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.registerGaugeChart = exports.GaugeChart = void 0;
|
|
6
6
|
|
|
7
|
-
const vutils_1 = require("@visactor/vutils"), gauge_1 = require("../../series/gauge"), type_1 = require("../../series/interface/type"), interface_1 = require("../interface"), progress_like_1 = require("../polar/progress-like"), factory_1 = require("../../core/factory");
|
|
7
|
+
const vutils_1 = require("@visactor/vutils"), gauge_1 = require("../../series/gauge"), type_1 = require("../../series/interface/type"), interface_1 = require("../interface"), progress_like_1 = require("../polar/progress-like"), factory_1 = require("../../core/factory"), constant_1 = require("../../constant");
|
|
8
8
|
|
|
9
9
|
class GaugeChart extends progress_like_1.ProgressLikeChart {
|
|
10
10
|
constructor() {
|
|
@@ -47,6 +47,8 @@ class GaugeChart extends progress_like_1.ProgressLikeChart {
|
|
|
47
47
|
}, {
|
|
48
48
|
orient: "radius",
|
|
49
49
|
visible: !1
|
|
50
|
+
}, {
|
|
51
|
+
zIndex: constant_1.LayoutZIndex.Region + 50
|
|
50
52
|
}) : this._transformGaugeAxisSpec(spec);
|
|
51
53
|
}
|
|
52
54
|
_transformGaugeAxisSpec(spec) {
|
|
@@ -66,7 +68,8 @@ class GaugeChart extends progress_like_1.ProgressLikeChart {
|
|
|
66
68
|
orient: "radius",
|
|
67
69
|
visible: !1
|
|
68
70
|
}, spec.axes.push(axesPtr.radius)), (0, vutils_1.isNil)(axesPtr.angle.type) && (axesPtr.angle.type = "linear"),
|
|
69
|
-
(0, vutils_1.isNil)(axesPtr.radius.type) && (axesPtr.radius.type = "linear")
|
|
71
|
+
(0, vutils_1.isNil)(axesPtr.radius.type) && (axesPtr.radius.type = "linear"), (0,
|
|
72
|
+
vutils_1.isNil)(axesPtr.angle.zIndex) && (axesPtr.angle.zIndex = constant_1.LayoutZIndex.Region + 50);
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/gauge/gauge.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC,8CAA4G;AAE5G,sDAA6D;AAE7D,4CAA6C;AAC7C,0DAA2D;AAC3D,gDAA6C;
|
|
1
|
+
{"version":3,"sources":["../src/chart/gauge/gauge.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC,8CAA4G;AAE5G,s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,CAAC,MAAM,CAAC,EAAE;YAC/B,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,uBAAY,CAAC,MAAM,GAAG,EAAE,CAAC;SACjD;IACH,CAAC;;AA/HH,gCAgIC;AA/HiB,eAAI,GAAW,yBAAa,CAAC,KAAK,CAAC;AACnC,eAAI,GAAW,eAAe,CAAC;AAgI1C,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,IAAA,kCAA0B,GAAE,CAAC;IAC7B,IAAA,2BAAmB,GAAE,CAAC;IACtB,iBAAO,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC,CAAC;AAJW,QAAA,kBAAkB,sBAI7B","file":"gauge.js","sourcesContent":["import { isNil } from '@visactor/vutils';\nimport type { IPolarAxisSpec, IPolarLinearAxisSpec } from '../../component/axis/polar/interface';\nimport { type IGaugeSeriesSpec, registerGaugePointerSeries, registerGaugeSeries } from '../../series/gauge';\nimport type { ISeries } from '../../series/interface';\nimport { SeriesTypeEnum } from '../../series/interface/type';\nimport type { ICircularProgressSeriesSpec } from '../../series/progress/circular/interface';\nimport { ChartTypeEnum } from '../interface';\nimport { ProgressLikeChart } from '../polar/progress-like';\nimport { Factory } from '../../core/factory';\nimport { LayoutZIndex } from '../../constant';\n\nexport class GaugeChart extends ProgressLikeChart {\n static readonly type: string = ChartTypeEnum.gauge;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.gauge;\n readonly seriesType: string = SeriesTypeEnum.gaugePointer;\n\n protected _getDefaultSeriesSpec(spec: any): any {\n const series = super._getDefaultSeriesSpec(spec);\n return {\n ...series,\n radiusField: spec.radiusField,\n\n pin: spec.pin,\n pinBackground: spec.pinBackground,\n pointer: spec.pointer\n };\n }\n\n protected _getDefaultCircularProgressSeriesSpec(spec: any): any {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n type: SeriesTypeEnum.circularProgress\n };\n return series;\n }\n\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n\n /** 充当仪表图非指针部分的系列 */\n let backgroundSeries: ICircularProgressSeriesSpec | IGaugeSeriesSpec = spec.series?.find(\n (series: ISeries) => series.type === SeriesTypeEnum.gauge || series.type === SeriesTypeEnum.circularProgress\n );\n if (isNil(backgroundSeries)) {\n backgroundSeries = spec.gauge ?? this._getDefaultCircularProgressSeriesSpec(spec);\n\n // 补充可能缺失的属性\n if (backgroundSeries.type === 'circularProgress') {\n if (isNil(backgroundSeries.radiusField) && isNil(backgroundSeries.categoryField)) {\n backgroundSeries.radiusField = spec.radiusField ?? spec.categoryField ?? spec.seriesField;\n }\n }\n\n if (spec.series.length === 1) {\n spec.series.push(backgroundSeries);\n } else {\n spec.series.forEach((s: ISeries) => {\n if (s.type !== backgroundSeries.type) {\n return;\n }\n Object.keys(backgroundSeries).forEach(k => {\n if (!(k in s)) {\n s[k] = backgroundSeries[k];\n }\n });\n });\n }\n }\n\n if (backgroundSeries.type === SeriesTypeEnum.circularProgress) {\n this._transformProgressAxisSpec(\n spec,\n {\n orient: 'angle',\n visible: true,\n domainLine: {\n visible: false\n },\n grid: {\n visible: false\n }\n },\n {\n orient: 'radius',\n visible: false\n },\n {\n zIndex: LayoutZIndex.Region + 50 // 仪表图特例:轴在 region 上层\n }\n );\n } else {\n this._transformGaugeAxisSpec(spec);\n }\n }\n\n protected _transformGaugeAxisSpec(spec: any): void {\n if (!spec.axes) {\n spec.axes = [];\n }\n const axesPtr: {\n radius: IPolarLinearAxisSpec | null;\n angle: IPolarLinearAxisSpec | null;\n } = { radius: null, angle: null };\n (spec.axes ?? []).forEach((axis: IPolarAxisSpec) => {\n const { orient } = axis;\n if (orient === 'radius') {\n axesPtr.radius = axis;\n }\n if (orient === 'angle') {\n axesPtr.angle = axis;\n }\n });\n if (!axesPtr.angle) {\n axesPtr.angle = {\n orient: 'angle',\n visible: true\n };\n spec.axes.push(axesPtr.angle);\n }\n if (!axesPtr.radius) {\n axesPtr.radius = {\n orient: 'radius',\n visible: false\n };\n spec.axes.push(axesPtr.radius);\n }\n\n // 自动补充缺失的配置\n if (isNil(axesPtr.angle.type)) {\n axesPtr.angle.type = 'linear';\n }\n if (isNil(axesPtr.radius.type)) {\n axesPtr.radius.type = 'linear';\n }\n if (isNil(axesPtr.angle.zIndex)) {\n axesPtr.angle.zIndex = LayoutZIndex.Region + 50; // 仪表图特例:轴在 region 上层\n }\n }\n}\n\nexport const registerGaugeChart = () => {\n registerGaugePointerSeries();\n registerGaugeSeries();\n Factory.registerChart(GaugeChart.type, GaugeChart);\n};\n"]}
|
|
@@ -3,5 +3,5 @@ import { PolarChart } from './polar';
|
|
|
3
3
|
export declare class ProgressLikeChart extends PolarChart {
|
|
4
4
|
protected needAxes(): boolean;
|
|
5
5
|
protected _getDefaultSeriesSpec(spec: any): any;
|
|
6
|
-
protected _transformProgressAxisSpec(spec: any, angleAxisDefaultSpec: IPolarAxisSpec, radiusAxisDefaultSpec: IPolarAxisSpec): void;
|
|
6
|
+
protected _transformProgressAxisSpec(spec: any, angleAxisDefaultSpec: IPolarAxisSpec, radiusAxisDefaultSpec: IPolarAxisSpec, angleAxisAppendSpec?: Partial<IPolarAxisSpec>, radiusAxisAppendSpec?: Partial<IPolarAxisSpec>): void;
|
|
7
7
|
}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.ProgressLikeChart = void 0;
|
|
6
6
|
|
|
7
|
-
const vutils_1 = require("@visactor/vutils"), util_1 = require("../../component/axis/util"), polar_1 = require("./polar");
|
|
7
|
+
const vutils_1 = require("@visactor/vutils"), util_1 = require("../../component/axis/util"), polar_1 = require("./polar"), util_2 = require("../../util");
|
|
8
8
|
|
|
9
9
|
class ProgressLikeChart extends polar_1.PolarChart {
|
|
10
10
|
needAxes() {
|
|
@@ -23,7 +23,7 @@ class ProgressLikeChart extends polar_1.PolarChart {
|
|
|
23
23
|
centerY: spec.centerY
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
_transformProgressAxisSpec(spec, angleAxisDefaultSpec, radiusAxisDefaultSpec) {
|
|
26
|
+
_transformProgressAxisSpec(spec, angleAxisDefaultSpec, radiusAxisDefaultSpec, angleAxisAppendSpec, radiusAxisAppendSpec) {
|
|
27
27
|
var _a;
|
|
28
28
|
spec.axes || (spec.axes = []);
|
|
29
29
|
const axesPtr = {
|
|
@@ -41,8 +41,15 @@ class ProgressLikeChart extends polar_1.PolarChart {
|
|
|
41
41
|
min: 0,
|
|
42
42
|
max: 1
|
|
43
43
|
});
|
|
44
|
-
(0, vutils_1.isNil)(axesPtr.angle.min) && (axesPtr.angle.min = domain.min),
|
|
45
|
-
vutils_1.isNil)(axesPtr.angle.max) && (axesPtr.angle.max = domain.max)
|
|
44
|
+
if ((0, vutils_1.isNil)(axesPtr.angle.min) && (axesPtr.angle.min = domain.min),
|
|
45
|
+
(0, vutils_1.isNil)(axesPtr.angle.max) && (axesPtr.angle.max = domain.max), angleAxisAppendSpec) {
|
|
46
|
+
const newSpec = (0, util_2.mergeSpec)({}, angleAxisAppendSpec, axesPtr.angle);
|
|
47
|
+
Object.assign(axesPtr.angle, newSpec);
|
|
48
|
+
}
|
|
49
|
+
if (radiusAxisAppendSpec) {
|
|
50
|
+
const newSpec = (0, util_2.mergeSpec)({}, radiusAxisAppendSpec, axesPtr.radius);
|
|
51
|
+
Object.assign(axesPtr.radius, newSpec);
|
|
52
|
+
}
|
|
46
53
|
}
|
|
47
54
|
}
|
|
48
55
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/polar/progress-like.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC,oDAAoE;AACpE,mCAAqC;
|
|
1
|
+
{"version":3,"sources":["../src/chart/polar/progress-like.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC,oDAAoE;AACpE,mCAAqC;AACrC,qCAAuC;AAEvC,MAAa,iBAAkB,SAAQ,kBAAU;IACrC,QAAQ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B,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;YACpE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;SACxC;IACH,CAAC;CACF;AAhFD,8CAgFC","file":"progress-like.js","sourcesContent":["import { isNil } from '@visactor/vutils';\nimport type { IPolarAxisSpec, IPolarBandAxisSpec, IPolarLinearAxisSpec } from '../../component/axis/polar/interface';\nimport { getLinearAxisSpecDomain } from '../../component/axis/util';\nimport { PolarChart } from './polar';\nimport { mergeSpec } from '../../util';\n\nexport class ProgressLikeChart extends PolarChart {\n protected needAxes(): boolean {\n return false;\n }\n\n protected _getDefaultSeriesSpec(spec: any): any {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n\n seriesField: spec.seriesField,\n categoryField: spec.categoryField || spec.radiusField,\n valueField: spec.valueField || spec.angleField,\n\n startAngle: spec.startAngle,\n endAngle: spec.endAngle,\n\n radius: spec.radius,\n innerRadius: spec.innerRadius,\n\n centerX: spec.centerX,\n centerY: spec.centerY\n };\n return series;\n }\n\n protected _transformProgressAxisSpec(\n spec: any,\n angleAxisDefaultSpec: IPolarAxisSpec,\n radiusAxisDefaultSpec: IPolarAxisSpec,\n angleAxisAppendSpec?: Partial<IPolarAxisSpec>,\n radiusAxisAppendSpec?: Partial<IPolarAxisSpec>\n ): void {\n if (!spec.axes) {\n spec.axes = [];\n }\n const axesPtr: {\n radius: IPolarBandAxisSpec | null;\n angle: IPolarLinearAxisSpec | null;\n } = { radius: null, angle: null };\n (spec.axes ?? []).forEach((axis: IPolarAxisSpec) => {\n const { orient } = axis;\n if (orient === 'radius') {\n axesPtr.radius = axis;\n }\n if (orient === 'angle') {\n axesPtr.angle = axis;\n }\n });\n if (!axesPtr.angle) {\n axesPtr.angle = angleAxisDefaultSpec;\n spec.axes.push(axesPtr.angle);\n }\n if (!axesPtr.radius) {\n axesPtr.radius = radiusAxisDefaultSpec;\n spec.axes.push(axesPtr.radius);\n }\n\n // 自动补充缺失的配置\n if (isNil(axesPtr.angle.type)) {\n axesPtr.angle.type = 'linear';\n }\n if (isNil(axesPtr.radius.type)) {\n axesPtr.radius.type = 'band';\n }\n const domain = getLinearAxisSpecDomain(axesPtr.angle, { min: 0, max: 1 });\n if (isNil(axesPtr.angle.min)) {\n axesPtr.angle.min = domain.min;\n }\n if (isNil(axesPtr.angle.max)) {\n axesPtr.angle.max = domain.max;\n }\n if (angleAxisAppendSpec) {\n const newSpec = mergeSpec({}, angleAxisAppendSpec, axesPtr.angle);\n Object.assign(axesPtr.angle, newSpec);\n }\n if (radiusAxisAppendSpec) {\n const newSpec = mergeSpec({}, radiusAxisAppendSpec, axesPtr.radius);\n Object.assign(axesPtr.radius, newSpec);\n }\n }\n}\n"]}
|
package/cjs/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VChart } from './vchart';
|
|
2
2
|
import { Factory } from './factory';
|
|
3
3
|
export { VChart, Factory };
|
|
4
|
-
export declare const version = "1.5.
|
|
4
|
+
export declare const version = "1.5.2-alpha.0";
|
|
5
5
|
export type { IVChart } from './interface';
|
|
6
6
|
export * from '../event/interface';
|
|
7
7
|
export * from '../typings/spec/common';
|
package/cjs/core/index.js
CHANGED
|
@@ -35,6 +35,6 @@ Object.defineProperty(exports, "Factory", {
|
|
|
35
35
|
get: function() {
|
|
36
36
|
return factory_1.Factory;
|
|
37
37
|
}
|
|
38
|
-
}), exports.version = "1.5.
|
|
38
|
+
}), exports.version = "1.5.2-alpha.0", __exportStar(require("../event/interface"), exports),
|
|
39
39
|
__exportStar(require("../typings/spec/common"), exports), __exportStar(require("../theme/interface"), exports);
|
|
40
40
|
//# sourceMappingURL=index.js.map
|
package/cjs/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,qCAAkC;AAGzB,uFAHA,eAAM,OAGA;AAFf,uCAAoC;AAEnB,wFAFR,iBAAO,OAEQ;AAGX,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,qCAAkC;AAGzB,uFAHA,eAAM,OAGA;AAFf,uCAAoC;AAEnB,wFAFR,iBAAO,OAEQ;AAGX,QAAA,OAAO,GAAG,eAAe,CAAC;AAMvC,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"1.5.2-alpha.0\";\n\n// export necessary types\nexport type { IVChart } from './interface';\n\n// the event types\nexport * from '../event/interface';\nexport * from '../typings/spec/common';\nexport * from '../theme/interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\n"]}
|
|
@@ -37,6 +37,8 @@ export type IPie3dSeriesSpec = {
|
|
|
37
37
|
export interface IPie3dSeriesTheme extends IPolarSeriesTheme {
|
|
38
38
|
[SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;
|
|
39
39
|
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
40
|
+
innerLabel?: IArcLabelSpec;
|
|
41
|
+
outerLabel?: IArcLabelSpec;
|
|
40
42
|
}
|
|
41
43
|
export interface IArcLabelLineSpec extends IMarkSpec<ILineMarkSpec> {
|
|
42
44
|
visible?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/pie/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IAnimationSpec } from '../../animation/spec';\nimport type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';\nimport type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from '../../typings/visual';\nimport type { SeriesMarkNameEnum } from '../interface/type';\nimport type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';\nimport type { PieAppearPreset } from './animation/animation';\nimport type { ILabelSpec } from '../../component/label';\n\nexport type PieMarks = 'pie' | 'label' | 'labelLine';\n\nexport interface IPieSeriesSpec extends IPolarSeriesSpec, IAnimationSpec<PieMarks, PieAppearPreset> {\n type: 'pie';\n /**\n * 分类字段\n * @description 饼图每个扇区为独立的系列\n */\n categoryField: string;\n /** 数值字段 */\n valueField: string;\n /** 饼图中心点 x 坐标 */\n centerX?: number;\n /** 饼图中心点 y 坐标 */\n centerY?: number;\n /** 饼图扇区中心偏移 */\n centerOffset?: number;\n\n /**\n * 饼图扇区半径\n * @default 0.6\n * @deprecated use outerRadius instead\n */\n radius?: number;\n\n /**\n * 饼图扇区外半径\n * @default 0.6\n */\n outerRadius?: number;\n\n /**\n * 饼图扇区内半径\n * @default 0\n */\n innerRadius?: number;\n\n /**\n * 饼图扇区圆角半径\n * @default 0\n */\n cornerRadius?: number;\n /**\n * 饼图的起始角度(0 ~ 360)\n * @default -90\n */\n startAngle?: number;\n /**\n * 饼图的结束角度(0 ~ 360)\n * @default 270\n */\n endAngle?: number;\n /**\n * 扇区之间的间隔角度\n */\n padAngle?: number;\n\n /**\n * 最小的扇区角度(0 ~ 360),用于防止某个值过小导致扇区太小影响交互。\n * @default 0\n * @since 1.4.0\n */\n minAngle?: number;\n\n /** 扇区样式 */\n [SeriesMarkNameEnum.pie]?: IMarkSpec<IArcMarkSpec>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n}\n\nexport interface IPieSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie]?: Partial<IMarkTheme<IArcMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n /**\n * 内标签配置\n * @since 1.5.1\n */\n innerLabel?: IArcLabelSpec;\n /**\n * 外标签配置\n * @since 1.5.1\n */\n outerLabel?: IArcLabelSpec;\n}\n\nexport type IPie3dSeriesSpec = {\n type: 'pie3d';\n // 饼图整体绕x轴的旋转角度\n angle3d?: number;\n} & Omit<IPieSeriesSpec, 'type'>;\n\nexport interface IPie3dSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n}\n\nexport interface IArcLabelLineSpec extends IMarkSpec<ILineMarkSpec> {\n /**\n * 是否显示引导线\n * @default true\n */\n visible?: boolean;\n /**\n * 引导线 line1 部分最小长度\n * @default 20\n */\n line1MinLength?: number;\n /**\n * 引导线 line2 部分最小长度\n * @default 10\n */\n line2MinLength?: number;\n /**\n * 引导线是否光滑\n * @default false\n * @SInCE 1.4.0\n */\n smooth?: boolean;\n}\n\nexport type ArcLabelAlignType = 'arc' | 'labelLine' | 'edge';\n\nexport type ArcLabelStrategyType = 'priority' | 'vertical' | 'none';\n\nexport interface IArcLabelLayoutSpec {\n /**\n * 标签对齐方式\n * @default 'arc'\n */\n textAlign?: ArcLabelAlignType;\n /** @deprecate 建议统一使用textAlign,后续将废除 */\n align?: ArcLabelAlignType;\n /**\n * 标签布局策略\n * @default 'priority'\n */\n strategy?: ArcLabelStrategyType;\n /**\n * 是否启用切线约束\n * @default true\n */\n tangentConstraint?: boolean;\n}\n\n// export interface ILabelTextMarkSpec extends Omit<ITextMarkSpec, 'align' | 'textAlign'> {\n// /** text 配置 align 为 auto 时将根据布局逻辑自动处理 align */\n// textAlign?: TextAlign | 'auto';\n// /** @deprecate 建议统一使用textAlign,后续将废除 */\n// align?: TextAlign | 'auto';\n// }\n\nexport interface IArcLabelSpec extends ILabelSpec {\n /**\n * 标签布局方式\n * @default 'outside'\n */\n position?: 'outside' | 'inside';\n /**\n * 标签内容显示规则\n * @default 'all'\n */\n showRule?: 'all' | 'max' | 'min' | 'minAndMax' | 'headAndTail';\n /**\n * 是否允许标签重叠\n * @default false\n */\n coverEnable?: boolean;\n /**\n * 是否允许标签旋转\n * @default true\n */\n rotate?: boolean;\n\n /**\n * 文字与引导线间隔宽度\n * @default 5\n */\n spaceWidth?: number;\n /**\n * 扇区间标签的间隔\n * @default 6\n */\n layoutArcGap?: number;\n\n /** 标签文字样式 */\n style?: ITextMarkSpec;\n /** 标签引导线样式 */\n line?: IArcLabelLineSpec;\n /** 标签布局配置 */\n layout?: IArcLabelLayoutSpec;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/series/pie/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IAnimationSpec } from '../../animation/spec';\nimport type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';\nimport type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from '../../typings/visual';\nimport type { SeriesMarkNameEnum } from '../interface/type';\nimport type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';\nimport type { PieAppearPreset } from './animation/animation';\nimport type { ILabelSpec } from '../../component/label';\n\nexport type PieMarks = 'pie' | 'label' | 'labelLine';\n\nexport interface IPieSeriesSpec extends IPolarSeriesSpec, IAnimationSpec<PieMarks, PieAppearPreset> {\n type: 'pie';\n /**\n * 分类字段\n * @description 饼图每个扇区为独立的系列\n */\n categoryField: string;\n /** 数值字段 */\n valueField: string;\n /** 饼图中心点 x 坐标 */\n centerX?: number;\n /** 饼图中心点 y 坐标 */\n centerY?: number;\n /** 饼图扇区中心偏移 */\n centerOffset?: number;\n\n /**\n * 饼图扇区半径\n * @default 0.6\n * @deprecated use outerRadius instead\n */\n radius?: number;\n\n /**\n * 饼图扇区外半径\n * @default 0.6\n */\n outerRadius?: number;\n\n /**\n * 饼图扇区内半径\n * @default 0\n */\n innerRadius?: number;\n\n /**\n * 饼图扇区圆角半径\n * @default 0\n */\n cornerRadius?: number;\n /**\n * 饼图的起始角度(0 ~ 360)\n * @default -90\n */\n startAngle?: number;\n /**\n * 饼图的结束角度(0 ~ 360)\n * @default 270\n */\n endAngle?: number;\n /**\n * 扇区之间的间隔角度\n */\n padAngle?: number;\n\n /**\n * 最小的扇区角度(0 ~ 360),用于防止某个值过小导致扇区太小影响交互。\n * @default 0\n * @since 1.4.0\n */\n minAngle?: number;\n\n /** 扇区样式 */\n [SeriesMarkNameEnum.pie]?: IMarkSpec<IArcMarkSpec>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n}\n\nexport interface IPieSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie]?: Partial<IMarkTheme<IArcMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n /**\n * 内标签配置\n * @since 1.5.1\n */\n innerLabel?: IArcLabelSpec;\n /**\n * 外标签配置\n * @since 1.5.1\n */\n outerLabel?: IArcLabelSpec;\n}\n\nexport type IPie3dSeriesSpec = {\n type: 'pie3d';\n // 饼图整体绕x轴的旋转角度\n angle3d?: number;\n} & Omit<IPieSeriesSpec, 'type'>;\n\nexport interface IPie3dSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n /**\n * 内标签配置\n * @since 1.5.1\n */\n innerLabel?: IArcLabelSpec;\n /**\n * 外标签配置\n * @since 1.5.1\n */\n outerLabel?: IArcLabelSpec;\n}\n\nexport interface IArcLabelLineSpec extends IMarkSpec<ILineMarkSpec> {\n /**\n * 是否显示引导线\n * @default true\n */\n visible?: boolean;\n /**\n * 引导线 line1 部分最小长度\n * @default 20\n */\n line1MinLength?: number;\n /**\n * 引导线 line2 部分最小长度\n * @default 10\n */\n line2MinLength?: number;\n /**\n * 引导线是否光滑\n * @default false\n * @SInCE 1.4.0\n */\n smooth?: boolean;\n}\n\nexport type ArcLabelAlignType = 'arc' | 'labelLine' | 'edge';\n\nexport type ArcLabelStrategyType = 'priority' | 'vertical' | 'none';\n\nexport interface IArcLabelLayoutSpec {\n /**\n * 标签对齐方式\n * @default 'arc'\n */\n textAlign?: ArcLabelAlignType;\n /** @deprecate 建议统一使用textAlign,后续将废除 */\n align?: ArcLabelAlignType;\n /**\n * 标签布局策略\n * @default 'priority'\n */\n strategy?: ArcLabelStrategyType;\n /**\n * 是否启用切线约束\n * @default true\n */\n tangentConstraint?: boolean;\n}\n\n// export interface ILabelTextMarkSpec extends Omit<ITextMarkSpec, 'align' | 'textAlign'> {\n// /** text 配置 align 为 auto 时将根据布局逻辑自动处理 align */\n// textAlign?: TextAlign | 'auto';\n// /** @deprecate 建议统一使用textAlign,后续将废除 */\n// align?: TextAlign | 'auto';\n// }\n\nexport interface IArcLabelSpec extends ILabelSpec {\n /**\n * 标签布局方式\n * @default 'outside'\n */\n position?: 'outside' | 'inside';\n /**\n * 标签内容显示规则\n * @default 'all'\n */\n showRule?: 'all' | 'max' | 'min' | 'minAndMax' | 'headAndTail';\n /**\n * 是否允许标签重叠\n * @default false\n */\n coverEnable?: boolean;\n /**\n * 是否允许标签旋转\n * @default true\n */\n rotate?: boolean;\n\n /**\n * 文字与引导线间隔宽度\n * @default 5\n */\n spaceWidth?: number;\n /**\n * 扇区间标签的间隔\n * @default 6\n */\n layoutArcGap?: number;\n\n /** 标签文字样式 */\n style?: ITextMarkSpec;\n /** 标签引导线样式 */\n line?: IArcLabelLineSpec;\n /** 标签布局配置 */\n layout?: IArcLabelLayoutSpec;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/component/axis/polar-axis.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAA0B;IAC/C,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,KAAK;KACf;CACF,CAAC;AAEW,QAAA,SAAS,GAA0B;IAC9C,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC;KACT;CACF,CAAC","file":"polar-axis.js","sourcesContent":["import type { IPolarAxisCommonTheme } from '../../../../../component/axis/polar/interface/theme';\n\nexport const axisRadius: IPolarAxisCommonTheme = {\n grid: {\n smooth: true,\n visible: true\n },\n subGrid: {\n smooth: true,\n visible: false\n }\n};\n\nexport const axisAngle: IPolarAxisCommonTheme = {\n grid: {\n visible: true,\n style: {\n lineDash: [6, 6]\n }\n },\n label: {\n space:
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/component/axis/polar-axis.ts"],"names":[],"mappings":";;;AAEa,QAAA,UAAU,GAA0B;IAC/C,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,KAAK;KACf;CACF,CAAC;AAEW,QAAA,SAAS,GAA0B;IAC9C,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC;KACT;CACF,CAAC","file":"polar-axis.js","sourcesContent":["import type { IPolarAxisCommonTheme } from '../../../../../component/axis/polar/interface/theme';\n\nexport const axisRadius: IPolarAxisCommonTheme = {\n grid: {\n smooth: true,\n visible: true\n },\n subGrid: {\n smooth: true,\n visible: false\n }\n};\n\nexport const axisAngle: IPolarAxisCommonTheme = {\n grid: {\n visible: true,\n style: {\n lineDash: [6, 6]\n }\n },\n label: {\n space: 5\n }\n};\n"]}
|
package/esm/chart/gauge/gauge.js
CHANGED
|
@@ -10,6 +10,8 @@ import { ProgressLikeChart } from "../polar/progress-like";
|
|
|
10
10
|
|
|
11
11
|
import { Factory } from "../../core/factory";
|
|
12
12
|
|
|
13
|
+
import { LayoutZIndex } from "../../constant";
|
|
14
|
+
|
|
13
15
|
export class GaugeChart extends ProgressLikeChart {
|
|
14
16
|
constructor() {
|
|
15
17
|
super(...arguments), this.type = ChartTypeEnum.gauge, this.seriesType = SeriesTypeEnum.gaugePointer;
|
|
@@ -50,6 +52,8 @@ export class GaugeChart extends ProgressLikeChart {
|
|
|
50
52
|
}, {
|
|
51
53
|
orient: "radius",
|
|
52
54
|
visible: !1
|
|
55
|
+
}, {
|
|
56
|
+
zIndex: LayoutZIndex.Region + 50
|
|
53
57
|
}) : this._transformGaugeAxisSpec(spec);
|
|
54
58
|
}
|
|
55
59
|
_transformGaugeAxisSpec(spec) {
|
|
@@ -69,7 +73,7 @@ export class GaugeChart extends ProgressLikeChart {
|
|
|
69
73
|
orient: "radius",
|
|
70
74
|
visible: !1
|
|
71
75
|
}, spec.axes.push(axesPtr.radius)), isNil(axesPtr.angle.type) && (axesPtr.angle.type = "linear"),
|
|
72
|
-
isNil(axesPtr.radius.type) && (axesPtr.radius.type = "linear");
|
|
76
|
+
isNil(axesPtr.radius.type) && (axesPtr.radius.type = "linear"), isNil(axesPtr.angle.zIndex) && (axesPtr.angle.zIndex = LayoutZIndex.Region + 50);
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
79
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/gauge/gauge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAyB,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE5G,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3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AC,CAAC;SAChC;QAGD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;YAC7B,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAC;SAC/B;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YAC9B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC;SAChC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YAC/B,OAAO,CAAC,KAAK,CAAC,MAAM,GAAG,YAAY,CAAC,MAAM,GAAG,EAAE,CAAC;SACjD;IACH,CAAC;;AA9He,eAAI,GAAW,aAAa,CAAC,KAAK,CAAC;AACnC,eAAI,GAAW,eAAe,CAAC;AAgIjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,0BAA0B,EAAE,CAAC;IAC7B,mBAAmB,EAAE,CAAC;IACtB,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC,CAAC","file":"gauge.js","sourcesContent":["import { isNil } from '@visactor/vutils';\nimport type { IPolarAxisSpec, IPolarLinearAxisSpec } from '../../component/axis/polar/interface';\nimport { type IGaugeSeriesSpec, registerGaugePointerSeries, registerGaugeSeries } from '../../series/gauge';\nimport type { ISeries } from '../../series/interface';\nimport { SeriesTypeEnum } from '../../series/interface/type';\nimport type { ICircularProgressSeriesSpec } from '../../series/progress/circular/interface';\nimport { ChartTypeEnum } from '../interface';\nimport { ProgressLikeChart } from '../polar/progress-like';\nimport { Factory } from '../../core/factory';\nimport { LayoutZIndex } from '../../constant';\n\nexport class GaugeChart extends ProgressLikeChart {\n static readonly type: string = ChartTypeEnum.gauge;\n static readonly view: string = 'singleDefault';\n readonly type: string = ChartTypeEnum.gauge;\n readonly seriesType: string = SeriesTypeEnum.gaugePointer;\n\n protected _getDefaultSeriesSpec(spec: any): any {\n const series = super._getDefaultSeriesSpec(spec);\n return {\n ...series,\n radiusField: spec.radiusField,\n\n pin: spec.pin,\n pinBackground: spec.pinBackground,\n pointer: spec.pointer\n };\n }\n\n protected _getDefaultCircularProgressSeriesSpec(spec: any): any {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n type: SeriesTypeEnum.circularProgress\n };\n return series;\n }\n\n transformSpec(spec: any): void {\n super.transformSpec(spec);\n\n /** 充当仪表图非指针部分的系列 */\n let backgroundSeries: ICircularProgressSeriesSpec | IGaugeSeriesSpec = spec.series?.find(\n (series: ISeries) => series.type === SeriesTypeEnum.gauge || series.type === SeriesTypeEnum.circularProgress\n );\n if (isNil(backgroundSeries)) {\n backgroundSeries = spec.gauge ?? this._getDefaultCircularProgressSeriesSpec(spec);\n\n // 补充可能缺失的属性\n if (backgroundSeries.type === 'circularProgress') {\n if (isNil(backgroundSeries.radiusField) && isNil(backgroundSeries.categoryField)) {\n backgroundSeries.radiusField = spec.radiusField ?? spec.categoryField ?? spec.seriesField;\n }\n }\n\n if (spec.series.length === 1) {\n spec.series.push(backgroundSeries);\n } else {\n spec.series.forEach((s: ISeries) => {\n if (s.type !== backgroundSeries.type) {\n return;\n }\n Object.keys(backgroundSeries).forEach(k => {\n if (!(k in s)) {\n s[k] = backgroundSeries[k];\n }\n });\n });\n }\n }\n\n if (backgroundSeries.type === SeriesTypeEnum.circularProgress) {\n this._transformProgressAxisSpec(\n spec,\n {\n orient: 'angle',\n visible: true,\n domainLine: {\n visible: false\n },\n grid: {\n visible: false\n }\n },\n {\n orient: 'radius',\n visible: false\n },\n {\n zIndex: LayoutZIndex.Region + 50 // 仪表图特例:轴在 region 上层\n }\n );\n } else {\n this._transformGaugeAxisSpec(spec);\n }\n }\n\n protected _transformGaugeAxisSpec(spec: any): void {\n if (!spec.axes) {\n spec.axes = [];\n }\n const axesPtr: {\n radius: IPolarLinearAxisSpec | null;\n angle: IPolarLinearAxisSpec | null;\n } = { radius: null, angle: null };\n (spec.axes ?? []).forEach((axis: IPolarAxisSpec) => {\n const { orient } = axis;\n if (orient === 'radius') {\n axesPtr.radius = axis;\n }\n if (orient === 'angle') {\n axesPtr.angle = axis;\n }\n });\n if (!axesPtr.angle) {\n axesPtr.angle = {\n orient: 'angle',\n visible: true\n };\n spec.axes.push(axesPtr.angle);\n }\n if (!axesPtr.radius) {\n axesPtr.radius = {\n orient: 'radius',\n visible: false\n };\n spec.axes.push(axesPtr.radius);\n }\n\n // 自动补充缺失的配置\n if (isNil(axesPtr.angle.type)) {\n axesPtr.angle.type = 'linear';\n }\n if (isNil(axesPtr.radius.type)) {\n axesPtr.radius.type = 'linear';\n }\n if (isNil(axesPtr.angle.zIndex)) {\n axesPtr.angle.zIndex = LayoutZIndex.Region + 50; // 仪表图特例:轴在 region 上层\n }\n }\n}\n\nexport const registerGaugeChart = () => {\n registerGaugePointerSeries();\n registerGaugeSeries();\n Factory.registerChart(GaugeChart.type, GaugeChart);\n};\n"]}
|
|
@@ -3,5 +3,5 @@ import { PolarChart } from './polar';
|
|
|
3
3
|
export declare class ProgressLikeChart extends PolarChart {
|
|
4
4
|
protected needAxes(): boolean;
|
|
5
5
|
protected _getDefaultSeriesSpec(spec: any): any;
|
|
6
|
-
protected _transformProgressAxisSpec(spec: any, angleAxisDefaultSpec: IPolarAxisSpec, radiusAxisDefaultSpec: IPolarAxisSpec): void;
|
|
6
|
+
protected _transformProgressAxisSpec(spec: any, angleAxisDefaultSpec: IPolarAxisSpec, radiusAxisDefaultSpec: IPolarAxisSpec, angleAxisAppendSpec?: Partial<IPolarAxisSpec>, radiusAxisAppendSpec?: Partial<IPolarAxisSpec>): void;
|
|
7
7
|
}
|
|
@@ -4,6 +4,8 @@ import { getLinearAxisSpecDomain } from "../../component/axis/util";
|
|
|
4
4
|
|
|
5
5
|
import { PolarChart } from "./polar";
|
|
6
6
|
|
|
7
|
+
import { mergeSpec } from "../../util";
|
|
8
|
+
|
|
7
9
|
export class ProgressLikeChart extends PolarChart {
|
|
8
10
|
needAxes() {
|
|
9
11
|
return !1;
|
|
@@ -21,7 +23,7 @@ export class ProgressLikeChart extends PolarChart {
|
|
|
21
23
|
centerY: spec.centerY
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
|
-
_transformProgressAxisSpec(spec, angleAxisDefaultSpec, radiusAxisDefaultSpec) {
|
|
26
|
+
_transformProgressAxisSpec(spec, angleAxisDefaultSpec, radiusAxisDefaultSpec, angleAxisAppendSpec, radiusAxisAppendSpec) {
|
|
25
27
|
var _a;
|
|
26
28
|
spec.axes || (spec.axes = []);
|
|
27
29
|
const axesPtr = {
|
|
@@ -38,7 +40,15 @@ export class ProgressLikeChart extends PolarChart {
|
|
|
38
40
|
min: 0,
|
|
39
41
|
max: 1
|
|
40
42
|
});
|
|
41
|
-
isNil(axesPtr.angle.min) && (axesPtr.angle.min = domain.min), isNil(axesPtr.angle.max) && (axesPtr.angle.max = domain.max)
|
|
43
|
+
if (isNil(axesPtr.angle.min) && (axesPtr.angle.min = domain.min), isNil(axesPtr.angle.max) && (axesPtr.angle.max = domain.max),
|
|
44
|
+
angleAxisAppendSpec) {
|
|
45
|
+
const newSpec = mergeSpec({}, angleAxisAppendSpec, axesPtr.angle);
|
|
46
|
+
Object.assign(axesPtr.angle, newSpec);
|
|
47
|
+
}
|
|
48
|
+
if (radiusAxisAppendSpec) {
|
|
49
|
+
const newSpec = mergeSpec({}, radiusAxisAppendSpec, axesPtr.radius);
|
|
50
|
+
Object.assign(axesPtr.radius, newSpec);
|
|
51
|
+
}
|
|
42
52
|
}
|
|
43
53
|
}
|
|
44
54
|
//# sourceMappingURL=progress-like.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/chart/polar/progress-like.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,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,CAAC;SAChC;QACD,IAAI,mBAAmB,EAAE;YACvB,MAAM,OAAO,GAAG,SAAS,CAAC,EAAE,EAAE,mBAAmB,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;YAClE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SACvC;QACD,IAAI,oBAAoB,EAAE;YACxB,MAAM,OAAO,GAAG,SAAS,CAAC,EAAE,EAAE,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;YACpE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;SACxC;IACH,CAAC;CACF","file":"progress-like.js","sourcesContent":["import { isNil } from '@visactor/vutils';\nimport type { IPolarAxisSpec, IPolarBandAxisSpec, IPolarLinearAxisSpec } from '../../component/axis/polar/interface';\nimport { getLinearAxisSpecDomain } from '../../component/axis/util';\nimport { PolarChart } from './polar';\nimport { mergeSpec } from '../../util';\n\nexport class ProgressLikeChart extends PolarChart {\n protected needAxes(): boolean {\n return false;\n }\n\n protected _getDefaultSeriesSpec(spec: any): any {\n const series: any = {\n ...super._getDefaultSeriesSpec(spec),\n\n seriesField: spec.seriesField,\n categoryField: spec.categoryField || spec.radiusField,\n valueField: spec.valueField || spec.angleField,\n\n startAngle: spec.startAngle,\n endAngle: spec.endAngle,\n\n radius: spec.radius,\n innerRadius: spec.innerRadius,\n\n centerX: spec.centerX,\n centerY: spec.centerY\n };\n return series;\n }\n\n protected _transformProgressAxisSpec(\n spec: any,\n angleAxisDefaultSpec: IPolarAxisSpec,\n radiusAxisDefaultSpec: IPolarAxisSpec,\n angleAxisAppendSpec?: Partial<IPolarAxisSpec>,\n radiusAxisAppendSpec?: Partial<IPolarAxisSpec>\n ): void {\n if (!spec.axes) {\n spec.axes = [];\n }\n const axesPtr: {\n radius: IPolarBandAxisSpec | null;\n angle: IPolarLinearAxisSpec | null;\n } = { radius: null, angle: null };\n (spec.axes ?? []).forEach((axis: IPolarAxisSpec) => {\n const { orient } = axis;\n if (orient === 'radius') {\n axesPtr.radius = axis;\n }\n if (orient === 'angle') {\n axesPtr.angle = axis;\n }\n });\n if (!axesPtr.angle) {\n axesPtr.angle = angleAxisDefaultSpec;\n spec.axes.push(axesPtr.angle);\n }\n if (!axesPtr.radius) {\n axesPtr.radius = radiusAxisDefaultSpec;\n spec.axes.push(axesPtr.radius);\n }\n\n // 自动补充缺失的配置\n if (isNil(axesPtr.angle.type)) {\n axesPtr.angle.type = 'linear';\n }\n if (isNil(axesPtr.radius.type)) {\n axesPtr.radius.type = 'band';\n }\n const domain = getLinearAxisSpecDomain(axesPtr.angle, { min: 0, max: 1 });\n if (isNil(axesPtr.angle.min)) {\n axesPtr.angle.min = domain.min;\n }\n if (isNil(axesPtr.angle.max)) {\n axesPtr.angle.max = domain.max;\n }\n if (angleAxisAppendSpec) {\n const newSpec = mergeSpec({}, angleAxisAppendSpec, axesPtr.angle);\n Object.assign(axesPtr.angle, newSpec);\n }\n if (radiusAxisAppendSpec) {\n const newSpec = mergeSpec({}, radiusAxisAppendSpec, axesPtr.radius);\n Object.assign(axesPtr.radius, newSpec);\n }\n }\n}\n"]}
|
package/esm/core/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VChart } from './vchart';
|
|
2
2
|
import { Factory } from './factory';
|
|
3
3
|
export { VChart, Factory };
|
|
4
|
-
export declare const version = "1.5.
|
|
4
|
+
export declare const version = "1.5.2-alpha.0";
|
|
5
5
|
export type { IVChart } from './interface';
|
|
6
6
|
export * from '../event/interface';
|
|
7
7
|
export * from '../typings/spec/common';
|
package/esm/core/index.js
CHANGED
package/esm/core/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AAMvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"1.5.2-alpha.0\";\n\n// export necessary types\nexport type { IVChart } from './interface';\n\n// the event types\nexport * from '../event/interface';\nexport * from '../typings/spec/common';\nexport * from '../theme/interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\n"]}
|
|
@@ -37,6 +37,8 @@ export type IPie3dSeriesSpec = {
|
|
|
37
37
|
export interface IPie3dSeriesTheme extends IPolarSeriesTheme {
|
|
38
38
|
[SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;
|
|
39
39
|
[SeriesMarkNameEnum.label]?: IArcLabelSpec;
|
|
40
|
+
innerLabel?: IArcLabelSpec;
|
|
41
|
+
outerLabel?: IArcLabelSpec;
|
|
40
42
|
}
|
|
41
43
|
export interface IArcLabelLineSpec extends IMarkSpec<ILineMarkSpec> {
|
|
42
44
|
visible?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/pie/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IAnimationSpec } from '../../animation/spec';\nimport type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';\nimport type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from '../../typings/visual';\nimport type { SeriesMarkNameEnum } from '../interface/type';\nimport type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';\nimport type { PieAppearPreset } from './animation/animation';\nimport type { ILabelSpec } from '../../component/label';\n\nexport type PieMarks = 'pie' | 'label' | 'labelLine';\n\nexport interface IPieSeriesSpec extends IPolarSeriesSpec, IAnimationSpec<PieMarks, PieAppearPreset> {\n type: 'pie';\n /**\n * 分类字段\n * @description 饼图每个扇区为独立的系列\n */\n categoryField: string;\n /** 数值字段 */\n valueField: string;\n /** 饼图中心点 x 坐标 */\n centerX?: number;\n /** 饼图中心点 y 坐标 */\n centerY?: number;\n /** 饼图扇区中心偏移 */\n centerOffset?: number;\n\n /**\n * 饼图扇区半径\n * @default 0.6\n * @deprecated use outerRadius instead\n */\n radius?: number;\n\n /**\n * 饼图扇区外半径\n * @default 0.6\n */\n outerRadius?: number;\n\n /**\n * 饼图扇区内半径\n * @default 0\n */\n innerRadius?: number;\n\n /**\n * 饼图扇区圆角半径\n * @default 0\n */\n cornerRadius?: number;\n /**\n * 饼图的起始角度(0 ~ 360)\n * @default -90\n */\n startAngle?: number;\n /**\n * 饼图的结束角度(0 ~ 360)\n * @default 270\n */\n endAngle?: number;\n /**\n * 扇区之间的间隔角度\n */\n padAngle?: number;\n\n /**\n * 最小的扇区角度(0 ~ 360),用于防止某个值过小导致扇区太小影响交互。\n * @default 0\n * @since 1.4.0\n */\n minAngle?: number;\n\n /** 扇区样式 */\n [SeriesMarkNameEnum.pie]?: IMarkSpec<IArcMarkSpec>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n}\n\nexport interface IPieSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie]?: Partial<IMarkTheme<IArcMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n /**\n * 内标签配置\n * @since 1.5.1\n */\n innerLabel?: IArcLabelSpec;\n /**\n * 外标签配置\n * @since 1.5.1\n */\n outerLabel?: IArcLabelSpec;\n}\n\nexport type IPie3dSeriesSpec = {\n type: 'pie3d';\n // 饼图整体绕x轴的旋转角度\n angle3d?: number;\n} & Omit<IPieSeriesSpec, 'type'>;\n\nexport interface IPie3dSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n}\n\nexport interface IArcLabelLineSpec extends IMarkSpec<ILineMarkSpec> {\n /**\n * 是否显示引导线\n * @default true\n */\n visible?: boolean;\n /**\n * 引导线 line1 部分最小长度\n * @default 20\n */\n line1MinLength?: number;\n /**\n * 引导线 line2 部分最小长度\n * @default 10\n */\n line2MinLength?: number;\n /**\n * 引导线是否光滑\n * @default false\n * @SInCE 1.4.0\n */\n smooth?: boolean;\n}\n\nexport type ArcLabelAlignType = 'arc' | 'labelLine' | 'edge';\n\nexport type ArcLabelStrategyType = 'priority' | 'vertical' | 'none';\n\nexport interface IArcLabelLayoutSpec {\n /**\n * 标签对齐方式\n * @default 'arc'\n */\n textAlign?: ArcLabelAlignType;\n /** @deprecate 建议统一使用textAlign,后续将废除 */\n align?: ArcLabelAlignType;\n /**\n * 标签布局策略\n * @default 'priority'\n */\n strategy?: ArcLabelStrategyType;\n /**\n * 是否启用切线约束\n * @default true\n */\n tangentConstraint?: boolean;\n}\n\n// export interface ILabelTextMarkSpec extends Omit<ITextMarkSpec, 'align' | 'textAlign'> {\n// /** text 配置 align 为 auto 时将根据布局逻辑自动处理 align */\n// textAlign?: TextAlign | 'auto';\n// /** @deprecate 建议统一使用textAlign,后续将废除 */\n// align?: TextAlign | 'auto';\n// }\n\nexport interface IArcLabelSpec extends ILabelSpec {\n /**\n * 标签布局方式\n * @default 'outside'\n */\n position?: 'outside' | 'inside';\n /**\n * 标签内容显示规则\n * @default 'all'\n */\n showRule?: 'all' | 'max' | 'min' | 'minAndMax' | 'headAndTail';\n /**\n * 是否允许标签重叠\n * @default false\n */\n coverEnable?: boolean;\n /**\n * 是否允许标签旋转\n * @default true\n */\n rotate?: boolean;\n\n /**\n * 文字与引导线间隔宽度\n * @default 5\n */\n spaceWidth?: number;\n /**\n * 扇区间标签的间隔\n * @default 6\n */\n layoutArcGap?: number;\n\n /** 标签文字样式 */\n style?: ITextMarkSpec;\n /** 标签引导线样式 */\n line?: IArcLabelLineSpec;\n /** 标签布局配置 */\n layout?: IArcLabelLayoutSpec;\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/series/pie/interface.ts"],"names":[],"mappings":"","file":"interface.js","sourcesContent":["import type { IAnimationSpec } from '../../animation/spec';\nimport type { IMarkSpec, IMarkTheme } from '../../typings/spec/common';\nimport type { IArcMarkSpec, ITextMarkSpec, IArc3dMarkSpec, ILineMarkSpec } from '../../typings/visual';\nimport type { SeriesMarkNameEnum } from '../interface/type';\nimport type { IPolarSeriesSpec, IPolarSeriesTheme } from '../polar/interface';\nimport type { PieAppearPreset } from './animation/animation';\nimport type { ILabelSpec } from '../../component/label';\n\nexport type PieMarks = 'pie' | 'label' | 'labelLine';\n\nexport interface IPieSeriesSpec extends IPolarSeriesSpec, IAnimationSpec<PieMarks, PieAppearPreset> {\n type: 'pie';\n /**\n * 分类字段\n * @description 饼图每个扇区为独立的系列\n */\n categoryField: string;\n /** 数值字段 */\n valueField: string;\n /** 饼图中心点 x 坐标 */\n centerX?: number;\n /** 饼图中心点 y 坐标 */\n centerY?: number;\n /** 饼图扇区中心偏移 */\n centerOffset?: number;\n\n /**\n * 饼图扇区半径\n * @default 0.6\n * @deprecated use outerRadius instead\n */\n radius?: number;\n\n /**\n * 饼图扇区外半径\n * @default 0.6\n */\n outerRadius?: number;\n\n /**\n * 饼图扇区内半径\n * @default 0\n */\n innerRadius?: number;\n\n /**\n * 饼图扇区圆角半径\n * @default 0\n */\n cornerRadius?: number;\n /**\n * 饼图的起始角度(0 ~ 360)\n * @default -90\n */\n startAngle?: number;\n /**\n * 饼图的结束角度(0 ~ 360)\n * @default 270\n */\n endAngle?: number;\n /**\n * 扇区之间的间隔角度\n */\n padAngle?: number;\n\n /**\n * 最小的扇区角度(0 ~ 360),用于防止某个值过小导致扇区太小影响交互。\n * @default 0\n * @since 1.4.0\n */\n minAngle?: number;\n\n /** 扇区样式 */\n [SeriesMarkNameEnum.pie]?: IMarkSpec<IArcMarkSpec>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n}\n\nexport interface IPieSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie]?: Partial<IMarkTheme<IArcMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n /**\n * 内标签配置\n * @since 1.5.1\n */\n innerLabel?: IArcLabelSpec;\n /**\n * 外标签配置\n * @since 1.5.1\n */\n outerLabel?: IArcLabelSpec;\n}\n\nexport type IPie3dSeriesSpec = {\n type: 'pie3d';\n // 饼图整体绕x轴的旋转角度\n angle3d?: number;\n} & Omit<IPieSeriesSpec, 'type'>;\n\nexport interface IPie3dSeriesTheme extends IPolarSeriesTheme {\n [SeriesMarkNameEnum.pie3d]?: Partial<IMarkTheme<IArc3dMarkSpec>>;\n /** 标签配置 */\n [SeriesMarkNameEnum.label]?: IArcLabelSpec;\n /**\n * 内标签配置\n * @since 1.5.1\n */\n innerLabel?: IArcLabelSpec;\n /**\n * 外标签配置\n * @since 1.5.1\n */\n outerLabel?: IArcLabelSpec;\n}\n\nexport interface IArcLabelLineSpec extends IMarkSpec<ILineMarkSpec> {\n /**\n * 是否显示引导线\n * @default true\n */\n visible?: boolean;\n /**\n * 引导线 line1 部分最小长度\n * @default 20\n */\n line1MinLength?: number;\n /**\n * 引导线 line2 部分最小长度\n * @default 10\n */\n line2MinLength?: number;\n /**\n * 引导线是否光滑\n * @default false\n * @SInCE 1.4.0\n */\n smooth?: boolean;\n}\n\nexport type ArcLabelAlignType = 'arc' | 'labelLine' | 'edge';\n\nexport type ArcLabelStrategyType = 'priority' | 'vertical' | 'none';\n\nexport interface IArcLabelLayoutSpec {\n /**\n * 标签对齐方式\n * @default 'arc'\n */\n textAlign?: ArcLabelAlignType;\n /** @deprecate 建议统一使用textAlign,后续将废除 */\n align?: ArcLabelAlignType;\n /**\n * 标签布局策略\n * @default 'priority'\n */\n strategy?: ArcLabelStrategyType;\n /**\n * 是否启用切线约束\n * @default true\n */\n tangentConstraint?: boolean;\n}\n\n// export interface ILabelTextMarkSpec extends Omit<ITextMarkSpec, 'align' | 'textAlign'> {\n// /** text 配置 align 为 auto 时将根据布局逻辑自动处理 align */\n// textAlign?: TextAlign | 'auto';\n// /** @deprecate 建议统一使用textAlign,后续将废除 */\n// align?: TextAlign | 'auto';\n// }\n\nexport interface IArcLabelSpec extends ILabelSpec {\n /**\n * 标签布局方式\n * @default 'outside'\n */\n position?: 'outside' | 'inside';\n /**\n * 标签内容显示规则\n * @default 'all'\n */\n showRule?: 'all' | 'max' | 'min' | 'minAndMax' | 'headAndTail';\n /**\n * 是否允许标签重叠\n * @default false\n */\n coverEnable?: boolean;\n /**\n * 是否允许标签旋转\n * @default true\n */\n rotate?: boolean;\n\n /**\n * 文字与引导线间隔宽度\n * @default 5\n */\n spaceWidth?: number;\n /**\n * 扇区间标签的间隔\n * @default 6\n */\n layoutArcGap?: number;\n\n /** 标签文字样式 */\n style?: ITextMarkSpec;\n /** 标签引导线样式 */\n line?: IArcLabelLineSpec;\n /** 标签布局配置 */\n layout?: IArcLabelLayoutSpec;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/builtin/common/component/axis/polar-axis.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAA0B;IAC/C,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,KAAK;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA0B;IAC9C,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC;KACT;CACF,CAAC","file":"polar-axis.js","sourcesContent":["import type { IPolarAxisCommonTheme } from '../../../../../component/axis/polar/interface/theme';\n\nexport const axisRadius: IPolarAxisCommonTheme = {\n grid: {\n smooth: true,\n visible: true\n },\n subGrid: {\n smooth: true,\n visible: false\n }\n};\n\nexport const axisAngle: IPolarAxisCommonTheme = {\n grid: {\n visible: true,\n style: {\n lineDash: [6, 6]\n }\n },\n label: {\n space:
|
|
1
|
+
{"version":3,"sources":["../src/theme/builtin/common/component/axis/polar-axis.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAA0B;IAC/C,IAAI,EAAE;QACJ,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACP,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,KAAK;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAA0B;IAC9C,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,CAAC;KACT;CACF,CAAC","file":"polar-axis.js","sourcesContent":["import type { IPolarAxisCommonTheme } from '../../../../../component/axis/polar/interface/theme';\n\nexport const axisRadius: IPolarAxisCommonTheme = {\n grid: {\n smooth: true,\n visible: true\n },\n subGrid: {\n smooth: true,\n visible: false\n }\n};\n\nexport const axisAngle: IPolarAxisCommonTheme = {\n grid: {\n visible: true,\n style: {\n lineDash: [6, 6]\n }\n },\n label: {\n space: 5\n }\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/vchart",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2-alpha.0",
|
|
4
4
|
"description": "charts lib based @visactor/VGrammar",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -77,16 +77,16 @@
|
|
|
77
77
|
"@size-limit/file": "9.0.0",
|
|
78
78
|
"@internal/typescript-json-schema": "0.0.1",
|
|
79
79
|
"@internal/bundler": "0.0.1",
|
|
80
|
-
"@internal/
|
|
81
|
-
"@internal/
|
|
80
|
+
"@internal/eslint-config": "0.0.1",
|
|
81
|
+
"@internal/ts-config": "0.0.1"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@visactor/vutils": "~0.16.4",
|
|
85
85
|
"@visactor/vdataset": "~0.16.4",
|
|
86
86
|
"@visactor/vscale": "~0.16.4",
|
|
87
|
-
"@visactor/vrender-core": "
|
|
88
|
-
"@visactor/vrender-kits": "
|
|
89
|
-
"@visactor/vrender-components": "
|
|
87
|
+
"@visactor/vrender-core": "0.16.6-alpha.0",
|
|
88
|
+
"@visactor/vrender-kits": "0.16.6-alpha.0",
|
|
89
|
+
"@visactor/vrender-components": "0.16.6-alpha.0",
|
|
90
90
|
"@visactor/vgrammar-core": "~0.8.0",
|
|
91
91
|
"@visactor/vgrammar-projection": "~0.8.0",
|
|
92
92
|
"@visactor/vgrammar-wordcloud": "~0.8.0",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@visactor/vgrammar-hierarchy": "~0.8.0",
|
|
95
95
|
"@visactor/vgrammar-sankey": "~0.8.0",
|
|
96
96
|
"@visactor/vgrammar-util": "~0.8.0",
|
|
97
|
-
"@visactor/vutils-extension": "1.5.
|
|
97
|
+
"@visactor/vutils-extension": "1.5.2-alpha.0"
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public",
|