Skip to content

Add helper function for EdgeTypes and Options #58

@fsuk

Description

@fsuk

Is your feature request related to a problem? Please describe.

Currently introducing an option (such as gridRatio) is appears to be quite burdensome requiring the creation of a whole custom SmartEdge

Would it be possible to introduce a helper function to apply options to edge types?

Describe the solution you'd like

const edgeTypes :EdgeTypes = {
  smartstep: getSmartStepEdgeType(options)
}

...

return (
      <ReactFlow edgeTypes={edgeTypes} ... />

Describe alternatives you've considered

Creating a custom smart edge.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpinnedThis should not be closed by bots on inactivity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions