@visactor/vrender 0.16.17-alpha.2 → 0.16.17-alpha.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,3 +1,3 @@
1
- export declare const version = "0.16.17-alpha.2";
1
+ export declare const version = "0.16.17-alpha.4";
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.2", (0, vrender_kits_1.loadAllModule)(vrender_core_1.container),
24
+ exports.version = "0.16.17-alpha.4", (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.2\";\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.4\";\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"],
@@ -17180,7 +17186,8 @@
17180
17186
  var _this2 = this;
17181
17187
  var _a;
17182
17188
  var _this$attribute = this.attribute,
17183
- textConfig = _this$attribute.textConfig,
17189
+ _this$attribute$textC = _this$attribute.textConfig,
17190
+ textConfig = _this$attribute$textC === void 0 ? [] : _this$attribute$textC,
17184
17191
  maxWidth = _this$attribute.maxWidth,
17185
17192
  maxHeight = _this$attribute.maxHeight,
17186
17193
  width = _this$attribute.width,
@@ -18409,6 +18416,7 @@
18409
18416
  }, {
18410
18417
  key: "updateRectAABBBounds",
18411
18418
  value: function updateRectAABBBounds(attribute, rectTheme, aabbBounds, graphic) {
18419
+ if (!this._validCheck(attribute, rectTheme, aabbBounds, graphic)) return aabbBounds;
18412
18420
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18413
18421
  var _attribute$width = attribute.width,
18414
18422
  width = _attribute$width === void 0 ? rectTheme.width : _attribute$width,
@@ -18442,13 +18450,14 @@
18442
18450
  }, {
18443
18451
  key: "updateGlyphAABBBounds",
18444
18452
  value: function updateGlyphAABBBounds(attribute, theme, aabbBounds, graphic) {
18445
- return graphic.getSubGraphic().forEach(function (node) {
18453
+ return this._validCheck(attribute, theme, aabbBounds, graphic) ? (graphic.getSubGraphic().forEach(function (node) {
18446
18454
  aabbBounds.union(node.AABBBounds);
18447
- }), aabbBounds;
18455
+ }), aabbBounds) : aabbBounds;
18448
18456
  }
18449
18457
  }, {
18450
18458
  key: "updateRichTextAABBBounds",
18451
18459
  value: function updateRichTextAABBBounds(attribute, richtextTheme, aabbBounds, graphic) {
18460
+ if (!this._validCheck(attribute, richtextTheme, aabbBounds, graphic)) return aabbBounds;
18452
18461
  if (!graphic) return aabbBounds;
18453
18462
  var _attribute$width2 = attribute.width,
18454
18463
  width = _attribute$width2 === void 0 ? richtextTheme.width : _attribute$width2,
@@ -18501,6 +18510,7 @@
18501
18510
  }, {
18502
18511
  key: "updateTextAABBBounds",
18503
18512
  value: function updateTextAABBBounds(attribute, textTheme, aabbBounds, graphic) {
18513
+ if (!this._validCheck(attribute, textTheme, aabbBounds, graphic)) return aabbBounds;
18504
18514
  if (!graphic) return aabbBounds;
18505
18515
  var _graphic$attribute$te = graphic.attribute.text,
18506
18516
  text = _graphic$attribute$te === void 0 ? textTheme.text : _graphic$attribute$te;
@@ -18525,6 +18535,7 @@
18525
18535
  }, {
18526
18536
  key: "updatePathAABBBounds",
18527
18537
  value: function updatePathAABBBounds(attribute, pathTheme, aabbBounds, graphic) {
18538
+ if (!this._validCheck(attribute, pathTheme, aabbBounds, graphic)) return aabbBounds;
18528
18539
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePathAABBBoundsImprecise(attribute, pathTheme, aabbBounds, graphic);
18529
18540
  var tb1 = this.tempAABBBounds1,
18530
18541
  tb2 = this.tempAABBBounds2;
@@ -18576,6 +18587,7 @@
18576
18587
  }, {
18577
18588
  key: "updatePolygonAABBBounds",
18578
18589
  value: function updatePolygonAABBBounds(attribute, polygonTheme, aabbBounds, graphic) {
18590
+ if (!this._validCheck(attribute, polygonTheme, aabbBounds, graphic)) return aabbBounds;
18579
18591
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || this.updatePolygonAABBBoundsImprecise(attribute, polygonTheme, aabbBounds, graphic);
18580
18592
  var tb1 = this.tempAABBBounds1,
18581
18593
  tb2 = this.tempAABBBounds2;
@@ -18596,6 +18608,7 @@
18596
18608
  }, {
18597
18609
  key: "updateLineAABBBounds",
18598
18610
  value: function updateLineAABBBounds(attribute, lineTheme, aabbBounds, graphic) {
18611
+ if (!this._validCheck(attribute, lineTheme, aabbBounds, graphic)) return aabbBounds;
18599
18612
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateLineAABBBoundsBySegments(attribute, lineTheme, aabbBounds, graphic) : this.updateLineAABBBoundsByPoints(attribute, lineTheme, aabbBounds, graphic));
18600
18613
  var tb1 = this.tempAABBBounds1,
18601
18614
  tb2 = this.tempAABBBounds2;
@@ -18629,6 +18642,7 @@
18629
18642
  }, {
18630
18643
  key: "updateAreaAABBBounds",
18631
18644
  value: function updateAreaAABBBounds(attribute, areaTheme, aabbBounds, graphic) {
18645
+ if (!this._validCheck(attribute, areaTheme, aabbBounds, graphic)) return aabbBounds;
18632
18646
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (attribute.segments ? this.updateAreaAABBBoundsBySegments(attribute, areaTheme, aabbBounds, graphic) : this.updateAreaAABBBoundsByPoints(attribute, areaTheme, aabbBounds, graphic));
18633
18647
  var tb1 = this.tempAABBBounds1,
18634
18648
  tb2 = this.tempAABBBounds2;
@@ -18664,6 +18678,7 @@
18664
18678
  }, {
18665
18679
  key: "updateCircleAABBBounds",
18666
18680
  value: function updateCircleAABBBounds(attribute, circleTheme, aabbBounds, full, graphic) {
18681
+ if (!this._validCheck(attribute, circleTheme, aabbBounds, graphic)) return aabbBounds;
18667
18682
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateCircleAABBBoundsImprecise(attribute, circleTheme, aabbBounds, graphic) : this.updateCircleAABBBoundsAccurate(attribute, circleTheme, aabbBounds, graphic));
18668
18683
  var tb1 = this.tempAABBBounds1,
18669
18684
  tb2 = this.tempAABBBounds2;
@@ -18692,6 +18707,7 @@
18692
18707
  }, {
18693
18708
  key: "updateArcAABBBounds",
18694
18709
  value: function updateArcAABBBounds(attribute, arcTheme, aabbBounds, full, graphic) {
18710
+ if (!this._validCheck(attribute, arcTheme, aabbBounds, graphic)) return aabbBounds;
18695
18711
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateArcAABBBoundsImprecise(attribute, arcTheme, aabbBounds, graphic) : this.updateArcAABBBoundsAccurate(attribute, arcTheme, aabbBounds, graphic));
18696
18712
  var tb1 = this.tempAABBBounds1,
18697
18713
  tb2 = this.tempAABBBounds2;
@@ -18733,6 +18749,7 @@
18733
18749
  }, {
18734
18750
  key: "updateSymbolAABBBounds",
18735
18751
  value: function updateSymbolAABBBounds(attribute, symbolTheme, aabbBounds, full, graphic) {
18752
+ if (!this._validCheck(attribute, symbolTheme, aabbBounds, graphic)) return aabbBounds;
18736
18753
  this.updatePathProxyAABBBounds(aabbBounds, graphic) || (full ? this.updateSymbolAABBBoundsImprecise(attribute, symbolTheme, aabbBounds, graphic) : this.updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds, graphic));
18737
18754
  var tb1 = this.tempAABBBounds1,
18738
18755
  tb2 = this.tempAABBBounds2;
@@ -18765,6 +18782,7 @@
18765
18782
  }, {
18766
18783
  key: "updateImageAABBBounds",
18767
18784
  value: function updateImageAABBBounds(attribute, imageTheme, aabbBounds, graphic) {
18785
+ if (!this._validCheck(attribute, imageTheme, aabbBounds, graphic)) return aabbBounds;
18768
18786
  if (!this.updatePathProxyAABBBounds(aabbBounds, graphic)) {
18769
18787
  var _attribute$width3 = attribute.width,
18770
18788
  width = _attribute$width3 === void 0 ? imageTheme.width : _attribute$width3,
@@ -18811,6 +18829,15 @@
18811
18829
  }
18812
18830
  this.combindShadowAABBBounds(aabbBounds, graphic), transformBoundsWithMatrix(aabbBounds, aabbBounds, graphic.transMatrix);
18813
18831
  }
18832
+ }, {
18833
+ key: "_validCheck",
18834
+ value: function _validCheck(attribute, theme, aabbBounds, graphic) {
18835
+ if (!graphic) return !0;
18836
+ if (!graphic.valid) return aabbBounds.clear(), !1;
18837
+ var _attribute$visible = attribute.visible,
18838
+ visible = _attribute$visible === void 0 ? theme.visible : _attribute$visible;
18839
+ return !!visible || (aabbBounds.clear(), !1);
18840
+ }
18814
18841
  }]);
18815
18842
  return DefaultGraphicService;
18816
18843
  }();
@@ -24878,7 +24905,7 @@
24878
24905
  canvasId: params.canvas
24879
24906
  } : {
24880
24907
  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({
24908
+ })), _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
24909
  targetElement: _this.window,
24883
24910
  resolution: _this.window.dpr || _this.global.devicePixelRatio,
24884
24911
  rootNode: _assertThisInitialized(_this),
@@ -24898,7 +24925,7 @@
24898
24925
  return this.viewBox.height();
24899
24926
  }
24900
24927
  }
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({
24928
+ }, 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
24929
  background: _this._background
24903
24930
  });
