@lvce-editor/status-bar-worker 1.4.0 → 1.5.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.
@@ -1014,6 +1014,12 @@ const handleClick = (state, name) => {
1014
1014
  return state;
1015
1015
  };
1016
1016
 
1017
+ const initializeRendererProcess = async () => {};
1018
+
1019
+ const initialize = async () => {
1020
+ await initializeRendererProcess();
1021
+ };
1022
+
1017
1023
  const getIndex = (items, item) => {
1018
1024
  for (let i = 0; i < items.length; i++) {
1019
1025
  if (items[i].name === item.name) {
@@ -1332,6 +1338,13 @@ const renderEventListeners = () => {
1332
1338
  }];
1333
1339
  };
1334
1340
 
1341
+ const resize = (state, dimensions) => {
1342
+ return {
1343
+ ...state,
1344
+ ...dimensions
1345
+ };
1346
+ };
1347
+
1335
1348
  const saveState = uid => {
1336
1349
  number(uid);
1337
1350
  const value = get$2(uid);
@@ -1352,12 +1365,14 @@ const commandMap = {
1352
1365
  'StatusBar.create': create$1,
1353
1366
  'StatusBar.diff2': diff2,
1354
1367
  'StatusBar.handleClick': wrapCommand(handleClick),
1368
+ 'StatusBar.initialize': initialize,
1355
1369
  'StatusBar.itemLeftUpdate': wrapCommand(itemLeftUpdate),
1356
1370
  'StatusBar.itemRightCreate': wrapCommand(itemRightCreate),
1357
1371
  'StatusBar.itemRightUpdate': wrapCommand(itemRightUpdate),
1358
1372
  'StatusBar.loadContent': wrapCommand(loadContent),
1359
1373
  'StatusBar.render2': render2,
1360
1374
  'StatusBar.renderEventListeners': renderEventListeners,
1375
+ 'StatusBar.resize': wrapCommand(resize),
1361
1376
  'StatusBar.saveState': saveState,
1362
1377
  'StatusBar.terminate': terminate
1363
1378
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/status-bar-worker",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Status Bar Worker",
5
5
  "repository": {
6
6
  "type": "git",