@visactor/vrender 1.0.42 → 1.0.43

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,5 +1,5 @@
1
1
  import '@visactor/vrender-core';
2
- export declare const version = "1.0.42";
2
+ export declare const version = "1.0.43";
3
3
  export * from '@visactor/vrender-core';
4
4
  export * from '@visactor/vrender-kits';
5
5
  export * from '@visactor/vrender-animate';
package/cjs/index.js CHANGED
@@ -21,7 +21,7 @@ Object.defineProperty(exports, "__esModule", {
21
21
 
22
22
  const vrender_core_1 = require("@visactor/vrender-core"), vrender_kits_1 = require("@visactor/vrender-kits"), vrender_kits_2 = require("@visactor/vrender-kits"), vrender_animate_1 = require("@visactor/vrender-animate");
23
23
 
24
- exports.version = "1.0.42", (0, vrender_core_1.preLoadAllModule)(), (0, vrender_core_1.isBrowserEnv)() ? (0,
24
+ exports.version = "1.0.43", (0, vrender_core_1.preLoadAllModule)(), (0, vrender_core_1.isBrowserEnv)() ? (0,
25
25
  vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0, vrender_core_1.isNodeEnv)() && (0,
26
26
  vrender_kits_1.loadNodeEnv)(vrender_core_1.container), (0, vrender_kits_2.registerArc)(),
27
27
  (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(), (0, vrender_kits_2.registerCircle)(),
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAChC,+DAAmF;AAEtE,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,2BAAY,GAAE,CAAC;AAEf,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AAEtB,IAAA,uCAAqB,GAAE,CAAC;AACxB,IAAA,iCAAe,GAAE,CAAC;AAElB,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAG7C,6DAAkD;AAAzC,wGAAA,KAAK,OAAA;AACd,uDAAmD;AAA1C,yGAAA,SAAS,OAAA","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv, registerStar } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\nimport { registerCustomAnimate, registerAnimate } from '@visactor/vrender-animate';\n// 导出版本号\nexport const version = \"1.0.42\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\nregisterStar();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\n\nregisterCustomAnimate();\nregisterAnimate();\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-animate';\nexport * from '@visactor/vrender-components';\n\n// avoid naming conflicts with 'State' & 'Direction' in '@visactor/vrender-components'\nexport { State } from '@visactor/vrender-animate';\nexport { Direction } from '@visactor/vrender-core';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kCAAgC;AAChC,yDAWgC;AAChC,yDAAmF;AACnF,yDAmBgC;AAChC,+DAAmF;AAEtE,QAAA,OAAO,GAAG,QAAQ,CAAC;AAEhC,IAAA,+BAAgB,GAAE,CAAC;AAEnB,IAAI,IAAA,2BAAY,GAAE,EAAE;IAClB,IAAA,6BAAc,EAAC,wBAAS,CAAC,CAAC;CAC3B;KAAM,IAAI,IAAA,wBAAS,GAAE,EAAE;IACtB,IAAA,0BAAW,EAAC,wBAAS,CAAC,CAAC;CACxB;AACD,IAAA,0BAAW,GAAE,CAAC;AACd,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,4BAAa,GAAE,CAAC;AAChB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,8BAAe,GAAE,CAAC;AAClB,IAAA,gCAAiB,GAAE,CAAC;AACpB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,iCAAkB,GAAE,CAAC;AACrB,IAAA,6BAAc,GAAE,CAAC;AACjB,IAAA,2BAAY,GAAE,CAAC;AACf,IAAA,+BAAgB,GAAE,CAAC;AACnB,IAAA,2BAAY,GAAE,CAAC;AAEf,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,4CAA6B,GAAE,CAAC;AAChC,IAAA,0CAA2B,GAAE,CAAC;AAC9B,IAAA,2CAA4B,GAAE,CAAC;AAC/B,IAAA,uCAAwB,GAAE,CAAC;AAC3B,IAAA,kCAAmB,GAAE,CAAC;AAEtB,IAAA,uCAAqB,GAAE,CAAC;AACxB,IAAA,iCAAe,GAAE,CAAC;AAElB,yDAAuC;AACvC,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAG7C,6DAAkD;AAAzC,wGAAA,KAAK,OAAA;AACd,uDAAmD;AAA1C,yGAAA,SAAS,OAAA","file":"index.js","sourcesContent":["import '@visactor/vrender-core';\nimport {\n container,\n isBrowserEnv,\n isNodeEnv,\n preLoadAllModule,\n registerFlexLayoutPlugin,\n registerViewTransform3dPlugin,\n registerHtmlAttributePlugin,\n registerReactAttributePlugin,\n registerDirectionalLight,\n registerOrthoCamera\n} from '@visactor/vrender-core';\nimport { loadBrowserEnv, loadNodeEnv, registerStar } from '@visactor/vrender-kits';\nimport {\n registerArc,\n registerArc3d,\n registerArea,\n registerCircle,\n registerGlyph,\n registerGroup,\n registerImage,\n registerLine,\n registerPath,\n registerPolygon,\n registerPyramid3d,\n registerRect,\n registerRect3d,\n registerRichtext,\n registerShadowRoot,\n registerSymbol,\n registerText,\n registerWrapText\n} from '@visactor/vrender-kits';\nimport { registerCustomAnimate, registerAnimate } from '@visactor/vrender-animate';\n// 导出版本号\nexport const version = \"1.0.43\";\n\npreLoadAllModule();\n\nif (isBrowserEnv()) {\n loadBrowserEnv(container);\n} else if (isNodeEnv()) {\n loadNodeEnv(container);\n}\nregisterArc();\nregisterArc3d();\nregisterArea();\nregisterCircle();\nregisterGlyph();\nregisterGroup();\nregisterImage();\nregisterLine();\nregisterPath();\nregisterPolygon();\nregisterPyramid3d();\nregisterRect();\nregisterRect3d();\nregisterRichtext();\nregisterShadowRoot();\nregisterSymbol();\nregisterText();\nregisterWrapText();\nregisterStar();\n\nregisterFlexLayoutPlugin();\nregisterViewTransform3dPlugin();\nregisterHtmlAttributePlugin();\nregisterReactAttributePlugin();\nregisterDirectionalLight();\nregisterOrthoCamera();\n\nregisterCustomAnimate();\nregisterAnimate();\n\nexport * from '@visactor/vrender-core';\nexport * from '@visactor/vrender-kits';\nexport * from '@visactor/vrender-animate';\nexport * from '@visactor/vrender-components';\n\n// avoid naming conflicts with 'State' & 'Direction' in '@visactor/vrender-components'\nexport { State } from '@visactor/vrender-animate';\nexport { Direction } from '@visactor/vrender-core';\n"]}
package/dist/index.es.js CHANGED
@@ -44967,6 +44967,16 @@ const DEFAULT_HANDLER_ATTR_MAP = {
44967
44967
  strokeBoundsBuffer: 0
44968
44968
  }
44969
44969
  };
44970
+ const LAYOUT_LEVEL = {
44971
+ background: 0,
44972
+ preview: 1,
44973
+ dragMask: 2,
44974
+ selectedBackground: 3,
44975
+ selectedPreview: 4,
44976
+ handler: 5,
44977
+ handlerText: 5,
44978
+ handlerMask: 999
44979
+ };
44970
44980
 
44971
44981
  const isTextOverflow = (componentBoundsLike, textBounds, layout, isHorizontal) => {
44972
44982
  if (!textBounds) return !1;
@@ -45098,12 +45108,14 @@ class DataZoomRenderer {
45098
45108
  x: position.x + start * width,
45099
45109
  y: position.y,
45100
45110
  width: (end - start) * width,
45101
- height: height
45111
+ height: height,
45112
+ zIndex: LAYOUT_LEVEL.dragMask
45102
45113
  }, dragMaskStyle), "rect") : this._dragMask = this._getContainer().createOrUpdateChild("dragMask", Object.assign({
45103
45114
  x: position.x,
45104
45115
  y: position.y + start * height,
45105
45116
  width: width,
45106
- height: (end - start) * height
45117
+ height: (end - start) * height,
45118
+ zIndex: LAYOUT_LEVEL.dragMask
45107
45119
  }, dragMaskStyle), "rect"), {
45108
45120
  start: start,
45109
45121
  end: end
@@ -45127,7 +45139,8 @@ class DataZoomRenderer {
45127
45139
  y: position.y,
45128
45140
  width: width,
45129
45141
  height: height,
45130
- cursor: brushSelect ? "crosshair" : "auto"
45142
+ cursor: brushSelect ? "crosshair" : "auto",
45143
+ zIndex: LAYOUT_LEVEL.background
45131
45144
  }, backgroundStyle), {
45132
45145
  pickable: !zoomLock && (null === (_a = backgroundStyle.pickable) || void 0 === _a || _a)
45133
45146
  }), "rect");
