@visactor/vrender-components 0.17.2-alpha.4 → 0.17.3-alpha.0
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/data-zoom/config.d.ts +18 -0
- package/cjs/data-zoom/config.js +19 -1
- package/cjs/data-zoom/config.js.map +1 -1
- package/cjs/data-zoom/data-zoom.d.ts +4 -0
- package/cjs/data-zoom/data-zoom.js +99 -76
- package/cjs/data-zoom/data-zoom.js.map +1 -1
- package/cjs/data-zoom/type.d.ts +6 -2
- package/cjs/data-zoom/type.js.map +1 -1
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/scrollbar/scrollbar.js +2 -2
- package/cjs/scrollbar/scrollbar.js.map +1 -1
- package/dist/index.js +61 -31
- package/dist/index.min.js +1 -1
- package/es/data-zoom/config.d.ts +18 -0
- package/es/data-zoom/config.js +19 -0
- package/es/data-zoom/config.js.map +1 -1
- package/es/data-zoom/data-zoom.d.ts +4 -0
- package/es/data-zoom/data-zoom.js +99 -77
- package/es/data-zoom/data-zoom.js.map +1 -1
- package/es/data-zoom/type.d.ts +6 -2
- package/es/data-zoom/type.js.map +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/es/scrollbar/scrollbar.js +2 -2
- package/es/scrollbar/scrollbar.js.map +1 -1
- package/package.json +3 -3
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
|
-
|
|
12770
|
+
cr0 = vutils.abs(cornerRadiusArr[0]), cornerRadius = [cr0, cr0, cr0, cr0];
|
|
12770
12771
|
break;
|
|
12771
12772
|
case 2:
|
|
12772
12773
|
case 3:
|
|
12773
|
-
|
|
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.
|
|
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 ||
|
|
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
|
-
|
|
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.
|
|
24372
|
+
this._activeItem = this._startHandlerMask;
|
|
24357
24373
|
}
|
|
24358
24374
|
else if (tag === 'end') {
|
|
24359
24375
|
this._activeTag = exports.DataZoomActiveTag.endHandler;
|
|
24360
|
-
this._activeItem = this.
|
|
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.
|
|
24457
|
-
this.
|
|
24472
|
+
if (this._startHandlerMask) {
|
|
24473
|
+
this._startHandlerMask.addEventListener('pointerdown', (e) => this._onHandlerPointerDown(e, 'start'));
|
|
24458
24474
|
}
|
|
24459
|
-
if (this.
|
|
24460
|
-
this.
|
|
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
|
-
((
|
|
24728
|
-
((
|
|
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
|
-
((
|
|
24737
|
-
((
|
|
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');
|
|
24744
24760
|
if (middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.visible) {
|
|
24745
24761
|
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
24762
|
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');
|
|
24747
24763
|
}
|
|
24764
|
+
this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + start * width, y: position.y + height / 2, size: height, symbolType: (_o = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _o !== void 0 ? _o : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), 'symbol');
|
|
24765
|
+
this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + end * width, y: position.y + height / 2, size: height, symbolType: (_p = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _p !== void 0 ? _p : 'square' }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), 'symbol');
|
|
24766
|
+
const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize);
|
|
24767
|
+
const startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize);
|
|
24768
|
+
const endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize);
|
|
24769
|
+
const endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
|
|
24770
|
+
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, zIndex: 999 }, DEFAULT_HANDLER_ATTR_MAP.horizontal), 'rect');
|
|
24771
|
+
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, zIndex: 999 }, DEFAULT_HANDLER_ATTR_MAP.horizontal), 'rect');
|
|
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');
|
|
24751
24774
|
if (middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.visible) {
|
|
24752
|
-
this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: orient === 'left' ? position.x - (((
|
|
24775
|
+
this._middleHandlerRect = group.createOrUpdateChild('middleHandlerRect', Object.assign({ x: orient === 'left' ? position.x - (((_q = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _q === void 0 ? void 0 : _q.size) || 10) : position.x + width, y: position.y + start * height, width: ((_r = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _r === void 0 ? void 0 : _r.size) || 10, height: (end - start) * height }, (_s = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _s === void 0 ? void 0 : _s.style), 'rect');
|
|
24753
24776
|
this._middleHandlerSymbol = group.createOrUpdateChild('middleHandlerSymbol', Object.assign({ x: orient === 'left'
|
|
24754
|
-
? position.x - (((
|
|
24755
|
-
: position.x + width + (((
|
|
24777
|
+
? position.x - (((_t = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _t === void 0 ? void 0 : _t.size) || 10) / 2
|
|
24778
|
+
: position.x + width + (((_u = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.background) === null || _u === void 0 ? void 0 : _u.size) || 10) / 2, y: position.y + ((start + end) / 2) * height, angle: 90 * (Math.PI / 180), symbolType: (_w = (_v = middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon) === null || _v === void 0 ? void 0 : _v.symbolType) !== null && _w !== void 0 ? _w : 'square', strokeBoundsBuffer: 0 }, middleHandlerStyle === null || middleHandlerStyle === void 0 ? void 0 : middleHandlerStyle.icon), 'symbol');
|
|
24756
24779
|
}
|
|
24757
|
-
this.
|
|
24780
|
+
this._startHandler = group.createOrUpdateChild('startHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + start * height, size: width, symbolType: (_x = startHandlerStyle === null || startHandlerStyle === void 0 ? void 0 : startHandlerStyle.symbolType) !== null && _x !== void 0 ? _x : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), 'symbol');
|
|
24781
|
+
this._endHandler = group.createOrUpdateChild('endHandler', Object.assign(Object.assign({ x: position.x + width / 2, y: position.y + end * height, size: width, symbolType: (_y = endHandlerStyle === null || endHandlerStyle === void 0 ? void 0 : endHandlerStyle.symbolType) !== null && _y !== void 0 ? _y : 'square' }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), 'symbol');
|
|
24782
|
+
const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize);
|
|
24783
|
+
const startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize);
|
|
24784
|
+
const endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize);
|
|
24785
|
+
const endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
|
|
24786
|
+
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, zIndex: 999 }, DEFAULT_HANDLER_ATTR_MAP.vertical), 'symbol');
|
|
24787
|
+
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, zIndex: 999 }, DEFAULT_HANDLER_ATTR_MAP.vertical), 'symbol');
|
|
24758
24788
|
}
|
|
24759
24789
|
}
|
|
24760
24790
|
computeBasePoints() {
|
|
@@ -29868,7 +29898,7 @@
|
|
|
29868
29898
|
}
|
|
29869
29899
|
};
|
|
29870
29900
|
|
|
29871
|
-
const version = "0.17.
|
|
29901
|
+
const version = "0.17.3-alpha.0";
|
|
29872
29902
|
|
|
29873
29903
|
exports.AbstractComponent = AbstractComponent;
|
|
29874
29904
|
exports.ArcInfo = ArcInfo;
|