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 13 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.

@Desplandis Desplandis force-pushed the ts-migration/extent branch 2 times, most recently from dd973a3 to e0ec527 Compare November 27, 2024 16:00
@jailln jailln requested a review from airnez December 16, 2024 13:27
@Desplandis Desplandis assigned Desplandis and airnez and unassigned Desplandis Dec 20, 2024
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.

2 participants