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

Better Typing for TerraDrawModes & Setting coordinatePrecision of modes inside of a TerraDraw to the respective Adapter #137

Merged
merged 5 commits into from
Dec 22, 2023

Conversation

itoxiq
Copy link
Contributor

@itoxiq itoxiq commented Dec 19, 2023

Changes

  • added typing for the BaseMode constructor params to all other Modes
  • setting coordinatePrecision of all Modes loaded into a TerraDraw instance to its adapters respective coordinatePrecision

Closes #136

src/modes/base.mode.ts Outdated Show resolved Hide resolved
@JamesLMilner
Copy link
Owner

Hey @itoxiq - I reviewed PR, I think this is good with one small change. Unfortunately quite a few of the tests are now failing. If you want I can take a look at the tests, let me know your preference!

this.pointerDistance = (options && options.pointerDistance) || 40;

this.coordinatePrecision = (options && options.coordinatePrecision) || 9;
this.coordinatePrecision = 9;
Copy link
Owner

Choose a reason for hiding this comment

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

I think was mean to be left as is? I will merge and make another small PR to remedy this to help move it along :)

@JamesLMilner JamesLMilner merged commit 47555a8 into JamesLMilner:main Dec 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants