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

Visualization Preview #10310

Merged
merged 5 commits into from
Jun 19, 2024
Merged

Visualization Preview #10310

merged 5 commits into from
Jun 19, 2024

Conversation

farmaazon
Copy link
Contributor

@farmaazon farmaazon commented Jun 18, 2024

Pull Request Description

Fixes #8533

Visualization is shown when pressing ctrl (cmd on mac) and hovering output port.

Screencast.from.2024-06-18.17-06-59.webm

Important Notes

Checklist

Please ensure that the following checklist has been satisfied before submitting the PR:

  • The documentation has been updated, if necessary.
  • Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
  • All code follows the
    Scala,
    Java,
    TypeScript,
    and
    Rust
    style guides. In case you are using a language not listed above, follow the Rust style guide.
  • Unit tests have been written where possible.

@farmaazon farmaazon added x-new-feature Type: new feature request -gui labels Jun 18, 2024
@farmaazon farmaazon self-assigned this Jun 18, 2024
@farmaazon farmaazon marked this pull request as ready for review June 18, 2024 15:10
const isVisualizationVisible = computed(
() => isVisualizationEnabled.value || isVisualizationPreviewed.value,
)
watch(isVisualizationPreviewed, (newVal, oldVal) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't be run when isVisualizationEnabled.

@@ -405,14 +418,13 @@ watchEffect(() => {
class="GraphNode"
:style="{
transform,
minWidth: isVisualizationVisible ? `${visualizationWidth ?? 200}px` : undefined,
minWidth: isVisualizationEnabled ? `${visualizationWidth ?? 200}px` : undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

min-width not set when previewing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, The previewing is so temporary, that resizing node gave bad feeling. So I decided that the node will be resized only when visualization is actually enabled.

@@ -479,9 +491,10 @@ watchEffect(() => {
:width="visualizationWidth"
:height="visualizationHeight"
:isFocused="isOnlyOneSelected"
:isPreview="isVisualizationPreviewed"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should not be set when isVisualizationEnabled.

@farmaazon farmaazon added the CI: Ready to merge This PR is eligible for automatic merge label Jun 19, 2024
@mergify mergify bot merged commit ef2f5f9 into develop Jun 19, 2024
37 checks passed
@mergify mergify bot deleted the wip/farmaazon/vis-preview branch June 19, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-gui CI: Ready to merge This PR is eligible for automatic merge x-new-feature Type: new feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visualization Preview on hover
2 participants