@@ -45160,7 +45173,8 @@ class DataZoomRenderer {
45160
45173
  x: position.x + start * width,
45161
45174
  y: position.y - middleHandlerBackgroundSize,
45162
45175
  width: (end - start) * width,
45163
- height: middleHandlerBackgroundSize
45176
+ height: middleHandlerBackgroundSize,
45177
+ zIndex: LAYOUT_LEVEL.handler
45164
45178
  }, null === (_d = middleHandlerStyle.background) || void 0 === _d ? void 0 : _d.style), {
45165
45179
  pickable: !zoomLock && (null === (_g = null === (_f = null === (_e = middleHandlerStyle.background) || void 0 === _e ? void 0 : _e.style) || void 0 === _f ? void 0 : _f.pickable) || void 0 === _g || _g)
45166
45180
  }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
@@ -45168,24 +45182,29 @@ class DataZoomRenderer {
45168
45182
  y: position.y - middleHandlerBackgroundSize / 2,
45169
45183
  strokeBoundsBuffer: 0,
45170
45184
  angle: 0,
45171
- symbolType: null !== (_j = null === (_h = middleHandlerStyle.icon) || void 0 === _h ? void 0 : _h.symbolType) && void 0 !== _j ? _j : "square"
45185
+ symbolType: null !== (_j = null === (_h = middleHandlerStyle.icon) || void 0 === _h ? void 0 : _h.symbolType) && void 0 !== _j ? _j : "square",
45186
+ zIndex: LAYOUT_LEVEL.handler
45172
45187
  }, middleHandlerStyle.icon), {
45173
45188
  pickable: !zoomLock && (null === (_k = middleHandlerStyle.icon.pickable) || void 0 === _k || _k)
45174
45189
  }), "symbol");
45175
45190
  }
45176
- this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
45191
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign(Object.assign({
45177
45192
  x: position.x + start * width,
45178
45193
  y: position.y + height / 2,
45179
45194
  size: height,
45180
45195
  symbolType: null !== (_l = startHandlerStyle.symbolType) && void 0 !== _l ? _l : "square"
45181
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), {
45196
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45197
+ zIndex: LAYOUT_LEVEL.handler
45198
+ }), startHandlerStyle), {
45182
45199
  pickable: !zoomLock && (null === (_m = startHandlerStyle.pickable) || void 0 === _m || _m)
45183
- }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
45200
+ }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign(Object.assign({
45184
45201
  x: position.x + end * width,
45185
45202
  y: position.y + height / 2,
45186
45203
  size: height,
45187
45204
  symbolType: null !== (_o = endHandlerStyle.symbolType) && void 0 !== _o ? _o : "square"
45188
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), {
45205
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45206
+ zIndex: LAYOUT_LEVEL.handler
45207
+ }), endHandlerStyle), {
45189
45208
  pickable: !zoomLock && (null === (_p = endHandlerStyle.pickable) || void 0 === _p || _p)
45190
45209
  }), "symbol");
45191
45210
  const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize),
@@ -45199,7 +45218,7 @@ class DataZoomRenderer {
45199
45218
  height: startHandlerHeight,
45200
45219
  fill: "white",
45201
45220
  fillOpacity: 0,
45202
- zIndex: 999
45221
+ zIndex: LAYOUT_LEVEL.handlerMask
45203
45222
  }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45204
45223
  pickable: !zoomLock
45205
45224
  }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
