Skip to content

Commit

Permalink
fix #6: add ConnectorTypeValues (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Egor Fedoseev <[email protected]>
  • Loading branch information
egor-progger and egor-progger authored Mar 23, 2024
1 parent 39f83b6 commit da9d081
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pointlinejs/vendor/treant/Treant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,15 @@ export type RaphaelAttributesExtended = Partial<RaphaelAttributes> & {
'arrow-start'?: string;
};

export type ConnectorTypeValues = 'curve' | 'bCurve' | 'step' | 'straight';

export type ConnectorType = {
/**
* type defines which type of connector line should be drawn between a parent node and its children. Several possibilities are available, their appearance is the following:
*
* ![connector-types](/documentation/images/connector-types.png)
*/
type: 'curve' | 'bCurve' | 'step' | 'straight';
type: ConnectorTypeValues;
/**
* style parameter requires you to define an object.
* Its definition can be found at [RaphaelJS documentation](https://dmitrybaranovskiy.github.io/raphael/reference.html#Element.attr) under possible parameters section.
Expand Down

0 comments on commit da9d081

Please sign in to comment.