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

refactor: migrate Extent to typescript #2444

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Desplandis
Copy link
Contributor

Description

This PR includes:

  • Migration of Extent from javascript to typescript
  • Remove deprecated method dimensions
  • Add setFromArray and setFromExtent methods
  • TSDoc compliant documentation

Proposed breaking type changes:

  • For simplification and alignment with Three.Vector API, I propose that the constructor of Extent only accepts numbers as parameters. We could set from array, coordinates-like objects from corresponding methods setFromArray or setFromExtent. Note that for js users, we would not for now break compatibility (and add a depreciation notice).

Motivation and Context

As described in proposal #2396, we aim to gradually migrate our entire codebase (with the exception of deprecated modules) from javascript to typescript. We choose to start with modules with no-dependency and move up in the dependency tree.

This PR is the third step of Migrate geographic modules, migrating the Extent module. This PR is a follow-up of #2437.

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.

1 participant