Skip to content

NodePortOffset { X = 0, Y = 0 } seems not to work correctly #25

@endeffects

Description

@endeffects

The NodePortOffset { X = 0, Y = 0 } seems not to work correctly.
It centeres the port inside the node. I expected a left and top alignment.

// outside the node on the left top
ports.Add(new DiagramPort { Visibility = PortVisibility.Hover, Shape = PortShapes.Square, Offset = new NodePortOffset { X = -0.1, Y = -0.1 } }); 

// inside the node on the left top
ports.Add(new DiagramPort { Visibility = PortVisibility.Hover, Shape = PortShapes.Square, Offset = new NodePortOffset { X = 0.1, Y = 0.1 } }); 

// inside the node centered and middled
ports.Add(new DiagramPort { Visibility = PortVisibility.Hover, Shape = PortShapes.Square, Offset = new NodePortOffset { X = 0, Y = 0 } }); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiagramDiagram component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions