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

Multiple state examples et al. #39

Merged
merged 17 commits into from
Dec 12, 2024
Merged

Multiple state examples et al. #39

merged 17 commits into from
Dec 12, 2024

Conversation

midlik
Copy link
Collaborator

@midlik midlik commented Dec 2, 2024

Description

I added a few examples for multi-state plus a few changes from our last meeting:

  • change transparency to opacity
  • allow focus node on root, add radius parameters
  • make linger_durantion_ms required
  • try to fix typing for mixins
  • reorganize metadata for State vs States vs Snapshot

Actions

  • Added description of changes to the [Unreleased] section of CHANGELOG.md
  • (Optional but encouraged) Added example(s) for new feature(s) in this PR to app/api/examples.py

@midlik midlik requested a review from sbittrich December 2, 2024 14:03
Copy link
Member

@sbittrich sbittrich left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.

@@ -720,14 +743,14 @@ def color(
self._add_child(node)
return self

def transparency(self, *, transparency: float = 0.8) -> Representation:
def opacity(self, *, opacity: float) -> Representation:
Copy link
Member

Choose a reason for hiding this comment

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

Intentional to lose default opacity/transparency?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was kinda intentional, i didn't see a point in saying smth should be transparent but not specifying the exact opacity/transparency value.
But i can put it back if you insist.

Copy link
Member

Choose a reason for hiding this comment

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

All good, makes sense to me.

@midlik
Copy link
Collaborator Author

midlik commented Dec 4, 2024

Thank you Sebastian!
Please don't merge yet, there is one more thing that we changed with David. I need to test it and push.

@midlik
Copy link
Collaborator Author

midlik commented Dec 5, 2024

OK, I added the metadata reorganization, so it should be ready now.

@dsehnal dsehnal merged commit 9dadc18 into master Dec 12, 2024
@dsehnal dsehnal deleted the multiple-state-examples branch December 12, 2024 11:55
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