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

fix: series fill & stroke being inconsistent for last data time < render time #138

Merged
merged 16 commits into from
Dec 7, 2021

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Oct 8, 2021

It would depend on scrollBackwards and fillStyle being undefined or not. Depending on this, it would either continue the line up to the edge of the canvas or leave it at lastX. This makes it so that it is always left at lastX.

An example

Before:

After:

TODO:

@WofWca WofWca marked this pull request as draft October 8, 2021 08:10
@WofWca
Copy link
Collaborator Author

WofWca commented Oct 8, 2021

This also made me think if we should add a TimeSeries option called extrapolateFuture that would make it behave as on the "before" example.

@WofWca WofWca changed the title fix: series fill & stroke being inconsistent when render time > last data time fix: series fill & stroke being inconsistent for last data time < render time Oct 8, 2021
…der time

It would depend on `scrollBackwards` and `fillStyle` being `undefined` or not.
Depending on this, it would either continue the line up to the edge of the
canvas or leave it at `lastX`. This makes it so that it is always left at
`lastX`.
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