@visactor/vrender 0.16.17-alpha.3 → 0.16.17-alpha.8

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.3";
1
+ export declare const version = "0.16.17-alpha.8";
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.3", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
24
+ exports.version = "0.16.17-alpha.8", (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.3\";\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.8\";\n\nloadAllModule(container);\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\n"]}
package/dist/index.js CHANGED
@@ -8261,7 +8261,7 @@
8261
8261
  return "mouse" === pointerType || "pen" === pointerType;
8262
8262
  }
8263
8263
  var EventManager = /*#__PURE__*/function () {
8264
- function EventManager(root) {
8264
+ function EventManager(root, config) {
8265
8265
  var _this = this;
8266
8266
  _classCallCheck(this, EventManager);
8267
8267
  this.dispatch = new EventEmitter(), this.mappingState = {
@@ -8329,6 +8329,7 @@
8329
8329
  }
8330
8330
  _this.cursor = "";
8331
8331
  }, this.onPointerUp = function (from, target) {
8332
+ var _a;
8332
8333
  if (!(from instanceof FederatedPointerEvent)) return void console.warn("EventManager cannot map a non-pointer event as a pointer event");
8333
8334
  var now = clock.now(),
8334
8335
  e = _this.createPointerEvent(from, from.type, target);
@@ -8358,7 +8359,7 @@
8358
8359
  timeStamp: now
8359
8360
  });
8360
8361
  var clickHistory = trackingData.clicksByButton[from.button];
8361
- clickHistory.target === clickEvent.target && now - clickHistory.timeStamp < 200 ? ++clickHistory.clickCount : clickHistory.clickCount = 1, clickHistory.target = clickEvent.target, clickHistory.timeStamp = now, clickEvent.detail = clickHistory.clickCount, isMouseLike(clickEvent.pointerType) ? (_this.dispatchEvent(clickEvent, "click"), 2 === clickHistory.clickCount && _this.dispatchEvent(clickEvent, "dblclick")) : "touch" === clickEvent.pointerType && _this.dispatchEvent(clickEvent, "tap"), _this.dispatchEvent(clickEvent, "pointertap"), _this.freeEvent(clickEvent);
8362
+ clickHistory.target === clickEvent.target && now - clickHistory.timeStamp < (null !== (_a = _this._config.clickInterval) && void 0 !== _a ? _a : 200) ? ++clickHistory.clickCount : clickHistory.clickCount = 1, clickHistory.target = clickEvent.target, clickHistory.timeStamp = now, clickEvent.detail = clickHistory.clickCount, isMouseLike(clickEvent.pointerType) ? (_this.dispatchEvent(clickEvent, "click"), 2 === clickHistory.clickCount && _this.dispatchEvent(clickEvent, "dblclick")) : "touch" === clickEvent.pointerType && _this.dispatchEvent(clickEvent, "tap"), _this.dispatchEvent(clickEvent, "pointertap"), _this.freeEvent(clickEvent);
8362
8363
  }
8363
8364
  _this.freeEvent(e);
8364
8365
  }, this.onPointerUpOutside = function (from, target) {
@@ -8376,7 +8377,9 @@
8376
8377
  if (!(from instanceof FederatedWheelEvent)) return void console.warn("EventManager cannot map a non-wheel event as a wheel event");
8377
8378
  var wheelEvent = _this.createWheelEvent(from, target);
8378
8379
  _this.dispatchEvent(wheelEvent), _this.freeEvent(wheelEvent);
8379
- }, this.rootTarget = root, this.mappingTable = {}, this.addEventMapping("pointerdown", this.onPointerDown), this.addEventMapping("pointermove", this.onPointerMove), this.addEventMapping("pointerout", this.onPointerOut), this.addEventMapping("pointerleave", this.onPointerOut), this.addEventMapping("pointerover", this.onPointerOver), this.addEventMapping("pointerup", this.onPointerUp), this.addEventMapping("pointerupoutside", this.onPointerUpOutside), this.addEventMapping("wheel", this.onWheel);
8380
+ }, this.rootTarget = root, this.mappingTable = {}, this._config = Object.assign({
8381
+ clickInterval: 200
8382
+ }, config), this.addEventMapping("pointerdown", this.onPointerDown), this.addEventMapping("pointermove", this.onPointerMove), this.addEventMapping("pointerout", this.onPointerOut), this.addEventMapping("pointerleave", this.onPointerOut), this.addEventMapping("pointerover", this.onPointerOver), this.addEventMapping("pointerup", this.onPointerUp), this.addEventMapping("pointerupoutside", this.onPointerUpOutside), this.addEventMapping("wheel", this.onWheel);
8380
8383
  }
