Skip to content

Tick diffing to check all properties that impact the rendered result #8

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

Merged
merged 1 commit into from
Sep 27, 2016

Conversation

monfera
Copy link
Member

@monfera monfera commented Sep 27, 2016

Without this change, e.g. a font family change will yield equality of ticks, therefore a font family update will not lead to a change to what's rendered.

a.fontColor !== b.fontColor ||
a.fontSize !== b.fontSize ||
a.dx !== b.dx ||
a.dy !== b.dy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely fix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit repetitive but it's in a potentially perf critical code part - e.g. now runs on each hover move - and there may be internal properties too so I ended up not JSON.stringifying it or adding a loop on Object.keys

@bpostlethwaite bpostlethwaite merged commit a70baaa into gl-vis:master Sep 27, 2016
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.

3 participants