24904
24931
  return _this;
@@ -29180,7 +29207,7 @@
29180
29207
  var _this;
29181
29208
  var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
29182
29209
  _classCallCheck(this, Gesture);
29183
- var _a, _b, _c, _d, _e, _f, _g, _h;
29210
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
29184
29211
  _this = _super.call(this), _this.cachedEvents = [], _this.startPoints = [], _this.processEvent = {}, _this.throttleTimer = 0, _this.emitThrottles = [], _this.onStart = function (ev) {
29185
29212
  _this.reset(), _this.startTime = clock.now();
29186
29213
  var _assertThisInitialize = _assertThisInitialized(_this),
@@ -29265,13 +29292,14 @@
29265
29292
  velocity > _this.config.swipe.velocity && distance > _this.config.swipe.threshold && (endEvent.velocity = velocity, endEvent.direction = calcDirection(prevMovePoint, lastMovePoint), _this.triggerEvent("swipe", endEvent));
29266
29293
  }
29267
29294
  }
29295
+ 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
29296
  }
29269
29297
  for (var i = 0, len = cachedEvents.length; i < len; i++) if (cachedEvents[i].pointerId === endEvent.pointerId) {
29270
29298
  cachedEvents.splice(i, 1), startPoints.splice(i, 1);
29271
29299
  break;
29272
29300
  }
