@visactor/vrender 1.0.41-alpha.1 → 1.0.41-alpha.2
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 +14 -34
- package/dist/index.js +14 -34
- 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 +6 -6
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.41-alpha.
|
|
24
|
+
exports.version = "1.0.41-alpha.2", (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.41-alpha.
|
|
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.41-alpha.2\";\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
|
@@ -15994,10 +15994,9 @@ class DefaultTextBackgroundRenderContribution extends DefaultBaseBackgroundRende
|
|
|
15994
15994
|
}), context.highPerformanceRestore(), context.setTransformForCurrent();
|
|
15995
15995
|
} else {
|
|
15996
15996
|
const {
|
|
15997
|
-
backgroundCornerRadius: backgroundCornerRadius
|
|
15998
|
-
backgroundOpacity = 1
|
|
15997
|
+
backgroundCornerRadius: backgroundCornerRadius
|
|
15999
15998
|
} = graphic.attribute;
|
|
16000
|
-
context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.
|
|
15999
|
+
context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = background, backgroundCornerRadius ? (createRectPath(context, b.x1, b.y1, b.width(), b.height(), backgroundCornerRadius, !0), context.fill()) : context.fillRect(b.x1, b.y1, b.width(), b.height()), context.highPerformanceRestore();
|
|
16001
16000
|
}
|
|
16002
16001
|
shouldReCalBounds && boundsAllocate.free(b), restore();
|
|
16003
16002
|
}
|
|
@@ -31702,6 +31701,8 @@ class DefaultTicker extends EventEmitter {
|
|
|
31702
31701
|
this.status === STATUS$1.RUNNING && (this.tickCounts++, this.timelines.forEach(timeline => {
|
|
31703
31702
|
timeline.tick(delta);
|
|
31704
31703
|
}), this.emit("tick", delta));
|
|
31704
|
+
}, this._handleGraphTick = () => {
|
|
31705
|
+
this.initHandler(!1);
|
|
31705
31706
|
}, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
|
|
31706
31707
|
}
|
|
31707
31708
|
bindStage(stage) {
|
|
@@ -31711,9 +31712,7 @@ class DefaultTicker extends EventEmitter {
|
|
|
31711
31712
|
this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
|
|
31712
31713
|
}
|
|
31713
31714
|
init() {
|
|
31714
|
-
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker",
|
|
31715
|
-
this.initHandler(!1);
|
|
31716
|
-
}), application.global.env && this.initHandler(!1);
|
|
31715
|
+
this.interval = 16, this.status = STATUS$1.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", this._handleGraphTick), application.global.env && this.initHandler(!1);
|
|
31717
31716
|
}
|
|
31718
31717
|
addTimeline(timeline) {
|
|
31719
31718
|
this.timelines.push(timeline);
|
|
@@ -31789,7 +31788,7 @@ class DefaultTicker extends EventEmitter {
|
|
|
31789
31788
|
}
|
|
31790
31789
|
release() {
|
|
31791
31790
|
var _a;
|
|
31792
|
-
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
|
|
31791
|
+
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1, application.global.hooks.onSetEnv.unTap("graph-ticker", this._handleGraphTick);
|
|
31793
31792
|
}
|
|
31794
31793
|
checkSkip(delta) {
|
|
31795
31794
|
var _a, _b, _c;
|
|
@@ -37695,7 +37694,7 @@ class ScrollBar extends AbstractComponent {
|
|
|
37695
37694
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
37696
37695
|
}
|
|
37697
37696
|
release(all) {
|
|
37698
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).
|
|
37697
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
|
|
37699
37698
|
passive: !1
|
|
37700
37699
|
}), this._clearDragEvents();
|
|
37701
37700
|
}
|
|
@@ -43524,9 +43523,8 @@ class LabelBase extends AnimateComponent {
|
|
|
43524
43523
|
const label = labels[i];
|
|
43525
43524
|
if (!label) continue;
|
|
43526
43525
|
const baseMark = this.getRelatedGraphic(label.attribute);
|
|
43527
|
-
let backgroundColor = baseMark.getAttributes(!0).fill
|
|
43528
|
-
|
|
43529
|
-
let foregroundColor = label.attribute.fill;
|
|
43526
|
+
let backgroundColor = baseMark.getAttributes(!0).fill,
|
|
43527
|
+
foregroundColor = label.attribute.fill;
|
|
43530
43528
|
if (isObject$1(backgroundColor) && backgroundColor.gradient) {
|
|
43531
43529
|
const firstStopColor = null === (_g = null === (_f = backgroundColor.stops) || void 0 === _f ? void 0 : _f[0]) || void 0 === _g ? void 0 : _g.color;
|
|
43532
43530
|
firstStopColor && (backgroundColor = firstStopColor, foregroundColor = firstStopColor);
|
|
@@ -43540,26 +43538,11 @@ class LabelBase extends AnimateComponent {
|
|
|
43540
43538
|
if (fill && label.setAttributes({
|
|
43541
43539
|
fill: fill
|
|
43542
43540
|
}), 0 === label.attribute.lineWidth || 0 === label.attribute.strokeOpacity) continue;
|
|
43543
|
-
|
|
43544
|
-
|
|
43545
|
-
|
|
43546
|
-
|
|
43547
|
-
stroke && label.setAttributes({
|
|
43548
|
-
stroke: stroke
|
|
43549
|
-
});
|
|
43550
|
-
}
|
|
43541
|
+
const stroke = smartInvertStrategy(strokeStrategy, backgroundColor, invertColor, similarColor);
|
|
43542
|
+
stroke && label.setAttributes({
|
|
43543
|
+
stroke: stroke
|
|
43544
|
+
});
|
|
43551
43545
|
} else if (isIntersect && "none" !== interactInvertType) {
|
|
43552
|
-
if ("background" === interactInvertType) {
|
|
43553
|
-
const fill = smartInvertStrategy(fillStrategy, backgroundColor, invertColor, similarColor);
|
|
43554
|
-
fill && label.setAttributes({
|
|
43555
|
-
fill: fill
|
|
43556
|
-
}), label.setAttributes({
|
|
43557
|
-
stroke: !1,
|
|
43558
|
-
background: backgroundColor,
|
|
43559
|
-
backgroundOpacity: backgroundOpacity
|
|
43560
|
-
});
|
|
43561
|
-
continue;
|
|
43562
|
-
}
|
|
43563
43546
|
if (0 === label.attribute.lineWidth || 0 === label.attribute.strokeOpacity) continue;
|
|
43564
43547
|
if (label.attribute.stroke) {
|
|
43565
43548
|
label.setAttributes({
|
|
@@ -43576,9 +43559,6 @@ class LabelBase extends AnimateComponent {
|
|
|
43576
43559
|
stroke: stroke
|
|
43577
43560
|
});
|
|
43578
43561
|
}
|
|
43579
|
-
!1 === isInside && "background" === interactInvertType && label.setAttributes({
|
|
43580
|
-
background: null
|
|
43581
|
-
});
|
|
43582
43562
|
}
|
|
43583
43563
|
}
|
|
43584
43564
|
_canPlaceInside(textBound, shapeBound) {
|
|
@@ -53077,7 +53057,7 @@ TableSeriesNumber.defaultAttributes = {
|
|
|
53077
53057
|
select: !0
|
|
53078
53058
|
};
|
|
53079
53059
|
|
|
53080
|
-
const version = "1.0.41-alpha.
|
|
53060
|
+
const version = "1.0.41-alpha.2";
|
|
53081
53061
|
preLoadAllModule();
|
|
53082
53062
|
if (isBrowserEnv()) {
|
|
53083
53063
|
loadBrowserEnv(container);
|
package/dist/index.js
CHANGED
|
@@ -16000,10 +16000,9 @@
|
|
|
16000
16000
|
}), context.highPerformanceRestore(), context.setTransformForCurrent();
|
|
16001
16001
|
} else {
|
|
16002
16002
|
const {
|
|
16003
|
-
backgroundCornerRadius: backgroundCornerRadius
|
|
16004
|
-
backgroundOpacity = 1
|
|
16003
|
+
backgroundCornerRadius: backgroundCornerRadius
|
|
16005
16004
|
} = graphic.attribute;
|
|
16006
|
-
context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.
|
|
16005
|
+
context.highPerformanceSave(), context.setCommonStyle(graphic, graphic.attribute, x, y, graphicAttribute), context.fillStyle = background, backgroundCornerRadius ? (createRectPath(context, b.x1, b.y1, b.width(), b.height(), backgroundCornerRadius, !0), context.fill()) : context.fillRect(b.x1, b.y1, b.width(), b.height()), context.highPerformanceRestore();
|
|
16007
16006
|
}
|
|
16008
16007
|
shouldReCalBounds && boundsAllocate.free(b), restore();
|
|
16009
16008
|
}
|
|
@@ -31708,6 +31707,8 @@
|
|
|
31708
31707
|
this.status === exports.STATUS.RUNNING && (this.tickCounts++, this.timelines.forEach(timeline => {
|
|
31709
31708
|
timeline.tick(delta);
|
|
31710
31709
|
}), this.emit("tick", delta));
|
|
31710
|
+
}, this._handleGraphTick = () => {
|
|
31711
|
+
this.initHandler(!1);
|
|
31711
31712
|
}, this.init(), this.lastFrameTime = -1, this.tickCounts = 0, this.stage = stage, this.autoStop = !0, this.interval = 16, this.computeTimeOffsetAndJitter();
|
|
31712
31713
|
}
|
|
31713
31714
|
bindStage(stage) {
|
|
@@ -31717,9 +31718,7 @@
|
|
|
31717
31718
|
this.timeOffset = Math.floor(Math.random() * this.interval), this._jitter = Math.min(Math.max(.2 * this.interval, 6), .7 * this.interval);
|
|
31718
31719
|
}
|
|
31719
31720
|
init() {
|
|
31720
|
-
this.interval = 16, this.status = exports.STATUS.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker",
|
|
31721
|
-
this.initHandler(!1);
|
|
31722
|
-
}), application.global.env && this.initHandler(!1);
|
|
31721
|
+
this.interval = 16, this.status = exports.STATUS.INITIAL, application.global.hooks.onSetEnv.tap("graph-ticker", this._handleGraphTick), application.global.env && this.initHandler(!1);
|
|
31723
31722
|
}
|
|
31724
31723
|
addTimeline(timeline) {
|
|
31725
31724
|
this.timelines.push(timeline);
|
|
@@ -31795,7 +31794,7 @@
|
|
|
31795
31794
|
}
|
|
31796
31795
|
release() {
|
|
31797
31796
|
var _a;
|
|
31798
|
-
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1;
|
|
31797
|
+
this.stop(), this.timelines = [], null === (_a = this.tickerHandler) || void 0 === _a || _a.release(), this.tickerHandler = null, this.lastFrameTime = -1, application.global.hooks.onSetEnv.unTap("graph-ticker", this._handleGraphTick);
|
|
31799
31798
|
}
|
|
31800
31799
|
checkSkip(delta) {
|
|
31801
31800
|
var _a, _b, _c;
|
|
@@ -37701,7 +37700,7 @@
|
|
|
37701
37700
|
this._sliderRenderBounds = null, this._sliderLimitRange = null;
|
|
37702
37701
|
}
|
|
37703
37702
|
release(all) {
|
|
37704
|
-
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).
|
|
37703
|
+
super.release(all), ("browser" === vglobal.env ? vglobal : this.stage).removeEventListener("touchmove", this._handleTouchMove, {
|
|
37705
37704
|
passive: !1
|
|
37706
37705
|
}), this._clearDragEvents();
|
|
37707
37706
|
}
|
|
@@ -43530,9 +43529,8 @@
|
|
|
43530
43529
|
const label = labels[i];
|
|
43531
43530
|
if (!label) continue;
|
|
43532
43531
|
const baseMark = this.getRelatedGraphic(label.attribute);
|
|
43533
|
-
let backgroundColor = baseMark.getAttributes(!0).fill
|
|
43534
|
-
|
|
43535
|
-
let foregroundColor = label.attribute.fill;
|
|
43532
|
+
let backgroundColor = baseMark.getAttributes(!0).fill,
|
|
43533
|
+
foregroundColor = label.attribute.fill;
|
|
43536
43534
|
if (isObject$1(backgroundColor) && backgroundColor.gradient) {
|
|
43537
43535
|
const firstStopColor = null === (_g = null === (_f = backgroundColor.stops) || void 0 === _f ? void 0 : _f[0]) || void 0 === _g ? void 0 : _g.color;
|
|
43538
43536
|
firstStopColor && (backgroundColor = firstStopColor, foregroundColor = firstStopColor);
|
|
@@ -43546,26 +43544,11 @@
|
|
|
43546
43544
|
if (fill && label.setAttributes({
|
|
43547
43545
|
fill: fill
|
|
43548
43546
|
}), 0 === label.attribute.lineWidth || 0 === label.attribute.strokeOpacity) continue;
|
|
43549
|
-
|
|
43550
|
-
|
|
43551
|
-
|
|
43552
|
-
|
|
43553
|
-
stroke && label.setAttributes({
|
|
43554
|
-
stroke: stroke
|
|
43555
|
-
});
|
|
43556
|
-
}
|
|
43547
|
+
const stroke = smartInvertStrategy(strokeStrategy, backgroundColor, invertColor, similarColor);
|
|
43548
|
+
stroke && label.setAttributes({
|
|
43549
|
+
stroke: stroke
|
|
43550
|
+
});
|
|
43557
43551
|
} else if (isIntersect && "none" !== interactInvertType) {
|
|
43558
|
-
if ("background" === interactInvertType) {
|
|
43559
|
-
const fill = smartInvertStrategy(fillStrategy, backgroundColor, invertColor, similarColor);
|
|
43560
|
-
fill && label.setAttributes({
|
|
43561
|
-
fill: fill
|
|
43562
|
-
}), label.setAttributes({
|
|
43563
|
-
stroke: !1,
|
|
43564
|
-
background: backgroundColor,
|
|
43565
|
-
backgroundOpacity: backgroundOpacity
|
|
43566
|
-
});
|
|
43567
|
-
continue;
|
|
43568
|
-
}
|
|
43569
43552
|
if (0 === label.attribute.lineWidth || 0 === label.attribute.strokeOpacity) continue;
|
|
43570
43553
|
if (label.attribute.stroke) {
|
|
43571
43554
|
label.setAttributes({
|
|
@@ -43582,9 +43565,6 @@
|
|
|
43582
43565
|
stroke: stroke
|
|
43583
43566
|
});
|
|
43584
43567
|
}
|
|
43585
|
-
!1 === isInside && "background" === interactInvertType && label.setAttributes({
|
|
43586
|
-
background: null
|
|
43587
|
-
});
|
|
43588
43568
|
}
|
|
43589
43569
|
}
|
|
43590
43570
|
_canPlaceInside(textBound, shapeBound) {
|
|
@@ -53083,7 +53063,7 @@
|
|
|
53083
53063
|
select: !0
|
|
53084
53064
|
};
|
|
53085
53065
|
|
|
53086
|
-
const version = "1.0.41-alpha.
|
|
53066
|
+
const version = "1.0.41-alpha.2";
|
|
53087
53067
|
preLoadAllModule();
|
|
53088
53068
|
if (isBrowserEnv()) {
|
|
53089
53069
|
loadBrowserEnv(container);
|