@visactor/vrender 1.0.42 → 1.0.43-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/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-alpha.0";
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,16 +21,17 @@ 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,
25
- vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0, vrender_core_1.isNodeEnv)() && (0,
26
- vrender_kits_1.loadNodeEnv)(vrender_core_1.container), (0, vrender_kits_2.registerArc)(),
27
- (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(), (0, vrender_kits_2.registerCircle)(),
28
- (0, vrender_kits_2.registerGlyph)(), (0, vrender_kits_2.registerGroup)(), (0, vrender_kits_2.registerImage)(),
29
- (0, vrender_kits_2.registerLine)(), (0, vrender_kits_2.registerPath)(), (0, vrender_kits_2.registerPolygon)(),
30
- (0, vrender_kits_2.registerPyramid3d)(), (0, vrender_kits_2.registerRect)(), (0,
31
- vrender_kits_2.registerRect3d)(), (0, vrender_kits_2.registerRichtext)(), (0, vrender_kits_2.registerShadowRoot)(),
32
- (0, vrender_kits_2.registerSymbol)(), (0, vrender_kits_2.registerText)(), (0, vrender_kits_2.registerWrapText)(),
33
- (0, vrender_kits_1.registerStar)(), (0, vrender_core_1.registerFlexLayoutPlugin)(),
24
+ exports.version = "1.0.43-alpha.0", (0, vrender_core_1.preLoadAllModule)(), (0,
25
+ vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
26
+ vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
27
+ (0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
28
+ (0, vrender_kits_2.registerCircle)(), (0, vrender_kits_2.registerGlyph)(), (0, vrender_kits_2.registerGroup)(),
29
+ (0, vrender_kits_2.registerImage)(), (0, vrender_kits_2.registerLine)(), (0, vrender_kits_2.registerPath)(),
30
+ (0, vrender_kits_2.registerPolygon)(), (0, vrender_kits_2.registerPyramid3d)(),
31
+ (0, vrender_kits_2.registerRect)(), (0, vrender_kits_2.registerRect3d)(), (0, vrender_kits_2.registerRichtext)(),
32
+ (0, vrender_kits_2.registerShadowRoot)(), (0, vrender_kits_2.registerSymbol)(),
33
+ (0, vrender_kits_2.registerText)(), (0, vrender_kits_2.registerWrapText)(), (0,
34
+ vrender_kits_1.registerStar)(), (0, vrender_core_1.registerFlexLayoutPlugin)(),
34
35
  (0, vrender_core_1.registerViewTransform3dPlugin)(), (0, vrender_core_1.registerHtmlAttributePlugin)(),
35
36
  (0, vrender_core_1.registerReactAttributePlugin)(), (0, vrender_core_1.registerDirectionalLight)(),
36
37
  (0, vrender_core_1.registerOrthoCamera)(), (0, vrender_animate_1.registerCustomAnimate)(),
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,gBAAgB,CAAC;AAExC,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-alpha.0\";\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,
@@ -49167,31 +49195,7 @@ class Slider extends AbstractComponent {
49167
49195
  return graphicCreator.symbol(style);
49168
49196
  }
49169
49197
  _renderHandlerText(value, position) {
49170
- return graphicCreator.text(this._getHandlerTextAttributes(value, position));
49171
- }
49172
- _getHandlerPosition(isStart) {
49173
- return this.attribute.range && isStart ? "start" : "end";
49174
- }
49175
- _getHandlerTextStyle(value, position) {
49176
- const {
49177
- align: align,
49178
- handlerSize = 14,
49179
- handlerText = {},
49180
- railHeight: railHeight,
49181
- railWidth: railWidth,
49182
- slidable: slidable
49183
- } = this.attribute;
49184
- return isFunction$1(handlerText.style) ? handlerText.style(value, position, {
49185
- layout: this.attribute.layout,
49186
- align: align,
49187
- railWidth: railWidth,
49188
- railHeight: railHeight,
49189
- handlerSize: handlerSize,
49190
- slidable: slidable
49191
- }) : handlerText.style;
49192
- }
49193
- _getHandlerTextAttributes(value, position) {
49194
- var _a, _b;
49198
+ var _a, _b, _c;
49195
49199
  const {
49196
49200
  align: align,
49197
49201
  handlerSize = 14,
@@ -49203,13 +49207,13 @@ class Slider extends AbstractComponent {
49203
49207
  isHorizontal = this._isHorizontal,
49204
49208
  pos = this.calculatePosByValue(value, position),
49205
49209
  textSpace = null !== (_a = handlerText.space) && void 0 !== _a ? _a : 4,
49206
- handlerTextStyle = this._getHandlerTextStyle(value, position),
49207
49210
  textStyle = {
49208
49211
  text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed(null !== (_b = handlerText.precision) && void 0 !== _b ? _b : 0),
49209
- lineHeight: null == handlerTextStyle ? void 0 : handlerTextStyle.lineHeight,
49212
+ lineHeight: null === (_c = handlerText.style) || void 0 === _c ? void 0 : _c.lineHeight,
49210
49213
  cursor: !1 === slidable ? "default" : getDefaultCursor(isHorizontal)
49211
49214
  };
49212
- return isHorizontal ? "top" === align ? (textStyle.textBaseline = "bottom", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight - handlerSize) / 2 - textSpace) : (textStyle.textBaseline = "top", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight + handlerSize) / 2 + textSpace) : "left" === align ? (textStyle.textBaseline = "middle", textStyle.textAlign = "end", textStyle.x = (railWidth - handlerSize) / 2 - textSpace, textStyle.y = pos) : (textStyle.textBaseline = "middle", textStyle.textAlign = "start", textStyle.x = (railWidth + handlerSize) / 2 + textSpace, textStyle.y = pos), Object.assign(Object.assign({}, textStyle), handlerTextStyle);
49215
+ isHorizontal ? "top" === align ? (textStyle.textBaseline = "bottom", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight - handlerSize) / 2 - textSpace) : (textStyle.textBaseline = "top", textStyle.textAlign = "center", textStyle.x = pos, textStyle.y = (railHeight + handlerSize) / 2 + textSpace) : "left" === align ? (textStyle.textBaseline = "middle", textStyle.textAlign = "end", textStyle.x = (railWidth - handlerSize) / 2 - textSpace, textStyle.y = pos) : (textStyle.textBaseline = "middle", textStyle.textAlign = "start", textStyle.x = (railWidth + handlerSize) / 2 + textSpace, textStyle.y = pos);
49216
+ return graphicCreator.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
49213
49217
  }
49214
49218
  _renderTooltip() {
49215
49219
  var _a;
@@ -49337,19 +49341,31 @@ class Slider extends AbstractComponent {
49337
49341
  }
49338
49342
  }
49339
49343
  _updateHandler(handler, position, value) {
49344
+ var _a;
49340
49345
  const isHorizontal = this._isHorizontal;
49341
49346
  handler.setAttribute(isHorizontal ? "x" : "y", position);
49342
49347
  const updateHandlerText = handler.name === SLIDER_ELEMENT_NAME.startHandler ? this._startHandlerText : this._endHandlerText;
49343
49348
  if (updateHandlerText) {
49344
- const handlerPosition = this._getHandlerPosition(handler.name === SLIDER_ELEMENT_NAME.startHandler);
49345
- updateHandlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
49349
+ const {
49350
+ handlerText = {}
49351
+ } = this.attribute;
49352
+ updateHandlerText.setAttributes({
49353
+ text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed(null !== (_a = handlerText.precision) && void 0 !== _a ? _a : 0),
49354
+ [isHorizontal ? "x" : "y"]: position
49355
+ });
49346
49356
  }
49347
49357
  handler.name === SLIDER_ELEMENT_NAME.startHandler ? (this._currentValue.startValue = value, this._currentValue.startPos = position) : (this._currentValue.endValue = value, this._currentValue.endPos = position);
49348
49358
  }
49349
49359
  _updateHandlerText(handlerText, position, value) {
49360
+ var _a;
49350
49361
  const isHorizontal = this._isHorizontal,
49351
- handlerPosition = this._getHandlerPosition(handlerText.name === SLIDER_ELEMENT_NAME.startHandlerText);
49352
- handlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
49362
+ {
49363
+ handlerText: handlerTextAttr = {}
49364
+ } = this.attribute;
49365
+ handlerText.setAttributes({
49366
+ [isHorizontal ? "x" : "y"]: position,
49367
+ text: handlerTextAttr.formatter ? handlerTextAttr.formatter(value) : value.toFixed(null !== (_a = handlerTextAttr.precision) && void 0 !== _a ? _a : 0)
49368
+ });
49353
49369
  const updateHandler = handlerText.name === SLIDER_ELEMENT_NAME.startHandlerText ? this._startHandler : this._endHandler;
49354
49370
  updateHandler && updateHandler.setAttributes({
49355
49371
  [isHorizontal ? "x" : "y"]: position
@@ -53125,7 +53141,7 @@ TableSeriesNumber.defaultAttributes = {
53125
53141
  select: !0
53126
53142
  };
53127
53143
 
53128
- const version = "1.0.42";
53144
+ const version = "1.0.43-alpha.0";
53129
53145
  preLoadAllModule();
53130
53146
  if (isBrowserEnv()) {
53131
53147
  loadBrowserEnv(container);