-
-
Notifications
You must be signed in to change notification settings - Fork 8
Editor: In-Node Editor #32
Comments
My opinion: While it's natural to think that the in-node editor represents the definition of the outer node in the form of a composite function, the purpose of in-node editors should not be restricted to that. Instead, it can be one of:
So the API should be general enough to enable all above. My proposal is to make the in-node Editor a control. That way, a node can own multiple in-node editors. The SObject structure would be: |
About in-node edtitorI think it would be more general if we see it as a sub-workspace. That way the full power of workspace can be leveraged and new features, including fixes, will be available automatically. Providing this feature to node developers as a new component seems reasonable, as it follows our old practice to provide additional functionalities to node, but I suspect that it cannot be implemented as an ordinary component. About multiple editors on a single nodeThough we decided to provide it as a component, I think we should restrict the use of it to 1 editor a node for the following reasons:
Desired functionalities
About implementationI believe that figuring out the things that forms a workspace is important. So we should first ask: what are the essential components of a workspace? And how do they interact to provide what we have in a workspace? |
Agree about the idea. Let's clarify the terminology of Workspace and Editor first. In the current implementation's logic,
Back to the question: What level of functionality do we want an "in-node editor" have? Should it be an Editor, a WorkspaceObject, or something between? [*1]: The code for delete is incorrectly placed at Workspace instead of Editor currently. This is to be fixed. |
My first thought was it should be just an Editor (that's why I named the issue so). But maybe its nicer and more general to treat in-node editors as subgraphs and associate each of them to a .grapycal file, just like Workspace. We have to think up some use cases to decide the answer. |
What about the inspector at right? Is it a part of the main editor? |
No. It is pure frontend thing |
It's outside of the editor in the frontend. |
Enable a node to own an in-node editor, for defining composite functions or other purposes.
Expected behavior
When the (outer) node is double clicked, an inner editor opens and shows the containing graph. That can be nested. (不禁止套娃)
Notes
Grapycal should provide an interface to node developers to take use of this feature i.e. make a node to contain a graph.
The text was updated successfully, but these errors were encountered: