@visactor/vrender-components 0.17.2-alpha.4 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12759,24 +12759,25 @@
12759
12759
  var halfPi = vutils.pi / 2;
12760
12760
  function createRectPath(path, x, y, width, height, rectCornerRadius) {
12761
12761
  var cornerRadius;
12762
- if (width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), vutils.isNumber(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius, rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
12762
+ if (width < 0 && (x += width, width = -width), height < 0 && (y += height, height = -height), vutils.isNumber(rectCornerRadius, !0)) cornerRadius = [rectCornerRadius = vutils.abs(rectCornerRadius), rectCornerRadius, rectCornerRadius, rectCornerRadius];else if (Array.isArray(rectCornerRadius)) {
12763
12763
  var cornerRadiusArr = rectCornerRadius;
12764
+ var cr0, cr1;
12764
12765
  switch (cornerRadiusArr.length) {
12765
12766
  case 0:
12766
12767
  cornerRadius = [0, 0, 0, 0];
12767
12768
  break;
12768
12769
  case 1:
12769
- cornerRadius = [cornerRadiusArr[0], cornerRadiusArr[0], cornerRadiusArr[0], cornerRadiusArr[0]];
12770
+ cr0 = vutils.abs(cornerRadiusArr[0]), cornerRadius = [cr0, cr0, cr0, cr0];
12770
12771
  break;
12771
12772
  case 2:
12772
12773
  case 3:
12773
- cornerRadius = [cornerRadiusArr[0], cornerRadiusArr[1], cornerRadiusArr[0], cornerRadiusArr[1]];
12774
+ cr0 = vutils.abs(cornerRadiusArr[0]), cr1 = vutils.abs(cornerRadiusArr[1]), cornerRadius = [cr0, cr1, cr0, cr1];
12774
12775
  break;
12775
12776
  default:
12776
- cornerRadius = cornerRadiusArr.slice(0, 5);
12777
+ cornerRadius = cornerRadiusArr, cornerRadius[0] = vutils.abs(cornerRadius[0]), cornerRadius[1] = vutils.abs(cornerRadius[1]), cornerRadius[2] = vutils.abs(cornerRadius[2]), cornerRadius[3] = vutils.abs(cornerRadius[3]);
12777
12778
  }
12778
12779
  } else cornerRadius = [0, 0, 0, 0];
12779
- if (width < 0 || Math.abs(cornerRadius[0]) + Math.abs(cornerRadius[1]) + Math.abs(cornerRadius[2]) + Math.abs(cornerRadius[3]) < 1e-12) return path.rect(x, y, width, height);
12780
+ if (width < 0 || cornerRadius[0] + cornerRadius[1] + cornerRadius[2] + cornerRadius[3] < 1e-12) return path.rect(x, y, width, height);
12780
12781
  var leftTop = [x, y],
12781
12782
  rightTop = [x + width, y],
12782
12783
  rightBottom = [x + width, y + height],
@@ -14915,11 +14916,8 @@
14915
14916
  context.highPerformanceSave();
14916
14917
  var g = graphic.shadowRoot,
14917
14918
  currentGroupMatrix = matrixAllocate.allocateByObj(parentMatrix),
14918
- newPoint = new vutils.Point(point.x, point.y);
14919
- parentMatrix.transformPoint(newPoint, newPoint);
14920
- var transMatrix = graphic.transMatrix;
14921
- currentGroupMatrix.multiply(transMatrix.a, transMatrix.b, transMatrix.c, transMatrix.d, transMatrix.e, transMatrix.f);
14922
- var result = pickerService.pickGroup(g, newPoint.clone(), currentGroupMatrix, pickParams);
14919
+ newPoint = new vutils.Point(currentGroupMatrix.a * point.x + currentGroupMatrix.c * point.y + currentGroupMatrix.e, currentGroupMatrix.b * point.x + currentGroupMatrix.d * point.y + currentGroupMatrix.f),
14920
+ result = pickerService.pickGroup(g, newPoint, currentGroupMatrix, pickParams);
14923
14921
  return context.highPerformanceRestore(), result;
14924
14922
  }
14925
14923
  }]);
