@visactor/vrender 1.0.43-alpha.0 → 1.0.44
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 +1 -1
- package/cjs/index.js +10 -11
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +37 -23
- package/dist/index.js +37 -23
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +7 -7
package/cjs/index.d.ts
CHANGED
package/cjs/index.js
CHANGED
|
@@ -21,17 +21,16 @@ 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.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
(0, vrender_kits_2.
|
|
28
|
-
(0, vrender_kits_2.
|
|
29
|
-
(0, vrender_kits_2.
|
|
30
|
-
(0, vrender_kits_2.
|
|
31
|
-
|
|
32
|
-
(0, vrender_kits_2.
|
|
33
|
-
(0,
|
|
34
|
-
vrender_kits_1.registerStar)(), (0, vrender_core_1.registerFlexLayoutPlugin)(),
|
|
24
|
+
exports.version = "1.0.44", (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)(),
|
|
35
34
|
(0, vrender_core_1.registerViewTransform3dPlugin)(), (0, vrender_core_1.registerHtmlAttributePlugin)(),
|
|
36
35
|
(0, vrender_core_1.registerReactAttributePlugin)(), (0, vrender_core_1.registerDirectionalLight)(),
|
|
37
36
|
(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,
|
|
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.44\";\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
|
@@ -45562,7 +45562,8 @@ class DataZoomRenderer {
|
|
|
45562
45562
|
visible: this._showText,
|
|
45563
45563
|
pickable: !1,
|
|
45564
45564
|
childrenPickable: !1,
|
|
45565
|
-
textStyle: startTextAlignStyle
|
|
45565
|
+
textStyle: startTextAlignStyle,
|
|
45566
|
+
zIndex: LAYOUT_LEVEL.handlerText
|
|
45566
45567
|
}), "data-zoom-start-text"), this._endText = this._maybeAddLabel(this._getContainer(), merge({}, restEndTextStyle, {
|
|
45567
45568
|
text: endTextValue,
|
|
45568
45569
|
x: endTextPosition.x,
|
|
@@ -45570,7 +45571,8 @@ class DataZoomRenderer {
|
|
|
45570
45571
|
visible: this._showText,
|
|
45571
45572
|
pickable: !1,
|
|
45572
45573
|
childrenPickable: !1,
|
|
45573
|
-
textStyle: endTextAlignStyle
|
|
45574
|
+
textStyle: endTextAlignStyle,
|
|
45575
|
+
zIndex: LAYOUT_LEVEL.handlerText
|
|
45574
45576
|
}), "data-zoom-end-text");
|
|
45575
45577
|
}
|
|
45576
45578
|
_maybeAddLabel(container, attributes, name) {
|
|
@@ -49195,7 +49197,31 @@ class Slider extends AbstractComponent {
|
|
|
49195
49197
|
return graphicCreator.symbol(style);
|
|
49196
49198
|
}
|
|
49197
49199
|
_renderHandlerText(value, position) {
|
|
49198
|
-
|
|
49200
|
+
return graphicCreator.text(this._getHandlerTextAttributes(value, position));
|
|
49201
|
+
}
|
|
49202
|
+
_getHandlerPosition(isStart) {
|
|
49203
|
+
return this.attribute.range && isStart ? "start" : "end";
|
|
49204
|
+
}
|
|
49205
|
+
_getHandlerTextStyle(value, position) {
|
|
49206
|
+
const {
|
|
49207
|
+
align: align,
|
|
49208
|
+
handlerSize = 14,
|
|
49209
|
+
handlerText = {},
|
|
49210
|
+
railHeight: railHeight,
|
|
49211
|
+
railWidth: railWidth,
|
|
49212
|
+
slidable: slidable
|
|
49213
|
+
} = this.attribute;
|
|
49214
|
+
return isFunction$1(handlerText.style) ? handlerText.style(value, position, {
|
|
49215
|
+
layout: this.attribute.layout,
|
|
49216
|
+
align: align,
|
|
49217
|
+
railWidth: railWidth,
|
|
49218
|
+
railHeight: railHeight,
|
|
49219
|
+
handlerSize: handlerSize,
|
|
49220
|
+
slidable: slidable
|
|
49221
|
+
}) : handlerText.style;
|
|
49222
|
+
}
|
|
49223
|
+
_getHandlerTextAttributes(value, position) {
|
|
49224
|
+
var _a, _b;
|
|
49199
49225
|
const {
|
|
49200
49226
|
align: align,
|
|
49201
49227
|
handlerSize = 14,
|
|
@@ -49207,13 +49233,13 @@ class Slider extends AbstractComponent {
|
|
|
49207
49233
|
isHorizontal = this._isHorizontal,
|
|
49208
49234
|
pos = this.calculatePosByValue(value, position),
|
|
49209
49235
|
textSpace = null !== (_a = handlerText.space) && void 0 !== _a ? _a : 4,
|
|
49236
|
+
handlerTextStyle = this._getHandlerTextStyle(value, position),
|
|
49210
49237
|
textStyle = {
|
|
49211
49238
|
text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed(null !== (_b = handlerText.precision) && void 0 !== _b ? _b : 0),
|
|
49212
|
-
lineHeight: null
|
|
49239
|
+
lineHeight: null == handlerTextStyle ? void 0 : handlerTextStyle.lineHeight,
|
|
49213
49240
|
cursor: !1 === slidable ? "default" : getDefaultCursor(isHorizontal)
|
|
49214
49241
|
};
|
|
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));
|
|
49242
|
+
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);
|
|
49217
49243
|
}
|
|
49218
49244
|
_renderTooltip() {
|
|
49219
49245
|
var _a;
|
|
@@ -49341,31 +49367,19 @@ class Slider extends AbstractComponent {
|
|
|
49341
49367
|
}
|
|
49342
49368
|
}
|
|
49343
49369
|
_updateHandler(handler, position, value) {
|
|
49344
|
-
var _a;
|
|
49345
49370
|
const isHorizontal = this._isHorizontal;
|
|
49346
49371
|
handler.setAttribute(isHorizontal ? "x" : "y", position);
|
|
49347
49372
|
const updateHandlerText = handler.name === SLIDER_ELEMENT_NAME.startHandler ? this._startHandlerText : this._endHandlerText;
|
|
49348
49373
|
if (updateHandlerText) {
|
|
49349
|
-
const
|
|
49350
|
-
|
|
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
|
-
});
|
|
49374
|
+
const handlerPosition = this._getHandlerPosition(handler.name === SLIDER_ELEMENT_NAME.startHandler);
|
|
49375
|
+
updateHandlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
|
|
49356
49376
|
}
|
|
49357
49377
|
handler.name === SLIDER_ELEMENT_NAME.startHandler ? (this._currentValue.startValue = value, this._currentValue.startPos = position) : (this._currentValue.endValue = value, this._currentValue.endPos = position);
|
|
49358
49378
|
}
|
|
49359
49379
|
_updateHandlerText(handlerText, position, value) {
|
|
49360
|
-
var _a;
|
|
49361
49380
|
const isHorizontal = this._isHorizontal,
|
|
49362
|
-
|
|
49363
|
-
|
|
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
|
-
});
|
|
49381
|
+
handlerPosition = this._getHandlerPosition(handlerText.name === SLIDER_ELEMENT_NAME.startHandlerText);
|
|
49382
|
+
handlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
|
|
49369
49383
|
const updateHandler = handlerText.name === SLIDER_ELEMENT_NAME.startHandlerText ? this._startHandler : this._endHandler;
|
|
49370
49384
|
updateHandler && updateHandler.setAttributes({
|
|
49371
49385
|
[isHorizontal ? "x" : "y"]: position
|
|
@@ -53141,7 +53155,7 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
53141
53155
|
select: !0
|
|
53142
53156
|
};
|
|
53143
53157
|
|
|
53144
|
-
const version = "1.0.
|
|
53158
|
+
const version = "1.0.44";
|
|
53145
53159
|
preLoadAllModule();
|
|
53146
53160
|
if (isBrowserEnv()) {
|
|
53147
53161
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -45568,7 +45568,8 @@
|
|
|
45568
45568
|
visible: this._showText,
|
|
45569
45569
|
pickable: !1,
|
|
45570
45570
|
childrenPickable: !1,
|
|
45571
|
-
textStyle: startTextAlignStyle
|
|
45571
|
+
textStyle: startTextAlignStyle,
|
|
45572
|
+
zIndex: LAYOUT_LEVEL.handlerText
|
|
45572
45573
|
}), "data-zoom-start-text"), this._endText = this._maybeAddLabel(this._getContainer(), merge({}, restEndTextStyle, {
|
|
45573
45574
|
text: endTextValue,
|
|
45574
45575
|
x: endTextPosition.x,
|
|
@@ -45576,7 +45577,8 @@
|
|
|
45576
45577
|
visible: this._showText,
|
|
45577
45578
|
pickable: !1,
|
|
45578
45579
|
childrenPickable: !1,
|
|
45579
|
-
textStyle: endTextAlignStyle
|
|
45580
|
+
textStyle: endTextAlignStyle,
|
|
45581
|
+
zIndex: LAYOUT_LEVEL.handlerText
|
|
45580
45582
|
}), "data-zoom-end-text");
|
|
45581
45583
|
}
|
|
45582
45584
|
_maybeAddLabel(container, attributes, name) {
|
|
@@ -49201,7 +49203,31 @@
|
|
|
49201
49203
|
return graphicCreator.symbol(style);
|
|
49202
49204
|
}
|
|
49203
49205
|
_renderHandlerText(value, position) {
|
|
49204
|
-
|
|
49206
|
+
return graphicCreator.text(this._getHandlerTextAttributes(value, position));
|
|
49207
|
+
}
|
|
49208
|
+
_getHandlerPosition(isStart) {
|
|
49209
|
+
return this.attribute.range && isStart ? "start" : "end";
|
|
49210
|
+
}
|
|
49211
|
+
_getHandlerTextStyle(value, position) {
|
|
49212
|
+
const {
|
|
49213
|
+
align: align,
|
|
49214
|
+
handlerSize = 14,
|
|
49215
|
+
handlerText = {},
|
|
49216
|
+
railHeight: railHeight,
|
|
49217
|
+
railWidth: railWidth,
|
|
49218
|
+
slidable: slidable
|
|
49219
|
+
} = this.attribute;
|
|
49220
|
+
return isFunction$1(handlerText.style) ? handlerText.style(value, position, {
|
|
49221
|
+
layout: this.attribute.layout,
|
|
49222
|
+
align: align,
|
|
49223
|
+
railWidth: railWidth,
|
|
49224
|
+
railHeight: railHeight,
|
|
49225
|
+
handlerSize: handlerSize,
|
|
49226
|
+
slidable: slidable
|
|
49227
|
+
}) : handlerText.style;
|
|
49228
|
+
}
|
|
49229
|
+
_getHandlerTextAttributes(value, position) {
|
|
49230
|
+
var _a, _b;
|
|
49205
49231
|
const {
|
|
49206
49232
|
align: align,
|
|
49207
49233
|
handlerSize = 14,
|
|
@@ -49213,13 +49239,13 @@
|
|
|
49213
49239
|
isHorizontal = this._isHorizontal,
|
|
49214
49240
|
pos = this.calculatePosByValue(value, position),
|
|
49215
49241
|
textSpace = null !== (_a = handlerText.space) && void 0 !== _a ? _a : 4,
|
|
49242
|
+
handlerTextStyle = this._getHandlerTextStyle(value, position),
|
|
49216
49243
|
textStyle = {
|
|
49217
49244
|
text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed(null !== (_b = handlerText.precision) && void 0 !== _b ? _b : 0),
|
|
49218
|
-
lineHeight: null
|
|
49245
|
+
lineHeight: null == handlerTextStyle ? void 0 : handlerTextStyle.lineHeight,
|
|
49219
49246
|
cursor: !1 === slidable ? "default" : getDefaultCursor(isHorizontal)
|
|
49220
49247
|
};
|
|
49221
|
-
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);
|
|
49222
|
-
return graphicCreator.text(Object.assign(Object.assign({}, textStyle), handlerText.style));
|
|
49248
|
+
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);
|
|
49223
49249
|
}
|
|
49224
49250
|
_renderTooltip() {
|
|
49225
49251
|
var _a;
|
|
@@ -49347,31 +49373,19 @@
|
|
|
49347
49373
|
}
|
|
49348
49374
|
}
|
|
49349
49375
|
_updateHandler(handler, position, value) {
|
|
49350
|
-
var _a;
|
|
49351
49376
|
const isHorizontal = this._isHorizontal;
|
|
49352
49377
|
handler.setAttribute(isHorizontal ? "x" : "y", position);
|
|
49353
49378
|
const updateHandlerText = handler.name === exports.SLIDER_ELEMENT_NAME.startHandler ? this._startHandlerText : this._endHandlerText;
|
|
49354
49379
|
if (updateHandlerText) {
|
|
49355
|
-
const
|
|
49356
|
-
|
|
49357
|
-
} = this.attribute;
|
|
49358
|
-
updateHandlerText.setAttributes({
|
|
49359
|
-
text: handlerText.formatter ? handlerText.formatter(value) : value.toFixed(null !== (_a = handlerText.precision) && void 0 !== _a ? _a : 0),
|
|
49360
|
-
[isHorizontal ? "x" : "y"]: position
|
|
49361
|
-
});
|
|
49380
|
+
const handlerPosition = this._getHandlerPosition(handler.name === exports.SLIDER_ELEMENT_NAME.startHandler);
|
|
49381
|
+
updateHandlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
|
|
49362
49382
|
}
|
|
49363
49383
|
handler.name === exports.SLIDER_ELEMENT_NAME.startHandler ? (this._currentValue.startValue = value, this._currentValue.startPos = position) : (this._currentValue.endValue = value, this._currentValue.endPos = position);
|
|
49364
49384
|
}
|
|
49365
49385
|
_updateHandlerText(handlerText, position, value) {
|
|
49366
|
-
var _a;
|
|
49367
49386
|
const isHorizontal = this._isHorizontal,
|
|
49368
|
-
|
|
49369
|
-
|
|
49370
|
-
} = this.attribute;
|
|
49371
|
-
handlerText.setAttributes({
|
|
49372
|
-
[isHorizontal ? "x" : "y"]: position,
|
|
49373
|
-
text: handlerTextAttr.formatter ? handlerTextAttr.formatter(value) : value.toFixed(null !== (_a = handlerTextAttr.precision) && void 0 !== _a ? _a : 0)
|
|
49374
|
-
});
|
|
49387
|
+
handlerPosition = this._getHandlerPosition(handlerText.name === exports.SLIDER_ELEMENT_NAME.startHandlerText);
|
|
49388
|
+
handlerText.setAttributes(this._getHandlerTextAttributes(value, handlerPosition));
|
|
49375
49389
|
const updateHandler = handlerText.name === exports.SLIDER_ELEMENT_NAME.startHandlerText ? this._startHandler : this._endHandler;
|
|
49376
49390
|
updateHandler && updateHandler.setAttributes({
|
|
49377
49391
|
[isHorizontal ? "x" : "y"]: position
|
|
@@ -53147,7 +53161,7 @@
|
|
|
53147
53161
|
select: !0
|
|
53148
53162
|
};
|
|
53149
53163
|
|
|
53150
|
-
const version = "1.0.
|
|
53164
|
+
const version = "1.0.44";
|
|
53151
53165
|
preLoadAllModule();
|
|
53152
53166
|
if (isBrowserEnv()) {
|
|
53153
53167
|
loadBrowserEnv(container);
|