@visactor/react-vchart 2.0.23-alpha.0 → 2.0.23-alpha.2
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/index.js +74 -135
- package/build/index.min.js +3 -3
- package/cjs/components/MarkArea.js +2 -1
- package/cjs/components/ScrollBar.js +1 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/esm/components/MarkArea.js +2 -1
- package/esm/components/ScrollBar.js +1 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/package.json +7 -7
package/build/index.js
CHANGED
|
@@ -14571,7 +14571,6 @@
|
|
|
14571
14571
|
const tempConstantXYKey = ["x", "y"],
|
|
14572
14572
|
tempConstantScaleXYKey = ["scaleX", "scaleY"],
|
|
14573
14573
|
tempConstantAngleKey = ["angle"],
|
|
14574
|
-
builtinTextureTypes = new Set(["circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave"]),
|
|
14575
14574
|
point = new Point();
|
|
14576
14575
|
const NOWORK_ANIMATE_ATTR = {
|
|
14577
14576
|
strokeSeg: 1,
|
|
@@ -14628,7 +14627,7 @@
|
|
|
14628
14627
|
}
|
|
14629
14628
|
constructor(params = {}) {
|
|
14630
14629
|
var _a;
|
|
14631
|
-
super(), this._AABBBounds = new AABBBounds(), this._updateTag = UpdateTag.INIT, this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background
|
|
14630
|
+
super(), this._AABBBounds = new AABBBounds(), this._updateTag = UpdateTag.INIT, this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background ? this.loadImage(null !== (_a = params.background.background) && void 0 !== _a ? _a : params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
|
|
14632
14631
|
}
|
|
14633
14632
|
getGraphicService() {
|
|
14634
14633
|
var _a, _b;
|
|
@@ -14817,7 +14816,7 @@
|
|
|
14817
14816
|
});
|
|
14818
14817
|
}
|
|
14819
14818
|
setAttributes(params, forceUpdateTag = !1, context) {
|
|
14820
|
-
params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background
|
|
14819
|
+
params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background ? this.loadImage(params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._setAttributes(params, forceUpdateTag, context));
|
|
14821
14820
|
}
|
|
14822
14821
|
_setAttributes(params, forceUpdateTag = !1, context) {
|
|
14823
14822
|
const keys = Object.keys(params);
|
|
@@ -14832,7 +14831,7 @@
|
|
|
14832
14831
|
const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
|
|
14833
14832
|
[key]: value
|
|
14834
14833
|
}, this.attribute, key, context);
|
|
14835
|
-
params ? this._setAttributes(params, forceUpdateTag, context) : isNil$1(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value, this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value, "background" === key ? this.loadImage(value, !0) : "
|
|
14834
|
+
params ? this._setAttributes(params, forceUpdateTag, context) : isNil$1(null === (_a = this.normalAttrs) || void 0 === _a ? void 0 : _a[key]) ? (this.attribute[key] = value, this.valid = this.isValid(), this.updateShapeAndBoundsTagSetted() || !forceUpdateTag && !this.needUpdateTag(key) ? this.addUpdateBoundTag() : this.addUpdateShapeAndBoundsTag(), this.addUpdatePositionTag(), this.addUpdateLayoutTag(), this.onAttributeUpdate(context)) : this.normalAttrs[key] = value, "background" === key ? this.loadImage(value, !0) : "shadowGraphic" === key && this.setShadowGraphic(value);
|
|
14836
14835
|
}
|
|
14837
14836
|
needUpdateTags(keys, k = GRAPHIC_UPDATE_TAG_KEY) {
|
|
14838
14837
|
for (let i = 0; i < k.length; i++) {
|
|
@@ -14851,7 +14850,7 @@
|
|
|
14851
14850
|
const context = {
|
|
14852
14851
|
type: AttributeUpdateType.INIT
|
|
14853
14852
|
};
|
|
14854
|
-
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background
|
|
14853
|
+
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background ? this.loadImage(params.background, !0) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._updateTag = UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
|
|
14855
14854
|
}
|
|
14856
14855
|
translate(x, y) {
|
|
14857
14856
|
var _a, _b;
|
|
@@ -15242,9 +15241,6 @@
|
|
|
15242
15241
|
function backgroundNotImage(image) {
|
|
15243
15242
|
return "string" == typeof image ? !(image.startsWith("<svg") || isValidUrl$1(image) || image.includes("/") || isBase64$1(image)) : !(!image.fill && !image.stroke) || !("string" != typeof image.gradient || !Array.isArray(image.stops));
|
|
15244
15243
|
}
|
|
15245
|
-
function isExternalTexture(texture) {
|
|
15246
|
-
return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || isValidUrl$1(texture) || texture.includes("/") || isBase64$1(texture)) : isObject$2(texture));
|
|
15247
|
-
}
|
|
15248
15244
|
Graphic.userSymbolMap = {}, Graphic.mixin(EventTarget);
|
|
15249
15245
|
|
|
15250
15246
|
var GroupUpdateAABBBoundsMode;
|
|
@@ -18896,7 +18892,6 @@
|
|
|
18896
18892
|
}
|
|
18897
18893
|
const defaultBaseClipRenderAfterContribution = new DefaultBaseClipRenderAfterContribution();
|
|
18898
18894
|
|
|
18899
|
-
const builtinProceduralTextureTypes = new Set(["circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid"]);
|
|
18900
18895
|
function formatRatio(ratio) {
|
|
18901
18896
|
return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
|
|
18902
18897
|
}
|
|
@@ -19010,43 +19005,38 @@
|
|
|
19010
19005
|
texture && this.drawTexture(texture, graphic, context, x, y, graphicAttribute, textureColor, textureSize, texturePadding);
|
|
19011
19006
|
}
|
|
19012
19007
|
drawTexture(texture, graphic, context, x, y, graphicAttribute, textureColor, textureSize, texturePadding) {
|
|
19013
|
-
var _a
|
|
19008
|
+
var _a;
|
|
19014
19009
|
const {
|
|
19015
19010
|
textureRatio = graphicAttribute.textureRatio,
|
|
19016
19011
|
textureOptions = null
|
|
19017
19012
|
} = graphic.attribute;
|
|
19018
|
-
let pattern =
|
|
19019
|
-
|
|
19020
|
-
|
|
19021
|
-
|
|
19022
|
-
|
|
19023
|
-
|
|
19024
|
-
|
|
19025
|
-
|
|
19026
|
-
|
|
19027
|
-
|
|
19028
|
-
|
|
19029
|
-
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
|
|
19033
|
-
|
|
19034
|
-
|
|
19035
|
-
|
|
19036
|
-
|
|
19037
|
-
|
|
19038
|
-
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
|
|
19043
|
-
break;
|
|
19044
|
-
case "grid":
|
|
19045
|
-
pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
|
|
19046
|
-
}
|
|
19047
|
-
pattern || (pattern = this.createResourcePattern(texture, graphic, context, texturePadding, textureRadius)), pattern && null !== patternKey && this.textureMap.set(patternKey, pattern);
|
|
19013
|
+
let pattern = this.textureMap.get(texture);
|
|
19014
|
+
if (!pattern) switch (texture) {
|
|
19015
|
+
case "circle":
|
|
19016
|
+
pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
|
|
19017
|
+
break;
|
|
19018
|
+
case "diamond":
|
|
19019
|
+
pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
|
|
19020
|
+
break;
|
|
19021
|
+
case "rect":
|
|
19022
|
+
pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
|
|
19023
|
+
break;
|
|
19024
|
+
case "vertical-line":
|
|
19025
|
+
pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
19026
|
+
break;
|
|
19027
|
+
case "horizontal-line":
|
|
19028
|
+
pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
19029
|
+
break;
|
|
19030
|
+
case "bias-lr":
|
|
19031
|
+
pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
|
|
19032
|
+
break;
|
|
19033
|
+
case "bias-rl":
|
|
19034
|
+
pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
|
|
19035
|
+
break;
|
|
19036
|
+
case "grid":
|
|
19037
|
+
pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
|
|
19048
19038
|
}
|
|
19049
|
-
if (
|
|
19039
|
+
if (textureOptions && textureOptions.dynamicTexture) {
|
|
19050
19040
|
const {
|
|
19051
19041
|
gridConfig = {},
|
|
19052
19042
|
useNewCanvas: useNewCanvas
|
|
@@ -19091,24 +19081,10 @@
|
|
|
19091
19081
|
for (let i = 0; i < gridRows; i++) for (let j = 0; j < gridColumns; j++) {
|
|
19092
19082
|
const _x = x + cellSize / 2 + j * cellSize,
|
|
19093
19083
|
_y = y + cellSize / 2 + i * cellSize;
|
|
19094
|
-
null === (
|
|
19084
|
+
null === (_a = textureOptions.beforeDynamicTexture) || void 0 === _a || _a.call(textureOptions, context, i, j, gridRows, gridColumns, textureRatio, graphic, b.width(), b.height()), context.beginPath(), !1 === parsedPath.draw(context, Math.min(sizeW - gutterColumn, sizeH - gutterRow), _x, _y, 0) && context.closePath(), context.fillStyle = textureColor, textureOptions.dynamicTexture(context, i, j, gridRows, gridColumns, textureRatio, graphic, b.width(), b.height());
|
|
19095
19085
|
}
|
|
19096
19086
|
useNewCanvas && (originalContext.globalAlpha = 1, originalContext.drawImage(newCanvas.nativeCanvas, 0, 0, newCanvas.nativeCanvas.width, newCanvas.nativeCanvas.height, b.x1, b.y1, b.width() * originalContext.dpr, b.height() * originalContext.dpr)), originalContext.restore();
|
|
19097
|
-
} else if (pattern) {
|
|
19098
|
-
if (pattern.setTransform) {
|
|
19099
|
-
const alignToGraphic = !!(null == textureOptions ? void 0 : textureOptions.alignToGraphic),
|
|
19100
|
-
alignOffsetX = null !== (_c = null == textureOptions ? void 0 : textureOptions.alignOffsetX) && void 0 !== _c ? _c : 0,
|
|
19101
|
-
alignOffsetY = null !== (_d = null == textureOptions ? void 0 : textureOptions.alignOffsetY) && void 0 !== _d ? _d : 0;
|
|
19102
|
-
let translateX = 0,
|
|
19103
|
-
translateY = 0;
|
|
19104
|
-
if (alignToGraphic) {
|
|
19105
|
-
const m = context.currentMatrix;
|
|
19106
|
-
translateX = (null !== (_e = null == m ? void 0 : m.e) && void 0 !== _e ? _e : 0) + x + alignOffsetX, translateY = (null !== (_f = null == m ? void 0 : m.f) && void 0 !== _f ? _f : 0) + y + alignOffsetY;
|
|
19107
|
-
} else (alignOffsetX || alignOffsetY) && (translateX = alignOffsetX, translateY = alignOffsetY);
|
|
19108
|
-
pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, translateX, translateY]));
|
|
19109
|
-
}
|
|
19110
|
-
context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore();
|
|
19111
|
-
} else if ("wave" === texture) {
|
|
19087
|
+
} else if (pattern) context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore();else if ("wave" === texture) {
|
|
19112
19088
|
context.save(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.clip();
|
|
19113
19089
|
const b = graphic.AABBBounds;
|
|
19114
19090
|
drawWave(context, textureRatio, b.width(), b.height(), Object.assign(Object.assign({}, textureOptions || {}), {
|
|
@@ -19116,45 +19092,6 @@
|
|
|
19116
19092
|
}), x + b.x1 - x, y + b.y1 - y), context.restore();
|
|
19117
19093
|
}
|
|
19118
19094
|
}
|
|
19119
|
-
getPatternCacheKey(texture, textureSize, texturePadding, textureColor, dpr, textureRadius) {
|
|
19120
|
-
return "string" != typeof texture ? texturePadding > 0 || textureRadius > 0 ? null : texture : "wave" === texture ? null : builtinProceduralTextureTypes.has(texture) ? `builtin:${texture}|size:${textureSize}|padding:${texturePadding}|color:${textureColor}|dpr:${dpr}` : `resource:${texture}|padding:${texturePadding}|radius:${textureRadius}|dpr:${dpr}`;
|
|
19121
|
-
}
|
|
19122
|
-
createResourcePattern(texture, graphic, context, texturePadding, textureRadius) {
|
|
19123
|
-
var _a;
|
|
19124
|
-
const resource = null === (_a = graphic.resources) || void 0 === _a ? void 0 : _a.get(texture),
|
|
19125
|
-
data = "success" === (null == resource ? void 0 : resource.state) ? resource.data : "object" == typeof texture ? texture : null;
|
|
19126
|
-
if (!data) return null;
|
|
19127
|
-
if (texturePadding > 0 || textureRadius > 0) {
|
|
19128
|
-
const w = data.naturalWidth || data.width,
|
|
19129
|
-
h = data.naturalHeight || data.height;
|
|
19130
|
-
if (w > 0 && h > 0) {
|
|
19131
|
-
const tileW = w + 2 * texturePadding,
|
|
19132
|
-
tileH = h + 2 * texturePadding,
|
|
19133
|
-
canvas = canvasAllocate.allocate({
|
|
19134
|
-
width: tileW,
|
|
19135
|
-
height: tileH,
|
|
19136
|
-
dpr: context.dpr
|
|
19137
|
-
}),
|
|
19138
|
-
ctx = canvas.getContext("2d");
|
|
19139
|
-
if (ctx) {
|
|
19140
|
-
if (ctx.inuse = !0, ctx.clearMatrix(), ctx.setTransformForCurrent(!0), ctx.clearRect(0, 0, tileW, tileH), textureRadius > 0) {
|
|
19141
|
-
const r = Math.max(0, Math.min(textureRadius, Math.min(w, h) / 2)),
|
|
19142
|
-
x0 = texturePadding,
|
|
19143
|
-
y0 = texturePadding,
|
|
19144
|
-
x1 = x0 + w,
|
|
19145
|
-
y1 = y0 + h;
|
|
19146
|
-
ctx.beginPath(), ctx.moveTo(x0 + r, y0), ctx.lineTo(x1 - r, y0), ctx.quadraticCurveTo(x1, y0, x1, y0 + r), ctx.lineTo(x1, y1 - r), ctx.quadraticCurveTo(x1, y1, x1 - r, y1), ctx.lineTo(x0 + r, y1), ctx.quadraticCurveTo(x0, y1, x0, y1 - r), ctx.lineTo(x0, y0 + r), ctx.quadraticCurveTo(x0, y0, x0 + r, y0), ctx.closePath(), ctx.clip();
|
|
19147
|
-
}
|
|
19148
|
-
ctx.drawImage(data, texturePadding, texturePadding, w, h);
|
|
19149
|
-
const pattern = context.createPattern(canvas.nativeCanvas, "repeat");
|
|
19150
|
-
return (null == pattern ? void 0 : pattern.setTransform) && pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, 0, 0])), canvasAllocate.free(canvas), pattern;
|
|
19151
|
-
}
|
|
19152
|
-
canvasAllocate.free(canvas);
|
|
19153
|
-
}
|
|
19154
|
-
}
|
|
19155
|
-
const pattern = context.createPattern(data, "repeat");
|
|
19156
|
-
return (null == pattern ? void 0 : pattern.setTransform) && pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, 0, 0])), pattern;
|
|
19157
|
-
}
|
|
19158
19095
|
}
|
|
19159
19096
|
const defaultBaseTextureRenderContribution = new DefaultBaseTextureRenderContribution();
|
|
19160
19097
|
|
|
@@ -52017,8 +51954,7 @@
|
|
|
52017
51954
|
this._option.layout = layout, null === (_a = this._chart) || void 0 === _a || _a.setLayout(layout);
|
|
52018
51955
|
}
|
|
52019
51956
|
reLayout() {
|
|
52020
|
-
|
|
52021
|
-
null === (_a = this._chart) || void 0 === _a || _a.resetLayoutItemTag(), null === (_b = this._chart) || void 0 === _b || _b.setLayoutTag(!0, null, !1), null === (_c = this._compiler) || void 0 === _c || _c.render();
|
|
51957
|
+
this._chart && this._compiler && !this._isReleased && (this._chart.resetLayoutItemTag(), this._chart.setLayoutTag(!0, null, !1), this._compiler.render(), this._chart.onEvaluateEnd());
|
|
52022
51958
|
}
|
|
52023
51959
|
getCompiler() {
|
|
52024
51960
|
return this._compiler;
|
|
@@ -60642,29 +60578,44 @@
|
|
|
60642
60578
|
visible: this._getInvalidDefined.bind(this)
|
|
60643
60579
|
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series));
|
|
60644
60580
|
}
|
|
60645
|
-
|
|
60646
|
-
var _a
|
|
60647
|
-
this.
|
|
60648
|
-
|
|
60649
|
-
|
|
60650
|
-
|
|
60651
|
-
|
|
60652
|
-
|
|
60653
|
-
|
|
60654
|
-
|
|
60581
|
+
_updateSymbolGraphicPosition() {
|
|
60582
|
+
var _a;
|
|
60583
|
+
const graphics = null === (_a = this._symbolMark) || void 0 === _a ? void 0 : _a.getGraphics();
|
|
60584
|
+
graphics && graphics.length && graphics.forEach(graphicItem => {
|
|
60585
|
+
var _a, _b;
|
|
60586
|
+
const datum = null === (_b = null === (_a = null == graphicItem ? void 0 : graphicItem.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0],
|
|
60587
|
+
newPosition = this.dataToPosition(datum);
|
|
60588
|
+
newPosition && graphicItem && graphicItem.setAttributes({
|
|
60589
|
+
x: newPosition.x,
|
|
60590
|
+
y: newPosition.y
|
|
60655
60591
|
});
|
|
60656
60592
|
});
|
|
60657
|
-
|
|
60658
|
-
|
|
60659
|
-
|
|
60660
|
-
(null
|
|
60661
|
-
|
|
60662
|
-
labelGroup && (null == e ? void 0 : e.scale) && (null == e ? void 0 : e.scaleCenter) && ((null === (_d = labelGroup.attribute) || void 0 === _d ? void 0 : _d.postMatrix) || labelGroup.setAttributes({
|
|
60593
|
+
}
|
|
60594
|
+
_ensureLabelGraphicPostMatrix() {
|
|
60595
|
+
var _a, _b;
|
|
60596
|
+
const labelGraphic = null === (_b = null === (_a = this._labelMark) || void 0 === _a ? void 0 : _a.getComponent()) || void 0 === _b ? void 0 : _b.getComponent();
|
|
60597
|
+
return labelGraphic && !labelGraphic.attribute.postMatrix && labelGraphic.setAttributes({
|
|
60663
60598
|
postMatrix: new Matrix()
|
|
60664
|
-
}),
|
|
60599
|
+
}), labelGraphic;
|
|
60600
|
+
}
|
|
60601
|
+
handleZoom(e) {
|
|
60602
|
+
const {
|
|
60603
|
+
scale: scale,
|
|
60604
|
+
scaleCenter: scaleCenter
|
|
60605
|
+
} = e;
|
|
60606
|
+
if (1 === scale) return;
|
|
60607
|
+
this._updateSymbolGraphicPosition();
|
|
60608
|
+
const labelGraphic = this._ensureLabelGraphicPostMatrix();
|
|
60609
|
+
labelGraphic && labelGraphic.scale(scale, scale, scaleCenter);
|
|
60665
60610
|
}
|
|
60666
60611
|
handlePan(e) {
|
|
60667
|
-
|
|
60612
|
+
const {
|
|
60613
|
+
delta: delta
|
|
60614
|
+
} = e;
|
|
60615
|
+
if (0 === (null == delta ? void 0 : delta[0]) && 0 === (null == delta ? void 0 : delta[1])) return;
|
|
60616
|
+
this._updateSymbolGraphicPosition();
|
|
60617
|
+
const labelGraphic = this._ensureLabelGraphicPostMatrix();
|
|
60618
|
+
labelGraphic && labelGraphic.translate(delta[0], delta[1]);
|
|
60668
60619
|
}
|
|
60669
60620
|
getDefaultShapeType() {
|
|
60670
60621
|
return "circle";
|
|
@@ -61688,7 +61639,7 @@
|
|
|
61688
61639
|
super.release(), this._areaCache.clear(), this._nameMap = {}, this._mapViewData = null;
|
|
61689
61640
|
}
|
|
61690
61641
|
handleZoom(e) {
|
|
61691
|
-
var _a
|
|
61642
|
+
var _a;
|
|
61692
61643
|
const {
|
|
61693
61644
|
scale: scale,
|
|
61694
61645
|
scaleCenter: scaleCenter
|
|
@@ -61698,17 +61649,11 @@
|
|
|
61698
61649
|
pathGroup && (pathGroup.attribute.postMatrix || pathGroup.setAttributes({
|
|
61699
61650
|
postMatrix: new Matrix()
|
|
61700
61651
|
}), pathGroup.scale(scale, scale, scaleCenter));
|
|
61701
|
-
const
|
|
61702
|
-
|
|
61703
|
-
const vgrammarLabel = null === (_b = null == labelComponent ? void 0 : labelComponent.getComponent) || void 0 === _b ? void 0 : _b.call(labelComponent);
|
|
61704
|
-
(null == vgrammarLabel ? void 0 : vgrammarLabel.evaluate) && vgrammarLabel.evaluate(null, null);
|
|
61705
|
-
const labelGroup = null === (_c = null == labelComponent ? void 0 : labelComponent.getProduct) || void 0 === _c ? void 0 : _c.call(labelComponent);
|
|
61706
|
-
labelGroup && scale && scaleCenter && ((null === (_d = labelGroup.attribute) || void 0 === _d ? void 0 : _d.postMatrix) || labelGroup.setAttributes({
|
|
61707
|
-
postMatrix: new Matrix()
|
|
61708
|
-
}), labelGroup.scale(scale, scale, scaleCenter));
|
|
61652
|
+
const vgrammarLabel = null === (_a = this._labelMark) || void 0 === _a ? void 0 : _a.getComponent();
|
|
61653
|
+
vgrammarLabel && vgrammarLabel.renderInner();
|
|
61709
61654
|
}
|
|
61710
61655
|
handlePan(e) {
|
|
61711
|
-
var _a
|
|
61656
|
+
var _a;
|
|
61712
61657
|
const {
|
|
61713
61658
|
delta: delta
|
|
61714
61659
|
} = e;
|
|
@@ -61717,14 +61662,8 @@
|
|
|
61717
61662
|
pathGroup && (pathGroup.attribute.postMatrix || pathGroup.setAttributes({
|
|
61718
61663
|
postMatrix: new Matrix()
|
|
61719
61664
|
}), pathGroup.translate(delta[0], delta[1]));
|
|
61720
|
-
const
|
|
61721
|
-
|
|
61722
|
-
const vgrammarLabel = null === (_b = null == labelComponent ? void 0 : labelComponent.getComponent) || void 0 === _b ? void 0 : _b.call(labelComponent);
|
|
61723
|
-
(null == vgrammarLabel ? void 0 : vgrammarLabel.evaluate) && vgrammarLabel.evaluate(null, null);
|
|
61724
|
-
const labelGroup = null === (_c = null == labelComponent ? void 0 : labelComponent.getProduct) || void 0 === _c ? void 0 : _c.call(labelComponent);
|
|
61725
|
-
labelGroup && delta && ((null === (_d = labelGroup.attribute) || void 0 === _d ? void 0 : _d.postMatrix) || labelGroup.setAttributes({
|
|
61726
|
-
postMatrix: new Matrix()
|
|
61727
|
-
}), labelGroup.translate(delta[0], delta[1]));
|
|
61665
|
+
const vgrammarLabel = null === (_a = this._labelMark) || void 0 === _a ? void 0 : _a.getComponent();
|
|
61666
|
+
vgrammarLabel && vgrammarLabel.renderInner();
|
|
61728
61667
|
}
|
|
61729
61668
|
getDatumCenter(datum) {
|
|
61730
61669
|
var _a, _b, _c, _d;
|
|
@@ -89318,7 +89257,7 @@
|
|
|
89318
89257
|
|
|
89319
89258
|
const VChartSimple = createChart('VChartSimple');
|
|
89320
89259
|
|
|
89321
|
-
const version = "2.0.
|
|
89260
|
+
const version = "2.0.22";
|
|
89322
89261
|
|
|
89323
89262
|
exports.Area = Area;
|
|
89324
89263
|
exports.AreaChart = AreaChart;
|