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

Call showAll on opening projects #9974

Merged
merged 4 commits into from
May 17, 2024
Merged

Conversation

vitvakatu
Copy link
Contributor

Pull Request Description

Fixes #9902

node.positions.initialized.mp4

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.

@vitvakatu vitvakatu added CI: No changelog needed Do not require a changelog entry for this PR. --bug Type: bug -gui labels May 16, 2024
@vitvakatu vitvakatu self-assigned this May 16, 2024
function waitInitializationAndPanToAll() {
stopInitialization.value?.()
stopInitialization.value = watchEffect(() => {
const nodesCount = [...graphStore.db.nodeIdToNode.keys()].length
Copy link
Contributor

Choose a reason for hiding this comment

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

nodeIdToNode.size?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, don’t ask how it appeared

waitInitializationAndPanToAll,
)

const stopInitialization = ref<() => void>()
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need to be reactive?

const visibleNodeAreas = graphStore.visibleNodeAreas
if (nodesCount > 0 && visibleNodeAreas.length == nodesCount) {
zoomToSelected(true)
stopInitialization.value?.()
Copy link
Contributor

Choose a reason for hiding this comment

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

Setting it to undefined would allow it to be freed

@vitvakatu vitvakatu added the CI: Ready to merge This PR is eligible for automatic merge label May 17, 2024
@vitvakatu vitvakatu removed the CI: Ready to merge This PR is eligible for automatic merge label May 17, 2024
@vitvakatu vitvakatu force-pushed the wip/vitvakatu/nodes-init-positions branch from 4cfc694 to 72b4609 Compare May 17, 2024 09:37
@vitvakatu
Copy link
Contributor Author

Sorry for ping guys, wrong rebase

@vitvakatu vitvakatu added the CI: Ready to merge This PR is eligible for automatic merge label May 17, 2024
@mergify mergify bot merged commit 6e9b4ec into develop May 17, 2024
37 checks passed
@mergify mergify bot deleted the wip/vitvakatu/nodes-init-positions branch May 17, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
--bug Type: bug -gui CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New project not centered
2 participants