8381
8384
  _createClass(EventManager, [{
8382
8385
  key: "addEventMapping",
@@ -8603,8 +8606,11 @@
8603
8606
  global = params.global,
8604
8607
  viewport = params.viewport,
8605
8608
  _params$autoPreventDe = params.autoPreventDefault,
8606
- autoPreventDefault = _params$autoPreventDe === void 0 ? !1 : _params$autoPreventDe;
8607
- this.manager = new EventManager(rootNode), this.globalObj = global, this.supportsPointerEvents = global.supportsPointerEvents, this.supportsTouchEvents = global.supportsTouchEvents, this.supportsMouseEvents = global.supportsMouseEvents, this.applyStyles = global.applyStyles, this.autoPreventDefault = autoPreventDefault, this.eventsAdded = !1, this.viewport = viewport, this.rootPointerEvent = new FederatedPointerEvent(), this.rootWheelEvent = new FederatedWheelEvent(), this.cursorStyles = {
8609
+ autoPreventDefault = _params$autoPreventDe === void 0 ? !1 : _params$autoPreventDe,
8610
+ clickInterval = params.clickInterval;
8611
+ this.manager = new EventManager(rootNode, {
8612
+ clickInterval: clickInterval
8613
+ }), this.globalObj = global, this.supportsPointerEvents = global.supportsPointerEvents, this.supportsTouchEvents = global.supportsTouchEvents, this.supportsMouseEvents = global.supportsMouseEvents, this.applyStyles = global.applyStyles, this.autoPreventDefault = autoPreventDefault, this.eventsAdded = !1, this.viewport = viewport, this.rootPointerEvent = new FederatedPointerEvent(), this.rootWheelEvent = new FederatedWheelEvent(), this.cursorStyles = {
8608
8614
  "default": "inherit",
8609
8615
  pointer: "pointer"
8610
8616
  }, this.resolution = resolution, this.setTargetElement(targetElement);
@@ -12004,7 +12010,7 @@
12004
12010
  var tempMatrix = new Matrix(),
12005
12011
  tempBounds$1 = new AABBBounds();
12006
12012
  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"];
12013
+ var GRAPHIC_UPDATE_TAG_KEY = ["lineWidth", "scaleX", "scaleY", "angle", "anchor", "visible"];
12008
12014
  var tempConstantXYKey = ["x", "y"],
12009
12015
  tempConstantScaleXYKey = ["scaleX", "scaleY"],
12010
12016
  tempConstantAngleKey = ["angle"],
@@ -15991,9 +15997,7 @@
15991
15997
  cacheList = [];
15992
15998
  _path.forEach(function (item) {
15993
15999
  var cache = new CustomPath2D().fromString(item.d),
15994
- attribute = {
15995
- fill: "black"
15996
- };
16000
+ attribute = {};
15997
16001
  SVG_PARSE_ATTRIBUTE_MAP_KEYS.forEach(function (k) {
15998
16002
  item[k] && (attribute[SVG_PARSE_ATTRIBUTE_MAP[k]] = item[k]);
15999
16003
  }), cacheList.push({
@@ -17180,7 +17184,8 @@
17180
17184
  var _this2 = this;
17181
17185
  var _a;
17182
17186
  var _this$attribute = this.attribute,
17183
- textConfig = _this$attribute.textConfig,
17187
+ _this$attribute$textC = _this$attribute.textConfig,
17188
+ textConfig = _this$attribute$textC === void 0 ? [] : _this$attribute$textC,
17184
17189
  maxWidth = _this$attribute.maxWidth,
17185
17190
  maxHeight = _this$attribute.maxHeight,
17186
17191
  width = _this$attribute.width,
@@ -18409,6 +18414,7 @@
18409
18414
  }, {
18410
18415
  key: "updateRectAABBBounds",
18411
18416
  value: function updateRectAABBBounds(attribute, rectTheme, aabbBounds, graphic) {
18417
+ if (!this._validCheck(attribute, rectTheme, aabbBounds, graphic)) return aabbBounds;
18412
18418
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18413
18419
  var _attribute$width = attribute.width,
18414
18420
  width = _attribute$width === void 0 ? rectTheme.width : _attribute$width,
@@ -18442,13 +18448,14 @@
18442
18448
  }, {
18443
18449
  key: "updateGlyphAABBBounds",
18444
18450
  value: function updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
18445
- return graphic.getSubGraphic().forEach(function (node) {
18451
+ return this._validCheck(attribute, theme, aabbBounds, graphic) ? (graphic.getSubGraphic().forEach(function (node) {
18446
18452
  aabbBounds.union(node.AABBBounds);
18447
- }), aabbBounds;
18453
+ }), aabbBounds) : aabbBounds;
18448
18454
  }
18449
18455
  }, {
18450
18456
  key: "updateRichTextAABBBounds",
18451
18457
  value: function updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
18458
+ if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
18452
18459
  if (!graphic) return aabbBounds;
18453
18460
  var _attribute$width2 = attribute.width,
18454
18461
  width = _attribute$width2 === void 0 ? richtextTheme.width : _attribute$width2,
@@ -18501,6 +18508,7 @@
18501
18508
  }, {
18502
18509
  key: "updateTextAABBBounds",
18503
18510
  value: function updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
18511
+ if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
18504
18512
  if (!graphic) return aabbBounds;
18505
18513
  var _graphic$attribute$te = graphic.attribute.text,
18506
18514
  text = _graphic$attribute$te === void 0 ? textTheme.text : _graphic$attribute$te;
@@ -18525,6 +18533,7 @@
18525
18533
  }, {
18526
18534
  key: "updatePathAABBBounds",
18527
18535
  value: function updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
18536
+ if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
18528
18537
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
18529
18538
  var tb1 = this.tempAABBBounds1,
18530
18539
  tb2 = this.tempAABBBounds2;
@@ -18576,6 +18585,7 @@
18576
18585
  }, {
18577
18586
  key: "updatePolygonAABBBounds",
18578
18587
  value: function updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
18588
+ if (!this._validCheck(attribute, polygonTheme, aabbBounds, graphic)) return aabbBounds;
18579
18589
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
18580
18590
  var tb1 = this.tempAABBBounds1,
18581
18591
  tb2 = this.tempAABBBounds2;
@@ -18596,6 +18606,7 @@
18596
18606
  }, {
18597
18607
  key: "updateLineAABBBounds",
18598
18608
  value: function updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
18609
+ if (!this._validCheck(attribute, lineTheme, aabbBounds, graphic)) return aabbBounds;
18599
18610
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
18600
18611
  var tb1 = this.tempAABBBounds1,
18601
18612
  tb2 = this.tempAABBBounds2;
@@ -18629,6 +18640,7 @@
18629
18640
  }, {
18630
18641
  key: "updateAreaAABBBounds",
18631
18642
  value: function updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
18643
+ if (!this._validCheck(attribute, areaTheme, aabbBounds, graphic)) return aabbBounds;
18632
18644
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
18633
18645
  var tb1 = this.tempAABBBounds1,
18634
18646
  tb2 = this.tempAABBBounds2;
@@ -18664,6 +18676,7 @@
18664
18676
  }, {
18665
18677
  key: "updateCircleAABBBounds",
18666
18678
  value: function updateCircleAABBBounds(attribute, circleTheme, aabbBounds, full, graphic) {
18679
+ if (!this._validCheck(attribute, circleTheme, aabbBounds, graphic)) return aabbBounds;
18667
18680
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds, graphic));
18668
18681
  var tb1 = this.tempAABBBounds1,
18669
18682
  tb2 = this.tempAABBBounds2;
@@ -18692,6 +18705,7 @@
18692
18705
  }, {
18693
18706
  key: "updateArcAABBBounds",
18694
18707
  value: function updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
18708
+ if (!this._validCheck(attribute, arcTheme, aabbBounds, graphic)) return aabbBounds;
18695
18709
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
18696
18710
  var tb1 = this.tempAABBBounds1,
18697
18711
  tb2 = this.tempAABBBounds2;
@@ -18733,6 +18747,7 @@
18733
18747
  }, {
18734
18748
  key: "updateSymbolAABBBounds",
18735
18749
  value: function updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
18750
+ if (!this._validCheck(attribute, symbolTheme, aabbBounds, graphic)) return aabbBounds;
18736
18751
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
18737
18752
  var tb1 = this.tempAABBBounds1,
18738
18753
  tb2 = this.tempAABBBounds2;
@@ -18765,6 +18780,7 @@
18765
18780
  }, {
18766
18781
  key: "updateImageAABBBounds",
18767
18782
  value: function updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
18783
+ if (!this._validCheck(attribute, imageTheme, aabbBounds, graphic)) return aabbBounds;
18768
18784
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18769
18785
  var _attribute$width3 = attribute.width,
18770
18786
  width = _attribute$width3 === void 0 ? imageTheme.width : _attribute$width3,
@@ -18811,6 +18827,15 @@
18811
18827
  }
18812
18828
  this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
18813
18829
  }
18830
+ }, {
18831
+ key: "_validCheck",
18832
+ value: function _validCheck(attribute, theme, aabbBounds, graphic) {
18833
+ if (!graphic) return !0;
18834
+ if (!graphic.valid) return aabbBounds.clear(), !1;
18835
+ var _attribute$visible = attribute.visible,
18836
+ visible = _attribute$visible === void 0 ? theme.visible : _attribute$visible;
18837
+ return !!visible || (aabbBounds.clear(), !1);
18838
+ }
18814
18839
  }]);
18815
18840
  return DefaultGraphicService;
18816
18841
  }();
@@ -20281,10 +20306,20 @@
20281
20306
  var p = context.project(x, y, z),
20282
20307
  camera = context.camera;
20283
20308
  context.camera = null, !1 === parsedPath.draw(context, size, p.x, p.y, void 0, function (p, a) {
20284
- a.fill && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : (context.setCommonStyle(symbol, a, originX - x, originY - y), context.fill())), a.stroke && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : (context.setStrokeStyle(symbol, a, (originX - x) / scaleX, (originY - y) / scaleY), context.stroke()));
20309
+ var _a, _b, _c;
20310
+ if (symbol._parsedPath.svgCache) {
20311
+ var obj = Object.assign({}, a);
20312
+ obj.fill = null !== (_a = a.fill) && void 0 !== _a ? _a : symbol.attribute.fill, obj.opacity = null !== (_b = a.fill) && void 0 !== _b ? _b : symbol.attribute.opacity, obj.fillOpacity = symbol.attribute.fillOpacity, obj.stroke = null !== (_c = a.stroke) && void 0 !== _c ? _c : symbol.attribute.stroke, a = obj;
20313
+ }
20314
+ a.fill && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : (context.setCommonStyle(symbol, a, originX - x, originY - y, symbolAttribute), context.fill())), a.stroke && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : (context.setStrokeStyle(symbol, a, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute), context.stroke()));
20285
20315
  }) && context.closePath(), context.camera = camera;
