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

Use ChartState in vegafusion-wasm #521

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Conversation

jonmmease
Copy link
Collaborator

@jonmmease jonmmease commented Oct 17, 2024

Ok, I took another stab a refactoring so that vegafusion-wasm can use the ChartState structure. This de-duplicates the state management logic. Implementing the VegaFusionRuntimeTrait using a JavaScript function was a bit tricky due to JS functions not being Send/Sync, but in the end it works well.

I also added an example that exercises vegafusion-wasm and vegafusion-embed, connected to vegafusion-server. The first two aren't used by VegaFusionWidget anymore, so we didn't have a way of trying them

@jonmmease jonmmease changed the base branch from main to v2 October 17, 2024 18:03
@jonmmease jonmmease merged commit aa2817a into v2 Oct 17, 2024
19 checks passed
jonmmease added a commit that referenced this pull request Nov 16, 2024
* Reapply "Refactor to move ChartState to vegafusion core (#519)" (#520)

This reverts commit 713b159.

* Use ChartState in vegafusion-wasm

* format
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

Successfully merging this pull request may close these issues.

1 participant