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

Support load event ? #58

Closed
junwang1216 opened this issue Jun 28, 2019 · 3 comments
Closed

Support load event ? #58

junwang1216 opened this issue Jun 28, 2019 · 3 comments

Comments

@junwang1216
Copy link

How do I know that the graph has been loaded?

@BoykoAlex
Copy link
Collaborator

BoykoAlex commented Jun 28, 2019

Yuo'd have to elaborate a bit on your question... There are a few EventEmmiters you could subscribe to get info when the palette is ready, when graph -> text conversion completed, text -> graph conversion completed also when metamodel for the graph has loaded (a promise)... It depends what you'd like to accomplish

@junwang1216
Copy link
Author

Yuo'd have to elaborate a bit on your question... There are a few EventEmmiters you could subscribe to get info when the palette is ready, when graph -> text conversion completed, text -> graph conversion completed also when metamodel for the graph has loaded (a promise)... It depends what you'd like to accomplish

when text -> graph conversion completed ?

@BoykoAlex
Copy link
Collaborator

You should have Flo.EditorContext object available somewhere... See sample app: https://github.com/spring-projects/spring-flo/blob/master/src/demo/app/app.component.ts#L23

Flo.EditorContext should have textToGraphConversionObservable to which you could subscribe to track when text -> graph conversion is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants