@visactor/vrender-components 0.17.11-alpha.3 → 0.17.11

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.
@@ -10,8 +10,6 @@ var __rest = this && this.__rest || function(s, e) {
10
10
 
11
11
  import { vglobal } from "@visactor/vrender-core";
12
12
 
13
- import { TextMeasure } from "@visactor/vutils";
14
-
15
13
  import { array, clamp, debounce, isFunction, isValid, merge, throttle } from "@visactor/vutils";
16
14
 
17
15
  import { AbstractComponent } from "../core/base";
@@ -32,16 +30,6 @@ const delayMap = {
32
30
  loadDataZoomComponent();
33
31
 
34
32
  export class DataZoom extends AbstractComponent {
35
- setPropsFromAttrs() {
36
- const {start: start, end: end, orient: orient, previewData: previewData, previewPointsX: previewPointsX, previewPointsY: previewPointsY, previewPointsX1: previewPointsX1, previewPointsY1: previewPointsY1} = this.attribute;
37
- start && (this.state.start = start), end && (this.state.end = end);
38
- const {width: width, height: height} = this.getLayoutAttrFromConfig();
39
- this._spanCache = this.state.end - this.state.start, this._isHorizontal = "top" === orient || "bottom" === orient,
40
- this._layoutCache.max = this._isHorizontal ? width : height, this._layoutCache.attPos = this._isHorizontal ? "x" : "y",
41
- this._layoutCache.attSize = this._isHorizontal ? "width" : "height", previewData && (this._previewData = previewData),
42
- isFunction(previewPointsX) && (this._previewPointsX = previewPointsX), isFunction(previewPointsY) && (this._previewPointsY = previewPointsY),
43
- isFunction(previewPointsX1) && (this._previewPointsX1 = previewPointsX1), isFunction(previewPointsY1) && (this._previewPointsY1 = previewPointsY1);
44
- }
45
33
  constructor(attributes, options) {
46
34
  super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, DataZoom.defaultAttributes, attributes)),
47
35
  this.name = "dataZoom", this._previewData = [], this._activeState = !1, this._activeCache = {
@@ -88,12 +76,14 @@ export class DataZoom extends AbstractComponent {
88
76
  tag: this._activeTag
89
77
  }));
90
78
  }), this.attribute.delayTime);
91
- const {position: position, showDetail: showDetail} = attributes;
79
+ const {start: start, end: end, size: size, orient: orient, showDetail: showDetail, position: position, previewData: previewData, previewPointsX: previewPointsX, previewPointsY: previewPointsY, previewPointsX1: previewPointsX1, previewPointsY1: previewPointsY1, updateStateCallback: updateStateCallback} = this.attribute, {width: width, height: height} = size;
80
+ start && (this.state.start = start), end && (this.state.end = end), this._spanCache = this.state.end - this.state.start,
81
+ this._isHorizontal = "top" === orient || "bottom" === orient, this._layoutCache.max = this._isHorizontal ? width : height,
82
+ this._layoutCache.attPos = this._isHorizontal ? "x" : "y", this._layoutCache.attSize = this._isHorizontal ? "width" : "height",
92
83
  this._activeCache.startPos = position, this._activeCache.lastPos = position, this._showText = "auto" !== showDetail && showDetail,
93
- this.setPropsFromAttrs();
94
- }
95
- setAttributes(params, forceUpdateTag) {
96
- super.setAttributes(params, forceUpdateTag), this.setPropsFromAttrs();
84
+ previewData && (this._previewData = previewData), isFunction(previewPointsX) && (this._previewPointsX = previewPointsX),
85
+ isFunction(previewPointsY) && (this._previewPointsY = previewPointsY), isFunction(previewPointsX1) && (this._previewPointsX1 = previewPointsX1),
86
+ isFunction(previewPointsY1) && (this._previewPointsY1 = previewPointsY1);
97
87
  }
98
88
  bindEvents() {
99
89
  if (this.attribute.disableTriggerEvent) return;
@@ -179,74 +169,55 @@ export class DataZoom extends AbstractComponent {
179
169
  height: this._activeState && this._activeTag === DataZoomActiveTag.background && Math.abs(this.dragMaskSize()) || 0
180
170
  }, dragMaskStyle), "rect");
181
171
  }
182
- isTextOverflow(componentBoundsLike, textPosition, textMeasure, textValue, layout) {
183
- const {width: textWidth, height: textHeight} = textMeasure.fullMeasure(textValue);
184
- if (this._isHorizontal) if ("start" === layout) {
185
- if (textPosition.x - textWidth < componentBoundsLike.x1) return !0;
186
- } else {
187
- if (textPosition.x + textWidth > componentBoundsLike.x2) return !0;
188
- } else if ("start" === layout) {
189
- if (textPosition.y - textHeight < componentBoundsLike.y1) return !0;
190
- } else {
191
- if (textPosition.y + textHeight > componentBoundsLike.y2) return !0;
192
- }
193
- return !1;
194
- }
195
172
  renderText() {
196
- const {startTextStyle: startTextStyle, endTextStyle: endTextStyle} = this.attribute, {formatMethod: startTextFormat} = startTextStyle, restStartTextStyle = __rest(startTextStyle, [ "formatMethod" ]), {formatMethod: endTextFormat} = endTextStyle, restEndTextStyle = __rest(endTextStyle, [ "formatMethod" ]), {start: start, end: end} = this.state;
173
+ const {startTextStyle: startTextStyle, endTextStyle: endTextStyle} = this.attribute, {formatMethod: startTextFormat} = startTextStyle, restStartStyle = __rest(startTextStyle, [ "formatMethod" ]), {formatMethod: endTextFormat} = endTextStyle, restEndTextStyle = __rest(endTextStyle, [ "formatMethod" ]), {start: start, end: end} = this.state;
197
174
  this._startValue = this._statePointToData(start), this._endValue = this._statePointToData(end);
198
- const {position: position, width: width, height: height} = this.getLayoutAttrFromConfig(), startTextValue = startTextFormat ? startTextFormat(this._startValue) : this._startValue, endTextValue = endTextFormat ? endTextFormat(this._endValue) : this._endValue, startTextMeasure = new TextMeasure({
199
- defaultFontParams: restStartTextStyle.textStyle
200
- }), endTextMeasure = new TextMeasure({
201
- defaultFontParams: restEndTextStyle.textStyle
202
- }), componentBoundsLike = {
203
- x1: position.x,
204
- y1: position.y,
205
- x2: position.x + width,
206
- y2: position.y + height
207
- };
208
- let startTextPosition, endTextPosition, startTextAlignStyle, endTextAlignStyle;
209
- this._isHorizontal ? (startTextPosition = {
175
+ const {position: position, width: width, height: height} = this.getLayoutAttrFromConfig();
176
+ this._isHorizontal ? (this._startText = this.maybeAddLabel(this._container, merge({}, restStartStyle, {
177
+ text: startTextFormat ? startTextFormat(this._startValue) : this._startValue,
210
178
  x: position.x + start * width,
211
- y: position.y + height / 2
212
- }, endTextPosition = {
179
+ y: position.y + height / 2,
180
+ visible: this._showText,
181
+ pickable: !1,
182
+ childrenPickable: !1,
183
+ textStyle: {
184
+ textAlign: "right",
185
+ textBaseline: "middle"
186
+ }
187
+ }), `data-zoom-start-text-${position}`), this._endText = this.maybeAddLabel(this._container, merge({}, restEndTextStyle, {
188
+ text: endTextFormat ? endTextFormat(this._endValue) : this._endValue,
213
189
  x: position.x + end * width,
214
- y: position.y + height / 2
215
- }, startTextAlignStyle = {
216
- textAlign: this.isTextOverflow(componentBoundsLike, startTextPosition, startTextMeasure, startTextValue, "start") ? "left" : "right",
217
- textBaseline: "middle"
218
- }, endTextAlignStyle = {
219
- textAlign: this.isTextOverflow(componentBoundsLike, endTextPosition, endTextMeasure, endTextValue, "end") ? "right" : "left",
220
- textBaseline: "middle"
221
- }) : (startTextPosition = {
222
- x: position.x + width / 2,
223
- y: position.y + start * height
224
- }, endTextPosition = {
190
+ y: position.y + height / 2,
191
+ visible: this._showText,
192
+ pickable: !1,
193
+ childrenPickable: !1,
194
+ textStyle: {
195
+ textAlign: "left",
196
+ textBaseline: "middle"
197
+ }
198
+ }), `data-zoom-end-text-${position}`)) : (this._startText = this.maybeAddLabel(this._container, merge({}, restStartStyle, {
199
+ text: startTextFormat ? startTextFormat(this._startValue) : this._startValue,
225
200
  x: position.x + width / 2,
226
- y: position.y + end * height
227
- }, startTextAlignStyle = {
228
- textAlign: "center",
229
- textBaseline: this.isTextOverflow(componentBoundsLike, startTextPosition, startTextMeasure, startTextValue, "start") ? "top" : "bottom"
230
- }, endTextAlignStyle = {
231
- textAlign: "center",
232
- textBaseline: this.isTextOverflow(componentBoundsLike, endTextPosition, endTextMeasure, endTextValue, "end") ? "bottom" : "top"
233
- }), this._startText = this.maybeAddLabel(this._container, merge({}, restStartTextStyle, {
234
- text: startTextValue,
235
- x: startTextPosition.x,
236
- y: startTextPosition.y,
201
+ y: position.y + start * height,
237
202
  visible: this._showText,
238
203
  pickable: !1,
239
204
  childrenPickable: !1,
240
- textStyle: startTextAlignStyle
205
+ textStyle: {
206
+ textAlign: "center",
207
+ textBaseline: "bottom"
208
+ }
241
209
  }), `data-zoom-start-text-${position}`), this._endText = this.maybeAddLabel(this._container, merge({}, restEndTextStyle, {
242
- text: endTextValue,
243
- x: endTextPosition.x,
244
- y: endTextPosition.y,
210
+ text: endTextFormat ? endTextFormat(this._endValue) : this._endValue,
211
+ x: position.x + width / 2,
212
+ y: position.y + end * height,
245
213
  visible: this._showText,
246
214
  pickable: !1,
247
215
  childrenPickable: !1,
248
- textStyle: endTextAlignStyle
249
- }), `data-zoom-end-text-${position}`);
216
+ textStyle: {
217
+ textAlign: "center",
218
+ textBaseline: "top"
219
+ }
220
+ }), `data-zoom-end-text-${position}`));
250
221
  }
