@visactor/vtable-gantt 1.27.0-alpha.2 → 1.27.0-alpha.3
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/dist/vtable-gantt.js
CHANGED
|
@@ -9459,10 +9459,18 @@
|
|
|
9459
9459
|
setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context, ignorePriority) {
|
|
9460
9460
|
if (!params) return;
|
|
9461
9461
|
const keys = Object.keys(params);
|
|
9462
|
-
this.captureTransientFromAttrsBeforePreventAnimate(params, keys, context), this.visitTrackedAnimates(animate => {
|
|
9462
|
+
this.captureTransientFromAttrsBeforePreventAnimate(params, keys, context), this.syncFinalAttributesFromUpdateContext(context), this.visitTrackedAnimates(animate => {
|
|
9463
9463
|
(animate.priority !== 1 / 0 || ignorePriority) && animate.preventAttrs(keys);
|
|
9464
9464
|
}), this.applyTransientAttributes(params, forceUpdateTag, context);
|
|
9465
9465
|
}
|
|
9466
|
+
syncFinalAttributesFromUpdateContext(context) {
|
|
9467
|
+
var _a;
|
|
9468
|
+
const updateType = null == context ? void 0 : context.type;
|
|
9469
|
+
if (updateType === AttributeUpdateType.STATE || null != updateType && updateType >= AttributeUpdateType.ANIMATE_BIND && updateType <= AttributeUpdateType.ANIMATE_END) return;
|
|
9470
|
+
const finalAttrs = null === (_a = this.context) || void 0 === _a ? void 0 : _a.finalAttrs,
|
|
9471
|
+
setFinalAttributes = this.setFinalAttributes;
|
|
9472
|
+
finalAttrs && "function" == typeof setFinalAttributes && setFinalAttributes.call(this, finalAttrs);
|
|
9473
|
+
}
|
|
9466
9474
|
captureTransientFromAttrsBeforePreventAnimate(params, keys, context) {
|
|
9467
9475
|
var _a, _b;
|
|
9468
9476
|
const graphicContext = this.context,
|
|
@@ -21216,7 +21224,7 @@
|
|
|
21216
21224
|
};
|
|
21217
21225
|
}
|
|
21218
21226
|
|
|
21219
|
-
var __rest$
|
|
21227
|
+
var __rest$9 = undefined && undefined.__rest || function (s, e) {
|
|
21220
21228
|
var t = {};
|
|
21221
21229
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
21222
21230
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -21314,7 +21322,7 @@
|
|
|
21314
21322
|
{
|
|
21315
21323
|
textConfig = []
|
|
21316
21324
|
} = _a,
|
|
21317
|
-
rest = __rest$
|
|
21325
|
+
rest = __rest$9(_a, ["textConfig"]);
|
|
21318
21326
|
if ("Backspace" === ev.type && !textConfig.length) return;
|
|
21319
21327
|
let str = ev.data;
|
|
21320
21328
|
this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
|
|
@@ -25710,188 +25718,6 @@
|
|
|
25710
25718
|
}
|
|
25711
25719
|
loadBrowserEnv.__loaded = !1;
|
|
25712
25720
|
|
|
25713
|
-
class NodeWindowHandlerContribution extends BaseWindowHandlerContribution {
|
|
25714
|
-
get container() {
|
|
25715
|
-
return null;
|
|
25716
|
-
}
|
|
25717
|
-
constructor(global = application.global) {
|
|
25718
|
-
super(), this.global = global, this.type = "node";
|
|
25719
|
-
}
|
|
25720
|
-
getTitle() {
|
|
25721
|
-
return "";
|
|
25722
|
-
}
|
|
25723
|
-
getWH() {
|
|
25724
|
-
return {
|
|
25725
|
-
width: this.canvas.displayWidth,
|
|
25726
|
-
height: this.canvas.displayHeight
|
|
25727
|
-
};
|
|
25728
|
-
}
|
|
25729
|
-
getXY() {
|
|
25730
|
-
return {
|
|
25731
|
-
x: 0,
|
|
25732
|
-
y: 0
|
|
25733
|
-
};
|
|
25734
|
-
}
|
|
25735
|
-
createWindow(params) {
|
|
25736
|
-
params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
|
|
25737
|
-
}
|
|
25738
|
-
createWindowByConfig(params) {
|
|
25739
|
-
const nativeCanvas = this.global.createCanvas({
|
|
25740
|
-
width: params.width,
|
|
25741
|
-
height: params.height
|
|
25742
|
-
}),
|
|
25743
|
-
options = {
|
|
25744
|
-
width: params.width,
|
|
25745
|
-
height: params.height,
|
|
25746
|
-
dpr: params.dpr,
|
|
25747
|
-
nativeCanvas: nativeCanvas,
|
|
25748
|
-
id: Generator.GenAutoIncrementId().toString(),
|
|
25749
|
-
canvasControled: !0
|
|
25750
|
-
};
|
|
25751
|
-
this.canvas = new NodeCanvas(options);
|
|
25752
|
-
}
|
|
25753
|
-
createWindowByCanvas(params) {
|
|
25754
|
-
var _a;
|
|
25755
|
-
const canvas = params.canvas,
|
|
25756
|
-
dpr = null !== (_a = params.dpr) && void 0 !== _a ? _a : 1;
|
|
25757
|
-
let width = params.width,
|
|
25758
|
-
height = params.height;
|
|
25759
|
-
null != width && null != height && params.canvasControled || (width = canvas.width / dpr, height = canvas.height / dpr), this.canvas = new NodeCanvas({
|
|
25760
|
-
width: width,
|
|
25761
|
-
height: height,
|
|
25762
|
-
dpr: dpr,
|
|
25763
|
-
nativeCanvas: canvas,
|
|
25764
|
-
canvasControled: params.canvasControled
|
|
25765
|
-
});
|
|
25766
|
-
}
|
|
25767
|
-
releaseWindow() {
|
|
25768
|
-
this.canvas.release();
|
|
25769
|
-
}
|
|
25770
|
-
resizeWindow(width, height) {
|
|
25771
|
-
this.canvas.resize(width, height);
|
|
25772
|
-
}
|
|
25773
|
-
setDpr(dpr) {
|
|
25774
|
-
this.canvas.dpr = dpr;
|
|
25775
|
-
}
|
|
25776
|
-
getContext() {
|
|
25777
|
-
return this.canvas.getContext();
|
|
25778
|
-
}
|
|
25779
|
-
getNativeHandler() {
|
|
25780
|
-
return this.canvas;
|
|
25781
|
-
}
|
|
25782
|
-
getDpr() {
|
|
25783
|
-
return this.canvas.dpr;
|
|
25784
|
-
}
|
|
25785
|
-
getImageBuffer(type = "image/png") {
|
|
25786
|
-
return this.canvas.nativeCanvas.toBuffer(type);
|
|
25787
|
-
}
|
|
25788
|
-
addEventListener(type, listener, options) {}
|
|
25789
|
-
dispatchEvent(event) {
|
|
25790
|
-
return !0;
|
|
25791
|
-
}
|
|
25792
|
-
removeEventListener(type, listener, options) {}
|
|
25793
|
-
getStyle() {}
|
|
25794
|
-
setStyle(style) {}
|
|
25795
|
-
getBoundingClientRect() {
|
|
25796
|
-
return null;
|
|
25797
|
-
}
|
|
25798
|
-
clearViewBox(color) {}
|
|
25799
|
-
}
|
|
25800
|
-
NodeWindowHandlerContribution.env = "node";
|
|
25801
|
-
function bindNodeWindowContribution(container) {
|
|
25802
|
-
var _a, _b;
|
|
25803
|
-
(null === (_a = container.isBound) || void 0 === _a ? void 0 : _a.call(container, NodeWindowHandlerContribution)) || container.bind(NodeWindowHandlerContribution).toSelf(), (null === (_b = container.getNamed) || void 0 === _b ? void 0 : _b.call(container, WindowHandlerContribution, NodeWindowHandlerContribution.env)) || container.bind(WindowHandlerContribution).toService(NodeWindowHandlerContribution).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
25804
|
-
}
|
|
25805
|
-
|
|
25806
|
-
class NodeEnvContribution extends BaseEnvContribution {
|
|
25807
|
-
constructor() {
|
|
25808
|
-
super(...arguments), this.type = "node", this._lastTime = 0, this.supportEvent = !1;
|
|
25809
|
-
}
|
|
25810
|
-
configure(service, pkg) {
|
|
25811
|
-
service.env === this.type && (service.setActiveEnvContribution(this), this.pkg = pkg);
|
|
25812
|
-
}
|
|
25813
|
-
getDynamicCanvasCount() {
|
|
25814
|
-
return 0;
|
|
25815
|
-
}
|
|
25816
|
-
getStaticCanvasCount() {
|
|
25817
|
-
return 999;
|
|
25818
|
-
}
|
|
25819
|
-
loadJson(url) {
|
|
25820
|
-
const jsonPromise = fetch(url).then(data => data.json());
|
|
25821
|
-
return jsonPromise.then(json => ({
|
|
25822
|
-
data: json,
|
|
25823
|
-
state: "success"
|
|
25824
|
-
})).catch(() => ({
|
|
25825
|
-
data: null,
|
|
25826
|
-
state: "fail"
|
|
25827
|
-
})), jsonPromise;
|
|
25828
|
-
}
|
|
25829
|
-
loadArrayBuffer(url) {
|
|
25830
|
-
return fetch(url).then(data => data.arrayBuffer()).then(arrayBuffer => ({
|
|
25831
|
-
data: arrayBuffer,
|
|
25832
|
-
loadState: "success"
|
|
25833
|
-
})).catch(() => ({
|
|
25834
|
-
data: null,
|
|
25835
|
-
loadState: "fail"
|
|
25836
|
-
}));
|
|
25837
|
-
}
|
|
25838
|
-
loadImage(url) {
|
|
25839
|
-
const {
|
|
25840
|
-
loadImage: loadImage
|
|
25841
|
-
} = this.pkg;
|
|
25842
|
-
return loadImage ? loadImage(url).then(image => ({
|
|
25843
|
-
loadState: image ? "success" : "fail",
|
|
25844
|
-
data: image
|
|
25845
|
-
})).catch(() => ({
|
|
25846
|
-
loadState: "fail",
|
|
25847
|
-
data: null
|
|
25848
|
-
})) : Promise.reject(new Error("node-canvas loadImage could not be found!"));
|
|
25849
|
-
}
|
|
25850
|
-
loadSvg(svgStr) {
|
|
25851
|
-
const Resvg = this.pkg.Resvg;
|
|
25852
|
-
if (!Resvg) return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));
|
|
25853
|
-
const pngData = new Resvg(svgStr).render().asPng();
|
|
25854
|
-
return this.loadImage(pngData);
|
|
25855
|
-
}
|
|
25856
|
-
createCanvas(params) {
|
|
25857
|
-
return this.pkg.createCanvas(params.width, params.height);
|
|
25858
|
-
}
|
|
25859
|
-
releaseCanvas(canvas) {}
|
|
25860
|
-
getDevicePixelRatio() {
|
|
25861
|
-
return 1;
|
|
25862
|
-
}
|
|
25863
|
-
getRequestAnimationFrame() {
|
|
25864
|
-
return function (callback) {
|
|
25865
|
-
return rafBasedSto.call(callback);
|
|
25866
|
-
};
|
|
25867
|
-
}
|
|
25868
|
-
getCancelAnimationFrame() {
|
|
25869
|
-
return h => {
|
|
25870
|
-
rafBasedSto.clear(h);
|
|
25871
|
-
};
|
|
25872
|
-
}
|
|
25873
|
-
addEventListener(type, listener, options) {}
|
|
25874
|
-
removeEventListener(type, listener, options) {}
|
|
25875
|
-
getElementById(str) {
|
|
25876
|
-
return null;
|
|
25877
|
-
}
|
|
25878
|
-
getRootElement() {
|
|
25879
|
-
return null;
|
|
25880
|
-
}
|
|
25881
|
-
dispatchEvent(event) {}
|
|
25882
|
-
release(...params) {}
|
|
25883
|
-
createOffscreenCanvas(params) {}
|
|
25884
|
-
}
|
|
25885
|
-
|
|
25886
|
-
function bindNodeEnv(container) {
|
|
25887
|
-
var _a, _b;
|
|
25888
|
-
(null === (_b = (_a = container).isBound) || void 0 === _b ? void 0 : _b.call(_a, NodeEnvContribution)) || (container.bind(NodeEnvContribution).toSelf().inSingletonScope(), container.bind(EnvContribution).toService(NodeEnvContribution));
|
|
25889
|
-
}
|
|
25890
|
-
function loadNodeEnv(container = getLegacyBindingContext(), loadPicker = !0) {
|
|
25891
|
-
loadNodeEnv.__loaded || (loadNodeEnv.__loaded = !0, bindNodeEnv(container), bindNodeCanvasModules(container), bindNodeWindowContribution(container));
|
|
25892
|
-
}
|
|
25893
|
-
loadNodeEnv.__loaded = !1;
|
|
25894
|
-
|
|
25895
25721
|
class DefaultMathPickerService extends DefaultPickService {
|
|
25896
25722
|
constructor(contributions, pickItemInterceptorContributions, pickServiceInterceptorContributions) {
|
|
25897
25723
|
super(pickItemInterceptorContributions, pickServiceInterceptorContributions), this.contributions = contributions, this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.global.hooks.onSetEnv.tap("math-picker-service", (lastEnv, env, global) => {
|
|
@@ -26075,6 +25901,195 @@
|
|
|
26075
25901
|
bindMathPickerContribution(c), bindMathPicker(c), bindArcMathPickerContribution(c), bindAreaMathPickerContribution(c), bindCircleMathPickerContribution(c), bindGlyphMathPickerContribution(c), bindImageMathPickerContribution(c), bindLineMathPickerContribution(c), bindPolygonMathPickerContribution(c), bindPathMathPickerContribution(c), bindRectMathPickerContribution(c), bindRichTextMathPickerContribution(c), bindSymbolMathPickerContribution(c), bindTextMathPickerContribution(c);
|
|
26076
25902
|
}
|
|
26077
25903
|
|
|
25904
|
+
class NodeWindowHandlerContribution extends BaseWindowHandlerContribution {
|
|
25905
|
+
get container() {
|
|
25906
|
+
return null;
|
|
25907
|
+
}
|
|
25908
|
+
constructor(global = application.global) {
|
|
25909
|
+
super(), this.global = global, this.type = "node";
|
|
25910
|
+
}
|
|
25911
|
+
getTitle() {
|
|
25912
|
+
return "";
|
|
25913
|
+
}
|
|
25914
|
+
getWH() {
|
|
25915
|
+
return {
|
|
25916
|
+
width: this.canvas.displayWidth,
|
|
25917
|
+
height: this.canvas.displayHeight
|
|
25918
|
+
};
|
|
25919
|
+
}
|
|
25920
|
+
getXY() {
|
|
25921
|
+
return {
|
|
25922
|
+
x: 0,
|
|
25923
|
+
y: 0
|
|
25924
|
+
};
|
|
25925
|
+
}
|
|
25926
|
+
createWindow(params) {
|
|
25927
|
+
params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
|
|
25928
|
+
}
|
|
25929
|
+
createWindowByConfig(params) {
|
|
25930
|
+
const nativeCanvas = this.global.createCanvas({
|
|
25931
|
+
width: params.width,
|
|
25932
|
+
height: params.height
|
|
25933
|
+
}),
|
|
25934
|
+
options = {
|
|
25935
|
+
width: params.width,
|
|
25936
|
+
height: params.height,
|
|
25937
|
+
dpr: params.dpr,
|
|
25938
|
+
nativeCanvas: nativeCanvas,
|
|
25939
|
+
id: Generator.GenAutoIncrementId().toString(),
|
|
25940
|
+
canvasControled: !0
|
|
25941
|
+
};
|
|
25942
|
+
this.canvas = new NodeCanvas(options);
|
|
25943
|
+
}
|
|
25944
|
+
createWindowByCanvas(params) {
|
|
25945
|
+
var _a;
|
|
25946
|
+
const canvas = params.canvas,
|
|
25947
|
+
dpr = null !== (_a = params.dpr) && void 0 !== _a ? _a : 1;
|
|
25948
|
+
let width = params.width,
|
|
25949
|
+
height = params.height;
|
|
25950
|
+
null != width && null != height && params.canvasControled || (width = canvas.width / dpr, height = canvas.height / dpr), this.canvas = new NodeCanvas({
|
|
25951
|
+
width: width,
|
|
25952
|
+
height: height,
|
|
25953
|
+
dpr: dpr,
|
|
25954
|
+
nativeCanvas: canvas,
|
|
25955
|
+
canvasControled: params.canvasControled
|
|
25956
|
+
});
|
|
25957
|
+
}
|
|
25958
|
+
releaseWindow() {
|
|
25959
|
+
this.canvas.release();
|
|
25960
|
+
}
|
|
25961
|
+
resizeWindow(width, height) {
|
|
25962
|
+
this.canvas.resize(width, height);
|
|
25963
|
+
}
|
|
25964
|
+
setDpr(dpr) {
|
|
25965
|
+
this.canvas.dpr = dpr;
|
|
25966
|
+
}
|
|
25967
|
+
getContext() {
|
|
25968
|
+
return this.canvas.getContext();
|
|
25969
|
+
}
|
|
25970
|
+
getNativeHandler() {
|
|
25971
|
+
return this.canvas;
|
|
25972
|
+
}
|
|
25973
|
+
getDpr() {
|
|
25974
|
+
return this.canvas.dpr;
|
|
25975
|
+
}
|
|
25976
|
+
getImageBuffer(type = "image/png") {
|
|
25977
|
+
return this.canvas.nativeCanvas.toBuffer(type);
|
|
25978
|
+
}
|
|
25979
|
+
addEventListener(type, listener, options) {}
|
|
25980
|
+
dispatchEvent(event) {
|
|
25981
|
+
return !0;
|
|
25982
|
+
}
|
|
25983
|
+
removeEventListener(type, listener, options) {}
|
|
25984
|
+
getStyle() {}
|
|
25985
|
+
setStyle(style) {}
|
|
25986
|
+
getBoundingClientRect() {
|
|
25987
|
+
return null;
|
|
25988
|
+
}
|
|
25989
|
+
clearViewBox(color) {}
|
|
25990
|
+
}
|
|
25991
|
+
NodeWindowHandlerContribution.env = "node";
|
|
25992
|
+
function bindNodeWindowContribution(container) {
|
|
25993
|
+
var _a, _b;
|
|
25994
|
+
(null === (_a = container.isBound) || void 0 === _a ? void 0 : _a.call(container, NodeWindowHandlerContribution)) || container.bind(NodeWindowHandlerContribution).toSelf(), (null === (_b = container.getNamed) || void 0 === _b ? void 0 : _b.call(container, WindowHandlerContribution, NodeWindowHandlerContribution.env)) || container.bind(WindowHandlerContribution).toService(NodeWindowHandlerContribution).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
25995
|
+
}
|
|
25996
|
+
|
|
25997
|
+
class NodeEnvContribution extends BaseEnvContribution {
|
|
25998
|
+
constructor() {
|
|
25999
|
+
super(...arguments), this.type = "node", this._lastTime = 0, this.supportEvent = !1;
|
|
26000
|
+
}
|
|
26001
|
+
configure(service, pkg) {
|
|
26002
|
+
service.env === this.type && (service.setActiveEnvContribution(this), this.pkg = pkg);
|
|
26003
|
+
}
|
|
26004
|
+
getNodePackage(feature, requiredKey) {
|
|
26005
|
+
if (!this.pkg || requiredKey && "function" != typeof this.pkg[requiredKey]) throw new Error(`Node env requires node-canvas package before ${feature}. Use vglobal.setEnv('node', CanvasPkg) before createNodeVRenderApp(), or createNodeVRenderApp({ envParams: CanvasPkg }).`);
|
|
26006
|
+
return this.pkg;
|
|
26007
|
+
}
|
|
26008
|
+
getDynamicCanvasCount() {
|
|
26009
|
+
return 0;
|
|
26010
|
+
}
|
|
26011
|
+
getStaticCanvasCount() {
|
|
26012
|
+
return 999;
|
|
26013
|
+
}
|
|
26014
|
+
loadJson(url) {
|
|
26015
|
+
const jsonPromise = fetch(url).then(data => data.json());
|
|
26016
|
+
return jsonPromise.then(json => ({
|
|
26017
|
+
data: json,
|
|
26018
|
+
state: "success"
|
|
26019
|
+
})).catch(() => ({
|
|
26020
|
+
data: null,
|
|
26021
|
+
state: "fail"
|
|
26022
|
+
})), jsonPromise;
|
|
26023
|
+
}
|
|
26024
|
+
loadArrayBuffer(url) {
|
|
26025
|
+
return fetch(url).then(data => data.arrayBuffer()).then(arrayBuffer => ({
|
|
26026
|
+
data: arrayBuffer,
|
|
26027
|
+
loadState: "success"
|
|
26028
|
+
})).catch(() => ({
|
|
26029
|
+
data: null,
|
|
26030
|
+
loadState: "fail"
|
|
26031
|
+
}));
|
|
26032
|
+
}
|
|
26033
|
+
loadImage(url) {
|
|
26034
|
+
const {
|
|
26035
|
+
loadImage: loadImage
|
|
26036
|
+
} = this.getNodePackage("loadImage", "loadImage");
|
|
26037
|
+
return loadImage ? loadImage(url).then(image => ({
|
|
26038
|
+
loadState: image ? "success" : "fail",
|
|
26039
|
+
data: image
|
|
26040
|
+
})).catch(() => ({
|
|
26041
|
+
loadState: "fail",
|
|
26042
|
+
data: null
|
|
26043
|
+
})) : Promise.reject(new Error("node-canvas loadImage could not be found!"));
|
|
26044
|
+
}
|
|
26045
|
+
loadSvg(svgStr) {
|
|
26046
|
+
const Resvg = this.getNodePackage("loadSvg").Resvg;
|
|
26047
|
+
if (!Resvg) return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));
|
|
26048
|
+
const pngData = new Resvg(svgStr).render().asPng();
|
|
26049
|
+
return this.loadImage(pngData);
|
|
26050
|
+
}
|
|
26051
|
+
createCanvas(params) {
|
|
26052
|
+
const {
|
|
26053
|
+
createCanvas: createCanvas
|
|
26054
|
+
} = this.getNodePackage("createCanvas", "createCanvas");
|
|
26055
|
+
return createCanvas(params.width, params.height);
|
|
26056
|
+
}
|
|
26057
|
+
releaseCanvas(canvas) {}
|
|
26058
|
+
getDevicePixelRatio() {
|
|
26059
|
+
return 1;
|
|
26060
|
+
}
|
|
26061
|
+
getRequestAnimationFrame() {
|
|
26062
|
+
return function (callback) {
|
|
26063
|
+
return rafBasedSto.call(callback);
|
|
26064
|
+
};
|
|
26065
|
+
}
|
|
26066
|
+
getCancelAnimationFrame() {
|
|
26067
|
+
return h => {
|
|
26068
|
+
rafBasedSto.clear(h);
|
|
26069
|
+
};
|
|
26070
|
+
}
|
|
26071
|
+
addEventListener(type, listener, options) {}
|
|
26072
|
+
removeEventListener(type, listener, options) {}
|
|
26073
|
+
getElementById(str) {
|
|
26074
|
+
return null;
|
|
26075
|
+
}
|
|
26076
|
+
getRootElement() {
|
|
26077
|
+
return null;
|
|
26078
|
+
}
|
|
26079
|
+
dispatchEvent(event) {}
|
|
26080
|
+
release(...params) {}
|
|
26081
|
+
createOffscreenCanvas(params) {}
|
|
26082
|
+
}
|
|
26083
|
+
|
|
26084
|
+
function bindNodeEnv(container) {
|
|
26085
|
+
var _a, _b;
|
|
26086
|
+
(null === (_b = (_a = container).isBound) || void 0 === _b ? void 0 : _b.call(_a, NodeEnvContribution)) || (container.bind(NodeEnvContribution).toSelf().inSingletonScope(), container.bind(EnvContribution).toService(NodeEnvContribution));
|
|
26087
|
+
}
|
|
26088
|
+
function loadNodeEnv(container = getLegacyBindingContext(), loadPicker = !0) {
|
|
26089
|
+
loadNodeEnv.__loaded || (loadNodeEnv.__loaded = !0, bindNodeEnv(container), bindNodeCanvasModules(container), bindNodeWindowContribution(container));
|
|
26090
|
+
}
|
|
26091
|
+
loadNodeEnv.__loaded = !1;
|
|
26092
|
+
|
|
26078
26093
|
var lib$1 = {};
|
|
26079
26094
|
|
|
26080
26095
|
var gif = {};
|
|
@@ -26866,17 +26881,46 @@
|
|
|
26866
26881
|
});
|
|
26867
26882
|
}), bindGifImageRenderContribution(bindingContext), refreshRuntimeInstallerContributions();
|
|
26868
26883
|
}
|
|
26869
|
-
function
|
|
26884
|
+
function createForcedEnvParams(envParams) {
|
|
26885
|
+
if (null != envParams && ("object" == typeof envParams || "function" == typeof envParams)) {
|
|
26886
|
+
const forcedEnvParams = Object.create(envParams);
|
|
26887
|
+
return forcedEnvParams.force = !0, forcedEnvParams;
|
|
26888
|
+
}
|
|
26889
|
+
return {
|
|
26890
|
+
force: !0
|
|
26891
|
+
};
|
|
26892
|
+
}
|
|
26893
|
+
function activateRuntimeEnv(env, {
|
|
26894
|
+
envParams: envParams,
|
|
26895
|
+
force = !1
|
|
26896
|
+
} = {}) {
|
|
26897
|
+
getRuntimeInstallerGlobal().setEnv(env, force ? createForcedEnvParams(envParams) : envParams);
|
|
26898
|
+
}
|
|
26899
|
+
function installRuntimeEnvToApp(app, env, {
|
|
26900
|
+
bindEnv: bindEnv,
|
|
26901
|
+
bindCanvasModules: bindCanvasModules,
|
|
26902
|
+
bindWindowContribution: bindWindowContribution
|
|
26903
|
+
}, envParams) {
|
|
26870
26904
|
configureRuntimeApplicationForApp(app);
|
|
26871
26905
|
const bindingContext = getRuntimeInstallerBindingContext();
|
|
26872
|
-
|
|
26906
|
+
bindEnv(bindingContext), bindCanvasModules(bindingContext), bindWindowContribution(bindingContext), refreshRuntimeInstallerContributions(), activateRuntimeEnv(env, {
|
|
26907
|
+
envParams: envParams,
|
|
26873
26908
|
force: !0
|
|
26874
26909
|
});
|
|
26875
26910
|
}
|
|
26876
|
-
function
|
|
26877
|
-
|
|
26878
|
-
|
|
26879
|
-
|
|
26911
|
+
function installBrowserEnvToApp(app, envParams) {
|
|
26912
|
+
installRuntimeEnvToApp(app, "browser", {
|
|
26913
|
+
bindEnv: bindBrowserEnv,
|
|
26914
|
+
bindCanvasModules: bindBrowserCanvasModules,
|
|
26915
|
+
bindWindowContribution: bindBrowserWindowContribution
|
|
26916
|
+
}, envParams);
|
|
26917
|
+
}
|
|
26918
|
+
function installNodeEnvToApp(app, envParams) {
|
|
26919
|
+
installRuntimeEnvToApp(app, "node", {
|
|
26920
|
+
bindEnv: bindNodeEnv,
|
|
26921
|
+
bindCanvasModules: bindNodeCanvasModules,
|
|
26922
|
+
bindWindowContribution: bindNodeWindowContribution
|
|
26923
|
+
}, envParams);
|
|
26880
26924
|
}
|
|
26881
26925
|
function installDefaultGraphicsToApp(app) {
|
|
26882
26926
|
configureRuntimeApplicationForApp(app), ensureDefaultGraphicsInstalled(), installRuntimeDrawContributionsToApp(app), installRuntimeGraphicRenderersToApp(app);
|
|
@@ -27795,7 +27839,7 @@
|
|
|
27795
27839
|
registerGroup(), registerRect(), registerSymbol(), registerRichtext(), registerText();
|
|
27796
27840
|
}
|
|
27797
27841
|
|
|
27798
|
-
var __rest$
|
|
27842
|
+
var __rest$8 = undefined && undefined.__rest || function (s, e) {
|
|
27799
27843
|
var t = {};
|
|
27800
27844
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
27801
27845
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -27849,7 +27893,7 @@
|
|
|
27849
27893
|
const {
|
|
27850
27894
|
visible: shapeVisible
|
|
27851
27895
|
} = shape,
|
|
27852
|
-
shapeStyle = __rest$
|
|
27896
|
+
shapeStyle = __rest$8(shape, ["visible"]);
|
|
27853
27897
|
if (isBoolean$2(shapeVisible)) {
|
|
27854
27898
|
const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
|
|
27855
27899
|
maxSize = isNumber$3(size) ? size : Math.max(size[0], size[1]);
|
|
@@ -27950,7 +27994,7 @@
|
|
|
27950
27994
|
const {
|
|
27951
27995
|
visible: bgVisible
|
|
27952
27996
|
} = panel,
|
|
27953
|
-
backgroundStyle = __rest$
|
|
27997
|
+
backgroundStyle = __rest$8(panel, ["visible"]);
|
|
27954
27998
|
if (visible && isBoolean$2(bgVisible)) {
|
|
27955
27999
|
const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
|
|
27956
28000
|
visible: bgVisible && !!text,
|
|
@@ -28032,7 +28076,7 @@
|
|
|
28032
28076
|
merge(theme$2.poptip, DEFAULT_THEME, defaultPoptipTheme);
|
|
28033
28077
|
}
|
|
28034
28078
|
|
|
28035
|
-
var __rest$
|
|
28079
|
+
var __rest$7 = undefined && undefined.__rest || function (s, e) {
|
|
28036
28080
|
var t = {};
|
|
28037
28081
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
28038
28082
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -28141,7 +28185,7 @@
|
|
|
28141
28185
|
visible: bgVisible,
|
|
28142
28186
|
square: square
|
|
28143
28187
|
} = panel,
|
|
28144
|
-
backgroundStyle = __rest$
|
|
28188
|
+
backgroundStyle = __rest$7(panel, ["visible", "square"]);
|
|
28145
28189
|
if (square) {
|
|
28146
28190
|
const maxWH = max(popTipWidth, poptipHeight);
|
|
28147
28191
|
popTipWidth = maxWH;
|
|
@@ -30804,7 +30848,7 @@
|
|
|
30804
30848
|
AnimateExecutor.builtInAnimateMap[name] = animate;
|
|
30805
30849
|
}
|
|
30806
30850
|
constructor(target) {
|
|
30807
|
-
this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._target = target;
|
|
30851
|
+
this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._activeConfigList = null, this._target = target;
|
|
30808
30852
|
}
|
|
30809
30853
|
get started() {
|
|
30810
30854
|
return this._started;
|
|
@@ -30913,7 +30957,15 @@
|
|
|
30913
30957
|
return parsedParams;
|
|
30914
30958
|
}
|
|
30915
30959
|
execute(params) {
|
|
30916
|
-
Array.isArray(params)
|
|
30960
|
+
if (Array.isArray(params)) {
|
|
30961
|
+
const prevConfigList = this._activeConfigList;
|
|
30962
|
+
this._activeConfigList = params;
|
|
30963
|
+
try {
|
|
30964
|
+
params.forEach(param => this._execute(param));
|
|
30965
|
+
} finally {
|
|
30966
|
+
this._activeConfigList = prevConfigList;
|
|
30967
|
+
}
|
|
30968
|
+
} else this._execute(params);
|
|
30917
30969
|
}
|
|
30918
30970
|
_execute(params) {
|
|
30919
30971
|
if (params.selfOnly) return this._executeItem(params, this._target, 0, 1);
|
|
@@ -30939,6 +30991,7 @@
|
|
|
30939
30991
|
}
|
|
30940
30992
|
executeTypeConfigItem(params, graphic, index, count) {
|
|
30941
30993
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
30994
|
+
this.syncFinalAttrsFromContext(graphic);
|
|
30942
30995
|
const {
|
|
30943
30996
|
type = "fromTo",
|
|
30944
30997
|
channel: channel,
|
|
@@ -30969,7 +31022,7 @@
|
|
|
30969
31022
|
props = params.to,
|
|
30970
31023
|
from = params.from;
|
|
30971
31024
|
const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
|
|
30972
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
31025
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel), this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
30973
31026
|
let totalDelay = 0;
|
|
30974
31027
|
oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
|
|
30975
31028
|
const delayAfterValue = isFunction$3(delayAfter) ? delayAfter(null === (_h = null === (_g = graphic.context) || void 0 === _g ? void 0 : _g.data) || void 0 === _h ? void 0 : _h[0], graphic, {}) : delayAfter;
|
|
@@ -30991,6 +31044,7 @@
|
|
|
30991
31044
|
}
|
|
30992
31045
|
executeTimelineItem(params, graphic, index, count) {
|
|
30993
31046
|
var _a, _b, _c, _d;
|
|
31047
|
+
this.syncFinalAttrsFromContext(graphic);
|
|
30994
31048
|
const {
|
|
30995
31049
|
timeSlices: timeSlices,
|
|
30996
31050
|
startTime = 0,
|
|
@@ -31033,7 +31087,7 @@
|
|
|
31033
31087
|
props = effect.to,
|
|
31034
31088
|
from = effect.from;
|
|
31035
31089
|
const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
|
|
31036
|
-
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel)), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
|
|
31090
|
+
props || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), props = parsedFromProps.props), from || (parsedFromProps || (parsedFromProps = this.createPropsFromChannel(channel, graphic, commitAttrOutChannel, this.getAttrOutChannelExcludedKeys(graphic))), from = parsedFromProps.from), parsedFromProps.attrOutChannel && graphic.setAttributes(parsedFromProps.attrOutChannel);
|
|
31037
31091
|
const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
|
|
31038
31092
|
customType = effect.custom ? effect.customType : getCustomType(custom);
|
|
31039
31093
|
this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
|
|
@@ -31054,7 +31108,7 @@
|
|
|
31054
31108
|
const customAnimate = new CustomAnimateConstructor(from, props, duration, easing, customParams);
|
|
31055
31109
|
animate.play(customAnimate);
|
|
31056
31110
|
}
|
|
31057
|
-
createPropsFromChannel(channel, graphic, includeAttrOutChannel = !0) {
|
|
31111
|
+
createPropsFromChannel(channel, graphic, includeAttrOutChannel = !0, excludedAttrOutKeys) {
|
|
31058
31112
|
var _a;
|
|
31059
31113
|
const props = {};
|
|
31060
31114
|
let from = null;
|
|
@@ -31075,7 +31129,7 @@
|
|
|
31075
31129
|
}), diffAttrs && attrOutChannel) for (const key in diffAttrs) {
|
|
31076
31130
|
const value = diffAttrs[key];
|
|
31077
31131
|
if (void 0 === value) continue;
|
|
31078
|
-
props.hasOwnProperty(key) || !!(null == from ? void 0 : from.hasOwnProperty(key)) || (attrOutChannel[key] = value, hasAttrs = !0);
|
|
31132
|
+
props.hasOwnProperty(key) || !!(null == from ? void 0 : from.hasOwnProperty(key)) || (null == excludedAttrOutKeys ? void 0 : excludedAttrOutKeys[key]) || (attrOutChannel[key] = value, hasAttrs = !0);
|
|
31079
31133
|
}
|
|
31080
31134
|
return {
|
|
31081
31135
|
from: from,
|
|
@@ -31087,8 +31141,78 @@
|
|
|
31087
31141
|
var _a, _b;
|
|
31088
31142
|
return void 0 === value ? defaultValue : "function" == typeof value && graphic ? value(null === (_b = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.data) || void 0 === _b ? void 0 : _b[0], graphic, {}) : value;
|
|
31089
31143
|
}
|
|
31144
|
+
getAttrOutChannelExcludedKeys(graphic) {
|
|
31145
|
+
var _a;
|
|
31146
|
+
const configList = this._activeConfigList,
|
|
31147
|
+
diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
|
|
31148
|
+
if (!configList || configList.length <= 1 || !diffAttrs) return null;
|
|
31149
|
+
let excludedKeys = null;
|
|
31150
|
+
for (let i = 0; i < configList.length; i++) excludedKeys = this.collectAnimatedDiffKeys(configList[i], graphic, diffAttrs, excludedKeys);
|
|
31151
|
+
return excludedKeys;
|
|
31152
|
+
}
|
|
31153
|
+
collectAnimatedDiffKeys(config, graphic, diffAttrs, keys) {
|
|
31154
|
+
if ("timeSlices" in config) {
|
|
31155
|
+
const slices = Array.isArray(config.timeSlices) ? config.timeSlices : [config.timeSlices];
|
|
31156
|
+
for (let i = 0; i < slices.length; i++) {
|
|
31157
|
+
const effects = Array.isArray(slices[i].effects) ? slices[i].effects : [slices[i].effects];
|
|
31158
|
+
for (let j = 0; j < effects.length; j++) keys = this.collectAnimatedDiffKeysFromEffect(effects[j], graphic, diffAttrs, keys);
|
|
31159
|
+
}
|
|
31160
|
+
return keys;
|
|
31161
|
+
}
|
|
31162
|
+
return this.collectAnimatedDiffKeysFromEffect(config, graphic, diffAttrs, keys);
|
|
31163
|
+
}
|
|
31164
|
+
collectAnimatedDiffKeysFromEffect(effect, graphic, diffAttrs, keys) {
|
|
31165
|
+
var _a;
|
|
31166
|
+
if ("update" === (null !== (_a = effect.type) && void 0 !== _a ? _a : "fromTo")) {
|
|
31167
|
+
const options = this.resolveValue(effect.options, graphic, void 0),
|
|
31168
|
+
excludeChannels = null == options ? void 0 : options.excludeChannels;
|
|
31169
|
+
for (const key in diffAttrs) Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && !this.includesChannel(excludeChannels, key) && (null != keys || (keys = {}), keys[key] = !0);
|
|
31170
|
+
return keys;
|
|
31171
|
+
}
|
|
31172
|
+
return keys = this.collectExplicitAnimatedKeys(effect.to, diffAttrs, keys), keys = this.collectExplicitAnimatedKeys(effect.from, diffAttrs, keys), this.collectChannelAnimatedKeys(effect.channel, diffAttrs, keys);
|
|
31173
|
+
}
|
|
31174
|
+
collectExplicitAnimatedKeys(attrs, diffAttrs, keys) {
|
|
31175
|
+
if (!attrs) return keys;
|
|
31176
|
+
for (const key in attrs) Object.prototype.hasOwnProperty.call(attrs, key) && Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && (null != keys || (keys = {}), keys[key] = !0);
|
|
31177
|
+
return keys;
|
|
31178
|
+
}
|
|
31179
|
+
collectChannelAnimatedKeys(channel, diffAttrs, keys) {
|
|
31180
|
+
if (!channel) return keys;
|
|
31181
|
+
if (Array.isArray(channel)) {
|
|
31182
|
+
for (let i = 0; i < channel.length; i++) {
|
|
31183
|
+
const key = channel[i];
|
|
31184
|
+
Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && (null != keys || (keys = {}), keys[key] = !0);
|
|
31185
|
+
}
|
|
31186
|
+
return keys;
|
|
31187
|
+
}
|
|
31188
|
+
for (const key in channel) if (Object.prototype.hasOwnProperty.call(channel, key) && Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key]) {
|
|
31189
|
+
const config = channel[key];
|
|
31190
|
+
void 0 === config.to && void 0 === config.from || (null != keys || (keys = {}), keys[key] = !0);
|
|
31191
|
+
}
|
|
31192
|
+
return keys;
|
|
31193
|
+
}
|
|
31194
|
+
includesChannel(channels, key) {
|
|
31195
|
+
if (!(null == channels ? void 0 : channels.length)) return !1;
|
|
31196
|
+
for (let i = 0; i < channels.length; i++) if (channels[i] === key) return !0;
|
|
31197
|
+
return !1;
|
|
31198
|
+
}
|
|
31199
|
+
syncFinalAttrsFromContext(graphic) {
|
|
31200
|
+
var _a;
|
|
31201
|
+
const finalAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.finalAttrs,
|
|
31202
|
+
setFinalAttributes = graphic.setFinalAttributes;
|
|
31203
|
+
finalAttrs && "function" == typeof setFinalAttributes && setFinalAttributes.call(graphic, finalAttrs);
|
|
31204
|
+
}
|
|
31090
31205
|
executeItem(params, graphic, index = 0, count = 1) {
|
|
31091
|
-
|
|
31206
|
+
if (Array.isArray(params)) {
|
|
31207
|
+
const prevConfigList = this._activeConfigList;
|
|
31208
|
+
this._activeConfigList = params;
|
|
31209
|
+
try {
|
|
31210
|
+
return params.map(param => this._executeItem(param, graphic, index, count)).filter(Boolean);
|
|
31211
|
+
} finally {
|
|
31212
|
+
this._activeConfigList = prevConfigList;
|
|
31213
|
+
}
|
|
31214
|
+
}
|
|
31215
|
+
return [this._executeItem(params, graphic, index, count)].filter(Boolean);
|
|
31092
31216
|
}
|
|
31093
31217
|
_executeItem(params, graphic, index = 0, count = 1) {
|
|
31094
31218
|
if (!graphic) return null;
|
|
@@ -31382,9 +31506,7 @@
|
|
|
31382
31506
|
return this.initAnimateExecutor(), this._animateExecutor.execute(config), this;
|
|
31383
31507
|
}
|
|
31384
31508
|
executeAnimations(configs) {
|
|
31385
|
-
return this.initAnimateExecutor(),
|
|
31386
|
-
this._animateExecutor.execute(config);
|
|
31387
|
-
}), this;
|
|
31509
|
+
return this.initAnimateExecutor(), this._animateExecutor.execute(configs), this;
|
|
31388
31510
|
}
|
|
31389
31511
|
getFinalAttribute() {
|
|
31390
31512
|
return this.finalAttribute;
|
|
@@ -31607,8 +31729,9 @@
|
|
|
31607
31729
|
return commitAttrs;
|
|
31608
31730
|
}
|
|
31609
31731
|
function commitAnimationStaticAttrs(target, keys, animate, fallbackAttrs) {
|
|
31732
|
+
var _a, _b;
|
|
31610
31733
|
const commitAttrs = buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs);
|
|
31611
|
-
return !!commitAttrs && (target.setAttributes(commitAttrs, !1, {
|
|
31734
|
+
return !!commitAttrs && (null === (_b = (_a = target).setFinalAttributes) || void 0 === _b || _b.call(_a, commitAttrs), target.setAttributes(commitAttrs, !1, {
|
|
31612
31735
|
type: AttributeUpdateType.ANIMATE_END
|
|
31613
31736
|
}), !0);
|
|
31614
31737
|
}
|
|
@@ -35727,7 +35850,7 @@
|
|
|
35727
35850
|
loadBasicAxis(), registerRect();
|
|
35728
35851
|
}
|
|
35729
35852
|
|
|
35730
|
-
var __rest$
|
|
35853
|
+
var __rest$6 = undefined && undefined.__rest || function (s, e) {
|
|
35731
35854
|
var t = {};
|
|
35732
35855
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
35733
35856
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -35834,7 +35957,7 @@
|
|
|
35834
35957
|
style: style,
|
|
35835
35958
|
state: state
|
|
35836
35959
|
} = _a,
|
|
35837
|
-
restLineAttrs = __rest$
|
|
35960
|
+
restLineAttrs = __rest$6(_a, ["startSymbol", "endSymbol", "style", "state"]),
|
|
35838
35961
|
lineAttrs = Object.assign({
|
|
35839
35962
|
startSymbol: startSymbol,
|
|
35840
35963
|
endSymbol: endSymbol,
|
|
@@ -35875,7 +35998,7 @@
|
|
|
35875
35998
|
state = {},
|
|
35876
35999
|
maxWidth: maxWidth
|
|
35877
36000
|
} = _d,
|
|
35878
|
-
restAttrs = __rest$
|
|
36001
|
+
restAttrs = __rest$6(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
|
|
35879
36002
|
let percent = .5;
|
|
35880
36003
|
"start" === position ? percent = 0 : "end" === position && (percent = 1);
|
|
35881
36004
|
const {
|
|
@@ -35977,7 +36100,7 @@
|
|
|
35977
36100
|
text: textContent = "",
|
|
35978
36101
|
maxWidth: maxWidth
|
|
35979
36102
|
} = _c,
|
|
35980
|
-
restAttrs = __rest$
|
|
36103
|
+
restAttrs = __rest$6(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
|
|
35981
36104
|
point = this.getTickCoord(0);
|
|
35982
36105
|
"bottom" === orient || "top" === orient ? point.x = position : point.y = position;
|
|
35983
36106
|
let tickLength = 0;
|
|
@@ -37744,7 +37867,7 @@
|
|
|
37744
37867
|
return !1;
|
|
37745
37868
|
};
|
|
37746
37869
|
|
|
37747
|
-
var __rest$
|
|
37870
|
+
var __rest$5 = undefined && undefined.__rest || function (s, e) {
|
|
37748
37871
|
var t = {};
|
|
37749
37872
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
37750
37873
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -38260,11 +38383,11 @@
|
|
|
38260
38383
|
{
|
|
38261
38384
|
formatMethod: startTextFormat
|
|
38262
38385
|
} = startTextStyle,
|
|
38263
|
-
restStartTextStyle = __rest$
|
|
38386
|
+
restStartTextStyle = __rest$5(startTextStyle, ["formatMethod"]),
|
|
38264
38387
|
{
|
|
38265
38388
|
formatMethod: endTextFormat
|
|
38266
38389
|
} = endTextStyle,
|
|
38267
|
-
restEndTextStyle = __rest$
|
|
38390
|
+
restEndTextStyle = __rest$5(endTextStyle, ["formatMethod"]),
|
|
38268
38391
|
{
|
|
38269
38392
|
start: start,
|
|
38270
38393
|
end: end
|
|
@@ -38955,7 +39078,7 @@
|
|
|
38955
39078
|
loadBaseLegend(), loadSliderComponent(), registerPath();
|
|
38956
39079
|
}
|
|
38957
39080
|
|
|
38958
|
-
var __rest$
|
|
39081
|
+
var __rest$4 = undefined && undefined.__rest || function (s, e) {
|
|
38959
39082
|
var t = {};
|
|
38960
39083
|
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
38961
39084
|
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
@@ -39474,7 +39597,7 @@
|
|
|
39474
39597
|
space: pagerSpace = DEFAULT_PAGER_SPACE,
|
|
39475
39598
|
defaultCurrent = 1
|
|
39476
39599
|
} = pager,
|
|
39477
|
-
compStyle = __rest$
|
|
39600
|
+
compStyle = __rest$4(pager, ["space", "defaultCurrent"]),
|
|
39478
39601
|
{
|
|
39479
39602
|
isHorizontal: isHorizontal
|
|
39480
39603
|
} = this._itemContext,
|
|
@@ -39544,7 +39667,7 @@
|
|
|
39544
39667
|
space: pagerSpace = DEFAULT_PAGER_SPACE,
|
|
39545
39668
|
defaultCurrent = 1
|
|
39546
39669
|
} = pager,
|
|
39547
|
-
compStyle = __rest$
|
|
39670
|
+
compStyle = __rest$4(pager, ["space", "defaultCurrent"]),
|
|
39548
39671
|
{
|
|
39549
39672
|
isHorizontal: isHorizontal
|
|
39550
39673
|
} = this._itemContext,
|
|
@@ -41346,6 +41469,8 @@
|
|
|
41346
41469
|
};
|
|
41347
41470
|
|
|
41348
41471
|
const BOOTSTRAP_STATE = Symbol.for("vrender.bootstrap.state"),
|
|
41472
|
+
installBrowserEnvToAppWithParams = installBrowserEnvToApp,
|
|
41473
|
+
installNodeEnvToAppWithParams = installNodeEnvToApp,
|
|
41349
41474
|
pluginRegistrations = [registerFlexLayoutPlugin, registerViewTransform3dPlugin, registerHtmlAttributePlugin, registerReactAttributePlugin, registerDirectionalLight, registerOrthoCamera],
|
|
41350
41475
|
animationRegistrations = [registerCustomAnimate, registerAnimate],
|
|
41351
41476
|
legacyGraphicRegistrations = [registerArc, registerArc3d, registerArea, registerCircle, registerGlyph, registerGifImage, registerGroup, registerImage, registerLine, registerPath, registerPolygon, registerPyramid3d, registerRect, registerRect3d, registerRichtext, registerShadowRoot, registerSymbol, registerText, registerWrapText, registerStar];
|
|
@@ -41385,25 +41510,66 @@
|
|
|
41385
41510
|
seen.has(key) || (seen.add(key), app.registry.picker.register(key, picker));
|
|
41386
41511
|
});
|
|
41387
41512
|
}
|
|
41388
|
-
function bootstrapVRenderBrowserApp(app) {
|
|
41389
|
-
return ensureBootstrap(app, "browser") ? (installBrowserEnvToApp(app), installDefaultGraphicsToApp(app), installBrowserPickersToApp(app), loadBrowserEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, CanvasPickerContribution), registerDefaultPipeline(), app) : app;
|
|
41513
|
+
function bootstrapVRenderBrowserApp(app, envParams) {
|
|
41514
|
+
return ensureBootstrap(app, "browser") ? (void 0 === envParams ? installBrowserEnvToApp(app) : installBrowserEnvToAppWithParams(app, envParams), installDefaultGraphicsToApp(app), installBrowserPickersToApp(app), loadBrowserEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, CanvasPickerContribution), registerDefaultPipeline(), app) : app;
|
|
41515
|
+
}
|
|
41516
|
+
function resolveNodeEnvParams(envParams) {
|
|
41517
|
+
return null != envParams ? envParams : "node" === (null == vglobal ? void 0 : vglobal.env) ? vglobal.envParams : void 0;
|
|
41390
41518
|
}
|
|
41391
|
-
function bootstrapVRenderNodeApp(app) {
|
|
41392
|
-
|
|
41519
|
+
function bootstrapVRenderNodeApp(app, envParams) {
|
|
41520
|
+
if (!ensureBootstrap(app, "node")) return app;
|
|
41521
|
+
const resolvedEnvParams = resolveNodeEnvParams(envParams);
|
|
41522
|
+
return void 0 === resolvedEnvParams ? installNodeEnvToApp(app) : installNodeEnvToAppWithParams(app, resolvedEnvParams), installDefaultGraphicsToApp(app), installNodePickersToApp(app), loadNodeEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, MathPickerContribution), registerDefaultPipeline(), app;
|
|
41393
41523
|
}
|
|
41394
41524
|
|
|
41525
|
+
var __rest$3 = undefined && undefined.__rest || function (s, e) {
|
|
41526
|
+
var t = {};
|
|
41527
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
41528
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
41529
|
+
var i = 0;
|
|
41530
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
41531
|
+
}
|
|
41532
|
+
return t;
|
|
41533
|
+
};
|
|
41395
41534
|
const {
|
|
41396
41535
|
createBrowserApp: createBrowserApp
|
|
41397
41536
|
} = VRenderCore;
|
|
41398
41537
|
function createBrowserVRenderApp(options = {}) {
|
|
41399
|
-
|
|
41538
|
+
const {
|
|
41539
|
+
envParams: envParams
|
|
41540
|
+
} = options,
|
|
41541
|
+
entryOptions = __rest$3(options, ["envParams"]);
|
|
41542
|
+
return bootstrapVRenderBrowserApp(createBrowserApp(entryOptions), envParams);
|
|
41400
41543
|
}
|
|
41401
41544
|
|
|
41545
|
+
undefined && undefined.__rest || function (s, e) {
|
|
41546
|
+
var t = {};
|
|
41547
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
41548
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
41549
|
+
var i = 0;
|
|
41550
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
41551
|
+
}
|
|
41552
|
+
return t;
|
|
41553
|
+
};
|
|
41554
|
+
|
|
41555
|
+
var __rest$2 = undefined && undefined.__rest || function (s, e) {
|
|
41556
|
+
var t = {};
|
|
41557
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
41558
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
41559
|
+
var i = 0;
|
|
41560
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
41561
|
+
}
|
|
41562
|
+
return t;
|
|
41563
|
+
};
|
|
41402
41564
|
const {
|
|
41403
41565
|
createNodeApp: createNodeApp
|
|
41404
41566
|
} = VRenderCore;
|
|
41405
41567
|
function createNodeVRenderApp(options = {}) {
|
|
41406
|
-
|
|
41568
|
+
const {
|
|
41569
|
+
envParams: envParams
|
|
41570
|
+
} = options,
|
|
41571
|
+
entryOptions = __rest$2(options, ["envParams"]);
|
|
41572
|
+
return bootstrapVRenderNodeApp(createNodeApp(entryOptions), envParams);
|
|
41407
41573
|
}
|
|
41408
41574
|
|
|
41409
41575
|
let Env$1 = class Env {
|