@visactor/vchart 2.0.12-alpha.4 → 2.0.12-alpha.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.es.js +6 -4
- package/build/index.js +6 -4
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/interface.js +2 -1
- package/cjs/compile/compiler.js +1 -2
- package/cjs/component/axis/polar/axis.js +4 -2
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/axis/polar/interface/spec.d.ts +3 -1
- package/cjs/component/axis/polar/interface/spec.js.map +1 -1
- package/cjs/component/index.js +2 -1
- package/cjs/constant/box-plot.js +2 -1
- package/cjs/constant/label.js +1 -2
- package/cjs/constant/word-cloud.js +1 -1
- package/cjs/core/expression-function.js +1 -2
- package/cjs/core/vchart.js +1 -1
- package/esm/animation/interface.js +2 -1
- package/esm/compile/compiler.js +1 -2
- package/esm/component/axis/polar/axis.js +4 -2
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/axis/polar/interface/spec.d.ts +3 -1
- package/esm/component/axis/polar/interface/spec.js.map +1 -1
- package/esm/component/index.js +2 -1
- package/esm/constant/box-plot.js +2 -1
- package/esm/constant/label.js +1 -2
- package/esm/constant/word-cloud.js +1 -1
- package/esm/core/expression-function.js +1 -2
- package/esm/core/vchart.js +1 -1
- package/package.json +8 -8
package/build/index.es.js
CHANGED
|
@@ -26573,9 +26573,11 @@ class Gesture extends EventEmitter {
|
|
|
26573
26573
|
}
|
|
26574
26574
|
emitEvent(type, e) {
|
|
26575
26575
|
if (!this.element) return;
|
|
26576
|
-
const
|
|
26576
|
+
const events = this.element._events;
|
|
26577
|
+
this._callListeners(type, e, events[WILDCARD]), this._callListeners(type, e, events[type]), this.emit(type, e);
|
|
26578
|
+
}
|
|
26579
|
+
_callListeners(type, e, listeners) {
|
|
26577
26580
|
if (listeners) if ("fn" in listeners) listeners.fn.call(listeners.context, e, type);else for (let i = 0, j = listeners.length; i < j && !e.propagationImmediatelyStopped; i++) listeners[i].fn.call(listeners[i].context, e, type);
|
|
26578
|
-
this.emit(type, e);
|
|
26579
26581
|
}
|
|
26580
26582
|
}
|
|
26581
26583
|
|
|
@@ -78990,7 +78992,7 @@ class PolarAxis extends AxisComponent {
|
|
|
78990
78992
|
return this._startAngle;
|
|
78991
78993
|
}
|
|
78992
78994
|
_layoutAngleAxis() {
|
|
78993
|
-
var _a, _b, _c;
|
|
78995
|
+
var _a, _b, _c, _d, _e;
|
|
78994
78996
|
const center = this.getCenter();
|
|
78995
78997
|
const radius = this.computeLayoutOuterRadius();
|
|
78996
78998
|
const innerRadius = this.computeLayoutInnerRadius();
|
|
@@ -78998,7 +79000,7 @@ class PolarAxis extends AxisComponent {
|
|
|
78998
79000
|
const items = this.getLabelItems(angleRange);
|
|
78999
79001
|
const commonAttrs = Object.assign(Object.assign({}, this.getLayoutStartPoint()), { inside: this._spec.inside, center,
|
|
79000
79002
|
radius,
|
|
79001
|
-
innerRadius, startAngle: this._startAngle, endAngle: this._endAngle,
|
|
79003
|
+
innerRadius, startAngle: this._startAngle, endAngle: this._endAngle, layoutRect: this.getRefLayoutRect(), autoLabelMaxWidth: (_b = (_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.autoLabelMaxWidth) !== null && _b !== void 0 ? _b : false, sides: ((_e = (_d = (_c = this._getRelatedAxis(this._option.radiusAxisIndex)) === null || _c === void 0 ? void 0 : _c.getSpec()) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.smooth)
|
|
79002
79004
|
? undefined
|
|
79003
79005
|
: this.getScale().domain().length });
|
|
79004
79006
|
const attrs = Object.assign(Object.assign({}, commonAttrs), { size: this.getRefLayoutRect(), title: {
|
package/build/index.js
CHANGED
|
@@ -26579,9 +26579,11 @@
|
|
|
26579
26579
|
}
|
|
26580
26580
|
emitEvent(type, e) {
|
|
26581
26581
|
if (!this.element) return;
|
|
26582
|
-
const
|
|
26582
|
+
const events = this.element._events;
|
|
26583
|
+
this._callListeners(type, e, events[WILDCARD]), this._callListeners(type, e, events[type]), this.emit(type, e);
|
|
26584
|
+
}
|
|
26585
|
+
_callListeners(type, e, listeners) {
|
|
26583
26586
|
if (listeners) if ("fn" in listeners) listeners.fn.call(listeners.context, e, type);else for (let i = 0, j = listeners.length; i < j && !e.propagationImmediatelyStopped; i++) listeners[i].fn.call(listeners[i].context, e, type);
|
|
26584
|
-
this.emit(type, e);
|
|
26585
26587
|
}
|
|
26586
26588
|
}
|
|
26587
26589
|
|
|
@@ -78996,7 +78998,7 @@
|
|
|
78996
78998
|
return this._startAngle;
|
|
78997
78999
|
}
|
|
78998
79000
|
_layoutAngleAxis() {
|
|
78999
|
-
var _a, _b, _c;
|
|
79001
|
+
var _a, _b, _c, _d, _e;
|
|
79000
79002
|
const center = this.getCenter();
|
|
79001
79003
|
const radius = this.computeLayoutOuterRadius();
|
|
79002
79004
|
const innerRadius = this.computeLayoutInnerRadius();
|
|
@@ -79004,7 +79006,7 @@
|
|
|
79004
79006
|
const items = this.getLabelItems(angleRange);
|
|
79005
79007
|
const commonAttrs = Object.assign(Object.assign({}, this.getLayoutStartPoint()), { inside: this._spec.inside, center,
|
|
79006
79008
|
radius,
|
|
79007
|
-
innerRadius, startAngle: this._startAngle, endAngle: this._endAngle,
|
|
79009
|
+
innerRadius, startAngle: this._startAngle, endAngle: this._endAngle, layoutRect: this.getRefLayoutRect(), autoLabelMaxWidth: (_b = (_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.autoLabelMaxWidth) !== null && _b !== void 0 ? _b : false, sides: ((_e = (_d = (_c = this._getRelatedAxis(this._option.radiusAxisIndex)) === null || _c === void 0 ? void 0 : _c.getSpec()) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.smooth)
|
|
79008
79010
|
? undefined
|
|
79009
79011
|
: this.getScale().domain().length });
|
|
79010
79012
|
const attrs = Object.assign(Object.assign({}, commonAttrs), { size: this.getRefLayoutRect(), title: {
|