251
222
  getLayoutAttrFromConfig() {
252
223
  var _a, _b, _c, _d;
@@ -278,72 +249,59 @@ export class DataZoom extends AbstractComponent {
278
249
  render() {
279
250
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
280
251
  this._layoutAttrFromConfig = null;
281
- const {orient: orient, backgroundStyle: backgroundStyle, backgroundChartStyle: backgroundChartStyle = {}, selectedBackgroundStyle: selectedBackgroundStyle = {}, selectedBackgroundChartStyle: selectedBackgroundChartStyle = {}, middleHandlerStyle: middleHandlerStyle = {}, startHandlerStyle: startHandlerStyle = {}, endHandlerStyle: endHandlerStyle = {}, brushSelect: brushSelect, zoomLock: zoomLock} = this.attribute, {start: start, end: end} = this.state, {position: position, width: width, height: height} = this.getLayoutAttrFromConfig(), startHandlerMinSize = null !== (_a = startHandlerStyle.triggerMinSize) && void 0 !== _a ? _a : 40, endHandlerMinSize = null !== (_b = endHandlerStyle.triggerMinSize) && void 0 !== _b ? _b : 40, group = this.createOrUpdateChild("dataZoom-container", {}, "group");
282
- if (this._container = group, this._background = group.createOrUpdateChild("background", Object.assign(Object.assign({
252
+ const {orient: orient, backgroundStyle: backgroundStyle, backgroundChartStyle: backgroundChartStyle = {}, selectedBackgroundStyle: selectedBackgroundStyle = {}, selectedBackgroundChartStyle: selectedBackgroundChartStyle = {}, middleHandlerStyle: middleHandlerStyle = {}, startHandlerStyle: startHandlerStyle = {}, endHandlerStyle: endHandlerStyle = {}, brushSelect: brushSelect} = this.attribute, {start: start, end: end} = this.state, {position: position, width: width, height: height} = this.getLayoutAttrFromConfig(), startHandlerMinSize = null !== (_a = startHandlerStyle.triggerMinSize) && void 0 !== _a ? _a : 40, endHandlerMinSize = null !== (_b = endHandlerStyle.triggerMinSize) && void 0 !== _b ? _b : 40, group = this.createOrUpdateChild("dataZoom-container", {}, "group");
253
+ if (this._container = group, this._background = group.createOrUpdateChild("background", Object.assign({
283
254
  x: position.x,
284
255
  y: position.y,
285
256
  width: width,
286
257
  height: height,
287
258
  cursor: brushSelect ? "crosshair" : "auto"
288
- }, backgroundStyle), {
289
- pickable: !zoomLock
290
- }), "rect"), (null === (_c = backgroundChartStyle.line) || void 0 === _c ? void 0 : _c.visible) && this.setPreviewAttributes("line", group),
259
+ }, backgroundStyle), "rect"), (null === (_c = backgroundChartStyle.line) || void 0 === _c ? void 0 : _c.visible) && this.setPreviewAttributes("line", group),
291
260
  (null === (_d = backgroundChartStyle.area) || void 0 === _d ? void 0 : _d.visible) && this.setPreviewAttributes("area", group),
292
- brushSelect && this.renderDragMask(), this._isHorizontal ? this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign(Object.assign({
261
+ brushSelect && this.renderDragMask(), this._isHorizontal ? this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign({
293
262
  x: position.x + start * width,
294
263
  y: position.y,
295
264
  width: (end - start) * width,
296
265
  height: height,
297
266
  cursor: brushSelect ? "crosshair" : "move"
298
- }, selectedBackgroundStyle), {
299
- pickable: !zoomLock
300
- }), "rect") : this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign(Object.assign({
267
+ }, selectedBackgroundStyle), "rect") : this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign({
301
268
  x: position.x,
302
269
  y: position.y + start * height,
303
270
  width: width,
304
271
  height: (end - start) * height,
305
272
  cursor: brushSelect ? "crosshair" : "move"
306
- }, selectedBackgroundStyle), {
307
- pickable: !zoomLock
308
- }), "rect"), (null === (_e = selectedBackgroundChartStyle.line) || void 0 === _e ? void 0 : _e.visible) && this.setSelectedPreviewAttributes("line", group),
273
+ }, selectedBackgroundStyle), "rect"), (null === (_e = selectedBackgroundChartStyle.line) || void 0 === _e ? void 0 : _e.visible) && this.setSelectedPreviewAttributes("line", group),
309
274
  (null === (_f = selectedBackgroundChartStyle.area) || void 0 === _f ? void 0 : _f.visible) && this.setSelectedPreviewAttributes("area", group),
310
275
  this._showText && this.renderText(), this._isHorizontal) {
311
276
  if (middleHandlerStyle.visible) {
312
277
  const middleHandlerBackgroundSize = (null === (_g = middleHandlerStyle.background) || void 0 === _g ? void 0 : _g.size) || 10;
313
- this._middleHandlerRect = group.createOrUpdateChild("middleHandlerRect", Object.assign(Object.assign({
278
+ this._middleHandlerRect = group.createOrUpdateChild("middleHandlerRect", Object.assign({
314
279
  x: position.x + start * width,
315
280
  y: position.y - middleHandlerBackgroundSize,
316
281
  width: (end - start) * width,
317
282
  height: middleHandlerBackgroundSize
318
- }, null === (_h = middleHandlerStyle.background) || void 0 === _h ? void 0 : _h.style), {
319
- pickable: !zoomLock
320
- }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
283
+ }, null === (_h = middleHandlerStyle.background) || void 0 === _h ? void 0 : _h.style), "rect"),
284
+ this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign({
321
285
  x: position.x + (start + end) / 2 * width,
322
286
  y: position.y - middleHandlerBackgroundSize / 2,
323
287
  strokeBoundsBuffer: 0,
324
288
  angle: 0,
325
289
  symbolType: null !== (_k = null === (_j = middleHandlerStyle.icon) || void 0 === _j ? void 0 : _j.symbolType) && void 0 !== _k ? _k : "square"
326
- }, middleHandlerStyle.icon), {
327
- pickable: !zoomLock
328
- }), "symbol");
290
+ }, middleHandlerStyle.icon), "symbol");
329
291
  }
