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

feat: Add proposed API changes within types declarations #37

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

diehbria
Copy link
Contributor

@diehbria diehbria commented Jan 20, 2022

Overview

Add in type declarations for a proposed API change.

This contains no implementation. This makes no actual changes to any runtime behavior. That comes as a follow up. This is just to ensure I have the correct API prior to implementation.

Legal

This project is available under the Apache 2.0 License.

Copy link
Contributor

@boweihan boweihan left a comment

Choose a reason for hiding this comment

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

LGTM

export type StyleSettings = {
name?: string;
detailedName?: string;
color?: string; // CSS color string, i.e. 'red' or '#ffffff'
Copy link
Contributor

Choose a reason for hiding this comment

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

In the future we may need to add some hierarchy to this type definition (i.e. `BaseStyleSettings & ScatterPlotStyleSettings" to support component-specific style properties (for example, scatterplots with a "hue" color). This looks great for now though!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

on as as needed basis that makes sense 👍

@diehbria diehbria merged commit d165299 into main Jan 20, 2022
@diehbria diehbria deleted the styles-types branch January 20, 2022 17:31
sheilaXu pushed a commit that referenced this pull request Sep 23, 2022
…dgetClick Events (#37)

Deprecates the OnAnchorClick with a generic OnSelectionChanged and OnWidgetClick Event
Also centralizes the selection event anytime the selectedSceneNodeRef changes.
Rely on Entity group to set the selected node rather than the AnchorWidget which only cares about click
Add a bug fix that allows the anchor click deselect to fire if it is not another anchor
This was referenced Nov 2, 2022
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.

3 participants