@visactor/vchart 2.0.20 → 2.0.22-alpha.0
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 +50 -31
- package/build/index.js +50 -31
- package/build/index.min.js +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/callback-disappear.js +1 -2
- package/cjs/animation/index.js +2 -1
- package/cjs/constant/gradient.js +2 -1
- package/cjs/constant/scroll-bar.js +1 -2
- 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 +2 -2
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/instance-manager.js +1 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/util.js +1 -1
- package/cjs/core/vchart.js +1 -1
- package/cjs/data/initialize.js +1 -1
- package/cjs/data/register.js +1 -1
- package/cjs/typings/visual.d.ts +19 -1
- package/cjs/typings/visual.js.map +1 -1
- package/esm/animation/callback-disappear.js +1 -2
- package/esm/animation/index.js +2 -1
- package/esm/constant/gradient.js +2 -1
- package/esm/constant/scroll-bar.js +1 -2
- 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 +2 -2
- package/esm/core/index.js.map +1 -1
- package/esm/core/instance-manager.js +1 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/util.js +1 -1
- package/esm/core/vchart.js +1 -1
- package/esm/data/initialize.js +1 -1
- package/esm/data/register.js +1 -1
- package/esm/typings/visual.d.ts +19 -1
- package/esm/typings/visual.js.map +1 -1
- package/package.json +11 -7
package/build/index.es.js
CHANGED
|
@@ -16059,6 +16059,7 @@ const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "ancho
|
|
|
16059
16059
|
const tempConstantXYKey = ["x", "y"],
|
|
16060
16060
|
tempConstantScaleXYKey = ["scaleX", "scaleY"],
|
|
16061
16061
|
tempConstantAngleKey = ["angle"],
|
|
16062
|
+
builtinTextureTypes = new Set(["circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave"]),
|
|
16062
16063
|
point = new Point();
|
|
16063
16064
|
const NOWORK_ANIMATE_ATTR = {
|
|
16064
16065
|
strokeSeg: 1,
|
|
@@ -16115,7 +16116,7 @@ class Graphic extends Node {
|
|
|
16115
16116
|
}
|
|
16116
16117
|
constructor(params = {}) {
|
|
16117
16118
|
var _a;
|
|
16118
|
-
super(), this._AABBBounds = new AABBBounds(), this._updateTag = UpdateTag.INIT, this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background
|
|
16119
|
+
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), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
|
|
16119
16120
|
}
|
|
16120
16121
|
getGraphicService() {
|
|
16121
16122
|
var _a, _b;
|
|
@@ -16304,7 +16305,7 @@ class Graphic extends Node {
|
|
|
16304
16305
|
});
|
|
16305
16306
|
}
|
|
16306
16307
|
setAttributes(params, forceUpdateTag = !1, context) {
|
|
16307
|
-
params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background
|
|
16308
|
+
params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background && this.loadImage(params.background, !0), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._setAttributes(params, forceUpdateTag, context));
|
|
16308
16309
|
}
|
|
16309
16310
|
_setAttributes(params, forceUpdateTag = !1, context) {
|
|
16310
16311
|
const keys = Object.keys(params);
|
|
@@ -16319,7 +16320,7 @@ class Graphic extends Node {
|
|
|
16319
16320
|
const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
|
|
16320
16321
|
[key]: value
|
|
16321
16322
|
}, this.attribute, key, context);
|
|
16322
|
-
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);
|
|
16323
|
+
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) : "texture" === key && isExternalTexture(value) ? this.loadImage(value, !1) : "shadowGraphic" === key && this.setShadowGraphic(value);
|
|
16323
16324
|
}
|
|
16324
16325
|
needUpdateTags(keys, k = GRAPHIC_UPDATE_TAG_KEY) {
|
|
16325
16326
|
for (let i = 0; i < k.length; i++) {
|
|
@@ -16338,7 +16339,7 @@ class Graphic extends Node {
|
|
|
16338
16339
|
const context = {
|
|
16339
16340
|
type: AttributeUpdateType.INIT
|
|
16340
16341
|
};
|
|
16341
|
-
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background
|
|
16342
|
+
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background && this.loadImage(params.background, !0), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._updateTag = UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
|
|
16342
16343
|
}
|
|
16343
16344
|
translate(x, y) {
|
|
16344
16345
|
var _a, _b;
|
|
@@ -16728,6 +16729,9 @@ class Graphic extends Node {
|
|
|
16728
16729
|
function backgroundNotImage(image) {
|
|
16729
16730
|
return !(!image.fill && !image.stroke);
|
|
16730
16731
|
}
|
|
16732
|
+
function isExternalTexture(texture) {
|
|
16733
|
+
return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || isValidUrl$1(texture) || texture.includes("/") || isBase64$1(texture)) : isObject$2(texture));
|
|
16734
|
+
}
|
|
16731
16735
|
Graphic.userSymbolMap = {}, Graphic.mixin(EventTarget);
|
|
16732
16736
|
|
|
16733
16737
|
var GroupUpdateAABBBoundsMode;
|
|
@@ -20394,33 +20398,37 @@ class DefaultBaseTextureRenderContribution {
|
|
|
20394
20398
|
textureRatio = graphicAttribute.textureRatio,
|
|
20395
20399
|
textureOptions = null
|
|
20396
20400
|
} = graphic.attribute;
|
|
20397
|
-
let pattern =
|
|
20398
|
-
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
|
|
20402
|
-
|
|
20403
|
-
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20401
|
+
let pattern = null;
|
|
20402
|
+
const patternKey = this.getPatternCacheKey(texture, textureSize, texturePadding, textureColor, context.dpr);
|
|
20403
|
+
if (null !== patternKey && (pattern = this.textureMap.get(patternKey)), !pattern) {
|
|
20404
|
+
if ("string" == typeof texture) switch (texture) {
|
|
20405
|
+
case "circle":
|
|
20406
|
+
pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
|
|
20407
|
+
break;
|
|
20408
|
+
case "diamond":
|
|
20409
|
+
pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
|
|
20410
|
+
break;
|
|
20411
|
+
case "rect":
|
|
20412
|
+
pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
|
|
20413
|
+
break;
|
|
20414
|
+
case "vertical-line":
|
|
20415
|
+
pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20416
|
+
break;
|
|
20417
|
+
case "horizontal-line":
|
|
20418
|
+
pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20419
|
+
break;
|
|
20420
|
+
case "bias-lr":
|
|
20421
|
+
pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20422
|
+
break;
|
|
20423
|
+
case "bias-rl":
|
|
20424
|
+
pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20425
|
+
break;
|
|
20426
|
+
case "grid":
|
|
20427
|
+
pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
|
|
20428
|
+
}
|
|
20429
|
+
pattern || (pattern = this.createResourcePattern(texture, graphic, context)), pattern && null !== patternKey && this.textureMap.set(patternKey, pattern);
|
|
20422
20430
|
}
|
|
20423
|
-
if (textureOptions && textureOptions.dynamicTexture) {
|
|
20431
|
+
if ("string" == typeof texture && textureOptions && textureOptions.dynamicTexture) {
|
|
20424
20432
|
const {
|
|
20425
20433
|
gridConfig = {},
|
|
20426
20434
|
useNewCanvas: useNewCanvas
|
|
@@ -20476,6 +20484,17 @@ class DefaultBaseTextureRenderContribution {
|
|
|
20476
20484
|
}), x + b.x1 - x, y + b.y1 - y), context.restore();
|
|
20477
20485
|
}
|
|
20478
20486
|
}
|
|
20487
|
+
getPatternCacheKey(texture, textureSize, texturePadding, textureColor, dpr) {
|
|
20488
|
+
return "string" != typeof texture ? texture : "wave" === texture ? null : `${texture}-${textureSize}-${texturePadding}-${textureColor}-${dpr}`;
|
|
20489
|
+
}
|
|
20490
|
+
createResourcePattern(texture, graphic, context) {
|
|
20491
|
+
var _a;
|
|
20492
|
+
const resource = null === (_a = graphic.resources) || void 0 === _a ? void 0 : _a.get(texture),
|
|
20493
|
+
data = "success" === (null == resource ? void 0 : resource.state) ? resource.data : "object" == typeof texture ? texture : null;
|
|
20494
|
+
if (!data) return null;
|
|
20495
|
+
const pattern = context.createPattern(data, "repeat");
|
|
20496
|
+
return (null == pattern ? void 0 : pattern.setTransform) && pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, 0, 0])), pattern;
|
|
20497
|
+
}
|
|
20479
20498
|
}
|
|
20480
20499
|
const defaultBaseTextureRenderContribution = new DefaultBaseTextureRenderContribution();
|
|
20481
20500
|
|
|
@@ -61929,7 +61948,7 @@ const lookup = (data, opt) => {
|
|
|
61929
61948
|
});
|
|
61930
61949
|
};
|
|
61931
61950
|
|
|
61932
|
-
const version = "2.0.
|
|
61951
|
+
const version = "2.0.21";
|
|
61933
61952
|
|
|
61934
61953
|
const addVChartProperty = (data, op) => {
|
|
61935
61954
|
const context = op.beforeCall();
|
package/build/index.js
CHANGED
|
@@ -16065,6 +16065,7 @@
|
|
|
16065
16065
|
const tempConstantXYKey = ["x", "y"],
|
|
16066
16066
|
tempConstantScaleXYKey = ["scaleX", "scaleY"],
|
|
16067
16067
|
tempConstantAngleKey = ["angle"],
|
|
16068
|
+
builtinTextureTypes = new Set(["circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave"]),
|
|
16068
16069
|
point = new Point();
|
|
16069
16070
|
const NOWORK_ANIMATE_ATTR = {
|
|
16070
16071
|
strokeSeg: 1,
|
|
@@ -16121,7 +16122,7 @@
|
|
|
16121
16122
|
}
|
|
16122
16123
|
constructor(params = {}) {
|
|
16123
16124
|
var _a;
|
|
16124
|
-
super(), this._AABBBounds = new AABBBounds(), this._updateTag = UpdateTag.INIT, this.attribute = params, this.valid = this.isValid(), this.updateAABBBoundsStamp = 0, params.background
|
|
16125
|
+
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), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic);
|
|
16125
16126
|
}
|
|
16126
16127
|
getGraphicService() {
|
|
16127
16128
|
var _a, _b;
|
|
@@ -16310,7 +16311,7 @@
|
|
|
16310
16311
|
});
|
|
16311
16312
|
}
|
|
16312
16313
|
setAttributes(params, forceUpdateTag = !1, context) {
|
|
16313
|
-
params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background
|
|
16314
|
+
params && ((params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params).background && this.loadImage(params.background, !0), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._setAttributes(params, forceUpdateTag, context));
|
|
16314
16315
|
}
|
|
16315
16316
|
_setAttributes(params, forceUpdateTag = !1, context) {
|
|
16316
16317
|
const keys = Object.keys(params);
|
|
@@ -16325,7 +16326,7 @@
|
|
|
16325
16326
|
const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
|
|
16326
16327
|
[key]: value
|
|
16327
16328
|
}, this.attribute, key, context);
|
|
16328
|
-
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);
|
|
16329
|
+
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) : "texture" === key && isExternalTexture(value) ? this.loadImage(value, !1) : "shadowGraphic" === key && this.setShadowGraphic(value);
|
|
16329
16330
|
}
|
|
16330
16331
|
needUpdateTags(keys, k = GRAPHIC_UPDATE_TAG_KEY) {
|
|
16331
16332
|
for (let i = 0; i < k.length; i++) {
|
|
@@ -16344,7 +16345,7 @@
|
|
|
16344
16345
|
const context = {
|
|
16345
16346
|
type: AttributeUpdateType.INIT
|
|
16346
16347
|
};
|
|
16347
|
-
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background
|
|
16348
|
+
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background && this.loadImage(params.background, !0), isExternalTexture(params.texture) ? this.loadImage(params.texture, !1) : params.shadowGraphic && this.setShadowGraphic(params.shadowGraphic), this._updateTag = UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
|
|
16348
16349
|
}
|
|
16349
16350
|
translate(x, y) {
|
|
16350
16351
|
var _a, _b;
|
|
@@ -16734,6 +16735,9 @@
|
|
|
16734
16735
|
function backgroundNotImage(image) {
|
|
16735
16736
|
return !(!image.fill && !image.stroke);
|
|
16736
16737
|
}
|
|
16738
|
+
function isExternalTexture(texture) {
|
|
16739
|
+
return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || isValidUrl$1(texture) || texture.includes("/") || isBase64$1(texture)) : isObject$2(texture));
|
|
16740
|
+
}
|
|
16737
16741
|
Graphic.userSymbolMap = {}, Graphic.mixin(EventTarget);
|
|
16738
16742
|
|
|
16739
16743
|
var GroupUpdateAABBBoundsMode;
|
|
@@ -20400,33 +20404,37 @@
|
|
|
20400
20404
|
textureRatio = graphicAttribute.textureRatio,
|
|
20401
20405
|
textureOptions = null
|
|
20402
20406
|
} = graphic.attribute;
|
|
20403
|
-
let pattern =
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
-
|
|
20420
|
-
|
|
20421
|
-
|
|
20422
|
-
|
|
20423
|
-
|
|
20424
|
-
|
|
20425
|
-
|
|
20426
|
-
|
|
20427
|
-
|
|
20407
|
+
let pattern = null;
|
|
20408
|
+
const patternKey = this.getPatternCacheKey(texture, textureSize, texturePadding, textureColor, context.dpr);
|
|
20409
|
+
if (null !== patternKey && (pattern = this.textureMap.get(patternKey)), !pattern) {
|
|
20410
|
+
if ("string" == typeof texture) switch (texture) {
|
|
20411
|
+
case "circle":
|
|
20412
|
+
pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
|
|
20413
|
+
break;
|
|
20414
|
+
case "diamond":
|
|
20415
|
+
pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
|
|
20416
|
+
break;
|
|
20417
|
+
case "rect":
|
|
20418
|
+
pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
|
|
20419
|
+
break;
|
|
20420
|
+
case "vertical-line":
|
|
20421
|
+
pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20422
|
+
break;
|
|
20423
|
+
case "horizontal-line":
|
|
20424
|
+
pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20425
|
+
break;
|
|
20426
|
+
case "bias-lr":
|
|
20427
|
+
pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20428
|
+
break;
|
|
20429
|
+
case "bias-rl":
|
|
20430
|
+
pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
|
|
20431
|
+
break;
|
|
20432
|
+
case "grid":
|
|
20433
|
+
pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
|
|
20434
|
+
}
|
|
20435
|
+
pattern || (pattern = this.createResourcePattern(texture, graphic, context)), pattern && null !== patternKey && this.textureMap.set(patternKey, pattern);
|
|
20428
20436
|
}
|
|
20429
|
-
if (textureOptions && textureOptions.dynamicTexture) {
|
|
20437
|
+
if ("string" == typeof texture && textureOptions && textureOptions.dynamicTexture) {
|
|
20430
20438
|
const {
|
|
20431
20439
|
gridConfig = {},
|
|
20432
20440
|
useNewCanvas: useNewCanvas
|
|
@@ -20482,6 +20490,17 @@
|
|
|
20482
20490
|
}), x + b.x1 - x, y + b.y1 - y), context.restore();
|
|
20483
20491
|
}
|
|
20484
20492
|
}
|
|
20493
|
+
getPatternCacheKey(texture, textureSize, texturePadding, textureColor, dpr) {
|
|
20494
|
+
return "string" != typeof texture ? texture : "wave" === texture ? null : `${texture}-${textureSize}-${texturePadding}-${textureColor}-${dpr}`;
|
|
20495
|
+
}
|
|
20496
|
+
createResourcePattern(texture, graphic, context) {
|
|
20497
|
+
var _a;
|
|
20498
|
+
const resource = null === (_a = graphic.resources) || void 0 === _a ? void 0 : _a.get(texture),
|
|
20499
|
+
data = "success" === (null == resource ? void 0 : resource.state) ? resource.data : "object" == typeof texture ? texture : null;
|
|
20500
|
+
if (!data) return null;
|
|
20501
|
+
const pattern = context.createPattern(data, "repeat");
|
|
20502
|
+
return (null == pattern ? void 0 : pattern.setTransform) && pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, 0, 0])), pattern;
|
|
20503
|
+
}
|
|
20485
20504
|
}
|
|
20486
20505
|
const defaultBaseTextureRenderContribution = new DefaultBaseTextureRenderContribution();
|
|
20487
20506
|
|
|
@@ -61935,7 +61954,7 @@
|
|
|
61935
61954
|
});
|
|
61936
61955
|
};
|
|
61937
61956
|
|
|
61938
|
-
const version = "2.0.
|
|
61957
|
+
const version = "2.0.21";
|
|
61939
61958
|
|
|
61940
61959
|
const addVChartProperty = (data, op) => {
|
|
61941
61960
|
const context = op.beforeCall();
|