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

Chart onChange and rendering connection moved to TS API #509

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Conversation

simzer
Copy link
Member

@simzer simzer commented Mar 13, 2024

No description provided.

@simzer simzer marked this pull request as draft March 13, 2024 22:39
@simzer simzer requested a review from schaumb March 14, 2024 11:50
@simzer simzer marked this pull request as ready for review March 14, 2024 11:50
@schaumb
Copy link
Contributor

schaumb commented Mar 14, 2024

When a resize happens, it needs to call Chart::doChange on the "ts" side. Would you like to change that in this PR?

@simzer
Copy link
Member Author

simzer commented Mar 15, 2024

Checking size change inside wasm was obsolate, since size in wasm only got updated when needsUpdate was already queried.

@simzer
Copy link
Member Author

simzer commented Mar 15, 2024

@schaumb No, on a second tought, i don't wan't to change the current size handling, because currently we force a redraw immediately if the canvas size changed. If we set the needsUpdate flag instead, it will only be redrawn when the next rendering scheduled, hance there migth be a visible delay on rendering refresh when we rescale the canvas.

@simzer simzer merged commit 104c7fe into main Mar 16, 2024
1 check passed
@simzer simzer deleted the needsupdate branch March 16, 2024 10:16
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.

2 participants