feat(markers): add more properties for custom markers

This commit is contained in:
Christopher Möller
2021-10-15 11:51:54 +02:00
parent d3b1148bca
commit 1b73c8fff5
3 changed files with 37 additions and 27 deletions
+4
View File
@@ -60,6 +60,10 @@ export enum ArrowHeadType {
export interface EdgeMarker {
type: ArrowHeadType;
color?: string;
width?: number;
height?: number;
units?: 'userSpaceOnUse' | 'strokeWidth';
strokeWidth?: number;
}
export type EdgeMarkerType = string | EdgeMarker;