@visactor/vchart 1.11.3 → 1.11.4
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 +118 -84
- package/build/index.js +118 -84
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/base/base-chart.js +3 -3
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/compile/mark/compilable-mark.js +4 -2
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/component/axis/cartesian/band-axis.d.ts +2 -2
- package/cjs/component/axis/cartesian/band-axis.js +2 -2
- package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
- package/cjs/component/axis/polar/axis.d.ts +1 -1
- package/cjs/component/axis/polar/axis.js +1 -1
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/axis/polar/band-axis.d.ts +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/gauge/gauge-pointer.js +3 -1
- package/cjs/series/gauge/gauge-pointer.js.map +1 -1
- package/cjs/series/polar/progress-like/progress-like.js +2 -2
- package/cjs/series/polar/progress-like/progress-like.js.map +1 -1
- package/esm/chart/base/base-chart.js +3 -3
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/compile/mark/compilable-mark.js +4 -2
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/component/axis/cartesian/band-axis.d.ts +2 -2
- package/esm/component/axis/cartesian/band-axis.js +2 -2
- package/esm/component/axis/cartesian/band-axis.js.map +1 -1
- package/esm/component/axis/polar/axis.d.ts +1 -1
- package/esm/component/axis/polar/axis.js +1 -1
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/axis/polar/band-axis.d.ts +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/gauge/gauge-pointer.js +3 -2
- package/esm/series/gauge/gauge-pointer.js.map +1 -1
- package/esm/series/polar/progress-like/progress-like.js +2 -2
- package/esm/series/polar/progress-like/progress-like.js.map +1 -1
- package/package.json +13 -13
package/build/index.js
CHANGED
|
@@ -13241,6 +13241,12 @@
|
|
|
13241
13241
|
return Array.isArray(color) && isNumber$1(color[0]) ? alphaChannel ? `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])},${color[3].toFixed(2)})` : `rgb(${Math.round(color[0])},${Math.round(color[1])},${Math.round(color[2])})` : color;
|
|
13242
13242
|
}
|
|
13243
13243
|
function interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
13244
|
+
if (Array.isArray(from) && !isNumber$1(from[0]) || Array.isArray(to) && !isNumber$1(to[0])) {
|
|
13245
|
+
return new Array(4).fill(0).map((_, index) => _interpolateColor(isArray$1(from) ? from[index] : from, isArray$1(to) ? to[index] : to, ratio, alphaChannel));
|
|
13246
|
+
}
|
|
13247
|
+
return _interpolateColor(from, to, ratio, alphaChannel, cb);
|
|
13248
|
+
}
|
|
13249
|
+
function _interpolateColor(from, to, ratio, alphaChannel, cb) {
|
|
13244
13250
|
if (!from || !to) return from && colorArrayToString(from) || to && colorArrayToString(to) || !1;
|
|
13245
13251
|
let fromArray,
|
|
13246
13252
|
toArray,
|
|
@@ -14040,7 +14046,7 @@
|
|
|
14040
14046
|
animate.stateNames = stateNames, animate.to(animateAttrs, null !== (_b = null === (_a = this.stateAnimateConfig) || void 0 === _a ? void 0 : _a.duration) && void 0 !== _b ? _b : DefaultStateAnimateConfig.duration, null !== (_d = null === (_c = this.stateAnimateConfig) || void 0 === _c ? void 0 : _c.easing) && void 0 !== _d ? _d : DefaultStateAnimateConfig.easing), noAnimateAttrs && this.setAttributes(noAnimateAttrs, !1, {
|
|
14041
14047
|
type: AttributeUpdateType.STATE
|
|
14042
14048
|
});
|
|
14043
|
-
} else this.setAttributes(attrs, !1, {
|
|
14049
|
+
} else this.stopStateAnimates(), this.setAttributes(attrs, !1, {
|
|
14044
14050
|
type: AttributeUpdateType.STATE
|
|
14045
14051
|
});
|
|
14046
14052
|
}
|
|
@@ -14070,7 +14076,7 @@
|
|
|
14070
14076
|
}), value;
|
|
14071
14077
|
}
|
|
14072
14078
|
clearStates(hasAnimation) {
|
|
14073
|
-
this.
|
|
14079
|
+
this.hasState() && this.normalAttrs ? (this.currentStates = [], this.applyStateAttrs(this.normalAttrs, this.currentStates, hasAnimation, !0)) : this.currentStates = [], this.normalAttrs = null;
|
|
14074
14080
|
}
|
|
14075
14081
|
removeState(stateName, hasAnimation) {
|
|
14076
14082
|
if ((this.currentStates ? this.currentStates.indexOf(stateName) : -1) >= 0) {
|
|
@@ -14096,7 +14102,6 @@
|
|
|
14096
14102
|
var _a;
|
|
14097
14103
|
if (!states.length) return void this.clearStates(hasAnimation);
|
|
14098
14104
|
if (!((null === (_a = this.currentStates) || void 0 === _a ? void 0 : _a.length) !== states.length || states.some((stateName, index) => this.currentStates[index] !== stateName))) return;
|
|
14099
|
-
this.stopStateAnimates();
|
|
14100
14105
|
const stateAttrs = {};
|
|
14101
14106
|
states.forEach(stateName => {
|
|
14102
14107
|
var _a;
|
|
@@ -21557,7 +21562,8 @@
|
|
|
21557
21562
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21558
21563
|
};
|
|
21559
21564
|
const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
|
|
21560
|
-
const tempDirtyBounds = new AABBBounds()
|
|
21565
|
+
const tempDirtyBounds = new AABBBounds(),
|
|
21566
|
+
tempBackupDirtyBounds = new AABBBounds();
|
|
21561
21567
|
class ShadowRootDrawItemInterceptorContribution {
|
|
21562
21568
|
constructor() {
|
|
21563
21569
|
this.order = 1;
|
|
@@ -21574,11 +21580,11 @@
|
|
|
21574
21580
|
context: context
|
|
21575
21581
|
} = drawContext;
|
|
21576
21582
|
if (context.highPerformanceSave(), context.transformFromMatrix(graphic.transMatrix, !0), drawContribution.dirtyBounds && drawContribution.backupDirtyBounds) {
|
|
21577
|
-
tempDirtyBounds.copy(drawContribution.dirtyBounds);
|
|
21583
|
+
tempDirtyBounds.copy(drawContribution.dirtyBounds), tempBackupDirtyBounds.copy(drawContribution.backupDirtyBounds);
|
|
21578
21584
|
const m = graphic.globalTransMatrix.getInverse();
|
|
21579
|
-
drawContribution.dirtyBounds.copy(drawContribution.backupDirtyBounds).transformWithMatrix(m);
|
|
21585
|
+
drawContribution.dirtyBounds.copy(drawContribution.backupDirtyBounds).transformWithMatrix(m), drawContribution.backupDirtyBounds.copy(drawContribution.dirtyBounds);
|
|
21580
21586
|
}
|
|
21581
|
-
return drawContribution.renderGroup(graphic.shadowRoot, drawContext, graphic.parent.globalTransMatrix), context.highPerformanceRestore(), drawContribution.dirtyBounds && drawContribution.backupDirtyBounds && drawContribution.dirtyBounds.copy(tempDirtyBounds), !0;
|
|
21587
|
+
return drawContribution.renderGroup(graphic.shadowRoot, drawContext, graphic.parent.globalTransMatrix), context.highPerformanceRestore(), drawContribution.dirtyBounds && drawContribution.backupDirtyBounds && (drawContribution.dirtyBounds.copy(tempDirtyBounds), drawContribution.backupDirtyBounds.copy(tempBackupDirtyBounds)), !0;
|
|
21582
21588
|
}
|
|
21583
21589
|
}
|
|
21584
21590
|
class DebugDrawItemInterceptorContribution {
|
|
@@ -31243,6 +31249,9 @@
|
|
|
31243
31249
|
const textType = getTextType(textAttributes, typeKey);
|
|
31244
31250
|
return "rich" === textType ? graphicCreator.richtext(richTextAttributeTransform(textAttributes)) : ("html" === textType ? textAttributes = htmlAttributeTransform(textAttributes) : "react" === textType && (textAttributes = reactAttributeTransform(textAttributes)), graphicCreator.text(textAttributes));
|
|
31245
31251
|
}
|
|
31252
|
+
function alignTextInLine(layoutAlign, graphic, textAlign, pos, textWidth) {
|
|
31253
|
+
"right" === layoutAlign ? "center" === textAlign ? graphic.setAttribute("x", pos - textWidth / 2) : "right" === textAlign || "end" === textAlign ? graphic.setAttribute("x", pos) : graphic.setAttribute("x", pos - textWidth) : "center" === textAlign ? graphic.setAttribute("x", pos + textWidth / 2) : "right" === textAlign || "end" === textAlign ? graphic.setAttribute("x", pos + textWidth) : graphic.setAttribute("x", pos);
|
|
31254
|
+
}
|
|
31246
31255
|
|
|
31247
31256
|
const deltaXYToAngle = (y, x) => {
|
|
31248
31257
|
const angle = Math.atan2(y, x);
|
|
@@ -43044,7 +43053,8 @@
|
|
|
43044
43053
|
valueWidth: valueWidth,
|
|
43045
43054
|
hasContentShape: hasContentShape,
|
|
43046
43055
|
autoCalculatePosition: autoCalculatePosition,
|
|
43047
|
-
autoMeasure: autoMeasure
|
|
43056
|
+
autoMeasure: autoMeasure,
|
|
43057
|
+
align: align
|
|
43048
43058
|
} = this.attribute;
|
|
43049
43059
|
if (!visible) return void this.hideAll();
|
|
43050
43060
|
autoMeasure && Tooltip.measureTooltip(this.attribute), autoCalculatePosition && Tooltip.calculateTooltipPosition(this.attribute);
|
|
@@ -43095,7 +43105,6 @@
|
|
|
43095
43105
|
this._tooltipContent.setAttribute("x", padding[3]), this._tooltipContent.setAttribute("y", padding[0] + titleHeight);
|
|
43096
43106
|
let lastYPos = 0;
|
|
43097
43107
|
content.forEach((item, i) => {
|
|
43098
|
-
var _a, _b, _c;
|
|
43099
43108
|
const itemAttr = Tooltip.getContentAttr(this.attribute, i);
|
|
43100
43109
|
if (!isVisible(itemAttr)) return;
|
|
43101
43110
|
const itemGroupName = `tooltip-content-${i}`,
|
|
@@ -43103,68 +43112,81 @@
|
|
|
43103
43112
|
visible: !0,
|
|
43104
43113
|
x: 0,
|
|
43105
43114
|
y: lastYPos
|
|
43106
|
-
}, "group")
|
|
43107
|
-
|
|
43108
|
-
|
|
43109
|
-
|
|
43110
|
-
|
|
43111
|
-
|
|
43112
|
-
|
|
43113
|
-
|
|
43114
|
-
element = itemAttr.key.multiLine ? itemGroup.createOrUpdateChild(`${itemGroupName}-key`, Object.assign(Object.assign({
|
|
43115
|
-
visible: !0
|
|
43116
|
-
}, getRichTextAttribute(itemAttr.key)), {
|
|
43117
|
-
textBaseline: "top"
|
|
43118
|
-
}), "richtext") : "object" != typeof itemAttr.key.text || null === itemAttr.key.text || "rich" !== itemAttr.key.text.type && "html" !== itemAttr.key.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-key`, Object.assign(Object.assign({
|
|
43119
|
-
visible: !0,
|
|
43120
|
-
text: null !== (_b = itemAttr.key.text) && void 0 !== _b ? _b : ""
|
|
43121
|
-
}, itemAttr.key), {
|
|
43122
|
-
textBaseline: "top"
|
|
43123
|
-
}), "text") : "rich" === itemAttr.key.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43124
|
-
visible: !0
|
|
43125
|
-
}, getRichTextAttribute(itemAttr.key)), {
|
|
43126
|
-
textBaseline: "top"
|
|
43127
|
-
}), "richtext") : itemGroup.createOrUpdateChild(`${itemGroupName}-value`, {
|
|
43128
|
-
html: Object.assign(Object.assign({
|
|
43129
|
-
dom: itemAttr.key.text.text
|
|
43130
|
-
}, DEFAULT_HTML_TEXT_SPEC), itemAttr.key)
|
|
43131
|
-
}, "richtext");
|
|
43132
|
-
const {
|
|
43133
|
-
textAlign: textAlign
|
|
43134
|
-
} = itemAttr.key;
|
|
43135
|
-
"center" === textAlign ? element.setAttribute("x", x + keyWidth / 2) : "right" === textAlign || "end" === textAlign ? element.setAttribute("x", x + keyWidth) : element.setAttribute("x", x), element.setAttribute("y", 0), x += keyWidth + itemAttr.key.spacing;
|
|
43136
|
-
}
|
|
43137
|
-
if (isVisible(itemAttr.value)) {
|
|
43138
|
-
let element;
|
|
43139
|
-
element = itemAttr.value.multiLine ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43140
|
-
visible: !0
|
|
43141
|
-
}, getRichTextAttribute(itemAttr.value)), {
|
|
43142
|
-
textBaseline: "top"
|
|
43143
|
-
}), "richtext") : "object" != typeof itemAttr.value.text || null === itemAttr.value.text || "rich" !== itemAttr.value.text.type && "html" !== itemAttr.value.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43144
|
-
visible: !0,
|
|
43145
|
-
text: null !== (_c = itemAttr.value.text) && void 0 !== _c ? _c : ""
|
|
43146
|
-
}, itemAttr.value), {
|
|
43147
|
-
textBaseline: "top"
|
|
43148
|
-
}), "text") : "rich" === itemAttr.value.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43149
|
-
visible: !0
|
|
43150
|
-
}, getRichTextAttribute(itemAttr.value)), {
|
|
43151
|
-
textBaseline: "top"
|
|
43152
|
-
}), "richtext") : itemGroup.createOrUpdateChild(`${itemGroupName}-value`, {
|
|
43153
|
-
html: Object.assign({
|
|
43154
|
-
dom: itemAttr.value.text.text,
|
|
43155
|
-
container: "",
|
|
43156
|
-
width: 30,
|
|
43157
|
-
height: 30,
|
|
43158
|
-
style: {}
|
|
43159
|
-
}, itemAttr.value)
|
|
43160
|
-
}, "richtext");
|
|
43115
|
+
}, "group"),
|
|
43116
|
+
shapeOffsetWidth = itemAttr.shape.size + itemAttr.shape.spacing;
|
|
43117
|
+
let x = "right" === align ? (hasContentShape ? shapeOffsetWidth : 0) + (isVisible(itemAttr.key) ? keyWidth + itemAttr.key.spacing : 0) + (isVisible(itemAttr.value) ? valueWidth : 0) : 0;
|
|
43118
|
+
this._createShape("right" === align ? x - itemAttr.shape.size / 2 : x + itemAttr.shape.size / 2, itemAttr, itemGroup, itemGroupName), hasContentShape && ("right" === align ? x -= shapeOffsetWidth : x += shapeOffsetWidth);
|
|
43119
|
+
const keyGraphic = this._createKey(itemAttr, itemGroup, itemGroupName);
|
|
43120
|
+
keyGraphic && (alignTextInLine(align, keyGraphic, itemAttr.key.textAlign, x, keyWidth), keyGraphic.setAttribute("y", 0), "right" === align ? x -= keyWidth + itemAttr.key.spacing : x += keyWidth + itemAttr.key.spacing);
|
|
43121
|
+
const valueGraphic = this._createValue(itemAttr, itemGroup, itemGroupName);
|
|
43122
|
+
if (valueGraphic) {
|
|
43161
43123
|
let textAlign = "right";
|
|
43162
|
-
isValid$1(itemAttr.value.textAlign) ? textAlign = itemAttr.value.textAlign : isVisible(itemAttr.key) || (textAlign = "left"),
|
|
43124
|
+
isValid$1(itemAttr.value.textAlign) ? textAlign = itemAttr.value.textAlign : isVisible(itemAttr.key) || "right" === align || (textAlign = "left"), valueGraphic.setAttribute("textAlign", textAlign), alignTextInLine(align, valueGraphic, textAlign, x, valueWidth), valueGraphic.setAttribute("y", 0);
|
|
43163
43125
|
}
|
|
43164
43126
|
lastYPos += itemAttr.height + itemAttr.spaceRow;
|
|
43165
43127
|
});
|
|
43166
43128
|
}
|
|
43167
43129
|
}
|
|
43130
|
+
_createShape(x, itemAttr, itemGroup, itemGroupName) {
|
|
43131
|
+
var _a;
|
|
43132
|
+
if (isVisible(itemAttr.shape)) return itemGroup.createOrUpdateChild(`${itemGroupName}-shape`, Object.assign({
|
|
43133
|
+
visible: !0,
|
|
43134
|
+
x: x,
|
|
43135
|
+
y: itemAttr.shape.size / 2 + ((null !== (_a = calculateLineHeight(itemAttr.key.lineHeight, itemAttr.key.fontSize)) && void 0 !== _a ? _a : itemAttr.key.fontSize) - itemAttr.shape.size) / 2
|
|
43136
|
+
}, itemAttr.shape), "symbol");
|
|
43137
|
+
}
|
|
43138
|
+
_createKey(itemAttr, itemGroup, itemGroupName) {
|
|
43139
|
+
var _a;
|
|
43140
|
+
if (isVisible(itemAttr.key)) {
|
|
43141
|
+
let element;
|
|
43142
|
+
return element = itemAttr.key.multiLine ? itemGroup.createOrUpdateChild(`${itemGroupName}-key`, Object.assign(Object.assign({
|
|
43143
|
+
visible: !0
|
|
43144
|
+
}, getRichTextAttribute(itemAttr.key)), {
|
|
43145
|
+
textBaseline: "top"
|
|
43146
|
+
}), "richtext") : "object" != typeof itemAttr.key.text || null === itemAttr.key.text || "rich" !== itemAttr.key.text.type && "html" !== itemAttr.key.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-key`, Object.assign(Object.assign({
|
|
43147
|
+
visible: !0,
|
|
43148
|
+
text: null !== (_a = itemAttr.key.text) && void 0 !== _a ? _a : ""
|
|
43149
|
+
}, itemAttr.key), {
|
|
43150
|
+
textBaseline: "top"
|
|
43151
|
+
}), "text") : "rich" === itemAttr.key.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43152
|
+
visible: !0
|
|
43153
|
+
}, getRichTextAttribute(itemAttr.key)), {
|
|
43154
|
+
textBaseline: "top"
|
|
43155
|
+
}), "richtext") : itemGroup.createOrUpdateChild(`${itemGroupName}-value`, {
|
|
43156
|
+
html: Object.assign(Object.assign({
|
|
43157
|
+
dom: itemAttr.key.text.text
|
|
43158
|
+
}, DEFAULT_HTML_TEXT_SPEC), itemAttr.key)
|
|
43159
|
+
}, "richtext"), element;
|
|
43160
|
+
}
|
|
43161
|
+
}
|
|
43162
|
+
_createValue(itemAttr, itemGroup, itemGroupName) {
|
|
43163
|
+
var _a;
|
|
43164
|
+
if (isVisible(itemAttr.value)) {
|
|
43165
|
+
let element;
|
|
43166
|
+
return element = itemAttr.value.multiLine ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43167
|
+
visible: !0
|
|
43168
|
+
}, getRichTextAttribute(itemAttr.value)), {
|
|
43169
|
+
textBaseline: "top"
|
|
43170
|
+
}), "richtext") : "object" != typeof itemAttr.value.text || null === itemAttr.value.text || "rich" !== itemAttr.value.text.type && "html" !== itemAttr.value.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43171
|
+
visible: !0,
|
|
43172
|
+
text: null !== (_a = itemAttr.value.text) && void 0 !== _a ? _a : ""
|
|
43173
|
+
}, itemAttr.value), {
|
|
43174
|
+
textBaseline: "top"
|
|
43175
|
+
}), "text") : "rich" === itemAttr.value.text.type ? itemGroup.createOrUpdateChild(`${itemGroupName}-value`, Object.assign(Object.assign({
|
|
43176
|
+
visible: !0
|
|
43177
|
+
}, getRichTextAttribute(itemAttr.value)), {
|
|
43178
|
+
textBaseline: "top"
|
|
43179
|
+
}), "richtext") : itemGroup.createOrUpdateChild(`${itemGroupName}-value`, {
|
|
43180
|
+
html: Object.assign({
|
|
43181
|
+
dom: itemAttr.value.text.text,
|
|
43182
|
+
container: "",
|
|
43183
|
+
width: 30,
|
|
43184
|
+
height: 30,
|
|
43185
|
+
style: {}
|
|
43186
|
+
}, itemAttr.value)
|
|
43187
|
+
}, "richtext"), element;
|
|
43188
|
+
}
|
|
43189
|
+
}
|
|
43168
43190
|
setAttributes(params, forceUpdateTag) {
|
|
43169
43191
|
const keys = Object.keys(params);
|
|
43170
43192
|
this.attribute.autoCalculatePosition && keys.every(key => TOOLTIP_POSITION_ATTRIBUTES.includes(key)) ? (this._mergeAttributes(params, keys), isNil$1(this.attribute.panel.width) && this.attribute.autoMeasure && Tooltip.measureTooltip(this.attribute), Tooltip.calculateTooltipPosition(this.attribute), super.setAttributes({
|
|
@@ -51006,8 +51028,8 @@
|
|
|
51006
51028
|
};
|
|
51007
51029
|
|
|
51008
51030
|
const fadeIn = (element, options, animationParameters) => {
|
|
51009
|
-
var _a, _b, _c;
|
|
51010
|
-
const finalAttrs = element.getFinalGraphicAttributes();
|
|
51031
|
+
var _a, _b, _c, _d;
|
|
51032
|
+
const finalAttrs = null !== (_a = element.getFinalGraphicAttributes()) && void 0 !== _a ? _a : {};
|
|
51011
51033
|
return {
|
|
51012
51034
|
from: {
|
|
51013
51035
|
opacity: 0,
|
|
@@ -51015,9 +51037,9 @@
|
|
|
51015
51037
|
strokeOpacity: 0
|
|
51016
51038
|
},
|
|
51017
51039
|
to: {
|
|
51018
|
-
opacity: null !== (
|
|
51019
|
-
fillOpacity: null !== (
|
|
51020
|
-
strokeOpacity: null !== (
|
|
51040
|
+
opacity: null !== (_b = finalAttrs.opacity) && void 0 !== _b ? _b : 1,
|
|
51041
|
+
fillOpacity: null !== (_c = finalAttrs.fillOpacity) && void 0 !== _c ? _c : 1,
|
|
51042
|
+
strokeOpacity: null !== (_d = finalAttrs.strokeOpacity) && void 0 !== _d ? _d : 1
|
|
51021
51043
|
}
|
|
51022
51044
|
};
|
|
51023
51045
|
};
|
|
@@ -60023,11 +60045,18 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60023
60045
|
dependency: stateSignal
|
|
60024
60046
|
});
|
|
60025
60047
|
if (this._animationConfig.normal) {
|
|
60026
|
-
this.
|
|
60027
|
-
|
|
60048
|
+
if (!this._animationConfig.appear) {
|
|
60049
|
+
this._event.on(exports.VGRAMMAR_HOOK_EVENT.AFTER_DO_RENDER, () => {
|
|
60028
60050
|
this.runAnimationByState(AnimationStateEnum.normal);
|
|
60029
|
-
}
|
|
60030
|
-
}
|
|
60051
|
+
});
|
|
60052
|
+
}
|
|
60053
|
+
else {
|
|
60054
|
+
this._event.on(exports.VGRAMMAR_HOOK_EVENT.ANIMATION_END, ({ event }) => {
|
|
60055
|
+
if (event.mark === this.getProduct() && event.animationState === AnimationStateEnum.appear) {
|
|
60056
|
+
this.runAnimationByState(AnimationStateEnum.normal);
|
|
60057
|
+
}
|
|
60058
|
+
});
|
|
60059
|
+
}
|
|
60031
60060
|
}
|
|
60032
60061
|
}
|
|
60033
60062
|
}
|
|
@@ -66343,7 +66372,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66343
66372
|
registerComponentPlugin(CanvasTooltipHandler);
|
|
66344
66373
|
};
|
|
66345
66374
|
|
|
66346
|
-
const version = "1.11.
|
|
66375
|
+
const version = "1.11.4";
|
|
66347
66376
|
|
|
66348
66377
|
const addVChartProperty = (data, op) => {
|
|
66349
66378
|
const context = op.beforeCall();
|
|
@@ -70760,10 +70789,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70760
70789
|
this.calcScales(this._defaultBandInnerPadding, this._defaultBandOuterPadding);
|
|
70761
70790
|
}
|
|
70762
70791
|
axisHelper() {
|
|
70763
|
-
const getScale = (depth) => {
|
|
70792
|
+
const getScale = (depth = 0) => {
|
|
70764
70793
|
return this._scales[depth];
|
|
70765
70794
|
};
|
|
70766
|
-
const getBandwidth = (depth) => {
|
|
70795
|
+
const getBandwidth = (depth = 0) => {
|
|
70767
70796
|
return getScale(depth).bandwidth();
|
|
70768
70797
|
};
|
|
70769
70798
|
return {
|
|
@@ -71942,8 +71971,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
71942
71971
|
return this._chartData.getSeriesData(id, index);
|
|
71943
71972
|
}
|
|
71944
71973
|
_transformSpecScale() {
|
|
71945
|
-
var _a
|
|
71946
|
-
const scales =
|
|
71974
|
+
var _a;
|
|
71975
|
+
const scales = this._spec.scales ? [...this._spec.scales] : [];
|
|
71947
71976
|
let colorScaleSpec = scales.find(s => s.id === 'color');
|
|
71948
71977
|
const colorScheme = this.getColorScheme();
|
|
71949
71978
|
if (!colorScaleSpec) {
|
|
@@ -71969,7 +71998,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
71969
71998
|
}
|
|
71970
71999
|
}
|
|
71971
72000
|
}
|
|
71972
|
-
if (!((
|
|
72001
|
+
if (!((_a = colorScaleSpec.range) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
71973
72002
|
colorScaleSpec.range = getDataScheme(colorScheme);
|
|
71974
72003
|
colorScaleSpec.rangeTheme = true;
|
|
71975
72004
|
}
|
|
@@ -78911,7 +78940,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78911
78940
|
initGroupScales() {
|
|
78912
78941
|
}
|
|
78913
78942
|
axisHelper() {
|
|
78914
|
-
const getScale = (depth) => {
|
|
78943
|
+
const getScale = (depth = 0) => {
|
|
78915
78944
|
return this._scales[depth];
|
|
78916
78945
|
};
|
|
78917
78946
|
const helper = {
|
|
@@ -80480,7 +80509,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80480
80509
|
let pos;
|
|
80481
80510
|
if (isValid$1(originValue)) {
|
|
80482
80511
|
const index = binaryFuzzySearch(subTickData, tick => tick.value - originValue);
|
|
80483
|
-
const targetIndex = originValue > subTickData[index].value - step / 2
|
|
80512
|
+
const targetIndex = index >= subTickData.length || originValue > subTickData[index].value - step / 2
|
|
80484
80513
|
? Math.min(index, subTickData.length - 1)
|
|
80485
80514
|
: index > 0
|
|
80486
80515
|
? index - 1
|
|
@@ -80508,7 +80537,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80508
80537
|
const step = subTickData[1].value - subTickData[0].value;
|
|
80509
80538
|
const offsetAngle = degreeToRadian(tickMask.offsetAngle);
|
|
80510
80539
|
const index = binaryFuzzySearch(subTickData, tick => tick.value - originValue);
|
|
80511
|
-
const targetIndex = originValue > subTickData[index].value - step / 2
|
|
80540
|
+
const targetIndex = index >= subTickData.length || originValue > subTickData[index].value - step / 2
|
|
80512
80541
|
? Math.min(index, subTickData.length - 1)
|
|
80513
80542
|
: index > 0
|
|
80514
80543
|
? index - 1
|
|
@@ -88402,7 +88431,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88402
88431
|
return pointerSpec.height * this._computeLayoutRadius();
|
|
88403
88432
|
}
|
|
88404
88433
|
_getPointerAngle(datum) {
|
|
88405
|
-
|
|
88434
|
+
const scale = this.angleAxisHelper.getScale();
|
|
88435
|
+
const domain = scale.domain();
|
|
88436
|
+
const max = maxInArray(domain);
|
|
88437
|
+
const min = minInArray(domain);
|
|
88438
|
+
const angle = clamp$1(datum[this._angleField[0]], min, max);
|
|
88439
|
+
return this.angleAxisHelper.dataToPosition([angle]);
|
|
88406
88440
|
}
|
|
88407
88441
|
_getRotatedPointerCenterOffset(datum) {
|
|
88408
88442
|
var _a, _b, _c, _d;
|