@@ -18701,8 +18699,8 @@
18701
18699
  y1: top,
18702
18700
  x2: width - right,
18703
18701
  y2: height - bottom,
18704
- width: width - (left + right),
18705
- height: height - (top + bottom)
18702
+ width: Math.max(0, width - (left + right)),
18703
+ height: Math.max(0, height - (top + bottom))
18706
18704
  };
18707
18705
  this._sliderRenderBounds = renderBounds;
18708
18706
  return renderBounds;
@@ -24280,6 +24278,7 @@
24280
24278
  },
24281
24279
  startHandlerStyle: {
24282
24280
  visible: true,
24281
+ triggerMinSize: 40,
24283
24282
  symbolType: 'M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z',
24284
24283
  fill: 'white',
24285
24284
  stroke: '#B0C8F9',
@@ -24287,6 +24286,7 @@
24287
24286
  },
24288
24287
  endHandlerStyle: {
24289
24288
  visible: true,
24289
+ triggerMinSize: 40,
24290
24290
  symbolType: 'M -0.0544 0.25 C -0.0742 0.25 -0.0901 0.234 -0.0901 0.2143 L -0.0901 -0.1786 C -0.0901 -0.1983 -0.0742 -0.2143 -0.0544 -0.2143 L -0.0187 -0.2143 L -0.0187 -0.5 L 0.017 -0.5 L 0.017 -0.2143 L 0.0527 -0.2143 C 0.0724 -0.2143 0.0884 -0.1983 0.0884 -0.1786 L 0.0884 0.2143 C 0.0884 0.234 0.0724 0.25 0.0527 0.25 L 0.017 0.25 L 0.017 0.5 L -0.0187 0.5 L -0.0187 0.25 L -0.0544 0.25 Z M -0.0187 -0.1429 L -0.0544 -0.1429 L -0.0544 0.1786 L -0.0187 0.1786 L -0.0187 -0.1429 Z M 0.0527 -0.1429 L 0.017 -0.1429 L 0.017 0.1786 L 0.0527 0.1786 L 0.0527 -0.1429 Z',
24291
24291
  fill: 'white',
24292
24292
  stroke: '#B0C8F9',
@@ -24307,6 +24307,22 @@
24307
24307
  }
24308
24308
  }
24309
24309
  };
24310
+ const DEFAULT_HANDLER_ATTR_MAP = {
24311
+ horizontal: {
24312
+ angle: 0,
24313
+ strokeBoundsBuffer: 0,
24314
+ boundsPadding: 2,
24315
+ pickMode: 'imprecise',
24316
+ cursor: 'ew-resize'
24317
+ },
24318
+ vertical: {
24319
+ angle: 90 * (Math.PI / 180),
24320
+ cursor: 'ns-resize',
24321
+ boundsPadding: 2,
24322
+ pickMode: 'imprecise',
24323
+ strokeBoundsBuffer: 0
24324
+ }
24325
+ };
24310
24326
 
24311
24327
  exports.DataZoomActiveTag = void 0;
24312
24328
  (function (DataZoomActiveTag) {
@@ -24353,11 +24369,11 @@
24353
24369
  e.stopPropagation();
24354
24370
  if (tag === 'start') {
24355
24371
  this._activeTag = exports.DataZoomActiveTag.startHandler;
24356
- this._activeItem = this._startHandler;
24372
+ this._activeItem = this._startHandlerMask;
24357
24373
  }
24358
24374
  else if (tag === 'end') {
24359
24375
  this._activeTag = exports.DataZoomActiveTag.endHandler;
24360
- this._activeItem = this._endHandler;
24376
+ this._activeItem = this._endHandlerMask;
24361
24377
  }
24362
24378
  else if (tag === 'middleRect') {
24363
24379
  this._activeTag = exports.DataZoomActiveTag.middleHandler;
@@ -24453,11 +24469,11 @@
24453
24469
  return;
24454
24470
  }
24455
24471
  const { showDetail, brushSelect } = this.attribute;
24456
- if (this._startHandler) {
24457
- this._startHandler.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, 'start'));
24472
+ if (this._startHandlerMask) {
24473
+ this._startHandlerMask.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, 'start'));
24458
24474
  }
