This commit is contained in:
Adam
2025-09-08 19:32:43 -07:00
parent 27294c7569
commit 405bd5d36f
20 changed files with 416 additions and 33 deletions
+2
View File
@@ -116,7 +116,9 @@ export class UpdateNodeGraphRender extends JsMessage {
readonly inSelectedNetwork!: boolean;
readonly previewedNode!: bigint | undefined;
}
export class UpdateNativeNodeGraphRender extends JsMessage {
readonly nativeNodeGraphRender!: boolean;
}
+7 -1
View File
@@ -16,6 +16,7 @@ import {
UpdateImportsExports,
UpdateLayerWidths,
UpdateNodeGraphRender,
UpdateNativeNodeGraphRender,
UpdateVisibleNodes,
UpdateNodeGraphTransform,
UpdateNodeThumbnail,
@@ -118,7 +119,12 @@ export function createNodeGraphState(editor: Editor) {
state.opacity = updateNodeGraphRender.opacity;
state.inSelectedNetwork = updateNodeGraphRender.inSelectedNetwork;
state.previewedNode = updateNodeGraphRender.previewedNode;
state.nativeNodeGraphRender = updateNodeGraphRender.nativeNodeGraphRender;
return state;
});
});
editor.subscriptions.subscribeJsMessage(UpdateNativeNodeGraphRender, (updateNativeNodeGraphRender) => {
update((state) => {
state.nativeNodeGraphRender = updateNativeNodeGraphRender.nativeNodeGraphRender;
return state;
});
});