@visactor/vchart 1.13.14 → 1.13.15
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.es.js +7 -4
- package/build/index.js +7 -4
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/config.js +2 -1
- package/cjs/animation/utils.js +1 -2
- package/cjs/constant/scroll-bar.js +1 -1
- package/cjs/constant/sunburst.js +1 -1
- package/cjs/constant/waterfall.js +1 -1
- package/cjs/constant/word-cloud.js +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/interface.js +1 -2
- package/cjs/core/vchart.js +2 -1
- package/cjs/event/event-dispatcher.js +1 -1
- package/cjs/event/event.js +1 -1
- package/cjs/event/index.js +1 -1
- package/cjs/event/interface.js +1 -1
- package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -1
- package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.js +4 -3
- package/cjs/plugin/components/tooltip-handler/dom-tooltip-handler.js.map +1 -1
- package/esm/animation/config.js +2 -1
- package/esm/animation/utils.js +1 -2
- package/esm/constant/scroll-bar.js +1 -1
- package/esm/constant/sunburst.js +1 -1
- package/esm/constant/waterfall.js +1 -1
- package/esm/constant/word-cloud.js +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/interface.js +1 -2
- package/esm/core/vchart.js +2 -1
- package/esm/event/event-dispatcher.js +1 -1
- package/esm/event/event.js +1 -1
- package/esm/event/index.js +1 -1
- package/esm/event/interface.js +1 -1
- package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.d.ts +1 -1
- package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.js +4 -3
- package/esm/plugin/components/tooltip-handler/dom-tooltip-handler.js.map +1 -1
- package/package.json +4 -4
package/build/index.es.js
CHANGED
|
@@ -64241,7 +64241,7 @@ const registerVChartCore = () => {
|
|
|
64241
64241
|
};
|
|
64242
64242
|
registerVChartCore();
|
|
64243
64243
|
|
|
64244
|
-
const version = "1.13.
|
|
64244
|
+
const version = "1.13.15";
|
|
64245
64245
|
|
|
64246
64246
|
const addVChartProperty = (data, op) => {
|
|
64247
64247
|
const context = op.beforeCall();
|
|
@@ -103245,7 +103245,7 @@ class DomTooltipHandler extends BaseTooltipHandler {
|
|
|
103245
103245
|
if (!changePositionOnly) {
|
|
103246
103246
|
this._updateDomStringByCol(actualTooltip);
|
|
103247
103247
|
}
|
|
103248
|
-
this._updateDomStyle('height');
|
|
103248
|
+
this._updateDomStyle('height', changePositionOnly);
|
|
103249
103249
|
const rect = (_a = this._rootDom) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
103250
103250
|
return {
|
|
103251
103251
|
width: rect === null || rect === void 0 ? void 0 : rect.width,
|
|
@@ -103390,7 +103390,7 @@ class DomTooltipHandler extends BaseTooltipHandler {
|
|
|
103390
103390
|
contentDom.parentNode.removeChild(contentDom);
|
|
103391
103391
|
}
|
|
103392
103392
|
}
|
|
103393
|
-
_updateDomStyle(sizeKey = 'width') {
|
|
103393
|
+
_updateDomStyle(sizeKey = 'width', refreshSize) {
|
|
103394
103394
|
var _a, _b, _c, _d, _e;
|
|
103395
103395
|
const rootDom = this._rootDom;
|
|
103396
103396
|
const contentDom = [...rootDom.children].find(child => child.className.includes(TOOLTIP_CONTENT_BOX_CLASS_NAME));
|
|
@@ -103433,6 +103433,9 @@ class DomTooltipHandler extends BaseTooltipHandler {
|
|
|
103433
103433
|
const row = rows[i];
|
|
103434
103434
|
const cols = (_d = row.children) !== null && _d !== void 0 ? _d : [];
|
|
103435
103435
|
for (let j = 0; j < cols.length; j++) {
|
|
103436
|
+
if (refreshSize) {
|
|
103437
|
+
cols[j].style[sizeKey] = 'initial';
|
|
103438
|
+
}
|
|
103436
103439
|
const width = cols[j].getBoundingClientRect()[sizeKey];
|
|
103437
103440
|
if (widthByCol[j] === undefined || widthByCol[j] < width) {
|
|
103438
103441
|
widthByCol[j] = width;
|
|
@@ -103464,7 +103467,7 @@ class DomTooltipHandler extends BaseTooltipHandler {
|
|
|
103464
103467
|
}
|
|
103465
103468
|
if (this.getVisibility()) {
|
|
103466
103469
|
this._updateDomStringByCol(this._tooltipActual);
|
|
103467
|
-
this._updateDomStyle('height');
|
|
103470
|
+
this._updateDomStyle('height', false);
|
|
103468
103471
|
}
|
|
103469
103472
|
}
|
|
103470
103473
|
_updatePosition({ x, y }) {
|
package/build/index.js
CHANGED
|
@@ -64247,7 +64247,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64247
64247
|
};
|
|
64248
64248
|
registerVChartCore();
|
|
64249
64249
|
|
|
64250
|
-
const version = "1.13.
|
|
64250
|
+
const version = "1.13.15";
|
|
64251
64251
|
|
|
64252
64252
|
const addVChartProperty = (data, op) => {
|
|
64253
64253
|
const context = op.beforeCall();
|
|
@@ -103251,7 +103251,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
103251
103251
|
if (!changePositionOnly) {
|
|
103252
103252
|
this._updateDomStringByCol(actualTooltip);
|
|
103253
103253
|
}
|
|
103254
|
-
this._updateDomStyle('height');
|
|
103254
|
+
this._updateDomStyle('height', changePositionOnly);
|
|
103255
103255
|
const rect = (_a = this._rootDom) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
103256
103256
|
return {
|
|
103257
103257
|
width: rect === null || rect === void 0 ? void 0 : rect.width,
|
|
@@ -103396,7 +103396,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
103396
103396
|
contentDom.parentNode.removeChild(contentDom);
|
|
103397
103397
|
}
|
|
103398
103398
|
}
|
|
103399
|
-
_updateDomStyle(sizeKey = 'width') {
|
|
103399
|
+
_updateDomStyle(sizeKey = 'width', refreshSize) {
|
|
103400
103400
|
var _a, _b, _c, _d, _e;
|
|
103401
103401
|
const rootDom = this._rootDom;
|
|
103402
103402
|
const contentDom = [...rootDom.children].find(child => child.className.includes(TOOLTIP_CONTENT_BOX_CLASS_NAME));
|
|
@@ -103439,6 +103439,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
103439
103439
|
const row = rows[i];
|
|
103440
103440
|
const cols = (_d = row.children) !== null && _d !== void 0 ? _d : [];
|
|
103441
103441
|
for (let j = 0; j < cols.length; j++) {
|
|
103442
|
+
if (refreshSize) {
|
|
103443
|
+
cols[j].style[sizeKey] = 'initial';
|
|
103444
|
+
}
|
|
103442
103445
|
const width = cols[j].getBoundingClientRect()[sizeKey];
|
|
103443
103446
|
if (widthByCol[j] === undefined || widthByCol[j] < width) {
|
|
103444
103447
|
widthByCol[j] = width;
|
|
@@ -103470,7 +103473,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
103470
103473
|
}
|
|
103471
103474
|
if (this.getVisibility()) {
|
|
103472
103475
|
this._updateDomStringByCol(this._tooltipActual);
|
|
103473
|
-
this._updateDomStyle('height');
|
|
103476
|
+
this._updateDomStyle('height', false);
|
|
103474
103477
|
}
|
|
103475
103478
|
}
|
|
103476
103479
|
_updatePosition({ x, y }) {
|