29273
29301
  _this.reset(), cachedEvents.length > 0 && _this.onStart();
29274
- }, _this.element = element, _this.config = {
29302
+ }, _this.element = element, _this.tapCount = 0, _this.lastTapTime = 0, _this.config = {
29275
29303
  press: {
29276
29304
  time: null !== (_b = null === (_a = null == config ? void 0 : config.press) || void 0 === _a ? void 0 : _a.time) && void 0 !== _b ? _b : 251,
29277
29305
  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 +29307,9 @@
29279
29307
  swipe: {
29280
29308
  threshold: null !== (_f = null === (_e = null == config ? void 0 : config.swipe) || void 0 === _e ? void 0 : _e.threshold) && void 0 !== _f ? _f : 10,
29281
29309
  velocity: null !== (_h = null === (_g = null == config ? void 0 : config.swipe) || void 0 === _g ? void 0 : _g.velocity) && void 0 !== _h ? _h : .3
29310
+ },
29311
+ tap: {
29312
+ interval: null !== (_k = null === (_j = null == config ? void 0 : config.tap) || void 0 === _j ? void 0 : _j.interval) && void 0 !== _k ? _k : 300
29282
29313
  }
29283
29314
  }, _this.initEvents();
29284
29315
  return _this;
@@ -31999,6 +32030,7 @@
31999
32030
  key: "contains",
32000
32031
  value: function contains(polygon, point, params) {
32001
32032
  if (!polygon.AABBBounds.contains(point.x, point.y)) return !1;
32033
+ if ("imprecise" === polygon.attribute.pickMode) return !0;
32002
32034
  var _ref = null != params ? params : {},
32003
32035
  pickContext = _ref.pickContext;
32004
32036
  if (!pickContext) return !1;
@@ -34646,7 +34678,7 @@
34646
34678
 
34647
34679
  var roughModule = _roughModule;
34648
34680
 
34649
- const version = "0.16.17-alpha.2";
34681
+ const version = "0.16.17-alpha.4";
34650
34682
  loadAllModule(container);
34651
34683
 
34652
34684
  exports.ACustomAnimate = ACustomAnimate;