Skip to content

type configUnion is confusing, fed into layout function? #475

Description

@ajvincent

Playground Link

The intersection type is a bit confusing. I'm new to dagre, and I see the width and height types on three different interfaces. So what is the width property of the configUnion applied to - the graph, the nodes, or the edges?

If it was something like this:

export interface ConfigInterface {
  graphConfig: GraphLabel;
  defaultNodeConfig: NodeConfig;
  defaultEdgeConfig: EdgeConfig
  layoutConfig: LayoutConfig
}

that would make sense.

I'm just confused by this type definition.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions