@visactor/vchart 1.9.5-alpha.0 → 1.9.5
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 +73 -91
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/utils.js +5 -5
- package/cjs/animation/utils.js.map +1 -1
- package/cjs/compile/grammar-item.js +2 -1
- package/cjs/compile/mark/interface.js.map +1 -1
- package/cjs/component/axis/base-axis.d.ts +6 -5
- package/cjs/component/axis/base-axis.js +24 -1
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.d.ts +1 -5
- package/cjs/component/axis/cartesian/axis.js +7 -25
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/polar/axis.d.ts +1 -5
- package/cjs/component/axis/polar/axis.js +5 -23
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/util.js +1 -2
- 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/theme/builtin/common/series/box-plot.js +5 -0
- package/cjs/theme/builtin/common/series/box-plot.js.map +1 -1
- package/cjs/theme/builtin/common/series/rangeColumn.js +1 -0
- package/cjs/theme/builtin/common/series/rangeColumn.js.map +1 -1
- package/cjs/theme/builtin/common/series/waterfall.js +4 -1
- package/cjs/theme/builtin/common/series/waterfall.js.map +1 -1
- package/esm/animation/utils.js +5 -5
- package/esm/animation/utils.js.map +1 -1
- package/esm/compile/grammar-item.js +2 -1
- package/esm/compile/mark/interface.js.map +1 -1
- package/esm/component/axis/base-axis.d.ts +6 -5
- package/esm/component/axis/base-axis.js +25 -0
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.d.ts +1 -5
- package/esm/component/axis/cartesian/axis.js +5 -23
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/polar/axis.d.ts +1 -5
- package/esm/component/axis/polar/axis.js +5 -23
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/util.js +1 -2
- 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/theme/builtin/common/series/box-plot.js +5 -0
- package/esm/theme/builtin/common/series/box-plot.js.map +1 -1
- package/esm/theme/builtin/common/series/rangeColumn.js +1 -0
- package/esm/theme/builtin/common/series/rangeColumn.js.map +1 -1
- package/esm/theme/builtin/common/series/waterfall.js +4 -1
- package/esm/theme/builtin/common/series/waterfall.js.map +1 -1
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -50860,7 +50860,10 @@
|
|
|
50860
50860
|
label: {
|
|
50861
50861
|
visible: false,
|
|
50862
50862
|
offset: 12,
|
|
50863
|
-
position: 'inside'
|
|
50863
|
+
position: 'inside',
|
|
50864
|
+
style: {
|
|
50865
|
+
lineWidth: 2
|
|
50866
|
+
}
|
|
50864
50867
|
}
|
|
50865
50868
|
};
|
|
50866
50869
|
|
|
@@ -50951,6 +50954,7 @@
|
|
|
50951
50954
|
offset: 5,
|
|
50952
50955
|
position: 'inside',
|
|
50953
50956
|
style: {
|
|
50957
|
+
lineWidth: 2,
|
|
50954
50958
|
fill: { type: 'palette', key: 'axisMarkerFontColor' }
|
|
50955
50959
|
},
|
|
50956
50960
|
minLabel: {
|
|
@@ -51026,6 +51030,11 @@
|
|
|
51026
51030
|
style: {
|
|
51027
51031
|
lineWidth: 1
|
|
51028
51032
|
}
|
|
51033
|
+
},
|
|
51034
|
+
label: {
|
|
51035
|
+
style: {
|
|
51036
|
+
lineWidth: 2
|
|
51037
|
+
}
|
|
51029
51038
|
}
|
|
51030
51039
|
};
|
|
51031
51040
|
|
|
@@ -59904,7 +59913,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59904
59913
|
registerChartPlugin(MediaQuery);
|
|
59905
59914
|
};
|
|
59906
59915
|
|
|
59907
|
-
const version = "1.9.5
|
|
59916
|
+
const version = "1.9.5";
|
|
59908
59917
|
|
|
59909
59918
|
const addVChartProperty = (data, op) => {
|
|
59910
59919
|
const context = op.beforeCall();
|
|
@@ -60364,19 +60373,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60364
60373
|
function userAnimationConfig(markName, spec, ctx) {
|
|
60365
60374
|
var _a, _b, _c, _d, _e;
|
|
60366
60375
|
const userConfig = {};
|
|
60367
|
-
if (spec.animationAppear) {
|
|
60376
|
+
if (isValid$3(spec.animationAppear)) {
|
|
60368
60377
|
userConfig.appear = (_a = spec.animationAppear[markName]) !== null && _a !== void 0 ? _a : spec.animationAppear;
|
|
60369
60378
|
}
|
|
60370
|
-
if (spec.animationDisappear) {
|
|
60379
|
+
if (isValid$3(spec.animationDisappear)) {
|
|
60371
60380
|
userConfig.disappear = (_b = spec.animationDisappear[markName]) !== null && _b !== void 0 ? _b : spec.animationDisappear;
|
|
60372
60381
|
}
|
|
60373
|
-
if (spec.animationEnter) {
|
|
60382
|
+
if (isValid$3(spec.animationEnter)) {
|
|
60374
60383
|
userConfig.enter = (_c = spec.animationEnter[markName]) !== null && _c !== void 0 ? _c : spec.animationEnter;
|
|
60375
60384
|
}
|
|
60376
|
-
if (spec.animationExit) {
|
|
60385
|
+
if (isValid$3(spec.animationExit)) {
|
|
60377
60386
|
userConfig.exit = (_d = spec.animationExit[markName]) !== null && _d !== void 0 ? _d : spec.animationExit;
|
|
60378
60387
|
}
|
|
60379
|
-
if (spec.animationUpdate) {
|
|
60388
|
+
if (isValid$3(spec.animationUpdate)) {
|
|
60380
60389
|
userConfig.update = (_e = spec.animationUpdate[markName]) !== null && _e !== void 0 ? _e : spec.animationUpdate;
|
|
60381
60390
|
}
|
|
60382
60391
|
if (spec.animationNormal && spec.animationNormal[markName]) {
|
|
@@ -82218,6 +82227,38 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82218
82227
|
tickData.target.addListener('change', this._forceLayout.bind(this));
|
|
82219
82228
|
this._tickData = [new CompilableData(this._option, tickData)];
|
|
82220
82229
|
}
|
|
82230
|
+
collectData(depth, rawData) {
|
|
82231
|
+
const data = [];
|
|
82232
|
+
eachSeries(this._regions, s => {
|
|
82233
|
+
var _a;
|
|
82234
|
+
let field = this.collectSeriesField(depth, s);
|
|
82235
|
+
field = (isArray$3(field) ? (isContinuous(this._scale.type) ? field : [field[0]]) : [field]);
|
|
82236
|
+
if (!depth) {
|
|
82237
|
+
this._dataFieldText = s.getFieldAlias(field[0]);
|
|
82238
|
+
}
|
|
82239
|
+
if (field) {
|
|
82240
|
+
const viewData = s.getViewData();
|
|
82241
|
+
if (rawData) {
|
|
82242
|
+
field.forEach(f => {
|
|
82243
|
+
data.push(s.getRawDataStatisticsByField(f, false));
|
|
82244
|
+
});
|
|
82245
|
+
}
|
|
82246
|
+
else if (viewData && viewData.latestData && viewData.latestData.length) {
|
|
82247
|
+
const seriesData = (_a = s.getViewDataStatistics) === null || _a === void 0 ? void 0 : _a.call(s);
|
|
82248
|
+
field.forEach(f => {
|
|
82249
|
+
var _a;
|
|
82250
|
+
if ((_a = seriesData === null || seriesData === void 0 ? void 0 : seriesData.latestData) === null || _a === void 0 ? void 0 : _a[f]) {
|
|
82251
|
+
data.push(seriesData.latestData[f]);
|
|
82252
|
+
}
|
|
82253
|
+
});
|
|
82254
|
+
}
|
|
82255
|
+
}
|
|
82256
|
+
}, {
|
|
82257
|
+
userId: this._seriesUserId,
|
|
82258
|
+
specIndex: this._seriesIndex
|
|
82259
|
+
});
|
|
82260
|
+
return data;
|
|
82261
|
+
}
|
|
82221
82262
|
isSeriesDataEnable() {
|
|
82222
82263
|
let enable = true;
|
|
82223
82264
|
eachSeries(this._regions, s => {
|
|
@@ -82940,55 +82981,24 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82940
82981
|
});
|
|
82941
82982
|
return scales;
|
|
82942
82983
|
}
|
|
82943
|
-
|
|
82944
|
-
|
|
82945
|
-
|
|
82946
|
-
|
|
82947
|
-
|
|
82948
|
-
|
|
82949
|
-
|
|
82950
|
-
|
|
82951
|
-
|
|
82952
|
-
if (isXAxis(this.getOrient())) {
|
|
82953
|
-
field = s.getSpec().x2Field
|
|
82954
|
-
? [...s.fieldX, s.fieldX2]
|
|
82955
|
-
: s.fieldX;
|
|
82956
|
-
}
|
|
82957
|
-
else if (isZAxis(this.getOrient())) {
|
|
82958
|
-
field = s.fieldZ;
|
|
82959
|
-
}
|
|
82960
|
-
else {
|
|
82961
|
-
field = s.getSpec().y2Field
|
|
82962
|
-
? [...s.fieldY, s.fieldY2]
|
|
82963
|
-
: s.fieldY;
|
|
82964
|
-
}
|
|
82984
|
+
collectSeriesField(depth, series) {
|
|
82985
|
+
var _a, _b;
|
|
82986
|
+
let field;
|
|
82987
|
+
if (depth > 0) {
|
|
82988
|
+
field = (_b = (_a = series.getGroups()) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b[depth];
|
|
82989
|
+
}
|
|
82990
|
+
else {
|
|
82991
|
+
if (isXAxis(this.getOrient())) {
|
|
82992
|
+
field = series.getSpec().x2Field ? [...series.fieldX, series.fieldX2] : series.fieldX;
|
|
82965
82993
|
}
|
|
82966
|
-
|
|
82967
|
-
|
|
82968
|
-
this._dataFieldText = s.getFieldAlias(field[0]);
|
|
82994
|
+
else if (isZAxis(this.getOrient())) {
|
|
82995
|
+
field = series.fieldZ;
|
|
82969
82996
|
}
|
|
82970
|
-
|
|
82971
|
-
|
|
82972
|
-
if (rawData) {
|
|
82973
|
-
field.forEach(f => {
|
|
82974
|
-
data.push(s.getRawDataStatisticsByField(f, false));
|
|
82975
|
-
});
|
|
82976
|
-
}
|
|
82977
|
-
else if (viewData && viewData.latestData && viewData.latestData.length) {
|
|
82978
|
-
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
82979
|
-
field.forEach(f => {
|
|
82980
|
-
var _a;
|
|
82981
|
-
if ((_a = seriesData === null || seriesData === void 0 ? void 0 : seriesData.latestData) === null || _a === void 0 ? void 0 : _a[f]) {
|
|
82982
|
-
data.push(seriesData.latestData[f]);
|
|
82983
|
-
}
|
|
82984
|
-
});
|
|
82985
|
-
}
|
|
82997
|
+
else {
|
|
82998
|
+
field = series.getSpec().y2Field ? [...series.fieldY, series.fieldY2] : series.fieldY;
|
|
82986
82999
|
}
|
|
82987
|
-
}
|
|
82988
|
-
|
|
82989
|
-
specIndex: this._seriesIndex
|
|
82990
|
-
});
|
|
82991
|
-
return data;
|
|
83000
|
+
}
|
|
83001
|
+
return field;
|
|
82992
83002
|
}
|
|
82993
83003
|
updateSeriesScale() {
|
|
82994
83004
|
const orient = this.getOrient();
|
|
@@ -84170,44 +84180,16 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84170
84180
|
this._scale.range(newRange);
|
|
84171
84181
|
return true;
|
|
84172
84182
|
}
|
|
84173
|
-
|
|
84174
|
-
|
|
84175
|
-
|
|
84176
|
-
|
|
84177
|
-
|
|
84178
|
-
|
|
84179
|
-
|
|
84180
|
-
|
|
84181
|
-
|
|
84182
|
-
|
|
84183
|
-
this.getOrient() === 'radius' ? s.getRadiusField() : s.getAngleField();
|
|
84184
|
-
}
|
|
84185
|
-
field = (isArray$3(field) ? (isContinuous(this._scale.type) ? field : [field[0]]) : [field]);
|
|
84186
|
-
if (!depth) {
|
|
84187
|
-
this._dataFieldText = s.getFieldAlias(field[0]);
|
|
84188
|
-
}
|
|
84189
|
-
if (field) {
|
|
84190
|
-
const viewData = s.getViewData();
|
|
84191
|
-
if (rawData) {
|
|
84192
|
-
field.forEach(f => {
|
|
84193
|
-
data.push(s.getRawDataStatisticsByField(f, false));
|
|
84194
|
-
});
|
|
84195
|
-
}
|
|
84196
|
-
else if (viewData && viewData.latestData && viewData.latestData.length) {
|
|
84197
|
-
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
84198
|
-
field.forEach(f => {
|
|
84199
|
-
var _a;
|
|
84200
|
-
if ((_a = seriesData === null || seriesData === void 0 ? void 0 : seriesData.latestData) === null || _a === void 0 ? void 0 : _a[f]) {
|
|
84201
|
-
data.push(seriesData.latestData[f]);
|
|
84202
|
-
}
|
|
84203
|
-
});
|
|
84204
|
-
}
|
|
84205
|
-
}
|
|
84206
|
-
}, {
|
|
84207
|
-
userId: this._seriesUserId,
|
|
84208
|
-
specIndex: this._seriesIndex
|
|
84209
|
-
});
|
|
84210
|
-
return data;
|
|
84183
|
+
collectSeriesField(depth, series) {
|
|
84184
|
+
var _a, _b;
|
|
84185
|
+
let field;
|
|
84186
|
+
if (depth > 0) {
|
|
84187
|
+
field = (_b = (_a = series.getGroups()) === null || _a === void 0 ? void 0 : _a.fields) === null || _b === void 0 ? void 0 : _b[depth];
|
|
84188
|
+
}
|
|
84189
|
+
else {
|
|
84190
|
+
field = this.getOrient() === 'radius' ? series.getRadiusField() : series.getAngleField();
|
|
84191
|
+
}
|
|
84192
|
+
return field;
|
|
84211
84193
|
}
|
|
84212
84194
|
updateSeriesScale() {
|
|
84213
84195
|
eachSeries(this._regions, s => {
|