@lvce-editor/renderer-process 21.9.0 → 21.10.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.
- package/dist/rendererProcessMain.js +12 -0
- package/package.json +1 -1
|
@@ -9208,6 +9208,14 @@ const setPatches = (uid, patches) => {
|
|
|
9208
9208
|
}
|
|
9209
9209
|
applyPatch($Viewlet, patches, {}, uid);
|
|
9210
9210
|
};
|
|
9211
|
+
const move = (uid, selector, target) => {
|
|
9212
|
+
const $Source = document.querySelector(selector);
|
|
9213
|
+
// setTimeout(() => {
|
|
9214
|
+
const $Target = document.querySelector(target);
|
|
9215
|
+
$Target.moveBefore($Source, null);
|
|
9216
|
+
// }, 2000)
|
|
9217
|
+
// console.log({ selector, target })
|
|
9218
|
+
};
|
|
9211
9219
|
|
|
9212
9220
|
// TODO this code is bad
|
|
9213
9221
|
const sendMultiple = commands => {
|
|
@@ -9291,6 +9299,10 @@ const sendMultiple = commands => {
|
|
|
9291
9299
|
handleError$1(viewletId, method, ...args);
|
|
9292
9300
|
break;
|
|
9293
9301
|
}
|
|
9302
|
+
case 'Viewlet.move':
|
|
9303
|
+
// @ts-ignore
|
|
9304
|
+
move(viewletId, method, ...args);
|
|
9305
|
+
break;
|
|
9294
9306
|
case 'Viewlet.registerEventListeners':
|
|
9295
9307
|
// @ts-ignore
|
|
9296
9308
|
registerEventListeners(viewletId, method, ...args);
|