20286
20316
  } else !1 === parsedPath.draw(context, size, x, y, z, function (p, a) {
20287
- a.fill && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : (context.setCommonStyle(symbol, a, originX - x, originY - y), context.fill())), a.stroke && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : (context.setStrokeStyle(symbol, a, (originX - x) / scaleX, (originY - y) / scaleY), context.stroke()));
20317
+ var _a, _b, _c;
20318
+ if (symbol._parsedPath.svgCache) {
20319
+ var obj = Object.assign({}, a);
20320
+ obj.fill = null !== (_a = a.fill) && void 0 !== _a ? _a : symbol.attribute.fill, obj.opacity = null !== (_b = a.opacity) && void 0 !== _b ? _b : symbol.attribute.opacity, obj.fillOpacity = symbol.attribute.fillOpacity, obj.stroke = null !== (_c = a.stroke) && void 0 !== _c ? _c : symbol.attribute.stroke, a = obj;
20321
+ }
20322
+ a.fill && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : (context.setCommonStyle(symbol, a, originX - x, originY - y, symbolAttribute), context.fill())), a.stroke && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : (context.setStrokeStyle(symbol, a, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute), context.stroke()));
20288
20323
  }) && context.closePath();
20289
20324
  context.setShadowBlendStyle && context.setShadowBlendStyle(symbol, symbol.attribute, symbolAttribute), this.beforeRenderStep(symbol, context, x, y, doFill, doStroke, fVisible, sVisible, symbolAttribute, drawContext, fillCb, strokeCb), doFill && !parsedPath.isSvg && (fillCb ? fillCb(context, symbol.attribute, symbolAttribute) : fVisible && (context.setCommonStyle(symbol, symbol.attribute, originX - x, originY - y, symbolAttribute), context.fill())), doStroke && !parsedPath.isSvg && (strokeCb ? strokeCb(context, symbol.attribute, symbolAttribute) : sVisible && (context.setStrokeStyle(symbol, symbol.attribute, (originX - x) / scaleX, (originY - y) / scaleY, symbolAttribute), context.stroke())), this.afterRenderStep(symbol, context, x, y, doFill, doStroke, fVisible, sVisible, symbolAttribute, drawContext, fillCb, strokeCb);
