Skip to content

@phun-ky/arclace / createConnections

Function: createConnections() ​

createConnections(definitions, options?): Arclace

Defined in: src/Arclace.ts:563

Creates a Arclace instance and connects the given pairs.

Parameters ​

definitions ​

ArcConnectionDefinitionType[]

options? ​

ArcOptionsType

Returns ​

Arclace

Example ​

ts
import { createConnections } from '@phun-ky/arclace';

const arclace = createConnections(
  [
    { startElement: '#a', endElement: '#b' },
    { startElement: '#b', endElement: '#c', arrow: 'end' }
  ],
  { defaults: { type: 'orthogonal' } }
);

Released under the MIT License.