@@ -45209,7 +45228,7 @@ class DataZoomRenderer {
45209
45228
  height: endHandlerHeight,
45210
45229
  fill: "white",
45211
45230
  fillOpacity: 0,
45212
- zIndex: 999
45231
+ zIndex: LAYOUT_LEVEL.handlerMask
45213
45232
  }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45214
45233
  pickable: !zoomLock
45215
45234
  }), "rect");
@@ -45220,7 +45239,8 @@ class DataZoomRenderer {
45220
45239
  x: "left" === orient ? position.x - middleHandlerBackgroundSize : position.x + width,
45221
45240
  y: position.y + start * height,
45222
45241
  width: middleHandlerBackgroundSize,
45223
- height: (end - start) * height
45242
+ height: (end - start) * height,
45243
+ zIndex: LAYOUT_LEVEL.handler
45224
45244
  }, null === (_r = middleHandlerStyle.background) || void 0 === _r ? void 0 : _r.style), {
45225
45245
  pickable: !zoomLock && (null === (_u = null === (_t = null === (_s = middleHandlerStyle.background) || void 0 === _s ? void 0 : _s.style) || void 0 === _t ? void 0 : _t.pickable) || void 0 === _u || _u)
45226
45246
  }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
@@ -45228,23 +45248,27 @@ class DataZoomRenderer {
45228
45248
  y: position.y + (start + end) / 2 * height,
45229
45249
  angle: Math.PI / 180 * 90,
45230
45250
  symbolType: null !== (_w = null === (_v = middleHandlerStyle.icon) || void 0 === _v ? void 0 : _v.symbolType) && void 0 !== _w ? _w : "square",
45231
- strokeBoundsBuffer: 0
45251
+ strokeBoundsBuffer: 0,
45252
+ zIndex: LAYOUT_LEVEL.handler
45232
45253
  }, middleHandlerStyle.icon), {
45233
45254
  pickable: !zoomLock && (null === (_y = null === (_x = middleHandlerStyle.icon) || void 0 === _x ? void 0 : _x.pickable) || void 0 === _y || _y)
45234
45255
  }), "symbol");
45235
45256
  }
45236
- this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
45257
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign(Object.assign({
45237
45258
  x: position.x + width / 2,
45238
45259
  y: position.y + start * height,
45239
45260
  size: width,
45240
45261
  symbolType: null !== (_z = startHandlerStyle.symbolType) && void 0 !== _z ? _z : "square"
45241
- }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), {
45262
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
45263
+ zIndex: LAYOUT_LEVEL.handler
45264
+ }), startHandlerStyle), {
45242
45265
  pickable: !zoomLock && (null === (_0 = startHandlerStyle.pickable) || void 0 === _0 || _0)
45243
45266
  }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
45244
45267
  x: position.x + width / 2,
45245
45268
  y: position.y + end * height,
45246
45269
  size: width,
45247
- symbolType: null !== (_1 = endHandlerStyle.symbolType) && void 0 !== _1 ? _1 : "square"
45270
+ symbolType: null !== (_1 = endHandlerStyle.symbolType) && void 0 !== _1 ? _1 : "square",
45271
+ zIndex: LAYOUT_LEVEL.handler
45248
45272
  }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), {
45249
45273
  pickable: !zoomLock && (null === (_2 = endHandlerStyle.pickable) || void 0 === _2 || _2)
45250
45274
  }), "symbol");
@@ -45259,7 +45283,7 @@ class DataZoomRenderer {
45259
45283
  height: endHandlerWidth,
45260
45284
  fill: "white",
45261
45285
  fillOpacity: 0,
45262
- zIndex: 999
45286
+ zIndex: LAYOUT_LEVEL.handlerMask
45263
45287
  }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
45264
45288
  pickable: !zoomLock
45265
45289
  }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
@@ -45269,7 +45293,7 @@ class DataZoomRenderer {
45269
45293
  height: endHandlerWidth,
45270
45294
  fill: "white",
45271
45295
  fillOpacity: 0,
45272
- zIndex: 999
45296
+ zIndex: LAYOUT_LEVEL.handlerMask
45273
45297
  }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