24459
- if (this._endHandler) {
24460
- this._endHandler.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, 'end'));
24475
+ if (this._endHandlerMask) {
24476
+ this._endHandlerMask.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, 'end'));
24461
24477
  }
24462
24478
  if (this._middleHandlerSymbol) {
24463
24479
  this._middleHandlerSymbol.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, 'middleSymbol'));
@@ -24715,17 +24731,19 @@
24715
24731
  return this._layoutAttrFromConfig;
24716
24732
  }
24717
24733
  render() {
24718
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
24734
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
24719
24735
  this._layoutAttrFromConfig = null;
24720
24736
  const { orient, backgroundStyle, backgroundChartStyle, selectedBackgroundStyle, selectedBackgroundChartStyle, middleHandlerStyle, startHandlerStyle, endHandlerStyle, brushSelect } = this.attribute;
24721
24737
  const { start, end } = this.state;
24722
24738
  const { position, width, height } = this.getLayoutAttrFromConfig();
24739
+ const startHandlerMinSize = (_a = startHandlerStyle.triggerMinSize) !== null && _a !== void 0 ? _a : 40;
24740
+ const endHandlerMinSize = (_b = endHandlerStyle.triggerMinSize) !== null && _b !== void 0 ? _b : 40;
24723
24741
  const group = this.createOrUpdateChild('dataZoom-container', {}, 'group');
24724
24742
  this._container = group;
24725
24743
  this._background = group.createOrUpdateChild('background', Object.assign({ x: position.x, y: position.y, width,
24726
24744
  height, cursor: brushSelect ? 'crosshair' : 'auto' }, backgroundStyle), 'rect');
24727
- ((_a = backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.line) === null || _a === void 0 ? void 0 : _a.visible) && this.setPreviewAttributes('line', group);
24728
- ((_b = backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.area) === null || _b === void 0 ? void 0 : _b.visible) && this.setPreviewAttributes('area', group);
24745
+ ((_c = backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.line) === null || _c === void 0 ? void 0 : _c.visible) && this.setPreviewAttributes('line', group);
24746
+ ((_d = backgroundChartStyle === null || backgroundChartStyle === void 0 ? void 0 : backgroundChartStyle.area) === null || _d === void 0 ? void 0 : _d.visible) && this.setPreviewAttributes('area', group);
24729
24747
  brushSelect && this.renderDragMask();
24730
24748
  if (this._isHorizontal) {
24731
24749
  this._selectedBackground = group.createOrUpdateChild('selectedBackground', Object.assign({ x: position.x + start * width, y: position.y, width: (end - start) * width, height: height, cursor: brushSelect ? 'crosshair' : 'move' }, selectedBackgroundStyle), 'rect');
@@ -24733,28 +24751,40 @@
24733
24751
  else {
24734
24752
  this._selectedBackground = group.createOrUpdateChild('selectedBackground', Object.assign({ x: position.x, y: position.y + start * height, width, height: (end - start) * height, cursor: brushSelect ? 'crosshair' : 'move' }, selectedBackgroundStyle), 'rect');
24735
24753
  }
24736
- ((_c = selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.line) === null || _c === void 0 ? void 0 : _c.visible) && this.setSelectedPreviewAttributes('line', group);
24737
- ((_d = selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.area) === null || _d === void 0 ? void 0 : _d.visible) && this.setSelectedPreviewAttributes('area', group);
24754
+ ((_e = selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.line) === null || _e === void 0 ? void 0 : _e.visible) && this.setSelectedPreviewAttributes('line', group);
24755
+ ((_f = selectedBackgroundChartStyle === null || selectedBackgroundChartStyle === void 0 ? void 0 : selectedBackgroundChartStyle.area) === null || _f === void 0 ? void 0 : _f.visible) && this.setSelectedPreviewAttributes('area', group);
24738
24756
  if (this._showText) {
24739
24757
  this.renderText();
24740
24758
  }
24741
24759
  if (this._isHorizontal) {
24742
- this._startHandler = group.createOrUpdateChild('startHandler', Object.assign({ x: position.x + start * width, y: position.y + height / 2, size: height, angle: 0, symbolType: (_e = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _e !== void 0 ? _e : 'square', cursor: 'ew-resize', strokeBoundsBuffer: 0, boundsPadding: 2, pickMode: 'imprecise' }, startHandlerStyle), 'symbol');
24743
- this._endHandler = group.createOrUpdateChild('endHandler', Object.assign({ x: position.x + end * width, y: position.y + height / 2, size: height, angle: 0, symbolType: (_f = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _f !== void 0 ? _f : 'square', cursor: 'ew-resize', strokeBoundsBuffer: 0, boundsPadding: 2, pickMode: 'imprecise' }, endHandlerStyle), 'symbol');
24760
+ this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + start * width, y: position.y + height / 2, size: height, symbolType: (_g = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _g !== void 0 ? _g : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), 'symbol');
24761
+ this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + end * width, y: position.y + height / 2, size: height, symbolType: (_h = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _h !== void 0 ? _h : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), 'symbol');
24762
+ const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize);
24763
+ const startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize);
24764
+ const endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize);
24765
+ const endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
24766
+ this._startHandlerMask = group.createOrUpdateChild('startHandlerMask', Object.assign({ x: position.x + start * width - startHandlerWidth / 2, y: position.y + height / 2 - startHandlerHeight / 2, width: startHandlerWidth, height: startHandlerHeight, fill: 'white', fillOpacity: 0 }, DEFAULT_HANDLER_ATTR_MAP.horizontal), 'rect');
24767
+ this._endHandlerMask = group.createOrUpdateChild('endHandlerMask', Object.assign({ x: position.x + end * width - endHandlerWidth / 2, y: position.y + height / 2 - endHandlerHeight / 2, width: endHandlerWidth, height: endHandlerHeight, fill: 'white', fillOpacity: 0 }, DEFAULT_HANDLER_ATTR_MAP.horizontal), 'rect');
24744
24768
  if (middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.visible) {
24745
- this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: position.x + start * width, y: position.y - (((_g = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _g === void 0 ? void 0 : _g.size) || 10), width: (end - start) * width, height: ((_h = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _h === void 0 ? void 0 : _h.size) || 10 }, (_j = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _j === void 0 ? void 0 : _j.style), 'rect');
24746
- this._middleHandlerSymbol = group.createOrUpdateChild('middleHandlerSymbol', Object.assign({ x: position.x + ((start + end) / 2) * width, y: position.y - (((_k = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _k === void 0 ? void 0 : _k.size) || 10) / 2, strokeBoundsBuffer: 0, angle: 0, symbolType: (_m = (_l = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _l === void 0 ? void 0 : _l.symbolType) !== null && _m !== void 0 ? _m : 'square' }, middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon), 'symbol');
24769
+ this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: position.x + start * width, y: position.y - (((_j = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _j === void 0 ? void 0 : _j.size) || 10), width: (end - start) * width, height: ((_k = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _k === void 0 ? void 0 : _k.size) || 10 }, (_l = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _l === void 0 ? void 0 : _l.style), 'rect');
24770
+ this._middleHandlerSymbol = group.createOrUpdateChild('middleHandlerSymbol', Object.assign({ x: position.x + ((start + end) / 2) * width, y: position.y - (((_m = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _m === void 0 ? void 0 : _m.size) || 10) / 2, strokeBoundsBuffer: 0, angle: 0, symbolType: (_p = (_o = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _o === void 0 ? void 0 : _o.symbolType) !== null && _p !== void 0 ? _p : 'square' }, middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon), 'symbol');
24747
24771
  }
24748
24772
  }
24749
24773
  else {
24750
- this._startHandler = group.createOrUpdateChild('startHandler', Object.assign({ x: position.x + width / 2, y: position.y + start * height, size: width, angle: 90 * (Math.PI / 180), symbolType: (_o = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _o !== void 0 ? _o : 'square', cursor: 'ns-resize', boundsPadding: 2, pickMode: 'imprecise', strokeBoundsBuffer: 0 }, startHandlerStyle), 'symbol');
24774
+ this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + start * height, size: width, symbolType: (_q = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _q !== void 0 ? _q : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), 'symbol');
24775
+ this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + end * height, size: width, symbolType: (_r = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _r !== void 0 ? _r : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), 'symbol');
24776
+ const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize);
24777
+ const startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize);
24778
+ const endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize);
24779
+ const endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
24780
+ this._startHandlerMask = group.createOrUpdateChild('startHandlerMask', Object.assign({ x: position.x + width / 2 - startHandlerWidth / 2, y: position.y + start * height - startHandlerHeight / 2, width: startHandlerWidth, height: startHandlerHeight, symbolType: 'rect', fill: 'white', fillOpacity: 0 }, DEFAULT_HANDLER_ATTR_MAP.vertical), 'symbol');
24781
+ this._endHandlerMask = group.createOrUpdateChild('endHandlerMask', Object.assign({ x: position.x + width / 2 - endHandlerWidth / 2, y: position.y + end * height - endHandlerHeight / 2, width: endHandlerWidth, height: endHandlerHeight, symbolType: 'rect', fill: 'white', fillOpacity: 0 }, DEFAULT_HANDLER_ATTR_MAP.vertical), 'symbol');
24751
24782
  if (middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.visible) {
24752
- this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: orient === 'left' ? position.x - (((_p = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _p === void 0 ? void 0 : _p.size) || 10) : position.x + width, y: position.y + start * height, width: ((_q = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _q === void 0 ? void 0 : _q.size) || 10, height: (end - start) * height }, (_r = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _r === void 0 ? void 0 : _r.style), 'rect');
24783
+ this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: orient === 'left' ? position.x - (((_s = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _s === void 0 ? void 0 : _s.size) || 10) : position.x + width, y: position.y + start * height, width: ((_t = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _t === void 0 ? void 0 : _t.size) || 10, height: (end - start) * height }, (_u = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _u === void 0 ? void 0 : _u.style), 'rect');
24753
24784
  this._middleHandlerSymbol = group.createOrUpdateChild('middleHandlerSymbol', Object.assign({ x: orient === 'left'
24754
- ? position.x - (((_s = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _s === void 0 ? void 0 : _s.size) || 10) / 2
24755
- : position.x + width + (((_t = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _t === void 0 ? void 0 : _t.size) || 10) / 2, y: position.y + ((start + end) / 2) * height, angle: 90 * (Math.PI / 180), symbolType: (_v = (_u = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _u === void 0 ? void 0 : _u.symbolType) !== null && _v !== void 0 ? _v : 'square', strokeBoundsBuffer: 0 }, middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon), 'symbol');
24785
+ ? position.x - (((_v = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _v === void 0 ? void 0 : _v.size) || 10) / 2
24786
+ : position.x + width + (((_w = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _w === void 0 ? void 0 : _w.size) || 10) / 2, y: position.y + ((start + end) / 2) * height, angle: 90 * (Math.PI / 180), symbolType: (_y = (_x = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _x === void 0 ? void 0 : _x.symbolType) !== null && _y !== void 0 ? _y : 'square', strokeBoundsBuffer: 0 }, middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon), 'symbol');
24756
24787
  }
24757
- this._endHandler = group.createOrUpdateChild('endHandler', Object.assign({ x: position.x + width / 2, y: position.y + end * height, size: width, angle: 90 * (Math.PI / 180), symbolType: (_w = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _w !== void 0 ? _w : 'square', cursor: 'ns-resize', boundsPadding: 2, pickMode: 'imprecise', strokeBoundsBuffer: 0 }, endHandlerStyle), 'symbol');
24758
24788
  }
24759
24789
  }
24760
24790
  computeBasePoints() {
@@ -29868,7 +29898,7 @@
29868
29898
  }
29869
29899
  };
29870
29900
 
29871
- const version = "0.17.2-alpha.4";
29901
+ const version = "0.17.2";
29872
29902
 
29873
29903
  exports.AbstractComponent = AbstractComponent;
29874
29904
  exports.ArcInfo = ArcInfo;