feat: move private NodeEditor members for protected for extensibility#741
Open
samerickson wants to merge 1 commit intoretejs:mainfrom
Open
feat: move private NodeEditor members for protected for extensibility#741samerickson wants to merge 1 commit intoretejs:mainfrom
NodeEditor members for protected for extensibility#741samerickson wants to merge 1 commit intoretejs:mainfrom
Conversation
Member
|
If I've got this right, your goal is to mutate the graph within the nodecreate event. However, side effects are discouraged in such events, particularly when the side effect involves changes to the very entity triggering the event. In any case, if you absolutely need to hook into this event, you can duplicate the trigger of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
I have a unique issue where I want to use a pipe in the Editor to interrupt the
nodecreatesignal and only proceed with deleting the node if a certain criteria is not met. To support this workflow, I need to case to any, or copy and paste the whole NodeEditor into my project to swap this:For that:
What I would like to be able to do is extend the
NodeEditorclass and override theaddNodefunction, but with thenodesmember being private, I have to castthisas any to do that.Let me know if there is a better way to go about this, or if you are interested in moving more private members to protected, as there are a few other Rete plugins that I have similar interests in making private members protected for easier extensibility. I really like the Rete eco-system, keep up the great work!
Related Issues
N/A
Checklist
Additional Notes
N/A