20290
20325
  }
@@ -20722,7 +20757,7 @@
20722
20757
  var repeat = 0;
20723
20758
  if ("repeat" === repeatX && (repeat |= 1), "repeat" === repeatY && (repeat |= 2), repeat) {
20724
20759
  var pattern = context.createPattern(res.data, repeatStr[repeat]);
20725
- context.fillStyle = pattern, context.fillRect(x, y, width, height);
20760
+ context.fillStyle = pattern, context.translate(x, y, !0), context.fillRect(0, 0, width, height), context.translate(-x, -y, !0);
20726
20761
  } else context.drawImage(res.data, x, y, width, height);
20727
20762
  needRestore && context.restore();
20728
20763
  }
@@ -21953,7 +21988,7 @@
21953
21988
  graphic.add(g);
21954
21989
  });
21955
21990
  } else result = pickerService.pickGroup(graphic, point, params.parentMatrix, pickParams);
21956
- return context.camera = null, pickParams.in3dInterceptor = !1, result;
21991
+ return context.camera = null, pickParams.in3dInterceptor = !1, context.restore(), result;
21957
21992
  }
21958
21993
  return context.restore(), null;
21959
21994
  }
@@ -24878,7 +24913,7 @@
24878
24913
  canvasId: params.canvas
24879
24914
  } : {
24880
24915
  main: !0
24881
- })), _this.nextFrameRenderLayerSet = new Set(), _this.willNextFrameRender = !1, _this.stage = _assertThisInitialized(_this), _this.renderStyle = params.renderStyle, _this.global.supportEvent && (_this.eventSystem = new EventSystem({
24916
+ })), _this.nextFrameRenderLayerSet = new Set(), _this.willNextFrameRender = !1, _this.stage = _assertThisInitialized(_this), _this.renderStyle = params.renderStyle, _this.global.supportEvent && (_this.eventSystem = new EventSystem(Object.assign({
24882
24917
  targetElement: _this.window,
24883
24918
  resolution: _this.window.dpr || _this.global.devicePixelRatio,
24884
24919
  rootNode: _assertThisInitialized(_this),
@@ -24898,7 +24933,7 @@
24898
24933
  return this.viewBox.height();
24899
24934
  }
24900
24935
  }
24901
- })), params.autoRender && _this.enableAutoRender(), !1 === params.disableDirtyBounds && _this.enableDirtyBounds(), params.enableHtmlAttribute && _this.enableHtmlAttribute(params.enableHtmlAttribute), params.enableLayout && _this.enableLayout(), _this.hooks.beforeRender.tap("constructor", _this.beforeRender), _this.hooks.afterRender.tap("constructor", _this.afterRender), _this._beforeRender = params.beforeRender, _this._afterRender = params.afterRender, _this.ticker = params.ticker || defaultTicker, _this.supportInteractiveLayer = !1 !== params.interactiveLayer, _this.timeline = new DefaultTimeline(), _this.ticker.addTimeline(_this.timeline), _this.timeline.pause(), _this.optmize(params.optimize), _this._background && isString$1(_this._background) && _this.setAttributes({
24936
+ }, params.event))), params.autoRender && _this.enableAutoRender(), !1 === params.disableDirtyBounds && _this.enableDirtyBounds(), params.enableHtmlAttribute && _this.enableHtmlAttribute(params.enableHtmlAttribute), params.enableLayout && _this.enableLayout(), _this.hooks.beforeRender.tap("constructor", _this.beforeRender), _this.hooks.afterRender.tap("constructor", _this.afterRender), _this._beforeRender = params.beforeRender, _this._afterRender = params.afterRender, _this.ticker = params.ticker || defaultTicker, _this.supportInteractiveLayer = !1 !== params.interactiveLayer, _this.timeline = new DefaultTimeline(), _this.ticker.addTimeline(_this.timeline), _this.timeline.pause(), _this.optmize(params.optimize), params.background && isString$1(_this._background) && _this._background.includes("/") && _this.setAttributes({
24902
24937
  background: _this._background
24903
24938
  });
24904
24939
  return _this;
@@ -29180,7 +29215,7 @@
29180
29215
  var _this;
29181
29216
  var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
29182
29217
  _classCallCheck(this, Gesture);
29183
- var _a, _b, _c, _d, _e, _f, _g, _h;
29218
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
29184
29219
  _this = _super.call(this), _this.cachedEvents = [], _this.startPoints = [], _this.processEvent = {}, _this.throttleTimer = 0, _this.emitThrottles = [], _this.onStart = function (ev) {
29185
29220
  _this.reset(), _this.startTime = clock.now();
29186
29221
  var _assertThisInitialize = _assertThisInitialized(_this),
@@ -29265,13 +29300,14 @@
29265
29300
  velocity > _this.config.swipe.velocity && distance > _this.config.swipe.threshold && (endEvent.velocity = velocity, endEvent.direction = calcDirection(prevMovePoint, lastMovePoint), _this.triggerEvent("swipe", endEvent));
29266
29301
  }
29267
29302
  }
29303
+ now - _this.lastTapTime < _this.config.tap.interval ? _this.tapCount++ : _this.tapCount = 1, _this.lastTapTime = now, 1 === _this.tapCount ? _this.triggerEvent("tap", endEvent) : 2 === _this.tapCount && (_this.triggerEvent("doubletap", endEvent), _this.tapCount = 0);
29268
29304
  }
