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

Properties and layoutOptions getting ignored #115

Open
sirwhinesalot opened this issue Jun 2, 2023 · 0 comments
Open

Properties and layoutOptions getting ignored #115

sirwhinesalot opened this issue Jun 2, 2023 · 0 comments

Comments

@sirwhinesalot
Copy link

sirwhinesalot commented Jun 2, 2023

I'm probably doing something wrong but I don't understand why ipyelk is ignoring certain layout options:

Node(
  id="x", 
  labels=[{"text": "x"}],
  width=80, # ignored
  height=50, # ignored
  layoutOptions = {
    layout_options.NodeLabelPlacement.identifier: "V_CENTER H_CENTER",  # ignored
    layout_options.NodeSizeConstraints.identifier: "PORTS PORT_LABELS NODE_LABELS MINIMUM_SIZE",
    layout_options.NodeSizeMinimum.identifier: "80, 50",  # this one works
  }
)

What am I doing wrong? I tried using .clear_defaults() on the loader but it just put the label on the top left with no padding instead...

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

No branches or pull requests

1 participant