@visactor/vrender-components 1.0.46-alpha.2 → 1.0.46-alpha.3

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/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.0.46-alpha.2";
1
+ export declare const version = "1.0.46-alpha.3";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/cjs/index.js CHANGED
@@ -17,7 +17,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), exports.version = void 0, exports.version = "1.0.46-alpha.2", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "1.0.46-alpha.3", __exportStar(require("./core/base"), exports),
21
21
  __exportStar(require("./core/type"), exports), __exportStar(require("./scrollbar"), exports),
22
22
  __exportStar(require("./tag"), exports), __exportStar(require("./poptip"), exports),
23
23
  __exportStar(require("./crosshair"), exports), __exportStar(require("./label"), exports),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.46-alpha.2\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,8CAA4B;AAC5B,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,6CAA2B;AAC3B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,4CAA0B;AAC1B,yCAAuB;AACvB,2CAAyB;AACzB,+CAA6B;AAC7B,wDAAsC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.46-alpha.3\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
package/dist/index.es.js CHANGED
@@ -2394,9 +2394,7 @@ const DefaultStyle = Object.assign(Object.assign(Object.assign(Object.assign({
2394
2394
  background: null,
2395
2395
  autoAnimateTexture: !1,
2396
2396
  textureRatio: 1,
2397
- textureOptions: {
2398
- alignToGraphic: !0
2399
- },
2397
+ textureOptions: null,
2400
2398
  backgroundOpacity: 1,
2401
2399
  backgroundCornerRadius: 0,
2402
2400
  texture: null,
@@ -6231,7 +6229,6 @@ const GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "ancho
6231
6229
  const tempConstantXYKey = ["x", "y"],
6232
6230
  tempConstantScaleXYKey = ["scaleX", "scaleY"],
6233
6231
  tempConstantAngleKey = ["angle"],
6234
- builtinTextureTypes = new Set(["circle", "diamond", "rect", "vertical-line", "horizontal-line", "bias-lr", "bias-rl", "grid", "wave"]),
6235
6232
  point = new Point();
6236
6233
  const NOWORK_ANIMATE_ATTR = {
6237
6234
  strokeSeg: 1,
@@ -6288,7 +6285,7 @@ class Graphic extends Node {
6288
6285
  }
6289
6286
  constructor(params = {}) {
6290
6287
  var _a;
6291
- 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);
6288
+ 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);
6292
6289
  }
6293
6290
  getGraphicService() {
6294
6291
  var _a, _b;
@@ -6477,7 +6474,7 @@ class Graphic extends Node {
6477
6474
  });
6478
6475
  }
6479
6476
  setAttributes(params, forceUpdateTag = !1, context) {
6480
- 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));
6477
+ 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));
6481
6478
  }
