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 error after setting view zoom #1558

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

Conversation

sasensi
Copy link
Contributor

@sasensi sasensi commented Oct 9, 2018

Description

Make sure view matrix is invertible by restricting zoom allowed values.
Convert extremely low, null and extremely high value, to the nearest possible value.
Based on this idea #1433 (comment).

Related issues

Checklist

  • New tests added or existing tests modified to cover all changes
  • Code conforms with the JSHint rules (npm run jshint passes)

Make sure view matrix is invertible by restricting zoom allowed values.
Convert extremely low, null and extremely high value, to the nearest
possible value.
Closes paperjs#1433
@lehni lehni force-pushed the develop branch 2 times, most recently from 39b63a1 to b90a711 Compare June 19, 2020 17:45
@lehni lehni force-pushed the develop branch 3 times, most recently from 4a6bf6f to 0f4afc5 Compare June 22, 2020 13:18
@SteamWind
Copy link

This could have been merged? Seems to be a great fix!
Experiencing this here too:
Paper sketch

Copy link

@SteamWind SteamWind left a comment

Choose a reason for hiding this comment

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

Seems pretty well implemented

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.

cannot read property transformBounds of null
3 participants