@visactor/vrender 1.0.27-alpha.0 → 1.0.28-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 +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.es.js +29 -158
- package/dist/index.js +29 -158
- 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,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.
|
|
24
|
+
exports.version = "1.0.28-alpha.0", (0, vrender_core_1.preLoadAllModule)(), (0,
|
|
25
25
|
vrender_core_1.isBrowserEnv)() ? (0, vrender_kits_1.loadBrowserEnv)(vrender_core_1.container) : (0,
|
|
26
26
|
vrender_core_1.isNodeEnv)() && (0, vrender_kits_1.loadNodeEnv)(vrender_core_1.container),
|
|
27
27
|
(0, vrender_kits_2.registerArc)(), (0, vrender_kits_2.registerArc3d)(), (0, vrender_kits_2.registerArea)(),
|
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,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.
|
|
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.28-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
|
@@ -11955,9 +11955,10 @@ let Symbol$1 = class Symbol extends Graphic {
|
|
|
11955
11955
|
}
|
|
11956
11956
|
updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds) {
|
|
11957
11957
|
const {
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11958
|
+
size = symbolTheme.size
|
|
11959
|
+
} = attribute,
|
|
11960
|
+
symbolClass = this.getParsedPath();
|
|
11961
|
+
return symbolClass ? (symbolClass.bounds(size, aabbBounds), aabbBounds) : aabbBounds;
|
|
11961
11962
|
}
|
|
11962
11963
|
needUpdateTags(keys) {
|
|
11963
11964
|
return super.needUpdateTags(keys, SYMBOL_UPDATE_TAG_KEY);
|
|
@@ -11966,8 +11967,9 @@ let Symbol$1 = class Symbol extends Graphic {
|
|
|
11966
11967
|
return super.needUpdateTag(key, SYMBOL_UPDATE_TAG_KEY);
|
|
11967
11968
|
}
|
|
11968
11969
|
toCustomPath() {
|
|
11969
|
-
const symbolInstance = this.getParsedPath()
|
|
11970
|
-
|
|
11970
|
+
const symbolInstance = this.getParsedPath();
|
|
11971
|
+
if (!symbolInstance) return null;
|
|
11972
|
+
const size = this.attribute.size,
|
|
11971
11973
|
formattedSize = isArray$1(size) ? size : [size, size];
|
|
11972
11974
|
return symbolInstance.path ? new CustomPath2D().fromCustomPath2D(symbolInstance.path, 0, 0, formattedSize[0], formattedSize[1]) : new CustomPath2D().fromString(symbolInstance.pathStr, 0, 0, formattedSize[0], formattedSize[1]);
|
|
11973
11975
|
}
|
|
@@ -18065,7 +18067,7 @@ class Stage extends Group {
|
|
|
18065
18067
|
}));
|
|
18066
18068
|
}
|
|
18067
18069
|
enableAutoRefresh() {
|
|
18068
|
-
this.autoRefresh || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
|
|
18070
|
+
this.autoRefresh || "node" === this.global.env || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
|
|
18069
18071
|
}
|
|
18070
18072
|
disableAutoRefresh() {
|
|
18071
18073
|
this.autoRefresh && (this.autoRefresh = !1, this.pluginService.findPluginsByName("AutoRefreshPlugin").forEach(plugin => {
|
|
@@ -39324,7 +39326,7 @@ class ArcSegment extends Segment {
|
|
|
39324
39326
|
|
|
39325
39327
|
var AXIS_ELEMENT_NAME;
|
|
39326
39328
|
!function (AXIS_ELEMENT_NAME) {
|
|
39327
|
-
AXIS_ELEMENT_NAME.innerView = "inner-view", AXIS_ELEMENT_NAME.axisContainer = "axis-container", AXIS_ELEMENT_NAME.labelContainer = "axis-label-container", AXIS_ELEMENT_NAME.tickContainer = "axis-tick-container", AXIS_ELEMENT_NAME.tick = "axis-tick", AXIS_ELEMENT_NAME.subTick = "axis-sub-tick", AXIS_ELEMENT_NAME.label = "axis-label", AXIS_ELEMENT_NAME.title = "axis-title", AXIS_ELEMENT_NAME.
|
|
39329
|
+
AXIS_ELEMENT_NAME.innerView = "inner-view", AXIS_ELEMENT_NAME.axisContainer = "axis-container", AXIS_ELEMENT_NAME.labelContainer = "axis-label-container", AXIS_ELEMENT_NAME.tickContainer = "axis-tick-container", AXIS_ELEMENT_NAME.tick = "axis-tick", AXIS_ELEMENT_NAME.subTick = "axis-sub-tick", AXIS_ELEMENT_NAME.label = "axis-label", AXIS_ELEMENT_NAME.title = "axis-title", AXIS_ELEMENT_NAME.gridContainer = "axis-grid-container", AXIS_ELEMENT_NAME.grid = "axis-grid", AXIS_ELEMENT_NAME.gridRegion = "axis-grid-region", AXIS_ELEMENT_NAME.line = "axis-line", AXIS_ELEMENT_NAME.background = "axis-background", AXIS_ELEMENT_NAME.axisLabelBackground = "axis-label-background", AXIS_ELEMENT_NAME.axisBreak = "axis-break", AXIS_ELEMENT_NAME.axisBreakSymbol = "axis-break-symbol";
|
|
39328
39330
|
}(AXIS_ELEMENT_NAME || (AXIS_ELEMENT_NAME = {}));
|
|
39329
39331
|
var AxisStateValue;
|
|
39330
39332
|
!function (AxisStateValue) {
|
|
@@ -39361,26 +39363,6 @@ const DEFAULT_AXIS_THEME = {
|
|
|
39361
39363
|
fillOpacity: 1
|
|
39362
39364
|
}
|
|
39363
39365
|
},
|
|
39364
|
-
labelHoverOnAxis: {
|
|
39365
|
-
visible: !1,
|
|
39366
|
-
space: 7,
|
|
39367
|
-
padding: 2,
|
|
39368
|
-
position: 0,
|
|
39369
|
-
autoRotate: !1,
|
|
39370
|
-
textStyle: {
|
|
39371
|
-
fontSize: 12,
|
|
39372
|
-
fill: "red",
|
|
39373
|
-
fontWeight: "normal",
|
|
39374
|
-
fillOpacity: 1
|
|
39375
|
-
},
|
|
39376
|
-
background: {
|
|
39377
|
-
visible: !0,
|
|
39378
|
-
style: {
|
|
39379
|
-
cornerRadius: 2,
|
|
39380
|
-
fill: "black"
|
|
39381
|
-
}
|
|
39382
|
-
}
|
|
39383
|
-
},
|
|
39384
39366
|
tick: {
|
|
39385
39367
|
visible: !0,
|
|
39386
39368
|
inside: !1,
|
|
@@ -40372,17 +40354,7 @@ var __rest$b = undefined && undefined.__rest || function (s, e) {
|
|
|
40372
40354
|
loadLineAxisComponent();
|
|
40373
40355
|
class LineAxis extends AxisBase {
|
|
40374
40356
|
constructor(attributes, options) {
|
|
40375
|
-
|
|
40376
|
-
if (attributes.labelHoverOnAxis && (attributes.labelHoverOnAxis.textStyle = Object.assign({}, attributes.label.style, attributes.labelHoverOnAxis.textStyle), void 0 === attributes.labelHoverOnAxis.space)) {
|
|
40377
|
-
const {
|
|
40378
|
-
padding = 2
|
|
40379
|
-
} = attributes.labelHoverOnAxis,
|
|
40380
|
-
parsedPadding = normalizePadding(padding),
|
|
40381
|
-
toDiffPadding = "bottom" === attributes.orient ? parsedPadding[0] : "left" === attributes.orient ? parsedPadding[1] : "top" === attributes.orient ? parsedPadding[2] : parsedPadding[3],
|
|
40382
|
-
space = (null !== (_a = attributes.label.space) && void 0 !== _a ? _a : LineAxis.defaultAttributes.label.space) - toDiffPadding;
|
|
40383
|
-
attributes.labelHoverOnAxis.space = space;
|
|
40384
|
-
}
|
|
40385
|
-
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, LineAxis.defaultAttributes, attributes), options), this.labelHoverOnAxisGroup = null;
|
|
40357
|
+
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, LineAxis.defaultAttributes, attributes), options);
|
|
40386
40358
|
}
|
|
40387
40359
|
_renderInner(container) {
|
|
40388
40360
|
var _a;
|
|
@@ -40444,15 +40416,6 @@ class LineAxis extends AxisBase {
|
|
|
40444
40416
|
}, panel.style));
|
|
40445
40417
|
bgRect.name = AXIS_ELEMENT_NAME.background, bgRect.id = this._getNodeId("background"), bgRect.states = merge({}, DEFAULT_STATES$1, null !== (_a = panel.state) && void 0 !== _a ? _a : {}), axisContainer.insertBefore(bgRect, axisContainer.firstChild);
|
|
40446
40418
|
}
|
|
40447
|
-
const {
|
|
40448
|
-
labelHoverOnAxis: labelHoverOnAxis
|
|
40449
|
-
} = this.attribute;
|
|
40450
|
-
labelHoverOnAxis && labelHoverOnAxis.visible && this.renderLabelHoverOnAxis();
|
|
40451
|
-
}
|
|
40452
|
-
renderLabelHoverOnAxis() {
|
|
40453
|
-
const hoverOnLabelAttributes = this.getLabelHoverOnAxisAttribute(),
|
|
40454
|
-
hoverOnLabel = new Tag(Object.assign({}, hoverOnLabelAttributes));
|
|
40455
|
-
hoverOnLabel.name = AXIS_ELEMENT_NAME.title, hoverOnLabel.id = this._getNodeId("hover-on-label"), this.labelHoverOnAxisGroup = hoverOnLabel, this.axisContainer.add(hoverOnLabel);
|
|
40456
40419
|
}
|
|
40457
40420
|
renderLine(container) {
|
|
40458
40421
|
const {
|
|
@@ -40593,66 +40556,6 @@ class LineAxis extends AxisBase {
|
|
|
40593
40556
|
visible: !0
|
|
40594
40557
|
}, background.style)), attrs;
|
|
40595
40558
|
}
|
|
40596
|
-
getLabelHoverOnAxisAttribute() {
|
|
40597
|
-
var _a, _b;
|
|
40598
|
-
const {
|
|
40599
|
-
orient: orient
|
|
40600
|
-
} = this.attribute,
|
|
40601
|
-
_c = this.attribute.labelHoverOnAxis,
|
|
40602
|
-
{
|
|
40603
|
-
position = 0,
|
|
40604
|
-
space = 4,
|
|
40605
|
-
autoRotate = !0,
|
|
40606
|
-
textStyle = {},
|
|
40607
|
-
background = {},
|
|
40608
|
-
formatMethod: formatMethod,
|
|
40609
|
-
text: textContent = "",
|
|
40610
|
-
maxWidth: maxWidth
|
|
40611
|
-
} = _c,
|
|
40612
|
-
restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
|
|
40613
|
-
point = this.getTickCoord(0);
|
|
40614
|
-
"bottom" === orient || "top" === orient ? point.x = position : point.y = position;
|
|
40615
|
-
let tickLength = 0;
|
|
40616
|
-
(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.visible) && !1 === this.attribute.tick.inside && (tickLength = this.attribute.tick.length || 4), (null === (_b = this.attribute.subTick) || void 0 === _b ? void 0 : _b.visible) && !1 === this.attribute.subTick.inside && (tickLength = Math.max(tickLength, this.attribute.subTick.length || 2));
|
|
40617
|
-
const offset = tickLength + 0 + space,
|
|
40618
|
-
labelPoint = this.getVerticalCoord(point, offset, !1),
|
|
40619
|
-
vector = this.getVerticalVector(offset, !1, {
|
|
40620
|
-
x: 0,
|
|
40621
|
-
y: 0
|
|
40622
|
-
});
|
|
40623
|
-
let textBaseline,
|
|
40624
|
-
{
|
|
40625
|
-
angle: angle
|
|
40626
|
-
} = restAttrs,
|
|
40627
|
-
textAlign = "center";
|
|
40628
|
-
if (isNil$1(angle) && autoRotate) {
|
|
40629
|
-
const axisVector = this.getRelativeVector();
|
|
40630
|
-
angle = angleTo(axisVector, [1, 0], !0);
|
|
40631
|
-
const {
|
|
40632
|
-
verticalFactor = 1
|
|
40633
|
-
} = this.attribute;
|
|
40634
|
-
textBaseline = 1 === -1 * verticalFactor ? "bottom" : "top";
|
|
40635
|
-
} else {
|
|
40636
|
-
const {
|
|
40637
|
-
textAlign: textAlign2,
|
|
40638
|
-
textBaseline: textBaseline2
|
|
40639
|
-
} = this.getLabelAlign(vector, !1, textStyle.angle);
|
|
40640
|
-
textAlign = textAlign2, textBaseline = textBaseline2;
|
|
40641
|
-
}
|
|
40642
|
-
const maxTagWidth = maxWidth,
|
|
40643
|
-
text = formatMethod ? formatMethod(textContent) : textContent,
|
|
40644
|
-
attrs = Object.assign(Object.assign(Object.assign({}, labelPoint), restAttrs), {
|
|
40645
|
-
maxWidth: maxTagWidth,
|
|
40646
|
-
textStyle: Object.assign({
|
|
40647
|
-
textAlign: textAlign,
|
|
40648
|
-
textBaseline: textBaseline
|
|
40649
|
-
}, textStyle),
|
|
40650
|
-
text: text
|
|
40651
|
-
});
|
|
40652
|
-
return attrs.angle = angle, background && background.visible && (attrs.panel = Object.assign(Object.assign({
|
|
40653
|
-
visible: !0
|
|
40654
|
-
}, restAttrs.panel), background.style)), attrs;
|
|
40655
|
-
}
|
|
40656
40559
|
getTextBaseline(vector, inside) {
|
|
40657
40560
|
let base = "middle";
|
|
40658
40561
|
const {
|
|
@@ -40843,41 +40746,6 @@ class LineAxis extends AxisBase {
|
|
|
40843
40746
|
}
|
|
40844
40747
|
return limitLength && (limitLength = (limitLength - labelSpace - titleSpacing - titleHeight - axisLineWidth - tickLength) / layerCount), limitLength;
|
|
40845
40748
|
}
|
|
40846
|
-
showLabelHoverOnAxis(position, text) {
|
|
40847
|
-
let adjustPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
|
|
40848
|
-
if (this.attribute.labelHoverOnAxis) {
|
|
40849
|
-
const preContainerBounds = this.axisContainer.AABBBounds,
|
|
40850
|
-
preWidth = preContainerBounds.width(),
|
|
40851
|
-
preHeight = preContainerBounds.height(),
|
|
40852
|
-
preX1 = preContainerBounds.x1,
|
|
40853
|
-
preY1 = preContainerBounds.y1,
|
|
40854
|
-
preX2 = preContainerBounds.x2,
|
|
40855
|
-
preY2 = preContainerBounds.y2;
|
|
40856
|
-
if (this.labelHoverOnAxisGroup) {
|
|
40857
|
-
const {
|
|
40858
|
-
formatMethod: formatMethod
|
|
40859
|
-
} = this.attribute.labelHoverOnAxis,
|
|
40860
|
-
textStr = formatMethod ? formatMethod(text) : text;
|
|
40861
|
-
this.labelHoverOnAxisGroup.setAttribute("text", textStr), this.labelHoverOnAxisGroup.setAttribute("visible", !0), this.labelHoverOnAxisGroup.setAttribute("visibleAll", !0), "left" === this.attribute.orient || "right" === this.attribute.orient ? this.labelHoverOnAxisGroup.setAttributes({
|
|
40862
|
-
y: position
|
|
40863
|
-
}) : this.labelHoverOnAxisGroup.setAttributes({
|
|
40864
|
-
x: position
|
|
40865
|
-
});
|
|
40866
|
-
} else this.attribute.labelHoverOnAxis.visible = !0, this.attribute.labelHoverOnAxis.position = position, this.attribute.labelHoverOnAxis.text = text, this.renderLabelHoverOnAxis();
|
|
40867
|
-
if (adjustPosition) {
|
|
40868
|
-
const afterContainerBounds = this.axisContainer.AABBBounds,
|
|
40869
|
-
diffWidth = afterContainerBounds.width() - preWidth,
|
|
40870
|
-
diffHeight = afterContainerBounds.height() - preHeight;
|
|
40871
|
-
diffWidth > 0 && ("top" === this.attribute.orient || "bottom" === this.attribute.orient) && (afterContainerBounds.x1 < preX1 ? this.showLabelHoverOnAxis(position + diffWidth, text, !1) : afterContainerBounds.x2 > preX2 && this.showLabelHoverOnAxis(position - diffWidth, text, !1)), diffHeight > 0 && ("left" === this.attribute.orient || "right" === this.attribute.orient) && (afterContainerBounds.y1 < preY1 ? this.showLabelHoverOnAxis(position + diffHeight, text, !1) : afterContainerBounds.y2 > preY2 && this.showLabelHoverOnAxis(position - diffHeight, text, !1));
|
|
40872
|
-
}
|
|
40873
|
-
}
|
|
40874
|
-
}
|
|
40875
|
-
hideLabelHoverOnAxis() {
|
|
40876
|
-
this.attribute.labelHoverOnAxis && this.labelHoverOnAxisGroup && this.labelHoverOnAxisGroup.setAttributes({
|
|
40877
|
-
visible: !1,
|
|
40878
|
-
visibleAll: !1
|
|
40879
|
-
});
|
|
40880
|
-
}
|
|
40881
40749
|
release() {
|
|
40882
40750
|
super.release(), this._breaks = null;
|
|
40883
40751
|
}
|
|
@@ -42059,7 +41927,7 @@ const polarAngleAxisDiscreteTicks = (scale, op) => {
|
|
|
42059
41927
|
labelStyle: labelStyle
|
|
42060
41928
|
} = op,
|
|
42061
41929
|
radius = null == getRadius ? void 0 : getRadius();
|
|
42062
|
-
if (!radius) return convertDomainToTickData(scale.domain());
|
|
41930
|
+
if (!radius || radius <= 0) return convertDomainToTickData(scale.domain());
|
|
42063
41931
|
let scaleTicks;
|
|
42064
41932
|
if (isValid$1(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$1(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$1(tickCount)) {
|
|
42065
41933
|
const range = scale.range(),
|
|
@@ -43323,20 +43191,23 @@ class LabelBase extends AnimateComponent {
|
|
|
43323
43191
|
{
|
|
43324
43192
|
enter: enter
|
|
43325
43193
|
} = this._animationConfig;
|
|
43326
|
-
[text, labelLine].filter(Boolean).forEach(item =>
|
|
43327
|
-
|
|
43328
|
-
|
|
43329
|
-
|
|
43330
|
-
|
|
43331
|
-
|
|
43332
|
-
|
|
43333
|
-
|
|
43334
|
-
|
|
43335
|
-
|
|
43336
|
-
|
|
43337
|
-
|
|
43338
|
-
|
|
43339
|
-
|
|
43194
|
+
[text, labelLine].filter(Boolean).forEach(item => {
|
|
43195
|
+
var _a;
|
|
43196
|
+
null === (_a = item.setFinalAttributes) || void 0 === _a || _a.call(item, item.attribute), item.applyAnimationState(["enter"], [{
|
|
43197
|
+
name: "enter",
|
|
43198
|
+
animation: Object.assign(Object.assign({}, enter), {
|
|
43199
|
+
type: "labelEnter",
|
|
43200
|
+
selfOnly: !0,
|
|
43201
|
+
customParameters: {
|
|
43202
|
+
relatedGraphic: relatedGraphic,
|
|
43203
|
+
relatedGraphics: this._idToGraphic,
|
|
43204
|
+
config: Object.assign(Object.assign({}, enter), {
|
|
43205
|
+
type: item === text ? enter.type : "fadeIn"
|
|
43206
|
+
})
|
|
43207
|
+
}
|
|
43208
|
+
})
|
|
43209
|
+
}]);
|
|
43210
|
+
});
|
|
43340
43211
|
}
|
|
43341
43212
|
_runUpdateAnimation(prevLabel, currentLabel) {
|
|
43342
43213
|
const {
|
|
@@ -52952,7 +52823,7 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
52952
52823
|
select: !0
|
|
52953
52824
|
};
|
|
52954
52825
|
|
|
52955
|
-
const version = "1.0.
|
|
52826
|
+
const version = "1.0.28-alpha.0";
|
|
52956
52827
|
preLoadAllModule();
|
|
52957
52828
|
if (isBrowserEnv()) {
|
|
52958
52829
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -11961,9 +11961,10 @@
|
|
|
11961
11961
|
}
|
|
11962
11962
|
updateSymbolAABBBoundsAccurate(attribute, symbolTheme, aabbBounds) {
|
|
11963
11963
|
const {
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11964
|
+
size = symbolTheme.size
|
|
11965
|
+
} = attribute,
|
|
11966
|
+
symbolClass = this.getParsedPath();
|
|
11967
|
+
return symbolClass ? (symbolClass.bounds(size, aabbBounds), aabbBounds) : aabbBounds;
|
|
11967
11968
|
}
|
|
11968
11969
|
needUpdateTags(keys) {
|
|
11969
11970
|
return super.needUpdateTags(keys, SYMBOL_UPDATE_TAG_KEY);
|
|
@@ -11972,8 +11973,9 @@
|
|
|
11972
11973
|
return super.needUpdateTag(key, SYMBOL_UPDATE_TAG_KEY);
|
|
11973
11974
|
}
|
|
11974
11975
|
toCustomPath() {
|
|
11975
|
-
const symbolInstance = this.getParsedPath()
|
|
11976
|
-
|
|
11976
|
+
const symbolInstance = this.getParsedPath();
|
|
11977
|
+
if (!symbolInstance) return null;
|
|
11978
|
+
const size = this.attribute.size,
|
|
11977
11979
|
formattedSize = isArray$1(size) ? size : [size, size];
|
|
11978
11980
|
return symbolInstance.path ? new CustomPath2D().fromCustomPath2D(symbolInstance.path, 0, 0, formattedSize[0], formattedSize[1]) : new CustomPath2D().fromString(symbolInstance.pathStr, 0, 0, formattedSize[0], formattedSize[1]);
|
|
11979
11981
|
}
|
|
@@ -18071,7 +18073,7 @@
|
|
|
18071
18073
|
}));
|
|
18072
18074
|
}
|
|
18073
18075
|
enableAutoRefresh() {
|
|
18074
|
-
this.autoRefresh || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
|
|
18076
|
+
this.autoRefresh || "node" === this.global.env || (this.autoRefresh = !0, this.pluginService.register(new AutoRefreshPlugin()));
|
|
18075
18077
|
}
|
|
18076
18078
|
disableAutoRefresh() {
|
|
18077
18079
|
this.autoRefresh && (this.autoRefresh = !1, this.pluginService.findPluginsByName("AutoRefreshPlugin").forEach(plugin => {
|
|
@@ -39330,7 +39332,7 @@
|
|
|
39330
39332
|
|
|
39331
39333
|
exports.AXIS_ELEMENT_NAME = void 0;
|
|
39332
39334
|
!function (AXIS_ELEMENT_NAME) {
|
|
39333
|
-
AXIS_ELEMENT_NAME.innerView = "inner-view", AXIS_ELEMENT_NAME.axisContainer = "axis-container", AXIS_ELEMENT_NAME.labelContainer = "axis-label-container", AXIS_ELEMENT_NAME.tickContainer = "axis-tick-container", AXIS_ELEMENT_NAME.tick = "axis-tick", AXIS_ELEMENT_NAME.subTick = "axis-sub-tick", AXIS_ELEMENT_NAME.label = "axis-label", AXIS_ELEMENT_NAME.title = "axis-title", AXIS_ELEMENT_NAME.
|
|
39335
|
+
AXIS_ELEMENT_NAME.innerView = "inner-view", AXIS_ELEMENT_NAME.axisContainer = "axis-container", AXIS_ELEMENT_NAME.labelContainer = "axis-label-container", AXIS_ELEMENT_NAME.tickContainer = "axis-tick-container", AXIS_ELEMENT_NAME.tick = "axis-tick", AXIS_ELEMENT_NAME.subTick = "axis-sub-tick", AXIS_ELEMENT_NAME.label = "axis-label", AXIS_ELEMENT_NAME.title = "axis-title", AXIS_ELEMENT_NAME.gridContainer = "axis-grid-container", AXIS_ELEMENT_NAME.grid = "axis-grid", AXIS_ELEMENT_NAME.gridRegion = "axis-grid-region", AXIS_ELEMENT_NAME.line = "axis-line", AXIS_ELEMENT_NAME.background = "axis-background", AXIS_ELEMENT_NAME.axisLabelBackground = "axis-label-background", AXIS_ELEMENT_NAME.axisBreak = "axis-break", AXIS_ELEMENT_NAME.axisBreakSymbol = "axis-break-symbol";
|
|
39334
39336
|
}(exports.AXIS_ELEMENT_NAME || (exports.AXIS_ELEMENT_NAME = {}));
|
|
39335
39337
|
exports.AxisStateValue = void 0;
|
|
39336
39338
|
!function (AxisStateValue) {
|
|
@@ -39367,26 +39369,6 @@
|
|
|
39367
39369
|
fillOpacity: 1
|
|
39368
39370
|
}
|
|
39369
39371
|
},
|
|
39370
|
-
labelHoverOnAxis: {
|
|
39371
|
-
visible: !1,
|
|
39372
|
-
space: 7,
|
|
39373
|
-
padding: 2,
|
|
39374
|
-
position: 0,
|
|
39375
|
-
autoRotate: !1,
|
|
39376
|
-
textStyle: {
|
|
39377
|
-
fontSize: 12,
|
|
39378
|
-
fill: "red",
|
|
39379
|
-
fontWeight: "normal",
|
|
39380
|
-
fillOpacity: 1
|
|
39381
|
-
},
|
|
39382
|
-
background: {
|
|
39383
|
-
visible: !0,
|
|
39384
|
-
style: {
|
|
39385
|
-
cornerRadius: 2,
|
|
39386
|
-
fill: "black"
|
|
39387
|
-
}
|
|
39388
|
-
}
|
|
39389
|
-
},
|
|
39390
39372
|
tick: {
|
|
39391
39373
|
visible: !0,
|
|
39392
39374
|
inside: !1,
|
|
@@ -40378,17 +40360,7 @@
|
|
|
40378
40360
|
loadLineAxisComponent();
|
|
40379
40361
|
class LineAxis extends AxisBase {
|
|
40380
40362
|
constructor(attributes, options) {
|
|
40381
|
-
|
|
40382
|
-
if (attributes.labelHoverOnAxis && (attributes.labelHoverOnAxis.textStyle = Object.assign({}, attributes.label.style, attributes.labelHoverOnAxis.textStyle), void 0 === attributes.labelHoverOnAxis.space)) {
|
|
40383
|
-
const {
|
|
40384
|
-
padding = 2
|
|
40385
|
-
} = attributes.labelHoverOnAxis,
|
|
40386
|
-
parsedPadding = normalizePadding(padding),
|
|
40387
|
-
toDiffPadding = "bottom" === attributes.orient ? parsedPadding[0] : "left" === attributes.orient ? parsedPadding[1] : "top" === attributes.orient ? parsedPadding[2] : parsedPadding[3],
|
|
40388
|
-
space = (null !== (_a = attributes.label.space) && void 0 !== _a ? _a : LineAxis.defaultAttributes.label.space) - toDiffPadding;
|
|
40389
|
-
attributes.labelHoverOnAxis.space = space;
|
|
40390
|
-
}
|
|
40391
|
-
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, LineAxis.defaultAttributes, attributes), options), this.labelHoverOnAxisGroup = null;
|
|
40363
|
+
super((null == options ? void 0 : options.skipDefault) ? attributes : merge({}, LineAxis.defaultAttributes, attributes), options);
|
|
40392
40364
|
}
|
|
40393
40365
|
_renderInner(container) {
|
|
40394
40366
|
var _a;
|
|
@@ -40450,15 +40422,6 @@
|
|
|
40450
40422
|
}, panel.style));
|
|
40451
40423
|
bgRect.name = exports.AXIS_ELEMENT_NAME.background, bgRect.id = this._getNodeId("background"), bgRect.states = merge({}, DEFAULT_STATES$1, null !== (_a = panel.state) && void 0 !== _a ? _a : {}), axisContainer.insertBefore(bgRect, axisContainer.firstChild);
|
|
40452
40424
|
}
|
|
40453
|
-
const {
|
|
40454
|
-
labelHoverOnAxis: labelHoverOnAxis
|
|
40455
|
-
} = this.attribute;
|
|
40456
|
-
labelHoverOnAxis && labelHoverOnAxis.visible && this.renderLabelHoverOnAxis();
|
|
40457
|
-
}
|
|
40458
|
-
renderLabelHoverOnAxis() {
|
|
40459
|
-
const hoverOnLabelAttributes = this.getLabelHoverOnAxisAttribute(),
|
|
40460
|
-
hoverOnLabel = new Tag(Object.assign({}, hoverOnLabelAttributes));
|
|
40461
|
-
hoverOnLabel.name = exports.AXIS_ELEMENT_NAME.title, hoverOnLabel.id = this._getNodeId("hover-on-label"), this.labelHoverOnAxisGroup = hoverOnLabel, this.axisContainer.add(hoverOnLabel);
|
|
40462
40425
|
}
|
|
40463
40426
|
renderLine(container) {
|
|
40464
40427
|
const {
|
|
@@ -40599,66 +40562,6 @@
|
|
|
40599
40562
|
visible: !0
|
|
40600
40563
|
}, background.style)), attrs;
|
|
40601
40564
|
}
|
|
40602
|
-
getLabelHoverOnAxisAttribute() {
|
|
40603
|
-
var _a, _b;
|
|
40604
|
-
const {
|
|
40605
|
-
orient: orient
|
|
40606
|
-
} = this.attribute,
|
|
40607
|
-
_c = this.attribute.labelHoverOnAxis,
|
|
40608
|
-
{
|
|
40609
|
-
position = 0,
|
|
40610
|
-
space = 4,
|
|
40611
|
-
autoRotate = !0,
|
|
40612
|
-
textStyle = {},
|
|
40613
|
-
background = {},
|
|
40614
|
-
formatMethod: formatMethod,
|
|
40615
|
-
text: textContent = "",
|
|
40616
|
-
maxWidth: maxWidth
|
|
40617
|
-
} = _c,
|
|
40618
|
-
restAttrs = __rest$b(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
|
|
40619
|
-
point = this.getTickCoord(0);
|
|
40620
|
-
"bottom" === orient || "top" === orient ? point.x = position : point.y = position;
|
|
40621
|
-
let tickLength = 0;
|
|
40622
|
-
(null === (_a = this.attribute.tick) || void 0 === _a ? void 0 : _a.visible) && !1 === this.attribute.tick.inside && (tickLength = this.attribute.tick.length || 4), (null === (_b = this.attribute.subTick) || void 0 === _b ? void 0 : _b.visible) && !1 === this.attribute.subTick.inside && (tickLength = Math.max(tickLength, this.attribute.subTick.length || 2));
|
|
40623
|
-
const offset = tickLength + 0 + space,
|
|
40624
|
-
labelPoint = this.getVerticalCoord(point, offset, !1),
|
|
40625
|
-
vector = this.getVerticalVector(offset, !1, {
|
|
40626
|
-
x: 0,
|
|
40627
|
-
y: 0
|
|
40628
|
-
});
|
|
40629
|
-
let textBaseline,
|
|
40630
|
-
{
|
|
40631
|
-
angle: angle
|
|
40632
|
-
} = restAttrs,
|
|
40633
|
-
textAlign = "center";
|
|
40634
|
-
if (isNil$1(angle) && autoRotate) {
|
|
40635
|
-
const axisVector = this.getRelativeVector();
|
|
40636
|
-
angle = angleTo(axisVector, [1, 0], !0);
|
|
40637
|
-
const {
|
|
40638
|
-
verticalFactor = 1
|
|
40639
|
-
} = this.attribute;
|
|
40640
|
-
textBaseline = 1 === -1 * verticalFactor ? "bottom" : "top";
|
|
40641
|
-
} else {
|
|
40642
|
-
const {
|
|
40643
|
-
textAlign: textAlign2,
|
|
40644
|
-
textBaseline: textBaseline2
|
|
40645
|
-
} = this.getLabelAlign(vector, !1, textStyle.angle);
|
|
40646
|
-
textAlign = textAlign2, textBaseline = textBaseline2;
|
|
40647
|
-
}
|
|
40648
|
-
const maxTagWidth = maxWidth,
|
|
40649
|
-
text = formatMethod ? formatMethod(textContent) : textContent,
|
|
40650
|
-
attrs = Object.assign(Object.assign(Object.assign({}, labelPoint), restAttrs), {
|
|
40651
|
-
maxWidth: maxTagWidth,
|
|
40652
|
-
textStyle: Object.assign({
|
|
40653
|
-
textAlign: textAlign,
|
|
40654
|
-
textBaseline: textBaseline
|
|
40655
|
-
}, textStyle),
|
|
40656
|
-
text: text
|
|
40657
|
-
});
|
|
40658
|
-
return attrs.angle = angle, background && background.visible && (attrs.panel = Object.assign(Object.assign({
|
|
40659
|
-
visible: !0
|
|
40660
|
-
}, restAttrs.panel), background.style)), attrs;
|
|
40661
|
-
}
|
|
40662
40565
|
getTextBaseline(vector, inside) {
|
|
40663
40566
|
let base = "middle";
|
|
40664
40567
|
const {
|
|
@@ -40849,41 +40752,6 @@
|
|
|
40849
40752
|
}
|
|
40850
40753
|
return limitLength && (limitLength = (limitLength - labelSpace - titleSpacing - titleHeight - axisLineWidth - tickLength) / layerCount), limitLength;
|
|
40851
40754
|
}
|
|
40852
|
-
showLabelHoverOnAxis(position, text) {
|
|
40853
|
-
let adjustPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !0;
|
|
40854
|
-
if (this.attribute.labelHoverOnAxis) {
|
|
40855
|
-
const preContainerBounds = this.axisContainer.AABBBounds,
|
|
40856
|
-
preWidth = preContainerBounds.width(),
|
|
40857
|
-
preHeight = preContainerBounds.height(),
|
|
40858
|
-
preX1 = preContainerBounds.x1,
|
|
40859
|
-
preY1 = preContainerBounds.y1,
|
|
40860
|
-
preX2 = preContainerBounds.x2,
|
|
40861
|
-
preY2 = preContainerBounds.y2;
|
|
40862
|
-
if (this.labelHoverOnAxisGroup) {
|
|
40863
|
-
const {
|
|
40864
|
-
formatMethod: formatMethod
|
|
40865
|
-
} = this.attribute.labelHoverOnAxis,
|
|
40866
|
-
textStr = formatMethod ? formatMethod(text) : text;
|
|
40867
|
-
this.labelHoverOnAxisGroup.setAttribute("text", textStr), this.labelHoverOnAxisGroup.setAttribute("visible", !0), this.labelHoverOnAxisGroup.setAttribute("visibleAll", !0), "left" === this.attribute.orient || "right" === this.attribute.orient ? this.labelHoverOnAxisGroup.setAttributes({
|
|
40868
|
-
y: position
|
|
40869
|
-
}) : this.labelHoverOnAxisGroup.setAttributes({
|
|
40870
|
-
x: position
|
|
40871
|
-
});
|
|
40872
|
-
} else this.attribute.labelHoverOnAxis.visible = !0, this.attribute.labelHoverOnAxis.position = position, this.attribute.labelHoverOnAxis.text = text, this.renderLabelHoverOnAxis();
|
|
40873
|
-
if (adjustPosition) {
|
|
40874
|
-
const afterContainerBounds = this.axisContainer.AABBBounds,
|
|
40875
|
-
diffWidth = afterContainerBounds.width() - preWidth,
|
|
40876
|
-
diffHeight = afterContainerBounds.height() - preHeight;
|
|
40877
|
-
diffWidth > 0 && ("top" === this.attribute.orient || "bottom" === this.attribute.orient) && (afterContainerBounds.x1 < preX1 ? this.showLabelHoverOnAxis(position + diffWidth, text, !1) : afterContainerBounds.x2 > preX2 && this.showLabelHoverOnAxis(position - diffWidth, text, !1)), diffHeight > 0 && ("left" === this.attribute.orient || "right" === this.attribute.orient) && (afterContainerBounds.y1 < preY1 ? this.showLabelHoverOnAxis(position + diffHeight, text, !1) : afterContainerBounds.y2 > preY2 && this.showLabelHoverOnAxis(position - diffHeight, text, !1));
|
|
40878
|
-
}
|
|
40879
|
-
}
|
|
40880
|
-
}
|
|
40881
|
-
hideLabelHoverOnAxis() {
|
|
40882
|
-
this.attribute.labelHoverOnAxis && this.labelHoverOnAxisGroup && this.labelHoverOnAxisGroup.setAttributes({
|
|
40883
|
-
visible: !1,
|
|
40884
|
-
visibleAll: !1
|
|
40885
|
-
});
|
|
40886
|
-
}
|
|
40887
40755
|
release() {
|
|
40888
40756
|
super.release(), this._breaks = null;
|
|
40889
40757
|
}
|
|
@@ -42065,7 +41933,7 @@
|
|
|
42065
41933
|
labelStyle: labelStyle
|
|
42066
41934
|
} = op,
|
|
42067
41935
|
radius = null == getRadius ? void 0 : getRadius();
|
|
42068
|
-
if (!radius) return convertDomainToTickData(scale.domain());
|
|
41936
|
+
if (!radius || radius <= 0) return convertDomainToTickData(scale.domain());
|
|
42069
41937
|
let scaleTicks;
|
|
42070
41938
|
if (isValid$1(tickStep)) scaleTicks = scale.stepTicks(tickStep);else if (isValid$1(forceTickCount)) scaleTicks = scale.forceTicks(forceTickCount);else if (isValid$1(tickCount)) {
|
|
42071
41939
|
const range = scale.range(),
|
|
@@ -43329,20 +43197,23 @@
|
|
|
43329
43197
|
{
|
|
43330
43198
|
enter: enter
|
|
43331
43199
|
} = this._animationConfig;
|
|
43332
|
-
[text, labelLine].filter(Boolean).forEach(item =>
|
|
43333
|
-
|
|
43334
|
-
|
|
43335
|
-
|
|
43336
|
-
|
|
43337
|
-
|
|
43338
|
-
|
|
43339
|
-
|
|
43340
|
-
|
|
43341
|
-
|
|
43342
|
-
|
|
43343
|
-
|
|
43344
|
-
|
|
43345
|
-
|
|
43200
|
+
[text, labelLine].filter(Boolean).forEach(item => {
|
|
43201
|
+
var _a;
|
|
43202
|
+
null === (_a = item.setFinalAttributes) || void 0 === _a || _a.call(item, item.attribute), item.applyAnimationState(["enter"], [{
|
|
43203
|
+
name: "enter",
|
|
43204
|
+
animation: Object.assign(Object.assign({}, enter), {
|
|
43205
|
+
type: "labelEnter",
|
|
43206
|
+
selfOnly: !0,
|
|
43207
|
+
customParameters: {
|
|
43208
|
+
relatedGraphic: relatedGraphic,
|
|
43209
|
+
relatedGraphics: this._idToGraphic,
|
|
43210
|
+
config: Object.assign(Object.assign({}, enter), {
|
|
43211
|
+
type: item === text ? enter.type : "fadeIn"
|
|
43212
|
+
})
|
|
43213
|
+
}
|
|
43214
|
+
})
|
|
43215
|
+
}]);
|
|
43216
|
+
});
|
|
43346
43217
|
}
|
|
43347
43218
|
_runUpdateAnimation(prevLabel, currentLabel) {
|
|
43348
43219
|
const {
|
|
@@ -52958,7 +52829,7 @@
|
|
|
52958
52829
|
select: !0
|
|
52959
52830
|
};
|
|
52960
52831
|
|
|
52961
|
-
const version = "1.0.
|
|
52832
|
+
const version = "1.0.28-alpha.0";
|
|
52962
52833
|
preLoadAllModule();
|
|
52963
52834
|
if (isBrowserEnv()) {
|
|
52964
52835
|
loadBrowserEnv(container);
|