45274
45298
  pickable: !zoomLock
45275
45299
  }), "rect");
@@ -45298,7 +45322,8 @@ class DataZoomRenderer {
45298
45322
  y: position.y,
45299
45323
  width: (end - start) * width,
45300
45324
  height: height,
45301
- cursor: brushSelect ? "crosshair" : "move"
45325
+ cursor: brushSelect ? "crosshair" : "move",
45326
+ zIndex: LAYOUT_LEVEL.selectedBackground
45302
45327
  }, selectedBackgroundStyle), {
45303
45328
  pickable: !zoomLock && (null === (_a = selectedBackgroundChartStyle.pickable) || void 0 === _a || _a)
45304
45329
  }), "rect") : this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign(Object.assign({
@@ -45306,14 +45331,16 @@ class DataZoomRenderer {
45306
45331
  y: position.y + start * height,
45307
45332
  width: width,
45308
45333
  height: (end - start) * height,
45309
- cursor: brushSelect ? "crosshair" : "move"
45334
+ cursor: brushSelect ? "crosshair" : "move",
45335
+ zIndex: LAYOUT_LEVEL.selectedBackground
45310
45336
  }, selectedBackgroundStyle), {
45311
45337
  pickable: !zoomLock && (null === (_b = selectedBackgroundStyle.pickable) || void 0 === _b || _b)
45312
45338
  }), "rect");
45313
45339
  }
45314
45340
  _setPreviewAttributes(type, group) {
45315
45341
  this._previewGroup || (this._previewGroup = group.createOrUpdateChild("previewGroup", {
45316
- pickable: !1
45342
+ pickable: !1,
45343
+ zIndex: LAYOUT_LEVEL.preview
45317
45344
  }, "group")), "line" === type ? this._previewLine = this._previewGroup.createOrUpdateChild("previewLine", {}, "line") : this._previewArea = this._previewGroup.createOrUpdateChild("previewArea", {
45318
45345
  curveType: "basis"
45319
45346
  }, "area");
@@ -45332,7 +45359,8 @@ class DataZoomRenderer {
45332
45359
  }
45333
45360
  _setSelectedPreviewClipAttributes(type, group) {
45334
45361
  this._selectedPreviewGroupClip || (this._selectedPreviewGroupClip = group.createOrUpdateChild("selectedPreviewGroupClip", {
45335
- pickable: !1
45362
+ pickable: !1,
45363
+ zIndex: LAYOUT_LEVEL.selectedPreview
45336
45364
  }, "group"), this._selectedPreviewGroup = this._selectedPreviewGroupClip.createOrUpdateChild("selectedPreviewGroup", {}, "group"));
45337
45365
  const {
45338
45366
  start: start,
@@ -53125,7 +53153,7 @@ TableSeriesNumber.defaultAttributes = {
53125
53153
  select: !0
53126
53154
  };
53127
53155
 
53128
- const version = "1.0.42";
53156
+ const version = "1.0.43";
53129
53157
  preLoadAllModule();
53130
53158
  if (isBrowserEnv()) {
53131
53159
  loadBrowserEnv(container);
package/dist/index.js CHANGED
@@ -44973,6 +44973,16 @@
44973
44973
  strokeBoundsBuffer: 0
44974
44974
  }
44975
44975
  };
44976
+ const LAYOUT_LEVEL = {
44977
+ background: 0,
44978
+ preview: 1,
44979
+ dragMask: 2,
44980
+ selectedBackground: 3,
44981
+ selectedPreview: 4,
44982
+ handler: 5,
44983
+ handlerText: 5,
44984
+ handlerMask: 999
44985
+ };
44976
44986
 
44977
44987
  const isTextOverflow = (componentBoundsLike, textBounds, layout, isHorizontal) => {
44978
44988
  if (!textBounds) return !1;
@@ -45104,12 +45114,14 @@
45104
45114
  x: position.x + start * width,
45105
45115
  y: position.y,
45106
45116
  width: (end - start) * width,
45107
- height: height
45117
+ height: height,
45118
+ zIndex: LAYOUT_LEVEL.dragMask
45108
45119
  }, dragMaskStyle), "rect") : this._dragMask = this._getContainer().createOrUpdateChild("dragMask", Object.assign({
45109
45120
  x: position.x,
45110
45121
  y: position.y + start * height,
45111
45122
  width: width,
45112
- height: (end - start) * height
45123
+ height: (end - start) * height,
45124
+ zIndex: LAYOUT_LEVEL.dragMask
45113
45125
  }, dragMaskStyle), "rect"), {
45114
45126
  start: start,
45115
45127
  end: end
@@ -45133,7 +45145,8 @@
45133
45145
  y: position.y,
45134
45146
  width: width,
45135
45147
  height: height,
45136
- cursor: brushSelect ? "crosshair" : "auto"
45148
+ cursor: brushSelect ? "crosshair" : "auto",
45149
+ zIndex: LAYOUT_LEVEL.background
45137
45150
  }, backgroundStyle), {
45138
45151
  pickable: !zoomLock && (null === (_a = backgroundStyle.pickable) || void 0 === _a || _a)
45139
45152
  }), "rect");
