@visactor/vrender-components 0.16.20 → 0.16.22

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.js CHANGED
@@ -17,7 +17,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
17
17
 
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
- }), exports.version = void 0, exports.version = "0.16.20", __exportStar(require("./core/base"), exports),
20
+ }), exports.version = void 0, exports.version = "0.16.22", __exportStar(require("./core/base"), exports),
21
21
  __exportStar(require("./scrollbar"), exports), __exportStar(require("./tag"), exports),
22
22
  __exportStar(require("./poptip"), exports), __exportStar(require("./crosshair"), exports),
23
23
  __exportStar(require("./label"), exports), __exportStar(require("./axis"), exports),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,SAAS,CAAC;AAEjC,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.16.20\";\n\nexport * from './core/base';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,SAAS,CAAC;AAEjC,8CAA4B;AAC5B,8CAA4B;AAC5B,wCAAsB;AACtB,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,4CAA0B;AAC1B,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,0CAAwB;AACxB,4CAA0B;AAC1B,8CAA4B;AAC5B,wCAAsB;AACtB,6CAA2B","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.16.22\";\n\nexport * from './core/base';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\n"]}
package/dist/index.js CHANGED
@@ -17133,11 +17133,8 @@
17133
17133
  context.highPerformanceSave();
17134
17134
  var g = graphic.shadowRoot,
17135
17135
  currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix),
17136
- newPoint = new vutils.Point(point.x, point.y);
17137
- parentMatrix.transformPoint(newPoint, newPoint);
17138
- var transMatrix = graphic.transMatrix;
17139
- currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f);
17140
- var result = pickerService.pickGroup(g, newPoint.clone(), currentGroupMatrix, pickParams);
17136
+ newPoint = new vutils.Point(currentGroupMatrix.a * point.x + currentGroupMatrix.c * point.y + currentGroupMatrix.e, currentGroupMatrix.b * point.x + currentGroupMatrix.d * point.y + currentGroupMatrix.f),
17137
+ result = pickerService.pickGroup(g, newPoint, currentGroupMatrix, pickParams);
17141
17138
  return context.highPerformanceRestore(), result;
17142
17139
  }
17143
17140
  }]);
@@ -25180,7 +25177,7 @@
25180
25177
  labelLength += space;
25181
25178
  const layerCount = Object.keys(this.axisLabelLayerSize).length;
25182
25179
  if (axisVector[1] === 0) {
25183
- const labelBoundsHeight = this.axisLabelsContainer.AABBBounds.height();
25180
+ const labelBoundsHeight = this.axisLabelsContainer ? this.axisLabelsContainer.AABBBounds.height() : 0;
25184
25181
  if (isFinite(labelBoundsHeight)) {
25185
25182
  labelLength += labelBoundsHeight + (layerCount - 1) * space;
25186
25183
  }
@@ -25190,7 +25187,7 @@
25190
25187
  }
25191
25188
  else {
25192
25189
  if (axisVector[0] === 0) {
25193
- const boundsWidth = this.axisLabelsContainer.AABBBounds.width();
25190
+ const boundsWidth = this.axisLabelsContainer ? this.axisLabelsContainer.AABBBounds.width() : 0;
25194
25191
  if (isFinite(boundsWidth)) {
25195
25192
  labelLength += boundsWidth + (layerCount - 1) * space;
25196
25193
  }
@@ -26461,8 +26458,13 @@
26461
26458
  this._activeState = true;
26462
26459
  this._activeCache.startPos = this.eventPosToStagePos(e);
26463
26460
  this._activeCache.lastPos = this.eventPosToStagePos(e);
26461
+ if (vglobal.env === 'browser') {
26462
+ vglobal.addEventListener('pointermove', this._onHandlerPointerMove, { capture: true });
26463
+ vglobal.addEventListener('pointerup', this._onHandlerPointerUp.bind(this));
26464
+ }
26465
+ this.addEventListener('pointermove', this._onHandlerPointerMove, { capture: true });
26464
26466
  };
26465
- this._onHandlerPointerMove = (e) => {
26467
+ this._onHandlerPointerMove = delayMap$1[this.attribute.delayType]((e) => {
26466
26468
  var _a;
26467
26469
  e.stopPropagation();
26468
26470
  const { start: startAttr, end: endAttr, brushSelect, realTime = true } = this.attribute;
@@ -26504,7 +26506,7 @@
26504
26506
  realTime && ((_a = this._updateStateCallback) === null || _a === void 0 ? void 0 : _a.call(this, start, end, this._activeTag));
26505
26507
  this._dispatchChangeEvent(start, end);
26506
26508
  }
26507
- };
26509
+ }, this.attribute.delayTime);
26508
26510
  const { start, end, size, orient, showDetail, position, previewData, previewPointsX, previewPointsY, previewPointsX1, previewPointsY1, updateStateCallback } = this.attribute;
26509
26511
  const { width, height } = size;
26510
26512
  start && (this.state.start = start);
@@ -26533,7 +26535,7 @@
26533
26535
  if (this.attribute.disableTriggerEvent) {
26534
26536
  return;
26535
26537
  }
26536
- const { showDetail, brushSelect, delayType = 'throttle', delayTime = 0 } = this.attribute;
26538
+ const { showDetail, brushSelect } = this.attribute;
26537
26539
  if (this._startHandler) {
26538
26540
  this._startHandler.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, 'start'));
26539
26541
  }
@@ -26559,15 +26561,6 @@
26559
26561
  if (this._selectedPreviewGroup) {
26560
26562
  this._selectedPreviewGroup.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, selectedTag));
26561
26563
  }
26562
- if (vglobal.env === 'browser') {
26563
- vglobal.addEventListener('pointermove', delayMap$1[delayType](this._onHandlerPointerMove.bind(this), delayTime), {
26564
- capture: true
26565
- });
26566
- vglobal.addEventListener('pointerup', this._onHandlerPointerUp.bind(this));
26567
- }
26568
- this.addEventListener('pointermove', delayMap$1[delayType](this._onHandlerPointerMove, delayTime), {
26569
- capture: true
26570
- });
26571
26564
  this.addEventListener('pointerup', this._onHandlerPointerUp);
26572
26565
  this.addEventListener('pointerupoutside', this._onHandlerPointerUp);
26573
26566
  if (showDetail === 'auto') {
@@ -26622,6 +26615,11 @@
26622
26615
  (_a = this._updateStateCallback) === null || _a === void 0 ? void 0 : _a.call(this, this.state.start, this.state.end, this._activeTag);
26623
26616
  this._dispatchChangeEvent(this.state.start, this.state.end);
26624
26617
  }
26618
+ if (vglobal.env === 'browser') {
26619
+ vglobal.removeEventListener('pointermove', this._onHandlerPointerMove, { capture: true });
26620
+ vglobal.removeEventListener('pointerup', this._onHandlerPointerUp.bind(this));
26621
+ }
26622
+ this.removeEventListener('pointermove', this._onHandlerPointerMove, { capture: true });
26625
26623
  }
26626
26624
  _onHandlerPointerEnter(e) {
26627
26625
  e.stopPropagation();
@@ -31860,7 +31858,7 @@
31860
31858
  }
31861
31859
  };
31862
31860
 
31863
- const version = "0.16.20";
31861
+ const version = "0.16.22";
31864
31862
 
31865
31863
  exports.AbstractComponent = AbstractComponent;
31866
31864
  exports.ArcInfo = ArcInfo;