@visactor/vrender 0.20.3-alpha.0 → 0.20.4

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
1
  import '@visactor/vrender-core';
2
- export declare const version = "0.20.3-alpha.0";
2
+ export declare const version = "0.20.4";
3
3
  export * from '@visactor/vrender-core';
4
4
  export * from '@visactor/vrender-kits';
package/cjs/index.js CHANGED
@@ -21,17 +21,16 @@ Object.defineProperty(exports, "__esModule", {
21
21
 
22
22
  const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits");
23
23
 
24
- exports.version = "0.20.3-alpha.0", (0, vrender_core_1.preLoadAllModule)(), (0,
25
- vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
26
- vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
27
- (0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
28
- (0, vrender_kits_2.registerCircle)(), (0, vrender_kits_2.registerGlyph)(), (0, vrender_kits_2.registerGroup)(),
29
- (0, vrender_kits_2.registerImage)(), (0, vrender_kits_2.registerLine)(), (0, vrender_kits_2.registerPath)(),
30
- (0, vrender_kits_2.registerPolygon)(), (0, vrender_kits_2.registerPyramid3d)(),
31
- (0, vrender_kits_2.registerRect)(), (0, vrender_kits_2.registerRect3d)(), (0, vrender_kits_2.registerRichtext)(),
32
- (0, vrender_kits_2.registerShadowRoot)(), (0, vrender_kits_2.registerSymbol)(),
33
- (0, vrender_kits_2.registerText)(), (0, vrender_kits_2.registerWrapText)(), (0,
34
- vrender_core_1.registerFlexLayoutPlugin)(), (0, vrender_core_1.registerViewTransform3dPlugin)(),
24
+ exports.version = "0.20.4", (0, vrender_core_1.preLoadAllModule)(), (0, vrender_core_1.isBrowserEnv)() ? (0,
25
+ vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0, vrender_core_1.isNodeEnv)() && (0,
26
+ vrender_kits_1.loadNodeEnv)(vrender_core_1.container), (0, vrender_kits_2.registerArc)(),
27
+ (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(), (0, vrender_kits_2.registerCircle)(),
28
+ (0, vrender_kits_2.registerGlyph)(), (0, vrender_kits_2.registerGroup)(), (0, vrender_kits_2.registerImage)(),
29
+ (0, vrender_kits_2.registerLine)(), (0, vrender_kits_2.registerPath)(), (0, vrender_kits_2.registerPolygon)(),
30
+ (0, vrender_kits_2.registerPyramid3d)(), (0, vrender_kits_2.registerRect)(), (0,
31
+ vrender_kits_2.registerRect3d)(), (0, vrender_kits_2.registerRichtext)(), (0, vrender_kits_2.registerShadowRoot)(),
32
+ (0, vrender_kits_2.registerSymbol)(), (0, vrender_kits_2.registerText)(), (0, vrender_kits_2.registerWrapText)(),
33
+ (0, vrender_core_1.registerFlexLayoutPlugin)(), (0, vrender_core_1.registerViewTransform3dPlugin)(),
35
34
  (0, vrender_core_1.registerHtmlAttributePlugin)(), (0, vrender_core_1.registerReactAttributePlugin)(),
36
35
  (0, vrender_core_1.registerDirectionalLight)(), (0, vrender_core_1.registerOrthoCamera)(),
37
36
  __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,kCAAgC;AAChC,yDAWgC;AAChC,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,gBAAgB,CAAC;AAExC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.20.3-alpha.0\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAqE;AACrE,yDAmBgC;AAEnB,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AACtB,yDAAuC;AACvC,yDAAuC","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\n// 导出版本号\nexport const version = \"0.20.4\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
package/dist/index.es.js CHANGED
@@ -8780,7 +8780,9 @@ const parseShadowChildAttrs = graphicAttrs => {
8780
8780
  if (children.length) shadowRoot.setTheme({
8781
8781
  [children[0].type]: childAttrs
8782
8782
  }), children.forEach(element => {
8783
- shadowRoot.appendChild(element);
8783
+ element.setAttributes({
8784
+ pickable: !1
8785
+ }), shadowRoot.appendChild(element);
8784
8786
  });else {
8785
8787
  const box = graphic.AABBBounds,
8786
8788
  width = box.width(),
@@ -8792,7 +8794,8 @@ const parseShadowChildAttrs = graphicAttrs => {
8792
8794
  x: 0,
8793
8795
  y: 0,
8794
8796
  width: width,
8795
- height: height
8797
+ height: height,
8798
+ pickable: !1
8796
8799
  });
8797
8800
  shadowRoot.appendChild(child), children.push(child);
8798
8801
  });
@@ -9180,7 +9183,7 @@ class Graphic extends Node {
9180
9183
  return this._transMatrix || (this._transMatrix = new Matrix()), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(), clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
9181
9184
  }
9182
9185
  shouldUpdateAABBBounds() {
9183
- return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
9186
+ return this.shadowRoot ? (!!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
9184
9187
  }
9185
9188
  shouldSelfChangeUpdateAABBBounds() {
9186
9189
  return this.shadowRoot ? !!(this._updateTag & UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & UpdateTag.UPDATE_BOUNDS);
@@ -14225,7 +14228,6 @@ class Circle extends Graphic {
14225
14228
  return getTheme(this).circle;
14226
14229
  }
14227
14230
  updateAABBBounds(attribute, circleTheme, aabbBounds, full) {
14228
- if (!application.graphicService.validCheck(attribute, circleTheme, aabbBounds, this)) return aabbBounds;
14229
14231
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds));
14230
14232
  const {
14231
14233
  tb1: tb1,
@@ -14418,7 +14420,6 @@ class Text extends Graphic {
14418
14420
  return getTheme(this).text;
14419
14421
  }
14420
14422
  updateAABBBounds(attribute, textTheme, aabbBounds) {
14421
- if (!application.graphicService.validCheck(attribute, textTheme, aabbBounds, this)) return aabbBounds;
14422
14423
  const {
14423
14424
  text = textTheme.text
14424
14425
  } = this.attribute;
@@ -15527,7 +15528,6 @@ let Symbol$1 = class Symbol extends Graphic {
15527
15528
  return getTheme(this).symbol;
15528
15529
  }
15529
15530
  updateAABBBounds(attribute, symbolTheme, aabbBounds, full) {
15530
- if (!application.graphicService.validCheck(attribute, symbolTheme, aabbBounds, this)) return aabbBounds;
15531
15531
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds));
15532
15532
  const {
15533
15533
  tb1: tb1,
@@ -15605,7 +15605,6 @@ let Line$1 = class Line extends Graphic {
15605
15605
  return getTheme(this).line;
15606
15606
  }
15607
15607
  updateAABBBounds(attribute, lineTheme, aabbBounds) {
15608
- if (!application.graphicService.validCheck(attribute, lineTheme, aabbBounds, this)) return aabbBounds;
15609
15608
  this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
15610
15609
  const {
15611
15610
  lineJoin = lineTheme.lineJoin
@@ -15686,7 +15685,6 @@ class Rect extends Graphic {
15686
15685
  return getTheme(this).rect;
15687
15686
  }
15688
15687
  updateAABBBounds(attribute, rectTheme, aabbBounds) {
15689
- if (!application.graphicService.validCheck(attribute, rectTheme, aabbBounds, this)) return aabbBounds;
15690
15688
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
15691
15689
  let {
15692
15690
  width: width,
@@ -15864,9 +15862,9 @@ class Glyph extends Graphic {
15864
15862
  return getTheme(this).glyph;
15865
15863
  }
15866
15864
  updateAABBBounds(attribute, theme, aabbBounds) {
15867
- return application.graphicService.validCheck(attribute, theme, aabbBounds, this) ? (this.getSubGraphic().forEach(node => {
15865
+ return this.getSubGraphic().forEach(node => {
15868
15866
  aabbBounds.union(node.AABBBounds);
15869
- }), aabbBounds) : aabbBounds;
15867
+ }), aabbBounds;
15870
15868
  }
15871
15869
  doUpdateAABBBounds() {
15872
15870
  this._AABBBounds.clear();
@@ -16190,7 +16188,6 @@ class Image extends Graphic {
16190
16188
  return getTheme(this).image;
16191
16189
  }
16192
16190
  updateAABBBounds(attribute, imageTheme, aabbBounds) {
16193
- if (!application.graphicService.validCheck(attribute, imageTheme, aabbBounds, this)) return aabbBounds;
16194
16191
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
16195
16192
  const {
16196
16193
  width = imageTheme.width,
@@ -16390,7 +16387,13 @@ class Wrapper {
16390
16387
  const RICHTEXT_UPDATE_TAG_KEY = ["width", "height", "ellipsis", "wordBreak", "verticalDirection", "maxHeight", "maxWidth", "textAlign", "textBaseline", "textConfig", "layoutDirection", "fill", "stroke", "fontSize", ...GRAPHIC_UPDATE_TAG_KEY];
16391
16388
  class RichText extends Graphic {
16392
16389
  constructor(params) {
16393
- super(params), this.type = "richtext", this._currentHoverIcon = null, this.numberType = RICHTEXT_NUMBER_TYPE;
16390
+ super(params), this.type = "richtext", this._currentHoverIcon = null, this.numberType = RICHTEXT_NUMBER_TYPE, this.onBeforeAttributeUpdate = (val, attributes, key) => {
16391
+ for (const key in val) if ("hoverIconId" === key) {
16392
+ if (val[key] === attributes[key]) continue;
16393
+ const icon = this._frameCache.icons.get(val[key]);
16394
+ this.updateHoverIconState(icon);
16395
+ }
16396
+ };
16394
16397
  }
16395
16398
  get width() {
16396
16399
  var _a;
@@ -16464,7 +16467,6 @@ class RichText extends Graphic {
16464
16467
  return getTheme(this).richtext;
16465
16468
  }
16466
16469
  updateAABBBounds(attribute, richtextTheme, aabbBounds) {
16467
- if (!application.graphicService.validCheck(attribute, richtextTheme, aabbBounds, this)) return aabbBounds;
16468
16470
  const {
16469
16471
  width = richtextTheme.width,
16470
16472
  height = richtextTheme.height,
@@ -16562,8 +16564,9 @@ class RichText extends Graphic {
16562
16564
  paragraphs = [],
16563
16565
  textConfig = null != tc ? tc : _tc;
16564
16566
  for (let i = 0; i < textConfig.length; i++) if ("image" in textConfig[i]) {
16565
- const config = this.combinedStyleToCharacter(textConfig[i]),
16566
- iconCache = config.id && this._frameCache && this._frameCache.icons && this._frameCache.icons.get(config.id);
16567
+ const config = this.combinedStyleToCharacter(textConfig[i]);
16568
+ config.lineWidth = void 0;
16569
+ const iconCache = config.id && this._frameCache && this._frameCache.icons && this._frameCache.icons.get(config.id);
16567
16570
  if (iconCache) paragraphs.push(iconCache);else {
16568
16571
  const icon = new RichTextIcon(config);
16569
16572
  icon.successCallback = () => {
@@ -16613,14 +16616,16 @@ class RichText extends Graphic {
16613
16616
  }
16614
16617
  bindIconEvent() {
16615
16618
  this.addEventListener("pointermove", e => {
16616
- var _a, _b, _c, _d, _e;
16617
16619
  const pickedIcon = this.pickIcon(e.global);
16618
- pickedIcon && pickedIcon === this._currentHoverIcon || (pickedIcon ? (null === (_a = this._currentHoverIcon) || void 0 === _a || _a.setHoverState(!1), this._currentHoverIcon = pickedIcon, this._currentHoverIcon.setHoverState(!0), null === (_b = this.stage) || void 0 === _b || _b.setCursor(pickedIcon.attribute.cursor), null === (_c = this.stage) || void 0 === _c || _c.renderNextFrame()) : !pickedIcon && this._currentHoverIcon && (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_d = this.stage) || void 0 === _d || _d.setCursor(), null === (_e = this.stage) || void 0 === _e || _e.renderNextFrame()));
16620
+ pickedIcon && pickedIcon === this._currentHoverIcon || (pickedIcon ? this.setAttribute("hoverIconId", pickedIcon.richtextId) : !pickedIcon && this._currentHoverIcon && this.setAttribute("hoverIconId", void 0));
16619
16621
  }), this.addEventListener("pointerleave", e => {
16620
- var _a, _b;
16621
- this._currentHoverIcon && (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_a = this.stage) || void 0 === _a || _a.setCursor(), null === (_b = this.stage) || void 0 === _b || _b.renderNextFrame());
16622
+ this._currentHoverIcon && this.setAttribute("hoverIconId", void 0);
16622
16623
  });
16623
16624
  }
16625
+ updateHoverIconState(pickedIcon) {
16626
+ var _a, _b, _c, _d, _e;
16627
+ pickedIcon ? (null === (_a = this._currentHoverIcon) || void 0 === _a || _a.setHoverState(!1), this._currentHoverIcon = pickedIcon, this._currentHoverIcon.setHoverState(!0), null === (_b = this.stage) || void 0 === _b || _b.setCursor(pickedIcon.attribute.cursor), null === (_c = this.stage) || void 0 === _c || _c.renderNextFrame()) : (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_d = this.stage) || void 0 === _d || _d.setCursor(), null === (_e = this.stage) || void 0 === _e || _e.renderNextFrame());
16628
+ }
16624
16629
  pickIcon(point) {
16625
16630
  const frameCache = this.getFrameCache(),
16626
16631
  {
@@ -16628,7 +16633,7 @@ class RichText extends Graphic {
16628
16633
  f: y
16629
16634
  } = this.globalTransMatrix;
16630
16635
  let pickIcon;
16631
- return frameCache.icons.forEach(icon => {
16636
+ return frameCache.icons.forEach((icon, key) => {
16632
16637
  var _a, _b;
16633
16638
  const bounds = icon.AABBBounds.clone();
16634
16639
  bounds.translate(icon._marginArray[3], icon._marginArray[0]), bounds.containsPoint({
@@ -16681,7 +16686,6 @@ class Path extends Graphic {
16681
16686
  return getTheme(this).path;
16682
16687
  }
16683
16688
  updateAABBBounds(attribute, pathTheme, aabbBounds) {
16684
- if (!application.graphicService.validCheck(attribute, pathTheme, aabbBounds, this)) return aabbBounds;
16685
16689
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
16686
16690
  const pathShape = this.getParsedPathShape();
16687
16691
  aabbBounds.union(pathShape.getBounds());
@@ -16747,7 +16751,6 @@ class Area extends Graphic {
16747
16751
  return getTheme(this).area;
16748
16752
  }
16749
16753
  updateAABBBounds(attribute, areaTheme, aabbBounds) {
16750
- if (!application.graphicService.validCheck(attribute, areaTheme, aabbBounds, this)) return aabbBounds;
16751
16754
  this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
16752
16755
  const {
16753
16756
  lineJoin = areaTheme.lineJoin
@@ -16948,7 +16951,6 @@ class Arc extends Graphic {
16948
16951
  return getTheme(this).arc;
16949
16952
  }
16950
16953
  updateAABBBounds(attribute, arcTheme, aabbBounds, full) {
16951
- if (!application.graphicService.validCheck(attribute, arcTheme, aabbBounds, this)) return aabbBounds;
16952
16954
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds));
16953
16955
  const {
16954
16956
  tb1: tb1,
@@ -17081,7 +17083,6 @@ class Polygon extends Graphic {
17081
17083
  return getTheme(this).polygon;
17082
17084
  }
17083
17085
  updateAABBBounds(attribute, polygonTheme, aabbBounds) {
17084
- if (!application.graphicService.validCheck(attribute, polygonTheme, aabbBounds, this)) return aabbBounds;
17085
17086
  this.updatePathProxyAABBBounds(aabbBounds) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds), application.graphicService.updateTempAABBBounds(aabbBounds);
17086
17087
  const {
17087
17088
  lineJoin = polygonTheme.lineJoin
@@ -17222,6 +17223,9 @@ class ShadowRoot extends Group {
17222
17223
  y: 0
17223
17224
  }), this.type = "shadowroot", this.shadowHost = graphic;
17224
17225
  }
17226
+ clearUpdateBoundTag() {
17227
+ super.clearUpdateBoundTag(), this.shadowHost && this.shadowHost.clearUpdateBoundTag();
17228
+ }
17225
17229
  addUpdateBoundTag() {
17226
17230
  super.addUpdateBoundTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
17227
17231
  }
@@ -18283,7 +18287,8 @@ class Stage extends Group {
18283
18287
  });
18284
18288
  }
18285
18289
  pauseRender() {
18286
- this._skipRender = -1;
18290
+ let sr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
18291
+ this._skipRender = sr;
18287
18292
  }
18288
18293
  resumeRender() {
18289
18294
  this._skipRender = 0;
@@ -18533,7 +18538,7 @@ class Stage extends Group {
18533
18538
  "virtual" === l.layerMode && (l = l.getNativeHandler().mainHandler.layer), list.includes(l) || list.push(l);
18534
18539
  }
18535
18540
  list.forEach(layer => {
18536
- layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer.render({
18541
+ layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer === this.interactiveLayer && this.dirtyBounds && this.dirtyBounds.clear(), layer.render({
18537
18542
  renderService: this.renderService,
18538
18543
  background: layer === this.defaultLayer ? this.background : void 0,
18539
18544
  updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
@@ -18542,14 +18547,14 @@ class Stage extends Group {
18542
18547
  }, Object.assign({
18543
18548
  renderStyle: this.renderStyle
18544
18549
  }, params)));
18545
- }), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && this.interactiveLayer.render({
18550
+ }), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && (this.dirtyBounds && this.dirtyBounds.clear(), this.interactiveLayer.render({
18546
18551
  renderService: this.renderService,
18547
18552
  updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
18548
18553
  viewBox: this.window.getViewBox(),
18549
18554
  transMatrix: this.window.getViewBoxTransform()
18550
18555
  }, Object.assign({
18551
18556
  renderStyle: this.renderStyle
18552
- }, params));
18557
+ }, params)));
18553
18558
  }
18554
18559
  resizeWindow(w, h) {
18555
18560
  let rerender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
@@ -18590,8 +18595,7 @@ class Stage extends Group {
18590
18595
  }
18591
18596
  pick(x, y) {
18592
18597
  if ("released" === this.releaseStatus) return;
18593
- this.pickerService || (this.pickerService = container.get(PickerService));
18594
- const result = this.pickerService.pick(this.children, new Point(x, y), {
18598
+ const result = this.getPickerService().pick(this.children, new Point(x, y), {
18595
18599
  bounds: this.AABBBounds
18596
18600
  });
18597
18601
  return !(!(null == result ? void 0 : result.graphic) && !(null == result ? void 0 : result.group)) && result;
@@ -18676,6 +18680,9 @@ class Stage extends Group {
18676
18680
  resumeTriggerEvent() {
18677
18681
  this._eventSystem && this._eventSystem.resumeTriggerEvent();
18678
18682
  }
18683
+ getPickerService() {
18684
+ return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
18685
+ }
18679
18686
  }
18680
18687
 
18681
18688
  function createStage(params) {
@@ -28278,7 +28285,7 @@ const registerWrapText = _registerWrapText;
28278
28285
 
28279
28286
  const roughModule = _roughModule;
28280
28287
 
28281
- const version = "0.20.3-alpha.0";
28288
+ const version = "0.20.4";
28282
28289
  preLoadAllModule();
28283
28290
  if (isBrowserEnv()) {
28284
28291
  loadBrowserEnv(container);
package/dist/index.js CHANGED
@@ -8786,7 +8786,9 @@
8786
8786
  if (children.length) shadowRoot.setTheme({
8787
8787
  [children[0].type]: childAttrs
8788
8788
  }), children.forEach(element => {
8789
- shadowRoot.appendChild(element);
8789
+ element.setAttributes({
8790
+ pickable: !1
8791
+ }), shadowRoot.appendChild(element);
8790
8792
  });else {
8791
8793
  const box = graphic.AABBBounds,
8792
8794
  width = box.width(),
@@ -8798,7 +8800,8 @@
8798
8800
  x: 0,
8799
8801
  y: 0,
8800
8802
  width: width,
8801
- height: height
8803
+ height: height,
8804
+ pickable: !1
8802
8805
  });
8803
8806
  shadowRoot.appendChild(child), children.push(child);
8804
8807
  });
@@ -9186,7 +9189,7 @@
9186
9189
  return this._transMatrix || (this._transMatrix = new Matrix()), this.shouldUpdateLocalMatrix() && (this.doUpdateLocalMatrix(), clearTag && this.clearUpdateLocalPositionTag()), this._transMatrix;
9187
9190
  }
9188
9191
  shouldUpdateAABBBounds() {
9189
- return this.shadowRoot ? !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS);
9192
+ return this.shadowRoot ? (!!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds()) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this) : !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) && application.graphicService.validCheck(this.attribute, this.getGraphicTheme(), this._AABBBounds, this);
9190
9193
  }
9191
9194
  shouldSelfChangeUpdateAABBBounds() {
9192
9195
  return this.shadowRoot ? !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS) || this.shadowRoot.shouldUpdateAABBBounds() : !!(this._updateTag & exports.UpdateTag.UPDATE_BOUNDS);
@@ -14231,7 +14234,6 @@
14231
14234
  return getTheme(this).circle;
14232
14235
  }
14233
14236
  updateAABBBounds(attribute, circleTheme, aabbBounds, full) {
14234
- if (!application.graphicService.validCheck(attribute, circleTheme, aabbBounds, this)) return aabbBounds;
14235
14237
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds));
14236
14238
  const {
14237
14239
  tb1: tb1,
@@ -14424,7 +14426,6 @@
14424
14426
  return getTheme(this).text;
14425
14427
  }
14426
14428
  updateAABBBounds(attribute, textTheme, aabbBounds) {
14427
- if (!application.graphicService.validCheck(attribute, textTheme, aabbBounds, this)) return aabbBounds;
14428
14429
  const {
14429
14430
  text = textTheme.text
14430
14431
  } = this.attribute;
@@ -15533,7 +15534,6 @@
15533
15534
  return getTheme(this).symbol;
15534
15535
  }
15535
15536
  updateAABBBounds(attribute, symbolTheme, aabbBounds, full) {
15536
- if (!application.graphicService.validCheck(attribute, symbolTheme, aabbBounds, this)) return aabbBounds;
15537
15537
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds));
15538
15538
  const {
15539
15539
  tb1: tb1,
@@ -15611,7 +15611,6 @@
15611
15611
  return getTheme(this).line;
15612
15612
  }
15613
15613
  updateAABBBounds(attribute, lineTheme, aabbBounds) {
15614
- if (!application.graphicService.validCheck(attribute, lineTheme, aabbBounds, this)) return aabbBounds;
15615
15614
  this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
15616
15615
  const {
15617
15616
  lineJoin = lineTheme.lineJoin
@@ -15692,7 +15691,6 @@
15692
15691
  return getTheme(this).rect;
15693
15692
  }
15694
15693
  updateAABBBounds(attribute, rectTheme, aabbBounds) {
15695
- if (!application.graphicService.validCheck(attribute, rectTheme, aabbBounds, this)) return aabbBounds;
15696
15694
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
15697
15695
  let {
15698
15696
  width: width,
@@ -15870,9 +15868,9 @@
15870
15868
  return getTheme(this).glyph;
15871
15869
  }
15872
15870
  updateAABBBounds(attribute, theme, aabbBounds) {
15873
- return application.graphicService.validCheck(attribute, theme, aabbBounds, this) ? (this.getSubGraphic().forEach(node => {
15871
+ return this.getSubGraphic().forEach(node => {
15874
15872
  aabbBounds.union(node.AABBBounds);
15875
- }), aabbBounds) : aabbBounds;
15873
+ }), aabbBounds;
15876
15874
  }
15877
15875
  doUpdateAABBBounds() {
15878
15876
  this._AABBBounds.clear();
@@ -16196,7 +16194,6 @@
16196
16194
  return getTheme(this).image;
16197
16195
  }
16198
16196
  updateAABBBounds(attribute, imageTheme, aabbBounds) {
16199
- if (!application.graphicService.validCheck(attribute, imageTheme, aabbBounds, this)) return aabbBounds;
16200
16197
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
16201
16198
  const {
16202
16199
  width = imageTheme.width,
@@ -16396,7 +16393,13 @@
16396
16393
  const RICHTEXT_UPDATE_TAG_KEY = ["width", "height", "ellipsis", "wordBreak", "verticalDirection", "maxHeight", "maxWidth", "textAlign", "textBaseline", "textConfig", "layoutDirection", "fill", "stroke", "fontSize", ...GRAPHIC_UPDATE_TAG_KEY];
16397
16394
  class RichText extends Graphic {
16398
16395
  constructor(params) {
16399
- super(params), this.type = "richtext", this._currentHoverIcon = null, this.numberType = RICHTEXT_NUMBER_TYPE;
16396
+ super(params), this.type = "richtext", this._currentHoverIcon = null, this.numberType = RICHTEXT_NUMBER_TYPE, this.onBeforeAttributeUpdate = (val, attributes, key) => {
16397
+ for (const key in val) if ("hoverIconId" === key) {
16398
+ if (val[key] === attributes[key]) continue;
16399
+ const icon = this._frameCache.icons.get(val[key]);
16400
+ this.updateHoverIconState(icon);
16401
+ }
16402
+ };
16400
16403
  }
16401
16404
  get width() {
16402
16405
  var _a;
@@ -16470,7 +16473,6 @@
16470
16473
  return getTheme(this).richtext;
16471
16474
  }
16472
16475
  updateAABBBounds(attribute, richtextTheme, aabbBounds) {
16473
- if (!application.graphicService.validCheck(attribute, richtextTheme, aabbBounds, this)) return aabbBounds;
16474
16476
  const {
16475
16477
  width = richtextTheme.width,
16476
16478
  height = richtextTheme.height,
@@ -16568,8 +16570,9 @@
16568
16570
  paragraphs = [],
16569
16571
  textConfig = null != tc ? tc : _tc;
16570
16572
  for (let i = 0; i < textConfig.length; i++) if ("image" in textConfig[i]) {
16571
- const config = this.combinedStyleToCharacter(textConfig[i]),
16572
- iconCache = config.id && this._frameCache && this._frameCache.icons && this._frameCache.icons.get(config.id);
16573
+ const config = this.combinedStyleToCharacter(textConfig[i]);
16574
+ config.lineWidth = void 0;
16575
+ const iconCache = config.id && this._frameCache && this._frameCache.icons && this._frameCache.icons.get(config.id);
16573
16576
  if (iconCache) paragraphs.push(iconCache);else {
16574
16577
  const icon = new RichTextIcon(config);
16575
16578
  icon.successCallback = () => {
@@ -16619,14 +16622,16 @@
16619
16622
  }
16620
16623
  bindIconEvent() {
16621
16624
  this.addEventListener("pointermove", e => {
16622
- var _a, _b, _c, _d, _e;
16623
16625
  const pickedIcon = this.pickIcon(e.global);
16624
- pickedIcon && pickedIcon === this._currentHoverIcon || (pickedIcon ? (null === (_a = this._currentHoverIcon) || void 0 === _a || _a.setHoverState(!1), this._currentHoverIcon = pickedIcon, this._currentHoverIcon.setHoverState(!0), null === (_b = this.stage) || void 0 === _b || _b.setCursor(pickedIcon.attribute.cursor), null === (_c = this.stage) || void 0 === _c || _c.renderNextFrame()) : !pickedIcon && this._currentHoverIcon && (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_d = this.stage) || void 0 === _d || _d.setCursor(), null === (_e = this.stage) || void 0 === _e || _e.renderNextFrame()));
16626
+ pickedIcon && pickedIcon === this._currentHoverIcon || (pickedIcon ? this.setAttribute("hoverIconId", pickedIcon.richtextId) : !pickedIcon && this._currentHoverIcon && this.setAttribute("hoverIconId", void 0));
16625
16627
  }), this.addEventListener("pointerleave", e => {
16626
- var _a, _b;
16627
- this._currentHoverIcon && (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_a = this.stage) || void 0 === _a || _a.setCursor(), null === (_b = this.stage) || void 0 === _b || _b.renderNextFrame());
16628
+ this._currentHoverIcon && this.setAttribute("hoverIconId", void 0);
16628
16629
  });
16629
16630
  }
16631
+ updateHoverIconState(pickedIcon) {
16632
+ var _a, _b, _c, _d, _e;
16633
+ pickedIcon ? (null === (_a = this._currentHoverIcon) || void 0 === _a || _a.setHoverState(!1), this._currentHoverIcon = pickedIcon, this._currentHoverIcon.setHoverState(!0), null === (_b = this.stage) || void 0 === _b || _b.setCursor(pickedIcon.attribute.cursor), null === (_c = this.stage) || void 0 === _c || _c.renderNextFrame()) : (this._currentHoverIcon.setHoverState(!1), this._currentHoverIcon = null, null === (_d = this.stage) || void 0 === _d || _d.setCursor(), null === (_e = this.stage) || void 0 === _e || _e.renderNextFrame());
16634
+ }
16630
16635
  pickIcon(point) {
16631
16636
  const frameCache = this.getFrameCache(),
16632
16637
  {
@@ -16634,7 +16639,7 @@
16634
16639
  f: y
16635
16640
  } = this.globalTransMatrix;
16636
16641
  let pickIcon;
16637
- return frameCache.icons.forEach(icon => {
16642
+ return frameCache.icons.forEach((icon, key) => {
16638
16643
  var _a, _b;
16639
16644
  const bounds = icon.AABBBounds.clone();
16640
16645
  bounds.translate(icon._marginArray[3], icon._marginArray[0]), bounds.containsPoint({
@@ -16687,7 +16692,6 @@
16687
16692
  return getTheme(this).path;
16688
16693
  }
16689
16694
  updateAABBBounds(attribute, pathTheme, aabbBounds) {
16690
- if (!application.graphicService.validCheck(attribute, pathTheme, aabbBounds, this)) return aabbBounds;
16691
16695
  if (!this.updatePathProxyAABBBounds(aabbBounds)) {
16692
16696
  const pathShape = this.getParsedPathShape();
16693
16697
  aabbBounds.union(pathShape.getBounds());
@@ -16753,7 +16757,6 @@
16753
16757
  return getTheme(this).area;
16754
16758
  }
16755
16759
  updateAABBBounds(attribute, areaTheme, aabbBounds) {
16756
- if (!application.graphicService.validCheck(attribute, areaTheme, aabbBounds, this)) return aabbBounds;
16757
16760
  this.updatePathProxyAABBBounds(aabbBounds) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds)), application.graphicService.updateTempAABBBounds(aabbBounds);
16758
16761
  const {
16759
16762
  lineJoin = areaTheme.lineJoin
@@ -16954,7 +16957,6 @@
16954
16957
  return getTheme(this).arc;
16955
16958
  }
16956
16959
  updateAABBBounds(attribute, arcTheme, aabbBounds, full) {
16957
- if (!application.graphicService.validCheck(attribute, arcTheme, aabbBounds, this)) return aabbBounds;
16958
16960
  this.updatePathProxyAABBBounds(aabbBounds) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds));
16959
16961
  const {
16960
16962
  tb1: tb1,
@@ -17087,7 +17089,6 @@
17087
17089
  return getTheme(this).polygon;
17088
17090
  }
17089
17091
  updateAABBBounds(attribute, polygonTheme, aabbBounds) {
17090
- if (!application.graphicService.validCheck(attribute, polygonTheme, aabbBounds, this)) return aabbBounds;
17091
17092
  this.updatePathProxyAABBBounds(aabbBounds) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds), application.graphicService.updateTempAABBBounds(aabbBounds);
17092
17093
  const {
17093
17094
  lineJoin = polygonTheme.lineJoin
@@ -17228,6 +17229,9 @@
17228
17229
  y: 0
17229
17230
  }), this.type = "shadowroot", this.shadowHost = graphic;
17230
17231
  }
17232
+ clearUpdateBoundTag() {
17233
+ super.clearUpdateBoundTag(), this.shadowHost && this.shadowHost.clearUpdateBoundTag();
17234
+ }
17231
17235
  addUpdateBoundTag() {
17232
17236
  super.addUpdateBoundTag(), this.shadowHost && this.shadowHost.addUpdateBoundTag();
17233
17237
  }
@@ -18289,7 +18293,8 @@
18289
18293
  });
18290
18294
  }
18291
18295
  pauseRender() {
18292
- this._skipRender = -1;
18296
+ let sr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
18297
+ this._skipRender = sr;
18293
18298
  }
18294
18299
  resumeRender() {
18295
18300
  this._skipRender = 0;
@@ -18539,7 +18544,7 @@
18539
18544
  "virtual" === l.layerMode && (l = l.getNativeHandler().mainHandler.layer), list.includes(l) || list.push(l);
18540
18545
  }
18541
18546
  list.forEach(layer => {
18542
- layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer.render({
18547
+ layer.renderCount > this.renderCount || (layer.renderCount = this.renderCount + 1, layer === this.interactiveLayer && this.dirtyBounds && this.dirtyBounds.clear(), layer.render({
18543
18548
  renderService: this.renderService,
18544
18549
  background: layer === this.defaultLayer ? this.background : void 0,
18545
18550
  updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
@@ -18548,14 +18553,14 @@
18548
18553
  }, Object.assign({
18549
18554
  renderStyle: this.renderStyle
18550
18555
  }, params)));
18551
- }), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && this.interactiveLayer.render({
18556
+ }), this.interactiveLayer && !layerList.includes(this.interactiveLayer) && (this.dirtyBounds && this.dirtyBounds.clear(), this.interactiveLayer.render({
18552
18557
  renderService: this.renderService,
18553
18558
  updateBounds: !(!this.dirtyBounds || this.dirtyBounds.empty()),
18554
18559
  viewBox: this.window.getViewBox(),
18555
18560
  transMatrix: this.window.getViewBoxTransform()
18556
18561
  }, Object.assign({
18557
18562
  renderStyle: this.renderStyle
18558
- }, params));
18563
+ }, params)));
18559
18564
  }
18560
18565
  resizeWindow(w, h) {
18561
18566
  let rerender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
@@ -18596,8 +18601,7 @@
18596
18601
  }
18597
18602
  pick(x, y) {
18598
18603
  if ("released" === this.releaseStatus) return;
18599
- this.pickerService || (this.pickerService = container.get(PickerService));
18600
- const result = this.pickerService.pick(this.children, new Point(x, y), {
18604
+ const result = this.getPickerService().pick(this.children, new Point(x, y), {
18601
18605
  bounds: this.AABBBounds
18602
18606
  });
18603
18607
  return !(!(null == result ? void 0 : result.graphic) && !(null == result ? void 0 : result.group)) && result;
@@ -18682,6 +18686,9 @@
18682
18686
  resumeTriggerEvent() {
18683
18687
  this._eventSystem && this._eventSystem.resumeTriggerEvent();
18684
18688
  }
18689
+ getPickerService() {
18690
+ return this.pickerService || (this.pickerService = container.get(PickerService)), this.pickerService;
18691
+ }
18685
18692
  }
18686
18693
 
18687
18694
  function createStage(params) {
@@ -28284,7 +28291,7 @@
28284
28291
 
28285
28292
  const roughModule = _roughModule;
28286
28293
 
28287
- const version = "0.20.3-alpha.0";
28294
+ const version = "0.20.4";
28288
28295
  preLoadAllModule();
28289
28296
  if (isBrowserEnv()) {
28290
28297
  loadBrowserEnv(container);