@@ -45166,7 +45179,8 @@
45166
45179
  x: position.x + start * width,
45167
45180
  y: position.y - middleHandlerBackgroundSize,
45168
45181
  width: (end - start) * width,
45169
- height: middleHandlerBackgroundSize
45182
+ height: middleHandlerBackgroundSize,
45183
+ zIndex: LAYOUT_LEVEL.handler
45170
45184
  }, null === (_d = middleHandlerStyle.background) || void 0 === _d ? void 0 : _d.style), {
45171
45185
  pickable: !zoomLock && (null === (_g = null === (_f = null === (_e = middleHandlerStyle.background) || void 0 === _e ? void 0 : _e.style) || void 0 === _f ? void 0 : _f.pickable) || void 0 === _g || _g)
45172
45186
  }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
@@ -45174,24 +45188,29 @@
45174
45188
  y: position.y - middleHandlerBackgroundSize / 2,
45175
45189
  strokeBoundsBuffer: 0,
45176
45190
  angle: 0,
45177
- symbolType: null !== (_j = null === (_h = middleHandlerStyle.icon) || void 0 === _h ? void 0 : _h.symbolType) && void 0 !== _j ? _j : "square"
45191
+ symbolType: null !== (_j = null === (_h = middleHandlerStyle.icon) || void 0 === _h ? void 0 : _h.symbolType) && void 0 !== _j ? _j : "square",
45192
+ zIndex: LAYOUT_LEVEL.handler
45178
45193
  }, middleHandlerStyle.icon), {
45179
45194
  pickable: !zoomLock && (null === (_k = middleHandlerStyle.icon.pickable) || void 0 === _k || _k)
45180
45195
  }), "symbol");
45181
45196
  }
45182
- this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
45197
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign(Object.assign({
45183
45198
  x: position.x + start * width,
45184
45199
  y: position.y + height / 2,
45185
45200
  size: height,
45186
45201
  symbolType: null !== (_l = startHandlerStyle.symbolType) && void 0 !== _l ? _l : "square"
45187
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), startHandlerStyle), {
45202
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45203
+ zIndex: LAYOUT_LEVEL.handler
45204
+ }), startHandlerStyle), {
45188
45205
  pickable: !zoomLock && (null === (_m = startHandlerStyle.pickable) || void 0 === _m || _m)
45189
- }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
45206
+ }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign(Object.assign({
45190
45207
  x: position.x + end * width,
45191
45208
  y: position.y + height / 2,
45192
45209
  size: height,
45193
45210
  symbolType: null !== (_o = endHandlerStyle.symbolType) && void 0 !== _o ? _o : "square"
45194
- }, DEFAULT_HANDLER_ATTR_MAP.horizontal), endHandlerStyle), {
45211
+ }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45212
+ zIndex: LAYOUT_LEVEL.handler
45213
+ }), endHandlerStyle), {
45195
45214
  pickable: !zoomLock && (null === (_p = endHandlerStyle.pickable) || void 0 === _p || _p)
45196
45215
  }), "symbol");
