@visactor/vrender 0.16.17-alpha.1 → 0.16.17-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/cjs/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export declare const version = "0.16.17-alpha.1";
1
+ export declare const version = "0.16.17-alpha.2";
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.17-alpha.1", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
24
+ exports.version = "0.16.17-alpha.2", (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,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"]}
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.2\";\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", "scaleX", "scaleY", "angle", "anchor", "visible"];
12007
+ var GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "lineCap", "lineJoin", "miterLimit", "scaleX", "scaleY", "angle", "anchor"];
12008
12008
  var tempConstantXYKey = ["x", "y"],
12009
12009
  tempConstantScaleXYKey = ["scaleX", "scaleY"],
12010
12010
  tempConstantAngleKey = ["angle"],
@@ -18409,7 +18409,6 @@
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;
18413
18412
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18414
18413
  var _attribute$width = attribute.width,
18415
18414
  width = _attribute$width === void 0 ? rectTheme.width : _attribute$width,
@@ -18443,14 +18442,13 @@
18443
18442
  }, {
18444
18443
  key: "updateGlyphAABBBounds",
18445
18444
  value: function updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
18446
- return this._validCheck(attribute, theme, aabbBounds, graphic) ? (graphic.getSubGraphic().forEach(function (node) {
18445
+ return graphic.getSubGraphic().forEach(function (node) {
18447
18446
  aabbBounds.union(node.AABBBounds);
18448
- }), aabbBounds) : aabbBounds;
18447
+ }), aabbBounds;
18449
18448
  }
18450
18449
  }, {
18451
18450
  key: "updateRichTextAABBBounds",
18452
18451
  value: function updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
18453
- if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
18454
18452
  if (!graphic) return aabbBounds;
18455
18453
  var _attribute$width2 = attribute.width,
18456
18454
  width = _attribute$width2 === void 0 ? richtextTheme.width : _attribute$width2,
@@ -18503,7 +18501,6 @@
18503
18501
  }, {
18504
18502
  key: "updateTextAABBBounds",
18505
18503
  value: function updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
18506
- if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
18507
18504
  if (!graphic) return aabbBounds;
18508
18505
  var _graphic$attribute$te = graphic.attribute.text,
18509
18506
  text = _graphic$attribute$te === void 0 ? textTheme.text : _graphic$attribute$te;
@@ -18528,7 +18525,6 @@
18528
18525
  }, {
18529
18526
  key: "updatePathAABBBounds",
18530
18527
  value: function updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
18531
- if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
18532
18528
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
18533
18529
  var tb1 = this.tempAABBBounds1,
18534
18530
  tb2 = this.tempAABBBounds2;
@@ -18580,7 +18576,6 @@
18580
18576
  }, {
18581
18577
  key: "updatePolygonAABBBounds",
18582
18578
  value: function updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
18583
- if (!this._validCheck(attribute, polygonTheme, aabbBounds, graphic)) return aabbBounds;
18584
18579
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
18585
18580
  var tb1 = this.tempAABBBounds1,
18586
18581
  tb2 = this.tempAABBBounds2;
@@ -18601,7 +18596,6 @@
18601
18596
  }, {
18602
18597
  key: "updateLineAABBBounds",
18603
18598
  value: function updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
18604
- if (!this._validCheck(attribute, lineTheme, aabbBounds, graphic)) return aabbBounds;
18605
18599
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
18606
18600
  var tb1 = this.tempAABBBounds1,
18607
18601
  tb2 = this.tempAABBBounds2;
@@ -18635,7 +18629,6 @@
18635
18629
  }, {
18636
18630
  key: "updateAreaAABBBounds",
18637
18631
  value: function updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
18638
- if (!this._validCheck(attribute, areaTheme, aabbBounds, graphic)) return aabbBounds;
18639
18632
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
18640
18633
  var tb1 = this.tempAABBBounds1,
18641
18634
  tb2 = this.tempAABBBounds2;
@@ -18671,7 +18664,6 @@
18671
18664
  }, {
18672
18665
  key: "updateCircleAABBBounds",
18673
18666
  value: function updateCircleAABBBounds(attribute, circleTheme, aabbBounds, full, graphic) {
18674
- if (!this._validCheck(attribute, circleTheme, aabbBounds, graphic)) return aabbBounds;
18675
18667
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds, graphic));
18676
18668
  var tb1 = this.tempAABBBounds1,
18677
18669
  tb2 = this.tempAABBBounds2;
@@ -18700,7 +18692,6 @@
18700
18692
  }, {
18701
18693
  key: "updateArcAABBBounds",
18702
18694
  value: function updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
18703
- if (!this._validCheck(attribute, arcTheme, aabbBounds, graphic)) return aabbBounds;
18704
18695
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
18705
18696
  var tb1 = this.tempAABBBounds1,
18706
18697
  tb2 = this.tempAABBBounds2;
@@ -18742,7 +18733,6 @@
18742
18733
  }, {
18743
18734
  key: "updateSymbolAABBBounds",
18744
18735
  value: function updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
18745
- if (!this._validCheck(attribute, symbolTheme, aabbBounds, graphic)) return aabbBounds;
18746
18736
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
18747
18737
  var tb1 = this.tempAABBBounds1,
18748
18738
  tb2 = this.tempAABBBounds2;
@@ -18775,7 +18765,6 @@
18775
18765
  }, {
18776
18766
  key: "updateImageAABBBounds",
18777
18767
  value: function updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
18778
- if (!this._validCheck(attribute, imageTheme, aabbBounds, graphic)) return aabbBounds;
18779
18768
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18780
18769
  var _attribute$width3 = attribute.width,
18781
18770
  width = _attribute$width3 === void 0 ? imageTheme.width : _attribute$width3,
@@ -18822,15 +18811,6 @@
18822
18811
  }
18823
18812
  this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
18824
18813
  }
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
- }
18834
18814
  }]);
18835
18815
  return DefaultGraphicService;
18836
18816
  }();
@@ -34666,7 +34646,7 @@
34666
34646
 
34667
34647
  var roughModule = _roughModule;
34668
34648
 
34669
- const version = "0.16.17-alpha.1";
34649
+ const version = "0.16.17-alpha.2";
34670
34650
  loadAllModule(container);
34671
34651
 
34672
34652
  exports.ACustomAnimate = ACustomAnimate;