29269
29305
  for (var i = 0, len = cachedEvents.length; i < len; i++) if (cachedEvents[i].pointerId === endEvent.pointerId) {
29270
29306
  cachedEvents.splice(i, 1), startPoints.splice(i, 1);
29271
29307
  break;
29272
29308
  }
29273
29309
  _this.reset(), cachedEvents.length > 0 && _this.onStart();
29274
- }, _this.element = element, _this.config = {
29310
+ }, _this.element = element, _this.tapCount = 0, _this.lastTapTime = 0, _this.config = {
29275
29311
  press: {
29276
29312
  time: null !== (_b = null === (_a = null == config ? void 0 : config.press) || void 0 === _a ? void 0 : _a.time) && void 0 !== _b ? _b : 251,
29277
29313
  threshold: null !== (_d = null === (_c = null == config ? void 0 : config.press) || void 0 === _c ? void 0 : _c.threshold) && void 0 !== _d ? _d : 9
@@ -29279,6 +29315,9 @@
29279
29315
  swipe: {
29280
29316
  threshold: null !== (_f = null === (_e = null == config ? void 0 : config.swipe) || void 0 === _e ? void 0 : _e.threshold) && void 0 !== _f ? _f : 10,
29281
29317
  velocity: null !== (_h = null === (_g = null == config ? void 0 : config.swipe) || void 0 === _g ? void 0 : _g.velocity) && void 0 !== _h ? _h : .3
29318
+ },
29319
+ tap: {
29320
+ interval: null !== (_k = null === (_j = null == config ? void 0 : config.tap) || void 0 === _j ? void 0 : _j.interval) && void 0 !== _k ? _k : 300
29282
29321
  }
29283
29322
  }, _this.initEvents();
29284
29323
  return _this;
@@ -31999,6 +32038,7 @@
31999
32038
  key: "contains",
32000
32039
  value: function contains(polygon, point, params) {
32001
32040
  if (!polygon.AABBBounds.contains(point.x, point.y)) return !1;
32041
+ if ("imprecise" === polygon.attribute.pickMode) return !0;
32002
32042
  var _ref = null != params ? params : {},
32003
32043
  pickContext = _ref.pickContext;
32004
32044
  if (!pickContext) return !1;
@@ -34646,7 +34686,7 @@
34646
34686
 
34647
34687
  var roughModule = _roughModule;
34648
34688
 
34649
- const version = "0.16.17-alpha.3";
34689
+ const version = "0.16.17-alpha.8";
34650
34690
  loadAllModule(container);
34651
34691
 
34652
34692
  exports.ACustomAnimate = ACustomAnimate;