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

Expose "Export to PNG" to @finos/perspective_viewer #2836

Open
tobilg opened this issue Nov 7, 2024 · 1 comment
Open

Expose "Export to PNG" to @finos/perspective_viewer #2836

tobilg opened this issue Nov 7, 2024 · 1 comment

Comments

@tobilg
Copy link

tobilg commented Nov 7, 2024

Feature Request

Description of Problem:

I had a look at the current implementation, and as it seems (I'm not a Rust expert), the export as PNG is not exposed to the JavaScript API. Whereas JSON, CSV and Arrow are (e.g. https://docs.rs/perspective-js/latest/perspective_js/struct.View.html#method.to_json).

export_screenshot

Ideally, also the export to HTML would be possible. The programatic PNG export would avoid having to do a screenshot of the component if one would like to store it etc.

Potential Solutions:

If possible, add the export to PNG (and HTML) to the JS API.

@tobilg
Copy link
Author

tobilg commented Nov 27, 2024

If someone could give me a hint on where to start, I'd also be open to submit a PR... Thanks!

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

1 participant