@lvce-editor/embeds-worker 4.15.0 → 4.15.2
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/embedsWorkerMain.js +14 -0
- package/package.json +1 -1
package/dist/embedsWorkerMain.js
CHANGED
|
@@ -1083,6 +1083,9 @@ const setIframeSrc = async (id, iframeSrc) => {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
};
|
|
1086
|
+
const setAudioMuted = (id, muted) => {
|
|
1087
|
+
return invokeAny$1('ElectronWebContentsView.setAudioMuted', id, muted);
|
|
1088
|
+
};
|
|
1086
1089
|
const focus = id => {
|
|
1087
1090
|
return invoke$1('ElectronWebContentsView.focus', id);
|
|
1088
1091
|
};
|
|
@@ -1191,6 +1194,14 @@ const setFallthroughKeyBindings = (id, fallthroughKeybindings) => {
|
|
|
1191
1194
|
return invokeAny$1('ElectronWebContentsView.setFallthroughKeyBindings', id, fallthroughKeybindings);
|
|
1192
1195
|
};
|
|
1193
1196
|
|
|
1197
|
+
const setZoomLevel = (id, zoomLevel) => {
|
|
1198
|
+
return invokeAny$1('ElectronWebContentsView.setZoomLevel', id, zoomLevel);
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
const toggleDevTools = id => {
|
|
1202
|
+
return invokeAny$1('ElectronWebContentsView.toggleDevTools', id);
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1194
1205
|
const commandMap = {
|
|
1195
1206
|
'ElectronWebContentsView.acceptLogin': acceptLogin,
|
|
1196
1207
|
'ElectronWebContentsView.backward': backward,
|
|
@@ -1220,9 +1231,12 @@ const commandMap = {
|
|
|
1220
1231
|
'ElectronWebContentsView.openDevtools': openDevtools,
|
|
1221
1232
|
'ElectronWebContentsView.reload': reload,
|
|
1222
1233
|
'ElectronWebContentsView.resizeWebContentsView': resizeWebContentsView,
|
|
1234
|
+
'ElectronWebContentsView.setAudioMuted': setAudioMuted,
|
|
1223
1235
|
'ElectronWebContentsView.setFallthroughKeyBindings': setFallthroughKeyBindings,
|
|
1224
1236
|
'ElectronWebContentsView.setIframeSrc': setIframeSrc,
|
|
1237
|
+
'ElectronWebContentsView.setZoomLevel': setZoomLevel,
|
|
1225
1238
|
'ElectronWebContentsView.show': show,
|
|
1239
|
+
'ElectronWebContentsView.toggleDevTools': toggleDevTools,
|
|
1226
1240
|
'Exit.exit': exit,
|
|
1227
1241
|
'Initialize.initialize': initialize
|
|
1228
1242
|
};
|