330
- this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
292
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign({
331
293
  x: position.x + start * width,
332
294
  y: position.y + height / 2,
333
295
  size: height,
334
296
  symbolType: null !== (_l = startHandlerStyle.symbolType) && void 0 !== _l ? _l : "square"
335
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), {
336
- pickable: !zoomLock
337
- }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
297
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign({
338
298
  x: position.x + end * width,
339
299
  y: position.y + height / 2,
340
300
  size: height,
341
301
  symbolType: null !== (_m = endHandlerStyle.symbolType) && void 0 !== _m ? _m : "square"
342
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), {
343
- pickable: !zoomLock
344
- }), "symbol");
302
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), "symbol");
345
303
  const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize), startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize), endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize), endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
346
- this._startHandlerMask = group.createOrUpdateChild("startHandlerMask", Object.assign(Object.assign({
304
+ this._startHandlerMask = group.createOrUpdateChild("startHandlerMask", Object.assign({
347
305
  x: position.x + start * width - startHandlerWidth / 2,
348
306
  y: position.y + height / 2 - startHandlerHeight / 2,
349
307
  width: startHandlerWidth,
@@ -351,9 +309,7 @@ export class DataZoom extends AbstractComponent {
351
309
  fill: "white",
352
310
  fillOpacity: 0,
353
311
  zIndex: 999
354
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
355
- pickable: !zoomLock
356
- }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
312
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign({
357
313
  x: position.x + end * width - endHandlerWidth / 2,
358
314
  y: position.y + height / 2 - endHandlerHeight / 2,
359
315
  width: endHandlerWidth,
@@ -361,46 +317,37 @@ export class DataZoom extends AbstractComponent {
361
317
  fill: "white",
362
318
  fillOpacity: 0,
363
319
  zIndex: 999
364
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
365
- pickable: !zoomLock
366
- }), "rect");
320
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), "rect");
367
321
  } else {
368
322
  if (middleHandlerStyle.visible) {
369
323
  const middleHandlerBackgroundSize = (null === (_o = middleHandlerStyle.background) || void 0 === _o ? void 0 : _o.size) || 10;
370
- this._middleHandlerRect = group.createOrUpdateChild("middleHandlerRect", Object.assign(Object.assign({
324
+ this._middleHandlerRect = group.createOrUpdateChild("middleHandlerRect", Object.assign({
371
325
  x: "left" === orient ? position.x - middleHandlerBackgroundSize : position.x + width,
372
326
  y: position.y + start * height,
373
327
  width: middleHandlerBackgroundSize,
374
328
  height: (end - start) * height
375
- }, null === (_p = middleHandlerStyle.background) || void 0 === _p ? void 0 : _p.style), {
376
- pickable: !zoomLock
377
- }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
329
+ }, null === (_p = middleHandlerStyle.background) || void 0 === _p ? void 0 : _p.style), "rect"),
330
+ this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign({
378
331
  x: "left" === orient ? position.x - middleHandlerBackgroundSize / 2 : position.x + width + middleHandlerBackgroundSize / 2,
379
332
  y: position.y + (start + end) / 2 * height,
380
333
  angle: Math.PI / 180 * 90,
381
334
  symbolType: null !== (_r = null === (_q = middleHandlerStyle.icon) || void 0 === _q ? void 0 : _q.symbolType) && void 0 !== _r ? _r : "square",
382
335
  strokeBoundsBuffer: 0
383
- }, middleHandlerStyle.icon), {
384
- pickable: !zoomLock
385
- }), "symbol");
336
+ }, middleHandlerStyle.icon), "symbol");
386
337
  }
387
- this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
338
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign({
388
339
  x: position.x + width / 2,
389
340
  y: position.y + start * height,
390
341
  size: width,
391
342
  symbolType: null !== (_s = startHandlerStyle.symbolType) && void 0 !== _s ? _s : "square"
392
- }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), {
393
- pickable: !zoomLock
394
- }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
343
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign({
395
344
  x: position.x + width / 2,
396
345
  y: position.y + end * height,
397
346
  size: width,
398
347
  symbolType: null !== (_t = endHandlerStyle.symbolType) && void 0 !== _t ? _t : "square"
399
- }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), {
400
- pickable: !zoomLock
401
- }), "symbol");
348
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), "symbol");
402
349
  const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize), startHandlerHeight = Math.max(this._startHandler.AABBBounds.height(), startHandlerMinSize), endHandlerWidth = Math.max(this._endHandler.AABBBounds.width(), endHandlerMinSize), endHandlerHeight = Math.max(this._endHandler.AABBBounds.height(), endHandlerMinSize);
403
- this._startHandlerMask = group.createOrUpdateChild("startHandlerMask", Object.assign(Object.assign({
350
+ this._startHandlerMask = group.createOrUpdateChild("startHandlerMask", Object.assign({
404
351
  x: position.x + width / 2 + startHandlerWidth / 2,
405
352
  y: position.y + start * height - startHandlerHeight / 2,
406
353
  width: endHandlerHeight,
@@ -408,9 +355,7 @@ export class DataZoom extends AbstractComponent {
408
355
  fill: "white",
409
356
  fillOpacity: 0,
410
357
  zIndex: 999
411
- }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
412
- pickable: !zoomLock
413
- }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
358
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign({
414
359
  x: position.x + width / 2 + endHandlerWidth / 2,
415
360
  y: position.y + end * height - endHandlerHeight / 2,
416
361
  width: endHandlerHeight,
@@ -418,9 +363,7 @@ export class DataZoom extends AbstractComponent {
418
363
  fill: "white",
419
364
  fillOpacity: 0,
420
365
  zIndex: 999
421
- }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
422
- pickable: !zoomLock
423
- }), "rect");
366
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), "rect");
424
367
  }
425
368
  }
426
369
  computeBasePoints() {