anvaka / anvaka/VivaGraphJS

Composite node with constant layout

Open
#228 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.9k
Forks
418
PR merge metrics
No merged PRs in 30d

Description

Hi, thank you for this awesome lib. I'm creating a composite node (rect + text) with a constant layout. However the `g` has no `x` and `y` and we must use `transform` but the constant layout `placeNode` doesn't let people to handle this the how do we do that? I have tried to create a graphic and use its `placeNode` function to handle it. However, when I call `addLink` the node in the constant layout `placeNode` function lost its' data. I could create a solution for that but is there a more "native" way?

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the constant layout implementation and its placeNode path, then trace how addLink causes node data to be lost. Compare the graphic's placeNode usage and determine whether a native transform-based placement path can preserve the node data; done when the composite node remains correctly positioned after addLink.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.