6482
6479
  _setAttributes(params, forceUpdateTag = !1, context) {
6483
6480
  const keys = Object.keys(params);
@@ -6492,7 +6489,7 @@ class Graphic extends Node {
6492
6489
  const params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate({
6493
6490
  [key]: value
6494
6491
  }, this.attribute, key, context);
6495
- params ? this._setAttributes(params, forceUpdateTag, context) : isNil(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);
6492
+ params ? this._setAttributes(params, forceUpdateTag, context) : isNil(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);
6496
6493
  }
6497
6494
  needUpdateTags(keys, k = GRAPHIC_UPDATE_TAG_KEY) {
6498
6495
  for (let i = 0; i < k.length; i++) {
@@ -6511,7 +6508,7 @@ class Graphic extends Node {
6511
6508
  const context = {
6512
6509
  type: AttributeUpdateType.INIT
6513
6510
  };
6514
- 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);
6511
+ 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);
6515
6512
  }
6516
6513
  translate(x, y) {
6517
6514
  var _a, _b;
@@ -6902,9 +6899,6 @@ class Graphic extends Node {
6902
6899
  function backgroundNotImage(image) {
6903
6900
  return "string" == typeof image ? !(image.startsWith("<svg") || isValidUrl(image) || image.includes("/") || isBase64(image)) : !(!image.fill && !image.stroke) || !("string" != typeof image.gradient || !Array.isArray(image.stops));
6904
6901
  }
6905
- function isExternalTexture(texture) {
6906
- return !!texture && ("string" == typeof texture ? !builtinTextureTypes.has(texture) && (texture.startsWith("<svg") || isValidUrl(texture) || texture.includes("/") || isBase64(texture)) : isObject(texture));
6907
- }
6908
6902
  Graphic.userSymbolMap = {}, Graphic.mixin(EventTarget);
6909
6903
 
6910
6904
  var GroupUpdateAABBBoundsMode;
@@ -8574,23 +8568,21 @@ let Line$1 = class Line extends Graphic {
8574
8568
  }
8575
8569
  updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic) {
8576
8570
  const {
8577
- points = lineTheme.points,
8578
- connectedType: connectedType
8571
+ points = lineTheme.points
8579
8572
  } = attribute,
8580
8573
  b = aabbBounds;
8581
8574
  return points.forEach(p => {
8582
- !1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
8575
+ !1 !== p.defined && b.add(p.x, p.y);
8583
8576
  }), b;
8584
8577
  }
8585
8578
  updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) {
8586
8579
  const {
8587
- segments = lineTheme.segments,
8588
- connectedType: connectedType
8580
+ segments = lineTheme.segments
8589
8581
  } = attribute,
8590
8582
  b = aabbBounds;
8591
8583
  return segments.forEach(s => {
8592
8584
  s.points.forEach(p => {
8593
- !1 === p.defined && "connect" !== connectedType || b.add(p.x, p.y);
8585
+ !1 !== p.defined && b.add(p.x, p.y);
8594
8586
  });
8595
8587
  }), b;
8596
8588
  }
@@ -9749,7 +9741,7 @@ class Area extends Graphic {
9749
9741
  b = aabbBounds;
9750
9742
  return points.forEach(p => {
9751
9743
  var _a, _b;
9752
- b.add(p.x, p.y), b.add(null !== (_a = p.x1) && void 0 !== _a ? _a : p.x, null !== (_b = p.y1) && void 0 !== _b ? _b : p.y);
9744
+ !1 !== p.defined && (b.add(p.x, p.y), b.add(null !== (_a = p.x1) && void 0 !== _a ? _a : p.x, null !== (_b = p.y1) && void 0 !== _b ? _b : p.y));
9753
9745
  }), b;
9754
9746
  }
9755
9747
  updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) {
@@ -9760,7 +9752,7 @@ class Area extends Graphic {
9760
9752
  return segments.forEach(s => {
9761
9753
  s.points.forEach(p => {
9762
9754
  var _a, _b;
9763
- b.add(p.x, p.y), b.add(null !== (_a = p.x1) && void 0 !== _a ? _a : p.x, null !== (_b = p.y1) && void 0 !== _b ? _b : p.y);
9755
+ !1 !== p.defined && (b.add(p.x, p.y), b.add(null !== (_a = p.x1) && void 0 !== _a ? _a : p.x, null !== (_b = p.y1) && void 0 !== _b ? _b : p.y));
9764
9756
  });
9765
9757
  }), b;
9766
9758
  }
@@ -10474,43 +10466,38 @@ class DefaultBaseTextureRenderContribution {
10474
10466
  texture && this.drawTexture(texture, graphic, context, x, y, graphicAttribute, textureColor, textureSize, texturePadding);
10475
10467
  }
10476
10468
  drawTexture(texture, graphic, context, x, y, graphicAttribute, textureColor, textureSize, texturePadding) {
10477
- var _a, _b, _c, _d, _e, _f;
10469
+ var _a;
10478
10470
  const {
10479
10471
  textureRatio = graphicAttribute.textureRatio,
10480
10472
  textureOptions = null
10481
10473
  } = graphic.attribute;
10482
- let pattern = null;
10483
- const textureRadius = null !== (_a = null == textureOptions ? void 0 : textureOptions.radius) && void 0 !== _a ? _a : 0,
10484
- patternKey = this.getPatternCacheKey(texture, textureSize, texturePadding, textureColor, context.dpr, textureRadius);
10485
- if (null !== patternKey && (pattern = this.textureMap.get(patternKey)), !pattern) {
10486
- if ("string" == typeof texture) switch (texture) {
10487
- case "circle":
10488
- pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
10489
- break;
10490
- case "diamond":
10491
- pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
10492
- break;
10493
- case "rect":
10494
- pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
10495
- break;
10496
- case "vertical-line":
10497
- pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
10498
- break;
10499
- case "horizontal-line":
10500
- pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
10501
- break;
10502
- case "bias-lr":
10503
- pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
10504
- break;
10505
- case "bias-rl":
10506
- pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
10507
- break;
10508
- case "grid":
10509
- pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
10510
- }
10511
- pattern || (pattern = this.createResourcePattern(texture, graphic, context, texturePadding, textureRadius)), pattern && null !== patternKey && this.textureMap.set(patternKey, pattern);
10474
+ let pattern = this.textureMap.get(texture);
10475
+ if (!pattern) switch (texture) {
10476
+ case "circle":
10477
+ pattern = this.createCirclePattern(textureSize, texturePadding, textureColor, context);
10478
+ break;
10479
+ case "diamond":
10480
+ pattern = this.createDiamondPattern(textureSize, texturePadding, textureColor, context);
10481
+ break;
10482
+ case "rect":
10483
+ pattern = this.createRectPattern(textureSize, texturePadding, textureColor, context);
10484
+ break;
10485
+ case "vertical-line":
10486
+ pattern = this.createVerticalLinePattern(textureSize, texturePadding, textureColor, context);
10487
+ break;
10488
+ case "horizontal-line":
10489
+ pattern = this.createHorizontalLinePattern(textureSize, texturePadding, textureColor, context);
10490
+ break;
10491
+ case "bias-lr":
10492
+ pattern = this.createBiasLRLinePattern(textureSize, texturePadding, textureColor, context);
10493
+ break;
10494
+ case "bias-rl":
10495
+ pattern = this.createBiasRLLinePattern(textureSize, texturePadding, textureColor, context);
10496
+ break;
10497
+ case "grid":
10498
+ pattern = this.createGridPattern(textureSize, texturePadding, textureColor, context);
10512
10499
  }
10513
- if ("string" == typeof texture && textureOptions && textureOptions.dynamicTexture) {
10500
+ if (textureOptions && textureOptions.dynamicTexture) {
10514
10501
  const {
10515
10502
  gridConfig = {},
10516
10503
  useNewCanvas: useNewCanvas
@@ -10555,24 +10542,10 @@ class DefaultBaseTextureRenderContribution {
10555
10542
  for (let i = 0; i < gridRows; i++) for (let j = 0; j < gridColumns; j++) {
10556
10543
  const _x = x + cellSize / 2 + j * cellSize,
10557
10544
  _y = y + cellSize / 2 + i * cellSize;
10558
- null === (_b = textureOptions.beforeDynamicTexture) || void 0 === _b || _b.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());
10545
+ 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());
10559
10546
  }
10560
10547
  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();
10561
- } else if (pattern) {
10562
- if (pattern.setTransform) {
10563
- const alignToGraphic = !!(null == textureOptions ? void 0 : textureOptions.alignToGraphic),
10564
- alignOffsetX = null !== (_c = null == textureOptions ? void 0 : textureOptions.alignOffsetX) && void 0 !== _c ? _c : 0,
10565
- alignOffsetY = null !== (_d = null == textureOptions ? void 0 : textureOptions.alignOffsetY) && void 0 !== _d ? _d : 0;
10566
- let translateX = 0,
10567
- translateY = 0;
10568
- if (alignToGraphic) {
10569
- const m = context.currentMatrix;
10570
- 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;
10571
- } else (alignOffsetX || alignOffsetY) && (translateX = alignOffsetX, translateY = alignOffsetY);
10572
- pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, translateX, translateY]));
10573
- }
10574
- context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore();
10575
- } else if ("wave" === texture) {
10548
+ } else if (pattern) context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = pattern, context.fill(), context.highPerformanceRestore();else if ("wave" === texture) {
10576
10549
  context.save(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.clip();
10577
10550
  const b = graphic.AABBBounds;
10578
10551
  drawWave(context, textureRatio, b.width(), b.height(), Object.assign(Object.assign({}, textureOptions || {}), {
@@ -10580,45 +10553,6 @@ class DefaultBaseTextureRenderContribution {
10580
10553
  }), x + b.x1 - x, y + b.y1 - y), context.restore();
10581
10554
  }
10582
10555
  }
10583
- getPatternCacheKey(texture, textureSize, texturePadding, textureColor, dpr, textureRadius) {
10584
- return "string" != typeof texture ? texturePadding > 0 || textureRadius > 0 ? null : texture : "wave" === texture ? null : `${texture}-${textureSize}-${texturePadding}-${textureColor}-${dpr}`;
10585
- }
10586
- createResourcePattern(texture, graphic, context, texturePadding, textureRadius) {
10587
- var _a;
10588
- const resource = null === (_a = graphic.resources) || void 0 === _a ? void 0 : _a.get(texture),
10589
- data = "success" === (null == resource ? void 0 : resource.state) ? resource.data : "object" == typeof texture ? texture : null;
10590
- if (!data) return null;
10591
- if (texturePadding > 0 || textureRadius > 0) {
10592
- const w = data.naturalWidth || data.width,
10593
- h = data.naturalHeight || data.height;
10594
- if (w > 0 && h > 0) {
10595
- const tileW = w + 2 * texturePadding,
10596
- tileH = h + 2 * texturePadding,
10597
- canvas = canvasAllocate.allocate({
10598
- width: tileW,
10599
- height: tileH,
10600
- dpr: context.dpr
10601
- }),
10602
- ctx = canvas.getContext("2d");
10603
- if (ctx) {
10604
- if (ctx.inuse = !0, ctx.clearMatrix(), ctx.setTransformForCurrent(!0), ctx.clearRect(0, 0, tileW, tileH), textureRadius > 0) {
10605
- const r = Math.max(0, Math.min(textureRadius, Math.min(w, h) / 2)),
10606
- x0 = texturePadding,
10607
- y0 = texturePadding,
10608
- x1 = x0 + w,
10609
- y1 = y0 + h;
10610
- 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();
10611
- }
10612
- ctx.drawImage(data, texturePadding, texturePadding, w, h);
10613
- const pattern = context.createPattern(canvas.nativeCanvas, "repeat");
10614
- 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;
10615
- }
10616
- canvasAllocate.free(canvas);
10617
- }
10618
- }
10619
- const pattern = context.createPattern(data, "repeat");
10620
- return (null == pattern ? void 0 : pattern.setTransform) && pattern.setTransform(new DOMMatrix([1 / context.dpr, 0, 0, 1 / context.dpr, 0, 0])), pattern;
10621
- }
10622
10556
  }
10623
10557
  const defaultBaseTextureRenderContribution = new DefaultBaseTextureRenderContribution();
10624
10558
 
@@ -35155,6 +35089,6 @@ TableSeriesNumber.defaultAttributes = {
35155
35089
  select: true
35156
35090
  };
35157
35091
 
35158
- const version = "1.0.46-alpha.2";
35092
+ const version = "1.0.46-alpha.3";
35159
35093
 
35160
35094
  export { AXIS_ELEMENT_NAME, AbstractComponent, ArcInfo, ArcLabel, ArcSegment, AxisStateValue, BasePlayer, Brush, CheckBox, CircleAxis, CircleAxisGrid, CircleCrosshair, ColorContinuousLegend, ContinuousPlayer, DEFAULT_ITEM_SPACE_COL, DEFAULT_ITEM_SPACE_ROW, DEFAULT_LABEL_SPACE, DEFAULT_PAGER_SPACE, DEFAULT_SHAPE_SIZE, DEFAULT_SHAPE_SPACE, DEFAULT_STATES$1 as DEFAULT_STATES, DEFAULT_TITLE_SPACE, DEFAULT_VALUE_SPACE, DataLabel, DataZoom, DataZoomActiveTag, DirectionEnum, DiscreteLegend, DiscretePlayer, EmptyTip, GroupTransition, IDataZoomEvent, IDataZoomInteractiveEvent, IMarkAreaLabelPosition, IMarkCommonArcLabelPosition, IMarkLineLabelPosition, IMarkPointItemPosition, IOperateType, Indicator, LEGEND_ELEMENT_NAME, LabelBase, LegendEvent, LegendStateValue, LineAxis, LineAxisGrid, LineCrosshair, LineLabel, LinkPath, MarkArcArea, MarkArcLine, MarkArea, MarkLine, MarkPoint, Pager, PlayerEventEnum, PolygonCrosshair, PolygonSectorCrosshair, PopTip, Radio, RectCrosshair, RectLabel, SLIDER_ELEMENT_NAME, ScrollBar, SectorCrosshair, Segment, SeriesNumberCellStateValue, SeriesNumberEvent, SizeContinuousLegend, Slider, StoryLabelItem, Switch, SymbolLabel, TableSeriesNumber, Tag, Timeline, Title, Tooltip, TopZIndex, VTag, WeatherBox, alignTextInLine, angle, angleLabelOrientAttribute, angleTo, cartesianTicks, clampRadian, computeOffsetForlimit, continuousTicks, contrastAccessibilityChecker, convertDomainToTickData, createTextGraphicByType, deltaXYToAngle, fuzzyEqualNumber, getAxisBreakSymbolAttrs, getCircleLabelPosition, getCirclePoints, getCircleVerticalVector, getElMap, getHorizontalPath, getMarksByName, getNoneGroupMarksByName, getPolarAngleLabelPosition, getPolygonPath, getSizeHandlerPath, getTextAlignAttrOfVerticalDir, getTextType, getVerticalCoord, getVerticalPath, hasOverlap, htmlAttributeTransform, initTextMeasure, isInRange, isPostiveXAxis, isRichText, isVisible, labelSmartInvert, length, limitShapeInBounds, linearDiscreteTicks, loadPoptip, loadScrollbar, measureTextSize, normalize, polarAngleAxisDiscreteTicks, polarTicks, reactAttributeTransform, registerArcDataLabel, registerLineDataLabel, registerMarkArcAreaAnimate, registerMarkArcLineAnimate, registerMarkAreaAnimate, registerMarkLineAnimate, registerMarkPointAnimate, registerRectDataLabel, registerSymbolDataLabel, removeRepeatPoint, richTextAttributeTransform, scale, scrollbarModule, setPoptipTheme, smartInvertStrategy, tan2AngleToAngle, textIntersect, ticks, traverseGroup, version };
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "1.0.46-alpha.2";
1
+ export declare const version = "1.0.46-alpha.3";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = "1.0.46-alpha.2";
1
+ export const version = "1.0.46-alpha.3";
2
2
 
3
3
  export * from "./core/base";
4
4
 
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.46-alpha.2\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"1.0.46-alpha.3\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './weather';\nexport * from './util';\nexport * from './switch';\nexport * from './label-item';\nexport * from './table-series-number';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "1.0.46-alpha.2",
3
+ "version": "1.0.46-alpha.3",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -14,9 +14,9 @@
14
14
  "dependencies": {
15
15
  "@visactor/vutils": "~1.0.12",
16
16
  "@visactor/vscale": "~1.0.12",
17
- "@visactor/vrender-core": "1.0.46-alpha.2",
18
- "@visactor/vrender-kits": "1.0.46-alpha.2",
19
- "@visactor/vrender-animate": "1.0.46-alpha.2"
17
+ "@visactor/vrender-core": "1.0.46-alpha.3",
18
+ "@visactor/vrender-kits": "1.0.46-alpha.3",
19
+ "@visactor/vrender-animate": "1.0.46-alpha.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rushstack/eslint-patch": "~1.1.4",
@@ -31,8 +31,8 @@
31
31
  "typescript": "4.9.5",
32
32
  "cross-env": "^7.0.3",
33
33
  "@internal/bundler": "0.0.1",
34
- "@internal/ts-config": "0.0.1",
35
- "@internal/eslint-config": "0.0.1"
34
+ "@internal/eslint-config": "0.0.1",
35
+ "@internal/ts-config": "0.0.1"
36
36
  },
37
37
  "keywords": [
38
38
  "VisActor",