45197
45216
  const startHandlerWidth = Math.max(this._startHandler.AABBBounds.width(), startHandlerMinSize),
@@ -45205,7 +45224,7 @@
45205
45224
  height: startHandlerHeight,
45206
45225
  fill: "white",
45207
45226
  fillOpacity: 0,
45208
- zIndex: 999
45227
+ zIndex: LAYOUT_LEVEL.handlerMask
45209
45228
  }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45210
45229
  pickable: !zoomLock
45211
45230
  }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
@@ -45215,7 +45234,7 @@
45215
45234
  height: endHandlerHeight,
45216
45235
  fill: "white",
45217
45236
  fillOpacity: 0,
45218
- zIndex: 999
45237
+ zIndex: LAYOUT_LEVEL.handlerMask
45219
45238
  }, DEFAULT_HANDLER_ATTR_MAP.horizontal), {
45220
45239
  pickable: !zoomLock
45221
45240
  }), "rect");
@@ -45226,7 +45245,8 @@
45226
45245
  x: "left" === orient ? position.x - middleHandlerBackgroundSize : position.x + width,
45227
45246
  y: position.y + start * height,
45228
45247
  width: middleHandlerBackgroundSize,
45229
- height: (end - start) * height
45248
+ height: (end - start) * height,
45249
+ zIndex: LAYOUT_LEVEL.handler
45230
45250
  }, null === (_r = middleHandlerStyle.background) || void 0 === _r ? void 0 : _r.style), {
45231
45251
  pickable: !zoomLock && (null === (_u = null === (_t = null === (_s = middleHandlerStyle.background) || void 0 === _s ? void 0 : _s.style) || void 0 === _t ? void 0 : _t.pickable) || void 0 === _u || _u)
45232
45252
  }), "rect"), this._middleHandlerSymbol = group.createOrUpdateChild("middleHandlerSymbol", Object.assign(Object.assign({
@@ -45234,23 +45254,27 @@
45234
45254
  y: position.y + (start + end) / 2 * height,
45235
45255
  angle: Math.PI / 180 * 90,
45236
45256
  symbolType: null !== (_w = null === (_v = middleHandlerStyle.icon) || void 0 === _v ? void 0 : _v.symbolType) && void 0 !== _w ? _w : "square",
45237
- strokeBoundsBuffer: 0
45257
+ strokeBoundsBuffer: 0,
45258
+ zIndex: LAYOUT_LEVEL.handler
45238
45259
  }, middleHandlerStyle.icon), {
45239
45260
  pickable: !zoomLock && (null === (_y = null === (_x = middleHandlerStyle.icon) || void 0 === _x ? void 0 : _x.pickable) || void 0 === _y || _y)
45240
45261
  }), "symbol");
45241
45262
  }
45242
- this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign({
45263
+ this._startHandler = group.createOrUpdateChild("startHandler", Object.assign(Object.assign(Object.assign(Object.assign({
45243
45264
  x: position.x + width / 2,
45244
45265
  y: position.y + start * height,
45245
45266
  size: width,
45246
45267
  symbolType: null !== (_z = startHandlerStyle.symbolType) && void 0 !== _z ? _z : "square"
45247
- }, DEFAULT_HANDLER_ATTR_MAP.vertical), startHandlerStyle), {
45268
+ }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
45269
+ zIndex: LAYOUT_LEVEL.handler
45270
+ }), startHandlerStyle), {
45248
45271
  pickable: !zoomLock && (null === (_0 = startHandlerStyle.pickable) || void 0 === _0 || _0)
45249
45272
  }), "symbol"), this._endHandler = group.createOrUpdateChild("endHandler", Object.assign(Object.assign(Object.assign({
45250
45273
  x: position.x + width / 2,
45251
45274
  y: position.y + end * height,
45252
45275
  size: width,
45253
- symbolType: null !== (_1 = endHandlerStyle.symbolType) && void 0 !== _1 ? _1 : "square"
45276
+ symbolType: null !== (_1 = endHandlerStyle.symbolType) && void 0 !== _1 ? _1 : "square",
45277
+ zIndex: LAYOUT_LEVEL.handler
45254
45278
  }, DEFAULT_HANDLER_ATTR_MAP.vertical), endHandlerStyle), {
45255
45279
  pickable: !zoomLock && (null === (_2 = endHandlerStyle.pickable) || void 0 === _2 || _2)
45256
45280
  }), "symbol");
