-
Notifications
You must be signed in to change notification settings - Fork 87
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
Documentation for using Vega-Interpreter/AST/CSP with vega-embed for Single Page Applications (Angular etc.) #473
Comments
I'll do #474 instead. It's cleaner and doesn't require any special documentation. |
Yes, in Vega but Vega-Embed can be smart about it. I decided to implement a set of smart defaults. Take a look at #475 and let me know what you think. |
Ok Great thanks a lot for your quick feedback and the Great work that you and the Vega Team do
… Am 15.06.2020 um 17:47 schrieb Dominik Moritz ***@***.***>:
Yes, in Vega but Vega-Embed can be smart about it. I decided to implement a set of smart defaults.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thank you for being persistent, trying out fixes, and helping us get to cleaner solution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I spend some time to get vega-embed work with vega-interpreter to ensure safe Content-Security-Policies (CSP). The issue was that vega-interpreter works with vega-embed using a Javascript only application. However, single page applications based on Angular (or any other framework) compile each module individually, which means one cannot share objectnames/variables cross modules. However, given the examples of the documentation this breaks the underlying assumption that they can be shared.
I did in the end a minor modification to make this also work.
The tested library versions are:
Angular 9 (older might work as well)
vega-embed 6.9.0
vega-interpreter 1.0.1
I propose to add this to the documentation. I verified that it works.
Please let me know if this is of interests.
The text was updated successfully, but these errors were encountered: