@visactor/vrender 0.16.16 → 0.16.17-alpha.1

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,3 +1,3 @@
1
- export declare const version = "0.16.16";
1
+ export declare const version = "0.16.17-alpha.1";
2
2
  export * from '@visactor/vrender-core';
3
3
  export * from '@visactor/vrender-kits';
package/cjs/index.js CHANGED
@@ -21,5 +21,5 @@ Object.defineProperty(exports, "__esModule", {
21
21
 
22
22
  const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits");
23
23
 
24
- exports.version = "0.16.16", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
24
+ exports.version = "0.16.17-alpha.1", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
25
25
  __exportStar(require("@visactor/vrender-core"), exports), __exportStar(require("@visactor/vrender-kits"), exports);
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,SAAS,CAAC;AAEjC,IAAA,4BAAa,EAAC,wBAAS,CAAC,CAAC;AAEzB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import { container } from '@visactor/vrender-core';\nimport { loadAllModule } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.16.16\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,yDAAmD;AACnD,yDAAuD;AAG1C,QAAA,OAAO,GAAG,iBAAiB,CAAC;AAEzC,IAAA,4BAAa,EAAC,wBAAS,CAAC,CAAC;AAEzB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import { container } from '@visactor/vrender-core';\nimport { loadAllModule } from '@visactor/vrender-kits';\n\n// 导出版本号\nexport const version = \"0.16.17-alpha.1\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
package/dist/index.js CHANGED
@@ -12004,7 +12004,7 @@
12004
12004
  var tempMatrix = new Matrix(),
12005
12005
  tempBounds$1 = new AABBBounds();
12006
12006
  var PURE_STYLE_KEY = ["stroke", "opacity", "strokeOpacity", "lineDash", "lineDashOffset", "lineCap", "lineJoin", "miterLimit", "fill", "fillOpacity"];
12007
- var GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "lineCap", "lineJoin", "miterLimit", "scaleX", "scaleY", "angle", "anchor"];
12007
+ var GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"];
12008
12008
  var tempConstantXYKey = ["x", "y"],
12009
12009
  tempConstantScaleXYKey = ["scaleX", "scaleY"],
12010
12010
  tempConstantAngleKey = ["angle"],
@@ -18409,6 +18409,7 @@
18409
18409
  }, {
18410
18410
  key: "updateRectAABBBounds",
18411
18411
  value: function updateRectAABBBounds(attribute, rectTheme, aabbBounds, graphic) {
18412
+ if (!this._validCheck(attribute, rectTheme, aabbBounds, graphic)) return aabbBounds;
18412
18413
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18413
18414
  var _attribute$width = attribute.width,
18414
18415
  width = _attribute$width === void 0 ? rectTheme.width : _attribute$width,
@@ -18442,13 +18443,14 @@
18442
18443
  }, {
18443
18444
  key: "updateGlyphAABBBounds",
18444
18445
  value: function updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
18445
- return graphic.getSubGraphic().forEach(function (node) {
18446
+ return this._validCheck(attribute, theme, aabbBounds, graphic) ? (graphic.getSubGraphic().forEach(function (node) {
18446
18447
  aabbBounds.union(node.AABBBounds);
18447
- }), aabbBounds;
18448
+ }), aabbBounds) : aabbBounds;
18448
18449
  }
18449
18450
  }, {
18450
18451
  key: "updateRichTextAABBBounds",
18451
18452
  value: function updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
18453
+ if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
18452
18454
  if (!graphic) return aabbBounds;
18453
18455
  var _attribute$width2 = attribute.width,
18454
18456
  width = _attribute$width2 === void 0 ? richtextTheme.width : _attribute$width2,
@@ -18501,6 +18503,7 @@
18501
18503
  }, {
18502
18504
  key: "updateTextAABBBounds",
18503
18505
  value: function updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
18506
+ if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
18504
18507
  if (!graphic) return aabbBounds;
18505
18508
  var _graphic$attribute$te = graphic.attribute.text,
18506
18509
  text = _graphic$attribute$te === void 0 ? textTheme.text : _graphic$attribute$te;
@@ -18525,6 +18528,7 @@
18525
18528
  }, {
18526
18529
  key: "updatePathAABBBounds",
18527
18530
  value: function updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
18531
+ if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
18528
18532
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
18529
18533
  var tb1 = this.tempAABBBounds1,
18530
18534
  tb2 = this.tempAABBBounds2;
@@ -18576,6 +18580,7 @@
18576
18580
  }, {
18577
18581
  key: "updatePolygonAABBBounds",
18578
18582
  value: function updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
18583
+ if (!this._validCheck(attribute, polygonTheme, aabbBounds, graphic)) return aabbBounds;
18579
18584
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
18580
18585
  var tb1 = this.tempAABBBounds1,
18581
18586
  tb2 = this.tempAABBBounds2;
@@ -18596,6 +18601,7 @@
18596
18601
  }, {
18597
18602
  key: "updateLineAABBBounds",
18598
18603
  value: function updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
18604
+ if (!this._validCheck(attribute, lineTheme, aabbBounds, graphic)) return aabbBounds;
18599
18605
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
18600
18606
  var tb1 = this.tempAABBBounds1,
18601
18607
  tb2 = this.tempAABBBounds2;
@@ -18629,6 +18635,7 @@
18629
18635
  }, {
18630
18636
  key: "updateAreaAABBBounds",
18631
18637
  value: function updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
18638
+ if (!this._validCheck(attribute, areaTheme, aabbBounds, graphic)) return aabbBounds;
18632
18639
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
18633
18640
  var tb1 = this.tempAABBBounds1,
18634
18641
  tb2 = this.tempAABBBounds2;
@@ -18664,6 +18671,7 @@
18664
18671
  }, {
18665
18672
  key: "updateCircleAABBBounds",
18666
18673
  value: function updateCircleAABBBounds(attribute, circleTheme, aabbBounds, full, graphic) {
18674
+ if (!this._validCheck(attribute, circleTheme, aabbBounds, graphic)) return aabbBounds;
18667
18675
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds, graphic));
18668
18676
  var tb1 = this.tempAABBBounds1,
18669
18677
  tb2 = this.tempAABBBounds2;
@@ -18692,6 +18700,7 @@
18692
18700
  }, {
18693
18701
  key: "updateArcAABBBounds",
18694
18702
  value: function updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
18703
+ if (!this._validCheck(attribute, arcTheme, aabbBounds, graphic)) return aabbBounds;
18695
18704
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
18696
18705
  var tb1 = this.tempAABBBounds1,
18697
18706
  tb2 = this.tempAABBBounds2;
@@ -18733,6 +18742,7 @@
18733
18742
  }, {
18734
18743
  key: "updateSymbolAABBBounds",
18735
18744
  value: function updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
18745
+ if (!this._validCheck(attribute, symbolTheme, aabbBounds, graphic)) return aabbBounds;
18736
18746
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
18737
18747
  var tb1 = this.tempAABBBounds1,
18738
18748
  tb2 = this.tempAABBBounds2;
@@ -18765,6 +18775,7 @@
18765
18775
  }, {
18766
18776
  key: "updateImageAABBBounds",
18767
18777
  value: function updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
18778
+ if (!this._validCheck(attribute, imageTheme, aabbBounds, graphic)) return aabbBounds;
18768
18779
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18769
18780
  var _attribute$width3 = attribute.width,
18770
18781
  width = _attribute$width3 === void 0 ? imageTheme.width : _attribute$width3,
@@ -18811,6 +18822,15 @@
18811
18822
  }
18812
18823
  this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
18813
18824
  }
18825
+ }, {
18826
+ key: "_validCheck",
18827
+ value: function _validCheck(attribute, theme, aabbBounds, graphic) {
18828
+ if (!graphic) return !0;
18829
+ if (!graphic.valid) return aabbBounds.clear(), !1;
18830
+ var _attribute$visible = attribute.visible,
18831
+ visible = _attribute$visible === void 0 ? theme.visible : _attribute$visible;
18832
+ return !!visible || (aabbBounds.clear(), !1);
18833
+ }
18814
18834
  }]);
18815
18835
  return DefaultGraphicService;
18816
18836
  }();
@@ -34646,7 +34666,7 @@
34646
34666
 
34647
34667
  var roughModule = _roughModule;
34648
34668
 
34649
- const version = "0.16.16";
34669
+ const version = "0.16.17-alpha.1";
34650
34670
  loadAllModule(container);
34651
34671
 
34652
34672
  exports.ACustomAnimate = ACustomAnimate;