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

ui-spacetimechart: picking layer downscaling #938

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

jacomyal
Copy link
Contributor

This commit fixes #915, and also improves picking performances, by downscaling the picking layer.

Details:

  • Cleans unused and poorly named "number" argument from drawAliasedLine
  • Adds new get getPickingScalingRatio helper, that returns the picking downscaling ratio depending on the current devicePixelRatio value
  • Fixes picking layers resize handling
  • Adds a new optional "scalingRatio" argument to each canvas aliased drawing function
  • Adds new scalingRatio argument to PickingDrawingFunction, and updates useCanvas accordingly
  • Gives the scaling ratio from PickingDrawingFunction to aliased functions in every places where usePicking is called

This commit fixes #915, and also improves picking performances, by
downscaling the picking layer.

Details:
- Cleans unused and poorly named "number" argument from drawAliasedLine
- Adds new get getPickingScalingRatio helper, that returns the picking
  downscaling ratio depending on the current devicePixelRatio value
- Fixes picking layers resize handling
- Adds a new optional "scalingRatio" argument to each canvas aliased
  drawing function
- Adds new scalingRatio argument to PickingDrawingFunction, and updates
  useCanvas accordingly
- Gives the scaling ratio from PickingDrawingFunction to aliased
  functions in every places where usePicking is called

Signed-off-by: Alexis Jacomy <[email protected]>
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

space time chart: picking only covers a portion of the stage when devicePixelRatio < 1
2 participants