Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Copying values of name, type or id(best use case) of Internals in the Editor #52

Open
CalvinDO opened this issue Dec 28, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@CalvinDO
Copy link

No description provided.

@Plagiatus
Copy link
Collaborator

Could you explain your use case here? What do you need that for, what are you trying to achieve with this?

@Plagiatus Plagiatus added the enhancement New feature or request label Dec 28, 2024
@CalvinDO
Copy link
Author

CalvinDO commented Dec 28, 2024

Decorators should fulfil my use case (of dragging graphs in public variables of Custom Components):

@FudgeCore.type(FudgeCore.Graph)
public ref: FudgeCore.Graph;

But they don't.
When i save the project, i get:

TypeError: Converting circular structure to JSON
--> starting at object with constructor 'Graph'
| property 'children' -> object with constructor 'Array'
| index 0 -> object with constructor 'Node'
--- property 'parent' closes the circle
at JSON.stringify ()
at Serializer.stringify (Serializer.ts:181:31)
at Project.getProjectJSON (Project.ts:121:39)
at Object.saveProject (FileIO.ts:78:44)
at async IpcRenderer. (Page.ts:228:13)

@CalvinDO CalvinDO reopened this Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants