mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-26 07:28:11 +08:00
clean up
This commit is contained in:
@@ -116,7 +116,9 @@ export class UpdateNodeGraphRender extends JsMessage {
|
||||
readonly inSelectedNetwork!: boolean;
|
||||
|
||||
readonly previewedNode!: bigint | undefined;
|
||||
}
|
||||
|
||||
export class UpdateNativeNodeGraphRender extends JsMessage {
|
||||
readonly nativeNodeGraphRender!: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user