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: updated types for projection fit #9260

Closed
wants to merge 4 commits into from
Closed

Conversation

astrophie
Copy link

@astrophie astrophie commented Feb 12, 2024

Updated the TypeScript definition for the Projection interface to allow both Feature Collection objects and Feature arrays for the fit property.
Added API documentation in comments.

Fixes #7448

@astrophie astrophie marked this pull request as ready for review February 12, 2024 16:12
@astrophie astrophie requested a review from a team as a code owner February 12, 2024 16:12
@astrophie astrophie marked this pull request as draft February 12, 2024 16:17
@astrophie astrophie marked this pull request as ready for review February 12, 2024 16:18
Copy link
Member

@domoritz domoritz left a comment

Choose a reason for hiding this comment

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

Great start. I ran yarn schema to update the schema and pushed it.

However, this changeset does not yet fix the issue that the valid feature collection is not accepted. Please update the types (maybe we need to change types in Vega, not sure) and add an example so we test compatibility.

Screenshot 2024-02-15 at 20 38 38

@domoritz
Copy link
Member

@astrophie can you wrap up this pull request?

@astrophie astrophie closed this Mar 27, 2024
@domoritz
Copy link
Member

Why did you close this?

@astrophie
Copy link
Author

Why did you close this?

I wasn't able to get the example added in the src folder after a few attempts. I didn't think it was super necessary as the schema type fix from before seems to fix the bug, and that was already merged?

@domoritz
Copy link
Member

Oh I missed that. What's the pull request or commit that fixed it?

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.

[Schema] Allow feature collections to be used with projection fit and add documentation
2 participants