Skip to content

RFC: Automatic and Explicit Highlighting#839

Merged
ibgreen merged 2 commits intomasterfrom
PickingHighlightRFC
Aug 14, 2017
Merged

RFC: Automatic and Explicit Highlighting#839
ibgreen merged 2 commits intomasterfrom
PickingHighlightRFC

Conversation

@1chandu
Copy link
Copy Markdown
Contributor

@1chandu 1chandu commented Aug 10, 2017

No description provided.

Ravi Akkenapally and Ib Green

August 9, 2017

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add a link to this PR here, so that people know where to add comments.


3. **autoHighlight** {Boolean, default: false} : [**Proposed**] for now, this is a boolean value, indicating that deck.gl will automatically track the hovered over object. Note: This could be extended in future to specify ‘hover’ , ‘click’ etc events, for different types of tracking. **selectedObjectIndex** prop takes precedence when both **selectedObjectIndex**and **autoHighlight** are set to valid values.

4. **highlightColor **{vec3: default: light-blue color [0, 0, 128]} : [**Proposed**] - This indicates which color should be used to display the selected object, if any.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

My expectation was the highlight color was an RGBA value, and that the default would contain an alpha value (semi transparent).


This table describes what these prop values should be to for above mentioned use cases:

<table>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: This is OK but for tables in markdown we usually use markdown's vertical bar syntax, easier to edit.


* Default color for highlighting

* A transparent light blue is proposed. Name a specific RGBA value?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems we already did, maybe remove this.


**Considerations**

* How to calculate picking colors:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think the proposed interface is not exposing picking colors, so maybe this comment is moot.

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