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

correct typing on EditableGeojsonLayerProps get* functions #777

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

Conversation

timnyborg
Copy link
Contributor

The typing of getLineWidth, getRadius, etc. doesn't reflect that they're passed isSelected and mode, like all the others

The typing of getLineWidth, getRadius, etc. doesn't reflect that they're passed isSelected and mode

getTentativeLineColor?: Color | ((feature, isSelected, mode) => Color);
getTentativeFillColor?: Color | ((feature, isSelected, mode) => Color);
getTentativeLineWidth?: number | ((f) => number);
getTentativeLineWidth?: number | ((feature, isSelected, mode) => number);
Copy link
Collaborator

Choose a reason for hiding this comment

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

For me it looks like type was correct.

There how it used:
https://github.com/uber/nebula.gl/blob/master/modules/layers/src/layers/editable-geojson-layer.ts#L203

function unwrapGuide(guideMaybeWrapped) {

Am I missing something?

Copy link
Collaborator

Choose a reason for hiding this comment

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

You are correct. This one uses different accessor.

Copy link
Contributor Author

@timnyborg timnyborg Jan 9, 2023

Choose a reason for hiding this comment

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

Yep, fixed

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.

None yet

3 participants