@visactor/vchart 1.6.5 → 1.6.6
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 +19 -13
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/compile/compiler.d.ts +2 -2
- package/cjs/compile/compiler.js +6 -5
- package/cjs/compile/compiler.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/core/vchart.js +5 -5
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/interaction/config.d.ts +2 -2
- package/cjs/interaction/config.js +2 -2
- package/cjs/interaction/config.js.map +1 -1
- package/cjs/interaction/trigger.js +1 -1
- package/cjs/interaction/trigger.js.map +1 -1
- package/esm/compile/compiler.d.ts +2 -2
- package/esm/compile/compiler.js +6 -5
- package/esm/compile/compiler.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/core/vchart.js +5 -5
- package/esm/core/vchart.js.map +1 -1
- package/esm/interaction/config.d.ts +2 -2
- package/esm/interaction/config.js +2 -2
- package/esm/interaction/config.js.map +1 -1
- package/esm/interaction/trigger.js +1 -1
- package/esm/interaction/trigger.js.map +1 -1
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -52534,10 +52534,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52534
52534
|
chart.afterCompile();
|
|
52535
52535
|
this.updateDepend();
|
|
52536
52536
|
}
|
|
52537
|
-
clear(ctx) {
|
|
52537
|
+
clear(ctx, removeGraphicItems = false) {
|
|
52538
52538
|
const { chart } = ctx;
|
|
52539
52539
|
chart.clear();
|
|
52540
|
-
this.releaseGrammar();
|
|
52540
|
+
this.releaseGrammar(removeGraphicItems);
|
|
52541
52541
|
}
|
|
52542
52542
|
renderAsync(morphConfig) {
|
|
52543
52543
|
var _a;
|
|
@@ -52701,10 +52701,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52701
52701
|
this.isInited = false;
|
|
52702
52702
|
this.isReleased = true;
|
|
52703
52703
|
}
|
|
52704
|
-
releaseGrammar() {
|
|
52705
|
-
var _a;
|
|
52704
|
+
releaseGrammar(removeGraphicItems = false) {
|
|
52705
|
+
var _a, _b;
|
|
52706
52706
|
this._releaseModel();
|
|
52707
|
-
(
|
|
52707
|
+
if (removeGraphicItems) {
|
|
52708
|
+
(_a = this._view) === null || _a === void 0 ? void 0 : _a.removeAllGraphicItems();
|
|
52709
|
+
}
|
|
52710
|
+
(_b = this._view) === null || _b === void 0 ? void 0 : _b.removeAllGrammars();
|
|
52708
52711
|
}
|
|
52709
52712
|
_releaseModel() {
|
|
52710
52713
|
Object.keys(this._model).forEach(type => {
|
|
@@ -57287,13 +57290,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57287
57290
|
return this;
|
|
57288
57291
|
}
|
|
57289
57292
|
_reCompile(updateResult) {
|
|
57290
|
-
var _a, _b, _c, _d, _e;
|
|
57293
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
57291
57294
|
if (updateResult.reMake) {
|
|
57292
57295
|
this._releaseData();
|
|
57293
57296
|
this._initDataSet();
|
|
57294
57297
|
this._chart.release();
|
|
57295
57298
|
this._chart = null;
|
|
57296
|
-
(_a = this._compiler) === null || _a === void 0 ? void 0 : _a.releaseGrammar();
|
|
57299
|
+
(_a = this._compiler) === null || _a === void 0 ? void 0 : _a.releaseGrammar(((_b = this._option) === null || _b === void 0 ? void 0 : _b.animation) === false || ((_c = this._spec) === null || _c === void 0 ? void 0 : _c.animation) === false);
|
|
57297
57300
|
this._userEvents.forEach(e => { var _a; return (_a = this._event) === null || _a === void 0 ? void 0 : _a.on(e.eType, e.query, e.handler); });
|
|
57298
57301
|
if (updateResult.reSize) {
|
|
57299
57302
|
this._doResize();
|
|
@@ -57301,13 +57304,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
57301
57304
|
}
|
|
57302
57305
|
else {
|
|
57303
57306
|
if (updateResult.reCompile) {
|
|
57304
|
-
(
|
|
57305
|
-
(
|
|
57307
|
+
(_d = this._compiler) === null || _d === void 0 ? void 0 : _d.clear({ chart: this._chart, vChart: this }, !this._option.animation || !this._spec.animation);
|
|
57308
|
+
(_e = this._compiler) === null || _e === void 0 ? void 0 : _e.compile({ chart: this._chart, vChart: this }, {});
|
|
57306
57309
|
}
|
|
57307
57310
|
if (updateResult.reSize) {
|
|
57308
57311
|
const { width, height } = this._getCurSize();
|
|
57309
57312
|
this._chart.onResize(width, height);
|
|
57310
|
-
(
|
|
57313
|
+
(_g = (_f = this._compiler).resize) === null || _g === void 0 ? void 0 : _g.call(_f, width, height, false);
|
|
57311
57314
|
}
|
|
57312
57315
|
}
|
|
57313
57316
|
}
|
|
@@ -58089,7 +58092,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
58089
58092
|
};
|
|
58090
58093
|
registerVChartCore();
|
|
58091
58094
|
|
|
58092
|
-
const version = "1.6.
|
|
58095
|
+
const version = "1.6.6";
|
|
58093
58096
|
|
|
58094
58097
|
class ChartData {
|
|
58095
58098
|
get dataList() {
|
|
@@ -59651,7 +59654,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59651
59654
|
hover: {
|
|
59652
59655
|
enable: true,
|
|
59653
59656
|
trigger: 'pointermove',
|
|
59654
|
-
triggerOff:
|
|
59657
|
+
triggerOff: 'pointerleave'
|
|
59655
59658
|
},
|
|
59656
59659
|
select: {
|
|
59657
59660
|
enable: true,
|
|
@@ -59664,7 +59667,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59664
59667
|
hover: {
|
|
59665
59668
|
enable: true,
|
|
59666
59669
|
trigger: ['pointerdown', 'pointermove'],
|
|
59667
|
-
triggerOff:
|
|
59670
|
+
triggerOff: 'pointerleave'
|
|
59668
59671
|
},
|
|
59669
59672
|
select: {
|
|
59670
59673
|
enable: true,
|
|
@@ -59690,6 +59693,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59690
59693
|
if (this.filterEventMark(params)) {
|
|
59691
59694
|
this.hoverItem(params);
|
|
59692
59695
|
}
|
|
59696
|
+
else {
|
|
59697
|
+
this.unhoverItem();
|
|
59698
|
+
}
|
|
59693
59699
|
};
|
|
59694
59700
|
this.onUnHover = (params) => {
|
|
59695
59701
|
if (this.filterEventMark(params) || this.interaction.filterEventMark(params, STATE_VALUE_ENUM.STATE_HOVER)) {
|