@visactor/vtable 1.27.0-alpha.1 → 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.js CHANGED
@@ -9401,10 +9401,18 @@
9401
9401
  setAttributesAndPreventAnimate(params, forceUpdateTag = !1, context, ignorePriority) {
9402
9402
  if (!params) return;
9403
9403
  const keys = Object.keys(params);
9404
- this.captureTransientFromAttrsBeforePreventAnimate(params, keys, context), this.visitTrackedAnimates(animate => {
9404
+ this.captureTransientFromAttrsBeforePreventAnimate(params, keys, context), this.syncFinalAttributesFromUpdateContext(context), this.visitTrackedAnimates(animate => {
9405
9405
  (animate.priority !== 1 / 0 || ignorePriority) && animate.preventAttrs(keys);
9406
9406
  }), this.applyTransientAttributes(params, forceUpdateTag, context);
9407
9407
  }
9408
+ syncFinalAttributesFromUpdateContext(context) {
9409
+ var _a;
9410
+ const updateType = null == context ? void 0 : context.type;
9411
+ if (updateType === AttributeUpdateType.STATE || null != updateType && updateType >= AttributeUpdateType.ANIMATE_BIND && updateType <= AttributeUpdateType.ANIMATE_END) return;
9412
+ const finalAttrs = null === (_a = this.context) || void 0 === _a ? void 0 : _a.finalAttrs,
9413
+ setFinalAttributes = this.setFinalAttributes;
9414
+ finalAttrs && "function" == typeof setFinalAttributes && setFinalAttributes.call(this, finalAttrs);
9415
+ }
9408
9416
  captureTransientFromAttrsBeforePreventAnimate(params, keys, context) {
9409
9417
  var _a, _b;
9410
9418
  const graphicContext = this.context,
@@ -21158,7 +21166,7 @@
21158
21166
  };
21159
21167
  }
21160
21168
 
21161
- var __rest$5 = undefined && undefined.__rest || function (s, e) {
21169
+ var __rest$7 = undefined && undefined.__rest || function (s, e) {
21162
21170
  var t = {};
21163
21171
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
21164
21172
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -21256,7 +21264,7 @@
21256
21264
  {
21257
21265
  textConfig = []
21258
21266
  } = _a,
21259
- rest = __rest$5(_a, ["textConfig"]);
21267
+ rest = __rest$7(_a, ["textConfig"]);
21260
21268
  if ("Backspace" === ev.type && !textConfig.length) return;
21261
21269
  let str = ev.data;
21262
21270
  this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
@@ -25652,188 +25660,6 @@
25652
25660
  }
25653
25661
  loadBrowserEnv.__loaded = !1;
25654
25662
 
25655
- class NodeWindowHandlerContribution extends BaseWindowHandlerContribution {
25656
- get container() {
25657
- return null;
25658
- }
25659
- constructor(global = application.global) {
25660
- super(), this.global = global, this.type = "node";
25661
- }
25662
- getTitle() {
25663
- return "";
25664
- }
25665
- getWH() {
25666
- return {
25667
- width: this.canvas.displayWidth,
25668
- height: this.canvas.displayHeight
25669
- };
25670
- }
25671
- getXY() {
25672
- return {
25673
- x: 0,
25674
- y: 0
25675
- };
25676
- }
25677
- createWindow(params) {
25678
- params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
25679
- }
25680
- createWindowByConfig(params) {
25681
- const nativeCanvas = this.global.createCanvas({
25682
- width: params.width,
25683
- height: params.height
25684
- }),
25685
- options = {
25686
- width: params.width,
25687
- height: params.height,
25688
- dpr: params.dpr,
25689
- nativeCanvas: nativeCanvas,
25690
- id: Generator.GenAutoIncrementId().toString(),
25691
- canvasControled: !0
25692
- };
25693
- this.canvas = new NodeCanvas(options);
25694
- }
25695
- createWindowByCanvas(params) {
25696
- var _a;
25697
- const canvas = params.canvas,
25698
- dpr = null !== (_a = params.dpr) && void 0 !== _a ? _a : 1;
25699
- let width = params.width,
25700
- height = params.height;
25701
- null != width && null != height && params.canvasControled || (width = canvas.width / dpr, height = canvas.height / dpr), this.canvas = new NodeCanvas({
25702
- width: width,
25703
- height: height,
25704
- dpr: dpr,
25705
- nativeCanvas: canvas,
25706
- canvasControled: params.canvasControled
25707
- });
25708
- }
25709
- releaseWindow() {
25710
- this.canvas.release();
25711
- }
25712
- resizeWindow(width, height) {
25713
- this.canvas.resize(width, height);
25714
- }
25715
- setDpr(dpr) {
25716
- this.canvas.dpr = dpr;
25717
- }
25718
- getContext() {
25719
- return this.canvas.getContext();
25720
- }
25721
- getNativeHandler() {
25722
- return this.canvas;
25723
- }
25724
- getDpr() {
25725
- return this.canvas.dpr;
25726
- }
25727
- getImageBuffer(type = "image/png") {
25728
- return this.canvas.nativeCanvas.toBuffer(type);
25729
- }
25730
- addEventListener(type, listener, options) {}
25731
- dispatchEvent(event) {
25732
- return !0;
25733
- }
25734
- removeEventListener(type, listener, options) {}
25735
- getStyle() {}
25736
- setStyle(style) {}
25737
- getBoundingClientRect() {
25738
- return null;
25739
- }
25740
- clearViewBox(color) {}
25741
- }
25742
- NodeWindowHandlerContribution.env = "node";
25743
- function bindNodeWindowContribution(container) {
25744
- var _a, _b;
25745
- (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);
25746
- }
25747
-
25748
- class NodeEnvContribution extends BaseEnvContribution {
25749
- constructor() {
25750
- super(...arguments), this.type = "node", this._lastTime = 0, this.supportEvent = !1;
25751
- }
25752
- configure(service, pkg) {
25753
- service.env === this.type && (service.setActiveEnvContribution(this), this.pkg = pkg);
25754
- }
25755
- getDynamicCanvasCount() {
25756
- return 0;
25757
- }
25758
- getStaticCanvasCount() {
25759
- return 999;
25760
- }
25761
- loadJson(url) {
25762
- const jsonPromise = fetch(url).then(data => data.json());
25763
- return jsonPromise.then(json => ({
25764
- data: json,
25765
- state: "success"
25766
- })).catch(() => ({
25767
- data: null,
25768
- state: "fail"
25769
- })), jsonPromise;
25770
- }
25771
- loadArrayBuffer(url) {
25772
- return fetch(url).then(data => data.arrayBuffer()).then(arrayBuffer => ({
25773
- data: arrayBuffer,
25774
- loadState: "success"
25775
- })).catch(() => ({
25776
- data: null,
25777
- loadState: "fail"
25778
- }));
25779
- }
25780
- loadImage(url) {
25781
- const {
25782
- loadImage: loadImage
25783
- } = this.pkg;
25784
- return loadImage ? loadImage(url).then(image => ({
25785
- loadState: image ? "success" : "fail",
25786
- data: image
25787
- })).catch(() => ({
25788
- loadState: "fail",
25789
- data: null
25790
- })) : Promise.reject(new Error("node-canvas loadImage could not be found!"));
25791
- }
25792
- loadSvg(svgStr) {
25793
- const Resvg = this.pkg.Resvg;
25794
- if (!Resvg) return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));
25795
- const pngData = new Resvg(svgStr).render().asPng();
25796
- return this.loadImage(pngData);
25797
- }
25798
- createCanvas(params) {
25799
- return this.pkg.createCanvas(params.width, params.height);
25800
- }
25801
- releaseCanvas(canvas) {}
25802
- getDevicePixelRatio() {
25803
- return 1;
25804
- }
25805
- getRequestAnimationFrame() {
25806
- return function (callback) {
25807
- return rafBasedSto.call(callback);
25808
- };
25809
- }
25810
- getCancelAnimationFrame() {
25811
- return h => {
25812
- rafBasedSto.clear(h);
25813
- };
25814
- }
25815
- addEventListener(type, listener, options) {}
25816
- removeEventListener(type, listener, options) {}
25817
- getElementById(str) {
25818
- return null;
25819
- }
25820
- getRootElement() {
25821
- return null;
25822
- }
25823
- dispatchEvent(event) {}
25824
- release(...params) {}
25825
- createOffscreenCanvas(params) {}
25826
- }
25827
-
25828
- function bindNodeEnv(container) {
25829
- var _a, _b;
25830
- (null === (_b = (_a = container).isBound) || void 0 === _b ? void 0 : _b.call(_a, NodeEnvContribution)) || (container.bind(NodeEnvContribution).toSelf().inSingletonScope(), container.bind(EnvContribution).toService(NodeEnvContribution));
25831
- }
25832
- function loadNodeEnv(container = getLegacyBindingContext(), loadPicker = !0) {
25833
- loadNodeEnv.__loaded || (loadNodeEnv.__loaded = !0, bindNodeEnv(container), bindNodeCanvasModules(container), bindNodeWindowContribution(container));
25834
- }
25835
- loadNodeEnv.__loaded = !1;
25836
-
25837
25663
  class DefaultMathPickerService extends DefaultPickService {
25838
25664
  constructor(contributions, pickItemInterceptorContributions, pickServiceInterceptorContributions) {
25839
25665
  super(pickItemInterceptorContributions, pickServiceInterceptorContributions), this.contributions = contributions, this.pickItemInterceptorContributions = pickItemInterceptorContributions, this.pickServiceInterceptorContributions = pickServiceInterceptorContributions, this.global.hooks.onSetEnv.tap("math-picker-service", (lastEnv, env, global) => {
@@ -26017,6 +25843,195 @@
26017
25843
  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);
26018
25844
  }
26019
25845
 
25846
+ class NodeWindowHandlerContribution extends BaseWindowHandlerContribution {
25847
+ get container() {
25848
+ return null;
25849
+ }
25850
+ constructor(global = application.global) {
25851
+ super(), this.global = global, this.type = "node";
25852
+ }
25853
+ getTitle() {
25854
+ return "";
25855
+ }
25856
+ getWH() {
25857
+ return {
25858
+ width: this.canvas.displayWidth,
25859
+ height: this.canvas.displayHeight
25860
+ };
25861
+ }
25862
+ getXY() {
25863
+ return {
25864
+ x: 0,
25865
+ y: 0
25866
+ };
25867
+ }
25868
+ createWindow(params) {
25869
+ params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
25870
+ }
25871
+ createWindowByConfig(params) {
25872
+ const nativeCanvas = this.global.createCanvas({
25873
+ width: params.width,
25874
+ height: params.height
25875
+ }),
25876
+ options = {
25877
+ width: params.width,
25878
+ height: params.height,
25879
+ dpr: params.dpr,
25880
+ nativeCanvas: nativeCanvas,
25881
+ id: Generator.GenAutoIncrementId().toString(),
25882
+ canvasControled: !0
25883
+ };
25884
+ this.canvas = new NodeCanvas(options);
25885
+ }
25886
+ createWindowByCanvas(params) {
25887
+ var _a;
25888
+ const canvas = params.canvas,
25889
+ dpr = null !== (_a = params.dpr) && void 0 !== _a ? _a : 1;
25890
+ let width = params.width,
25891
+ height = params.height;
25892
+ null != width && null != height && params.canvasControled || (width = canvas.width / dpr, height = canvas.height / dpr), this.canvas = new NodeCanvas({
25893
+ width: width,
25894
+ height: height,
25895
+ dpr: dpr,
25896
+ nativeCanvas: canvas,
25897
+ canvasControled: params.canvasControled
25898
+ });
25899
+ }
25900
+ releaseWindow() {
25901
+ this.canvas.release();
25902
+ }
25903
+ resizeWindow(width, height) {
25904
+ this.canvas.resize(width, height);
25905
+ }
25906
+ setDpr(dpr) {
25907
+ this.canvas.dpr = dpr;
25908
+ }
25909
+ getContext() {
25910
+ return this.canvas.getContext();
25911
+ }
25912
+ getNativeHandler() {
25913
+ return this.canvas;
25914
+ }
25915
+ getDpr() {
25916
+ return this.canvas.dpr;
25917
+ }
25918
+ getImageBuffer(type = "image/png") {
25919
+ return this.canvas.nativeCanvas.toBuffer(type);
25920
+ }
25921
+ addEventListener(type, listener, options) {}
25922
+ dispatchEvent(event) {
25923
+ return !0;
25924
+ }
25925
+ removeEventListener(type, listener, options) {}
25926
+ getStyle() {}
25927
+ setStyle(style) {}
25928
+ getBoundingClientRect() {
25929
+ return null;
25930
+ }
25931
+ clearViewBox(color) {}
25932
+ }
25933
+ NodeWindowHandlerContribution.env = "node";
25934
+ function bindNodeWindowContribution(container) {
25935
+ var _a, _b;
25936
+ (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);
25937
+ }
25938
+
25939
+ class NodeEnvContribution extends BaseEnvContribution {
25940
+ constructor() {
25941
+ super(...arguments), this.type = "node", this._lastTime = 0, this.supportEvent = !1;
25942
+ }
25943
+ configure(service, pkg) {
25944
+ service.env === this.type && (service.setActiveEnvContribution(this), this.pkg = pkg);
25945
+ }
25946
+ getNodePackage(feature, requiredKey) {
25947
+ 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 }).`);
25948
+ return this.pkg;
25949
+ }
25950
+ getDynamicCanvasCount() {
25951
+ return 0;
25952
+ }
25953
+ getStaticCanvasCount() {
25954
+ return 999;
25955
+ }
25956
+ loadJson(url) {
25957
+ const jsonPromise = fetch(url).then(data => data.json());
25958
+ return jsonPromise.then(json => ({
25959
+ data: json,
25960
+ state: "success"
25961
+ })).catch(() => ({
25962
+ data: null,
25963
+ state: "fail"
25964
+ })), jsonPromise;
25965
+ }
25966
+ loadArrayBuffer(url) {
25967
+ return fetch(url).then(data => data.arrayBuffer()).then(arrayBuffer => ({
25968
+ data: arrayBuffer,
25969
+ loadState: "success"
25970
+ })).catch(() => ({
25971
+ data: null,
25972
+ loadState: "fail"
25973
+ }));
25974
+ }
25975
+ loadImage(url) {
25976
+ const {
25977
+ loadImage: loadImage
25978
+ } = this.getNodePackage("loadImage", "loadImage");
25979
+ return loadImage ? loadImage(url).then(image => ({
25980
+ loadState: image ? "success" : "fail",
25981
+ data: image
25982
+ })).catch(() => ({
25983
+ loadState: "fail",
25984
+ data: null
25985
+ })) : Promise.reject(new Error("node-canvas loadImage could not be found!"));
25986
+ }
25987
+ loadSvg(svgStr) {
25988
+ const Resvg = this.getNodePackage("loadSvg").Resvg;
25989
+ if (!Resvg) return Promise.reject(new Error("@resvg/resvg-js svgParser could not be found!"));
25990
+ const pngData = new Resvg(svgStr).render().asPng();
25991
+ return this.loadImage(pngData);
25992
+ }
25993
+ createCanvas(params) {
25994
+ const {
25995
+ createCanvas: createCanvas
25996
+ } = this.getNodePackage("createCanvas", "createCanvas");
25997
+ return createCanvas(params.width, params.height);
25998
+ }
25999
+ releaseCanvas(canvas) {}
26000
+ getDevicePixelRatio() {
26001
+ return 1;
26002
+ }
26003
+ getRequestAnimationFrame() {
26004
+ return function (callback) {
26005
+ return rafBasedSto.call(callback);
26006
+ };
26007
+ }
26008
+ getCancelAnimationFrame() {
26009
+ return h => {
26010
+ rafBasedSto.clear(h);
26011
+ };
26012
+ }
26013
+ addEventListener(type, listener, options) {}
26014
+ removeEventListener(type, listener, options) {}
26015
+ getElementById(str) {
26016
+ return null;
26017
+ }
26018
+ getRootElement() {
26019
+ return null;
26020
+ }
26021
+ dispatchEvent(event) {}
26022
+ release(...params) {}
26023
+ createOffscreenCanvas(params) {}
26024
+ }
26025
+
26026
+ function bindNodeEnv(container) {
26027
+ var _a, _b;
26028
+ (null === (_b = (_a = container).isBound) || void 0 === _b ? void 0 : _b.call(_a, NodeEnvContribution)) || (container.bind(NodeEnvContribution).toSelf().inSingletonScope(), container.bind(EnvContribution).toService(NodeEnvContribution));
26029
+ }
26030
+ function loadNodeEnv(container = getLegacyBindingContext(), loadPicker = !0) {
26031
+ loadNodeEnv.__loaded || (loadNodeEnv.__loaded = !0, bindNodeEnv(container), bindNodeCanvasModules(container), bindNodeWindowContribution(container));
26032
+ }
26033
+ loadNodeEnv.__loaded = !1;
26034
+
26020
26035
  var lib$1 = {};
26021
26036
 
26022
26037
  var gif = {};
@@ -26808,17 +26823,46 @@
26808
26823
  });
26809
26824
  }), bindGifImageRenderContribution(bindingContext), refreshRuntimeInstallerContributions();
26810
26825
  }
26811
- function installBrowserEnvToApp(app) {
26826
+ function createForcedEnvParams(envParams) {
26827
+ if (null != envParams && ("object" == typeof envParams || "function" == typeof envParams)) {
26828
+ const forcedEnvParams = Object.create(envParams);
26829
+ return forcedEnvParams.force = !0, forcedEnvParams;
26830
+ }
26831
+ return {
26832
+ force: !0
26833
+ };
26834
+ }
26835
+ function activateRuntimeEnv(env, {
26836
+ envParams: envParams,
26837
+ force = !1
26838
+ } = {}) {
26839
+ getRuntimeInstallerGlobal().setEnv(env, force ? createForcedEnvParams(envParams) : envParams);
26840
+ }
26841
+ function installRuntimeEnvToApp(app, env, {
26842
+ bindEnv: bindEnv,
26843
+ bindCanvasModules: bindCanvasModules,
26844
+ bindWindowContribution: bindWindowContribution
26845
+ }, envParams) {
26812
26846
  configureRuntimeApplicationForApp(app);
26813
26847
  const bindingContext = getRuntimeInstallerBindingContext();
26814
- bindBrowserEnv(bindingContext), bindBrowserCanvasModules(bindingContext), bindBrowserWindowContribution(bindingContext), refreshRuntimeInstallerContributions(), getRuntimeInstallerGlobal().setEnv("browser", {
26848
+ bindEnv(bindingContext), bindCanvasModules(bindingContext), bindWindowContribution(bindingContext), refreshRuntimeInstallerContributions(), activateRuntimeEnv(env, {
26849
+ envParams: envParams,
26815
26850
  force: !0
26816
26851
  });
26817
26852
  }
26818
- function installNodeEnvToApp(app) {
26819
- configureRuntimeApplicationForApp(app);
26820
- const bindingContext = getRuntimeInstallerBindingContext();
26821
- bindNodeEnv(bindingContext), bindNodeCanvasModules(bindingContext), bindNodeWindowContribution(bindingContext), refreshRuntimeInstallerContributions();
26853
+ function installBrowserEnvToApp(app, envParams) {
26854
+ installRuntimeEnvToApp(app, "browser", {
26855
+ bindEnv: bindBrowserEnv,
26856
+ bindCanvasModules: bindBrowserCanvasModules,
26857
+ bindWindowContribution: bindBrowserWindowContribution
26858
+ }, envParams);
26859
+ }
26860
+ function installNodeEnvToApp(app, envParams) {
26861
+ installRuntimeEnvToApp(app, "node", {
26862
+ bindEnv: bindNodeEnv,
26863
+ bindCanvasModules: bindNodeCanvasModules,
26864
+ bindWindowContribution: bindNodeWindowContribution
26865
+ }, envParams);
26822
26866
  }
26823
26867
  function installDefaultGraphicsToApp(app) {
26824
26868
  configureRuntimeApplicationForApp(app), ensureDefaultGraphicsInstalled(), installRuntimeDrawContributionsToApp(app), installRuntimeGraphicRenderersToApp(app);
@@ -26918,7 +26962,7 @@
26918
26962
  return graphicCreator$1.text(params ? params.attribute : {});
26919
26963
  }
26920
26964
 
26921
- var __rest$4 = undefined && undefined.__rest || function (s, e) {
26965
+ var __rest$6 = undefined && undefined.__rest || function (s, e) {
26922
26966
  var t = {};
26923
26967
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
26924
26968
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -26942,7 +26986,7 @@
26942
26986
  animation: animation,
26943
26987
  timeline: timeline
26944
26988
  } = _a,
26945
- props = __rest$4(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
26989
+ props = __rest$6(_a, ["key", "name", "id", "attribute", "stateProxy", "animation", "timeline"]);
26946
26990
  let c = type;
26947
26991
  isString$2(type) && (c = graphicCreator$1[type]);
26948
26992
  const childrenList = [];
@@ -27832,7 +27876,7 @@
27832
27876
  registerGroup(), registerRect(), registerSymbol(), registerRichtext(), registerText();
27833
27877
  }
27834
27878
 
27835
- var __rest$3 = undefined && undefined.__rest || function (s, e) {
27879
+ var __rest$5 = undefined && undefined.__rest || function (s, e) {
27836
27880
  var t = {};
27837
27881
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
27838
27882
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -27886,7 +27930,7 @@
27886
27930
  const {
27887
27931
  visible: shapeVisible
27888
27932
  } = shape,
27889
- shapeStyle = __rest$3(shape, ["visible"]);
27933
+ shapeStyle = __rest$5(shape, ["visible"]);
27890
27934
  if (isBoolean$2(shapeVisible)) {
27891
27935
  const size = (null == shapeStyle ? void 0 : shapeStyle.size) || 10,
27892
27936
  maxSize = isNumber$3(size) ? size : Math.max(size[0], size[1]);
@@ -27987,7 +28031,7 @@
27987
28031
  const {
27988
28032
  visible: bgVisible
27989
28033
  } = panel,
27990
- backgroundStyle = __rest$3(panel, ["visible"]);
28034
+ backgroundStyle = __rest$5(panel, ["visible"]);
27991
28035
  if (visible && isBoolean$2(bgVisible)) {
27992
28036
  const bgRect = this.createOrUpdateChild("tag-panel", Object.assign(Object.assign({}, backgroundStyle), {
27993
28037
  visible: bgVisible && !!text,
@@ -28069,7 +28113,7 @@
28069
28113
  merge(theme$2.poptip, DEFAULT_THEME, defaultPoptipTheme);
28070
28114
  }
28071
28115
 
28072
- var __rest$2 = undefined && undefined.__rest || function (s, e) {
28116
+ var __rest$4 = undefined && undefined.__rest || function (s, e) {
28073
28117
  var t = {};
28074
28118
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
28075
28119
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -28178,7 +28222,7 @@
28178
28222
  visible: bgVisible,
28179
28223
  square: square
28180
28224
  } = panel,
28181
- backgroundStyle = __rest$2(panel, ["visible", "square"]);
28225
+ backgroundStyle = __rest$4(panel, ["visible", "square"]);
28182
28226
  if (square) {
28183
28227
  const maxWH = max(popTipWidth, poptipHeight);
28184
28228
  popTipWidth = maxWH;
@@ -30841,7 +30885,7 @@
30841
30885
  AnimateExecutor.builtInAnimateMap[name] = animate;
30842
30886
  }
30843
30887
  constructor(target) {
30844
- this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._target = target;
30888
+ this._animates = [], this._startCallbacks = [], this._endCallbacks = [], this._started = !1, this._activeCount = 0, this._activeConfigList = null, this._target = target;
30845
30889
  }
30846
30890
  get started() {
30847
30891
  return this._started;
@@ -30950,7 +30994,15 @@
30950
30994
  return parsedParams;
30951
30995
  }
30952
30996
  execute(params) {
30953
- Array.isArray(params) ? params.forEach(param => this._execute(param)) : this._execute(params);
30997
+ if (Array.isArray(params)) {
30998
+ const prevConfigList = this._activeConfigList;
30999
+ this._activeConfigList = params;
31000
+ try {
31001
+ params.forEach(param => this._execute(param));
31002
+ } finally {
31003
+ this._activeConfigList = prevConfigList;
31004
+ }
31005
+ } else this._execute(params);
30954
31006
  }
30955
31007
  _execute(params) {
30956
31008
  if (params.selfOnly) return this._executeItem(params, this._target, 0, 1);
@@ -30976,6 +31028,7 @@
30976
31028
  }
30977
31029
  executeTypeConfigItem(params, graphic, index, count) {
30978
31030
  var _a, _b, _c, _d, _e, _f, _g, _h;
31031
+ this.syncFinalAttrsFromContext(graphic);
30979
31032
  const {
30980
31033
  type = "fromTo",
30981
31034
  channel: channel,
@@ -31006,7 +31059,7 @@
31006
31059
  props = params.to,
31007
31060
  from = params.from;
31008
31061
  const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
31009
- 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);
31062
+ 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);
31010
31063
  let totalDelay = 0;
31011
31064
  oneByOneDelay && (totalDelay = oneByOneDelay * (count - index - 1));
31012
31065
  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;
@@ -31028,6 +31081,7 @@
31028
31081
  }
31029
31082
  executeTimelineItem(params, graphic, index, count) {
31030
31083
  var _a, _b, _c, _d;
31084
+ this.syncFinalAttrsFromContext(graphic);
31031
31085
  const {
31032
31086
  timeSlices: timeSlices,
31033
31087
  startTime = 0,
@@ -31070,7 +31124,7 @@
31070
31124
  props = effect.to,
31071
31125
  from = effect.from;
31072
31126
  const commitAttrOutChannel = this.shouldCommitAttrOutChannel(type);
31073
- 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);
31127
+ 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);
31074
31128
  const custom = null !== (_a = effect.custom) && void 0 !== _a ? _a : AnimateExecutor.builtInAnimateMap[type],
31075
31129
  customType = effect.custom ? effect.customType : getCustomType(custom);
31076
31130
  this._handleRunAnimate(animate, custom, customType, from, props, duration, easing, customParameters, controlOptions, options, type, graphic);
@@ -31091,7 +31145,7 @@
31091
31145
  const customAnimate = new CustomAnimateConstructor(from, props, duration, easing, customParams);
31092
31146
  animate.play(customAnimate);
31093
31147
  }
31094
- createPropsFromChannel(channel, graphic, includeAttrOutChannel = !0) {
31148
+ createPropsFromChannel(channel, graphic, includeAttrOutChannel = !0, excludedAttrOutKeys) {
31095
31149
  var _a;
31096
31150
  const props = {};
31097
31151
  let from = null;
@@ -31112,7 +31166,7 @@
31112
31166
  }), diffAttrs && attrOutChannel) for (const key in diffAttrs) {
31113
31167
  const value = diffAttrs[key];
31114
31168
  if (void 0 === value) continue;
31115
- props.hasOwnProperty(key) || !!(null == from ? void 0 : from.hasOwnProperty(key)) || (attrOutChannel[key] = value, hasAttrs = !0);
31169
+ props.hasOwnProperty(key) || !!(null == from ? void 0 : from.hasOwnProperty(key)) || (null == excludedAttrOutKeys ? void 0 : excludedAttrOutKeys[key]) || (attrOutChannel[key] = value, hasAttrs = !0);
31116
31170
  }
31117
31171
  return {
31118
31172
  from: from,
@@ -31124,8 +31178,78 @@
31124
31178
  var _a, _b;
31125
31179
  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;
31126
31180
  }
31181
+ getAttrOutChannelExcludedKeys(graphic) {
31182
+ var _a;
31183
+ const configList = this._activeConfigList,
31184
+ diffAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.diffAttrs;
31185
+ if (!configList || configList.length <= 1 || !diffAttrs) return null;
31186
+ let excludedKeys = null;
31187
+ for (let i = 0; i < configList.length; i++) excludedKeys = this.collectAnimatedDiffKeys(configList[i], graphic, diffAttrs, excludedKeys);
31188
+ return excludedKeys;
31189
+ }
31190
+ collectAnimatedDiffKeys(config, graphic, diffAttrs, keys) {
31191
+ if ("timeSlices" in config) {
31192
+ const slices = Array.isArray(config.timeSlices) ? config.timeSlices : [config.timeSlices];
31193
+ for (let i = 0; i < slices.length; i++) {
31194
+ const effects = Array.isArray(slices[i].effects) ? slices[i].effects : [slices[i].effects];
31195
+ for (let j = 0; j < effects.length; j++) keys = this.collectAnimatedDiffKeysFromEffect(effects[j], graphic, diffAttrs, keys);
31196
+ }
31197
+ return keys;
31198
+ }
31199
+ return this.collectAnimatedDiffKeysFromEffect(config, graphic, diffAttrs, keys);
31200
+ }
31201
+ collectAnimatedDiffKeysFromEffect(effect, graphic, diffAttrs, keys) {
31202
+ var _a;
31203
+ if ("update" === (null !== (_a = effect.type) && void 0 !== _a ? _a : "fromTo")) {
31204
+ const options = this.resolveValue(effect.options, graphic, void 0),
31205
+ excludeChannels = null == options ? void 0 : options.excludeChannels;
31206
+ 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);
31207
+ return keys;
31208
+ }
31209
+ return keys = this.collectExplicitAnimatedKeys(effect.to, diffAttrs, keys), keys = this.collectExplicitAnimatedKeys(effect.from, diffAttrs, keys), this.collectChannelAnimatedKeys(effect.channel, diffAttrs, keys);
31210
+ }
31211
+ collectExplicitAnimatedKeys(attrs, diffAttrs, keys) {
31212
+ if (!attrs) return keys;
31213
+ 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);
31214
+ return keys;
31215
+ }
31216
+ collectChannelAnimatedKeys(channel, diffAttrs, keys) {
31217
+ if (!channel) return keys;
31218
+ if (Array.isArray(channel)) {
31219
+ for (let i = 0; i < channel.length; i++) {
31220
+ const key = channel[i];
31221
+ Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key] && (null != keys || (keys = {}), keys[key] = !0);
31222
+ }
31223
+ return keys;
31224
+ }
31225
+ for (const key in channel) if (Object.prototype.hasOwnProperty.call(channel, key) && Object.prototype.hasOwnProperty.call(diffAttrs, key) && void 0 !== diffAttrs[key]) {
31226
+ const config = channel[key];
31227
+ void 0 === config.to && void 0 === config.from || (null != keys || (keys = {}), keys[key] = !0);
31228
+ }
31229
+ return keys;
31230
+ }
31231
+ includesChannel(channels, key) {
31232
+ if (!(null == channels ? void 0 : channels.length)) return !1;
31233
+ for (let i = 0; i < channels.length; i++) if (channels[i] === key) return !0;
31234
+ return !1;
31235
+ }
31236
+ syncFinalAttrsFromContext(graphic) {
31237
+ var _a;
31238
+ const finalAttrs = null === (_a = graphic.context) || void 0 === _a ? void 0 : _a.finalAttrs,
31239
+ setFinalAttributes = graphic.setFinalAttributes;
31240
+ finalAttrs && "function" == typeof setFinalAttributes && setFinalAttributes.call(graphic, finalAttrs);
31241
+ }
31127
31242
  executeItem(params, graphic, index = 0, count = 1) {
31128
- return Array.isArray(params) ? params.map(param => this._executeItem(param, graphic, index, count)).filter(Boolean) : [this._executeItem(params, graphic, index, count)].filter(Boolean);
31243
+ if (Array.isArray(params)) {
31244
+ const prevConfigList = this._activeConfigList;
31245
+ this._activeConfigList = params;
31246
+ try {
31247
+ return params.map(param => this._executeItem(param, graphic, index, count)).filter(Boolean);
31248
+ } finally {
31249
+ this._activeConfigList = prevConfigList;
31250
+ }
31251
+ }
31252
+ return [this._executeItem(params, graphic, index, count)].filter(Boolean);
31129
31253
  }
31130
31254
  _executeItem(params, graphic, index = 0, count = 1) {
31131
31255
  if (!graphic) return null;
@@ -31419,9 +31543,7 @@
31419
31543
  return this.initAnimateExecutor(), this._animateExecutor.execute(config), this;
31420
31544
  }
31421
31545
  executeAnimations(configs) {
31422
- return this.initAnimateExecutor(), configs.forEach(config => {
31423
- this._animateExecutor.execute(config);
31424
- }), this;
31546
+ return this.initAnimateExecutor(), this._animateExecutor.execute(configs), this;
31425
31547
  }
31426
31548
  getFinalAttribute() {
31427
31549
  return this.finalAttribute;
@@ -31644,8 +31766,9 @@
31644
31766
  return commitAttrs;
31645
31767
  }
31646
31768
  function commitAnimationStaticAttrs(target, keys, animate, fallbackAttrs) {
31769
+ var _a, _b;
31647
31770
  const commitAttrs = buildAnimationStaticCommitAttrs(target, keys, animate, fallbackAttrs);
31648
- return !!commitAttrs && (target.setAttributes(commitAttrs, !1, {
31771
+ return !!commitAttrs && (null === (_b = (_a = target).setFinalAttributes) || void 0 === _b || _b.call(_a, commitAttrs), target.setAttributes(commitAttrs, !1, {
31649
31772
  type: AttributeUpdateType.ANIMATE_END
31650
31773
  }), !0);
31651
31774
  }
@@ -35764,7 +35887,7 @@
35764
35887
  loadBasicAxis(), registerRect();
35765
35888
  }
35766
35889
 
35767
- var __rest$1 = undefined && undefined.__rest || function (s, e) {
35890
+ var __rest$3 = undefined && undefined.__rest || function (s, e) {
35768
35891
  var t = {};
35769
35892
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
35770
35893
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -35871,7 +35994,7 @@
35871
35994
  style: style,
35872
35995
  state: state
35873
35996
  } = _a,
35874
- restLineAttrs = __rest$1(_a, ["startSymbol", "endSymbol", "style", "state"]),
35997
+ restLineAttrs = __rest$3(_a, ["startSymbol", "endSymbol", "style", "state"]),
35875
35998
  lineAttrs = Object.assign({
35876
35999
  startSymbol: startSymbol,
35877
36000
  endSymbol: endSymbol,
@@ -35912,7 +36035,7 @@
35912
36035
  state = {},
35913
36036
  maxWidth: maxWidth
35914
36037
  } = _d,
35915
- restAttrs = __rest$1(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
36038
+ restAttrs = __rest$3(_d, ["position", "space", "textStyle", "autoRotate", "shape", "background", "state", "maxWidth"]);
35916
36039
  let percent = .5;
35917
36040
  "start" === position ? percent = 0 : "end" === position && (percent = 1);
35918
36041
  const {
@@ -36014,7 +36137,7 @@
36014
36137
  text: textContent = "",
36015
36138
  maxWidth: maxWidth
36016
36139
  } = _c,
36017
- restAttrs = __rest$1(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
36140
+ restAttrs = __rest$3(_c, ["position", "space", "autoRotate", "textStyle", "background", "formatMethod", "text", "maxWidth"]),
36018
36141
  point = this.getTickCoord(0);
36019
36142
  "bottom" === orient || "top" === orient ? point.x = position : point.y = position;
36020
36143
  let tickLength = 0;
@@ -37877,7 +38000,7 @@
37877
38000
  loadBaseLegend(), loadSliderComponent(), registerPath();
37878
38001
  }
37879
38002
 
37880
- var __rest = undefined && undefined.__rest || function (s, e) {
38003
+ var __rest$2 = undefined && undefined.__rest || function (s, e) {
37881
38004
  var t = {};
37882
38005
  for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
37883
38006
  if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
@@ -38396,7 +38519,7 @@
38396
38519
  space: pagerSpace = DEFAULT_PAGER_SPACE,
38397
38520
  defaultCurrent = 1
38398
38521
  } = pager,
38399
- compStyle = __rest(pager, ["space", "defaultCurrent"]),
38522
+ compStyle = __rest$2(pager, ["space", "defaultCurrent"]),
38400
38523
  {
38401
38524
  isHorizontal: isHorizontal
38402
38525
  } = this._itemContext,
@@ -38466,7 +38589,7 @@
38466
38589
  space: pagerSpace = DEFAULT_PAGER_SPACE,
38467
38590
  defaultCurrent = 1
38468
38591
  } = pager,
38469
- compStyle = __rest(pager, ["space", "defaultCurrent"]),
38592
+ compStyle = __rest$2(pager, ["space", "defaultCurrent"]),
38470
38593
  {
38471
38594
  isHorizontal: isHorizontal
38472
38595
  } = this._itemContext,
@@ -40268,6 +40391,8 @@
40268
40391
  };
40269
40392
 
40270
40393
  const BOOTSTRAP_STATE = Symbol.for("vrender.bootstrap.state"),
40394
+ installBrowserEnvToAppWithParams = installBrowserEnvToApp,
40395
+ installNodeEnvToAppWithParams = installNodeEnvToApp,
40271
40396
  pluginRegistrations = [registerFlexLayoutPlugin, registerViewTransform3dPlugin, registerHtmlAttributePlugin, registerReactAttributePlugin, registerDirectionalLight, registerOrthoCamera],
40272
40397
  animationRegistrations = [registerCustomAnimate, registerAnimate],
40273
40398
  legacyGraphicRegistrations = [registerArc, registerArc3d, registerArea, registerCircle, registerGlyph, registerGifImage, registerGroup, registerImage, registerLine, registerPath, registerPolygon, registerPyramid3d, registerRect, registerRect3d, registerRichtext, registerShadowRoot, registerSymbol, registerText, registerWrapText, registerStar];
@@ -40307,25 +40432,66 @@
40307
40432
  seen.has(key) || (seen.add(key), app.registry.picker.register(key, picker));
40308
40433
  });
40309
40434
  }
40310
- function bootstrapVRenderBrowserApp(app) {
40311
- return ensureBootstrap(app, "browser") ? (installBrowserEnvToApp(app), installDefaultGraphicsToApp(app), installBrowserPickersToApp(app), loadBrowserEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, CanvasPickerContribution), registerDefaultPipeline(), app) : app;
40435
+ function bootstrapVRenderBrowserApp(app, envParams) {
40436
+ 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;
40312
40437
  }
40313
- function bootstrapVRenderNodeApp(app) {
40314
- return ensureBootstrap(app, "node") ? (installNodeEnvToApp(app), installDefaultGraphicsToApp(app), installNodePickersToApp(app), loadNodeEnv(), legacyGraphicRegistrations.forEach(register => register()), syncLegacyRenderersToApp$1(app), syncLegacyPickersToApp(app, MathPickerContribution), registerDefaultPipeline(), app) : app;
40438
+ function resolveNodeEnvParams(envParams) {
40439
+ return null != envParams ? envParams : "node" === (null == vglobal ? void 0 : vglobal.env) ? vglobal.envParams : void 0;
40440
+ }
40441
+ function bootstrapVRenderNodeApp(app, envParams) {
40442
+ if (!ensureBootstrap(app, "node")) return app;
40443
+ const resolvedEnvParams = resolveNodeEnvParams(envParams);
40444
+ 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;
40315
40445
  }
40316
40446
 
40447
+ var __rest$1 = undefined && undefined.__rest || function (s, e) {
40448
+ var t = {};
40449
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40450
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
40451
+ var i = 0;
40452
+ 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]]);
40453
+ }
40454
+ return t;
40455
+ };
40317
40456
  const {
40318
40457
  createBrowserApp: createBrowserApp
40319
40458
  } = VRenderCore;
40320
40459
  function createBrowserVRenderApp(options = {}) {
40321
- return bootstrapVRenderBrowserApp(createBrowserApp(options));
40460
+ const {
40461
+ envParams: envParams
40462
+ } = options,
40463
+ entryOptions = __rest$1(options, ["envParams"]);
40464
+ return bootstrapVRenderBrowserApp(createBrowserApp(entryOptions), envParams);
40322
40465
  }
40323
40466
 
40467
+ undefined && undefined.__rest || function (s, e) {
40468
+ var t = {};
40469
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40470
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
40471
+ var i = 0;
40472
+ 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]]);
40473
+ }
40474
+ return t;
40475
+ };
40476
+
40477
+ var __rest = undefined && undefined.__rest || function (s, e) {
40478
+ var t = {};
40479
+ for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
40480
+ if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
40481
+ var i = 0;
40482
+ 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]]);
40483
+ }
40484
+ return t;
40485
+ };
40324
40486
  const {
40325
40487
  createNodeApp: createNodeApp
40326
40488
  } = VRenderCore;
40327
40489
  function createNodeVRenderApp(options = {}) {
40328
- return bootstrapVRenderNodeApp(createNodeApp(options));
40490
+ const {
40491
+ envParams: envParams
40492
+ } = options,
40493
+ entryOptions = __rest(options, ["envParams"]);
40494
+ return bootstrapVRenderNodeApp(createNodeApp(entryOptions), envParams);
40329
40495
  }
40330
40496
 
40331
40497
  class Env {