Skip to content

Properties and layoutOptions getting ignored #115

@sirwhinesalot

Description

@sirwhinesalot

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions