@lvce-editor/ports-view 0.13.1 → 0.13.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.
|
@@ -2514,12 +2514,14 @@ const set = rpc => {
|
|
|
2514
2514
|
state.connected = true;
|
|
2515
2515
|
};
|
|
2516
2516
|
|
|
2517
|
-
const handleMessagePort = async port => {
|
|
2517
|
+
const handleMessagePort = async (port, setAsRendererProcess = true) => {
|
|
2518
2518
|
const rpc = await create$4({
|
|
2519
2519
|
commandMap: createDirectEventCommandMap(uid => invoke$1('Viewlet.requestRender', uid)),
|
|
2520
2520
|
messagePort: port
|
|
2521
2521
|
});
|
|
2522
|
-
|
|
2522
|
+
if (setAsRendererProcess) {
|
|
2523
|
+
set(rpc);
|
|
2524
|
+
}
|
|
2523
2525
|
};
|
|
2524
2526
|
|
|
2525
2527
|
const handleWheel = (state, deltaMode, deltaY) => {
|