@lvce-editor/renderer-process 10.6.0 → 10.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1695,7 +1695,7 @@ const set$5 = setComponentUid;
1695
1695
  const get$6 = getComponentUid;
1696
1696
  const fromEvent = getComponentUidFromEvent;
1697
1697
 
1698
- const setBounds$7 = ($Element, x, y, width, height) => {
1698
+ const setBounds$8 = ($Element, x, y, width, height) => {
1699
1699
  $Element.style.top = `${y}px`;
1700
1700
  $Element.style.left = `${x}px`;
1701
1701
  $Element.style.width = `${width}px`;
@@ -2346,11 +2346,11 @@ const handleError$8 = (state, error) => {
2346
2346
  } = state;
2347
2347
  $Viewlet.textContent = `${error}`;
2348
2348
  };
2349
- const setBounds$6 = (state, x, y, width, height) => {
2349
+ const setBounds$7 = (state, x, y, width, height) => {
2350
2350
  const {
2351
2351
  $Viewlet
2352
2352
  } = state;
2353
- setBounds$7($Viewlet, x, y, width, height);
2353
+ setBounds$8($Viewlet, x, y, width, height);
2354
2354
  };
2355
2355
 
2356
2356
  const ViewletEditorCompletion = {
@@ -2359,7 +2359,7 @@ const ViewletEditorCompletion = {
2359
2359
  create: create$J,
2360
2360
  dispose: dispose$k,
2361
2361
  handleError: handleError$8,
2362
- setBounds: setBounds$6,
2362
+ setBounds: setBounds$7,
2363
2363
  setContentHeight,
2364
2364
  setDom: setDom$a,
2365
2365
  setNegativeMargin,
@@ -2408,11 +2408,11 @@ const appendWidget$1 = state => {
2408
2408
  const dispose$j = state => {
2409
2409
  remove$2(state.$Viewlet);
2410
2410
  };
2411
- const setBounds$5 = (state, x, y, width, height) => {
2411
+ const setBounds$6 = (state, x, y, width, height) => {
2412
2412
  const {
2413
2413
  $Viewlet
2414
2414
  } = state;
2415
- setBounds$7($Viewlet, x, y, width, height);
2415
+ setBounds$8($Viewlet, x, y, width, height);
2416
2416
  };
2417
2417
 
2418
2418
  const ViewletEditorCompletionDetails = {
@@ -2422,7 +2422,7 @@ const ViewletEditorCompletionDetails = {
2422
2422
  attachEvents: attachEvents$a,
2423
2423
  create: create$I,
2424
2424
  dispose: dispose$j,
2425
- setBounds: setBounds$5,
2425
+ setBounds: setBounds$6,
2426
2426
  setDom: setDom$9
2427
2427
  };
2428
2428
 
@@ -2534,12 +2534,21 @@ const setDom$8 = (state, dom) => {
2534
2534
  } = state;
2535
2535
  rememberFocus($Viewlet, dom, ViewletFindWidgetEvents, 0);
2536
2536
  };
2537
+ const setBounds$5 = (state, x, y, width, height) => {
2538
+ const {
2539
+ $Viewlet
2540
+ } = state;
2541
+ setBounds$8($Viewlet, x, y, width, height);
2542
+ };
2543
+ const Events$c = ViewletFindWidgetEvents;
2537
2544
 
2538
2545
  const ViewletFindWidget = {
2539
2546
  __proto__: null,
2547
+ Events: Events$c,
2540
2548
  appendWidget,
2541
2549
  create: create$H,
2542
2550
  focus: focus$i,
2551
+ setBounds: setBounds$5,
2543
2552
  setDom: setDom$8,
2544
2553
  setValue: setValue$4
2545
2554
  };
@@ -5756,7 +5765,7 @@ const isSpecial = id => {
5756
5765
  const createPlaceholder = (viewletId, parentId, top, left, width, height) => {
5757
5766
  const $PlaceHolder = document.createElement('div');
5758
5767
  $PlaceHolder.className = `Viewlet ${viewletId}`;
5759
- setBounds$7($PlaceHolder, left, top, width, height);
5768
+ setBounds$8($PlaceHolder, left, top, width, height);
5760
5769
  if (isSpecial(viewletId)) {
5761
5770
  $PlaceHolder.id = viewletId;
5762
5771
  }
@@ -6067,7 +6076,7 @@ const setBounds$4 = (id, left, top, width, height) => {
6067
6076
  return;
6068
6077
  }
6069
6078
  const $Viewlet = instance.state.$Viewlet;
6070
- setBounds$7($Viewlet, left, top, width, height);
6079
+ setBounds$8($Viewlet, left, top, width, height);
6071
6080
  };
6072
6081
 
6073
6082
  const name$8 = 'Viewlet';
@@ -6815,7 +6824,7 @@ const setBounds$3 = (state, x, y, width, height) => {
6815
6824
  const {
6816
6825
  $Viewlet
6817
6826
  } = state;
6818
- setBounds$7($Viewlet, x, y, width, height);
6827
+ setBounds$8($Viewlet, x, y, width, height);
6819
6828
  };
6820
6829
 
6821
6830
  const ViewletEditorError = {
@@ -7656,7 +7665,7 @@ const setBounds$1 = (state, x, y, width, height) => {
7656
7665
  const {
7657
7666
  $Viewlet
7658
7667
  } = state;
7659
- setBounds$7($Viewlet, x, y, width, height);
7668
+ setBounds$8($Viewlet, x, y, width, height);
7660
7669
  };
7661
7670
 
7662
7671
  const ViewletEditorWidgetError = {
@@ -8998,9 +9007,9 @@ const setSashes = (state, sashSideBar, sashPanel) => {
8998
9007
  $SashSideBar,
8999
9008
  $SashPanel
9000
9009
  } = state;
9001
- setBounds$7($SashSideBar, sashSideBar.x, sashSideBar.y, sashSideBar.width, sashSideBar.height);
9010
+ setBounds$8($SashSideBar, sashSideBar.x, sashSideBar.y, sashSideBar.width, sashSideBar.height);
9002
9011
  $SashSideBar.classList.toggle('SashActive', sashSideBar.active);
9003
- setBounds$7($SashPanel, sashPanel.x, sashPanel.y, sashPanel.width, sashPanel.height);
9012
+ setBounds$8($SashPanel, sashPanel.x, sashPanel.y, sashPanel.width, sashPanel.height);
9004
9013
  $SashPanel.classList.toggle('SashActive', sashPanel.active);
9005
9014
  };
9006
9015
 
@@ -9113,7 +9122,7 @@ const setDragOverlay = (state, visible, x, y, width, height) => {
9113
9122
  const {
9114
9123
  $DragOverlay
9115
9124
  } = state;
9116
- setBounds$7($DragOverlay, x, y, width, height);
9125
+ setBounds$8($DragOverlay, x, y, width, height);
9117
9126
  if (!hasOverlay) {
9118
9127
  document.body.append($DragOverlay);
9119
9128
  }
@@ -11056,7 +11065,7 @@ const setMenus = (state, changes, uid) => {
11056
11065
  level,
11057
11066
  focusedIndex
11058
11067
  } = menu;
11059
- setBounds$7($Menu, x, y, width, height);
11068
+ setBounds$8($Menu, x, y, width, height);
11060
11069
  renderInto($Menu, dom);
11061
11070
  $Menu.id = `Menu-${level}`;
11062
11071
  append$1($Menu);
@@ -11082,7 +11091,7 @@ const setMenus = (state, changes, uid) => {
11082
11091
  focusedIndex
11083
11092
  } = menu;
11084
11093
  const $Menu = $$Menus[level];
11085
- setBounds$7($Menu, x, y, width, height);
11094
+ setBounds$8($Menu, x, y, width, height);
11086
11095
  renderInto($Menu, dom);
11087
11096
  if (level === newLength - 1) {
11088
11097
  if (focusedIndex === -1) {
@@ -11531,7 +11540,7 @@ const setPort = (state, portId, origin) => {
11531
11540
  };
11532
11541
  const setPosition = (state, id, x, y, width, height) => {
11533
11542
  const $Iframe = get(id);
11534
- setBounds$7($Iframe, x, y, width, height);
11543
+ setBounds$8($Iframe, x, y, width, height);
11535
11544
  };
11536
11545
 
11537
11546
  const ViewletWebView = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.6.0",
3
+ "version": "10.7.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",