@@ -45265,7 +45289,7 @@
45265
45289
  height: endHandlerWidth,
45266
45290
  fill: "white",
45267
45291
  fillOpacity: 0,
45268
- zIndex: 999
45292
+ zIndex: LAYOUT_LEVEL.handlerMask
45269
45293
  }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
45270
45294
  pickable: !zoomLock
45271
45295
  }), "rect"), this._endHandlerMask = group.createOrUpdateChild("endHandlerMask", Object.assign(Object.assign({
@@ -45275,7 +45299,7 @@
45275
45299
  height: endHandlerWidth,
45276
45300
  fill: "white",
45277
45301
  fillOpacity: 0,
45278
- zIndex: 999
45302
+ zIndex: LAYOUT_LEVEL.handlerMask
45279
45303
  }, DEFAULT_HANDLER_ATTR_MAP.vertical), {
45280
45304
  pickable: !zoomLock
45281
45305
  }), "rect");
@@ -45304,7 +45328,8 @@
45304
45328
  y: position.y,
45305
45329
  width: (end - start) * width,
45306
45330
  height: height,
45307
- cursor: brushSelect ? "crosshair" : "move"
45331
+ cursor: brushSelect ? "crosshair" : "move",
45332
+ zIndex: LAYOUT_LEVEL.selectedBackground
45308
45333
  }, selectedBackgroundStyle), {
45309
45334
  pickable: !zoomLock && (null === (_a = selectedBackgroundChartStyle.pickable) || void 0 === _a || _a)
45310
45335
  }), "rect") : this._selectedBackground = group.createOrUpdateChild("selectedBackground", Object.assign(Object.assign({
@@ -45312,14 +45337,16 @@
45312
45337
  y: position.y + start * height,
45313
45338
  width: width,
45314
45339
  height: (end - start) * height,
45315
- cursor: brushSelect ? "crosshair" : "move"
45340
+ cursor: brushSelect ? "crosshair" : "move",
45341
+ zIndex: LAYOUT_LEVEL.selectedBackground
45316
45342
  }, selectedBackgroundStyle), {
45317
45343
  pickable: !zoomLock && (null === (_b = selectedBackgroundStyle.pickable) || void 0 === _b || _b)
45318
45344
  }), "rect");
45319
45345
  }
45320
45346
  _setPreviewAttributes(type, group) {
45321
45347
  this._previewGroup || (this._previewGroup = group.createOrUpdateChild("previewGroup", {
45322
- pickable: !1
45348
+ pickable: !1,
45349
+ zIndex: LAYOUT_LEVEL.preview
45323
45350
  }, "group")), "line" === type ? this._previewLine = this._previewGroup.createOrUpdateChild("previewLine", {}, "line") : this._previewArea = this._previewGroup.createOrUpdateChild("previewArea", {
45324
45351
  curveType: "basis"
45325
45352
  }, "area");
@@ -45338,7 +45365,8 @@
45338
45365
  }
45339
45366
  _setSelectedPreviewClipAttributes(type, group) {
45340
45367
  this._selectedPreviewGroupClip || (this._selectedPreviewGroupClip = group.createOrUpdateChild("selectedPreviewGroupClip", {
45341
- pickable: !1
45368
+ pickable: !1,
45369
+ zIndex: LAYOUT_LEVEL.selectedPreview
45342
45370
  }, "group"), this._selectedPreviewGroup = this._selectedPreviewGroupClip.createOrUpdateChild("selectedPreviewGroup", {}, "group"));
45343
45371
  const {
45344
45372
  start: start,
@@ -53131,7 +53159,7 @@
53131
53159
  select: !0
53132
53160
  };
53133
53161
 
53134
- const version = "1.0.42";
53162
+ const version = "1.0.43";
53135
53163
  preLoadAllModule();
53136
53164
  if (isBrowserEnv()) {
53137
53165
  loadBrowserEnv(container);