@metadev/daga 3.1.5 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metadev/daga",
3
- "version": "3.1.5",
3
+ "version": "4.0.1",
4
4
  "dependencies": {},
5
5
  "peerDependencies": {
6
6
  "d3": "^7.9.0",
package/src/index.d.ts CHANGED
@@ -1,11 +1,15 @@
1
1
  export { Corner, HorizontalAlign, Side, VerticalAlign } from '../../daga/src/lib/util/svg-util';
2
- export { ACTION_STACK_SIZE, DiagramCanvas, setCursorStyle } from './lib/diagram/canvas/diagram-canvas';
2
+ export { ACTION_STACK_SIZE, DiagramCanvas } from './lib/diagram/canvas/diagram-canvas';
3
+ export { setCursorStyle } from './lib/diagram/canvas/diagram-canvas-util';
3
4
  export { DiagramContextMenu } from './lib/diagram/canvas/diagram-context-menu';
4
5
  export { DiagramUserHighlight } from './lib/diagram/canvas/diagram-user-highlight';
5
6
  export { DiagramUserSelection } from './lib/diagram/canvas/diagram-user-selection';
6
7
  export type { CollabAction, CollabActionSerialized } from './lib/diagram/collab/collab-action';
7
8
  export { CollabClient } from './lib/diagram/collab/collab-client';
8
9
  export type { CollabTimestamp, CollabTimestampSet } from './lib/diagram/collab/primitives';
10
+ export type { CanvasConfig, GridConfig } from './lib/diagram/config/diagram-canvas-config';
11
+ export type { ButtonsComponentConfig, ComponentsConfig, ConnectionTemplateConfig, ConnectionTypeConfig, DiagramConfig, ErrorsComponentConfig, FieldConfig, NodeTemplateConfig, NodeTypeConfig, PaletteComponentConfig, PaletteSectionConfig, PortConfig, PortTypeConfig, PropertyEditorComponentConfig, SectionConfig, SectionGridConfig, UserActionConfig } from './lib/diagram/config/diagram-config';
12
+ export type { ImageLook, ImageLookConfig, Look, LookConfig, MarkerImageLook, MarkerImageLookConfig, ShapedLook, ShapedLookConfig, StretchableImageLook, StretchableImageLookConfig } from './lib/diagram/config/diagram-look-config';
9
13
  export { DagaExporter } from './lib/diagram/converters/daga-exporter';
10
14
  export { DagaImporter } from './lib/diagram/converters/daga-importer';
11
15
  export type { DagaConnection, DagaModel, DagaNode, DagaPort, DagaSection } from './lib/diagram/converters/daga-model';
@@ -13,7 +17,6 @@ export type { DiagramModelExporter } from './lib/diagram/converters/diagram-mode
13
17
  export type { DiagramModelImporter } from './lib/diagram/converters/diagram-model-importer';
14
18
  export { ActionStack, AddConnectionAction, AddNodeAction, ApplyLayoutAction, DiagramActionMethod, DiagramActions, EditFieldAction, MoveAction, PasteAction, RemoveAction, SetGeometryAction, SetParentAction, UpdateValuesAction } from './lib/diagram/diagram-action';
15
19
  export type { DiagramAction } from './lib/diagram/diagram-action';
16
- export type { ButtonsComponentConfig, CanvasConfig, ComponentsConfig, ConnectionMarkerLook, ConnectionTemplateConfig, ConnectionTypeConfig, DiagramConfig, ErrorsComponentConfig, FieldConfig, GridConfig, ImageLook, NodeTemplateConfig, NodeTypeConfig, PaletteComponentConfig, PaletteSectionConfig, PortConfig, PortTypeConfig, PropertyEditorComponentConfig, SectionConfig, SectionGridConfig, ShapedLook, StretchableImageLook, UserActionConfig } from './lib/diagram/diagram-config';
17
20
  export { DiagramDoubleClickEvent, DiagramEvent, DiagramEvents, DiagramHighlightedEvent, DiagramSecondaryClickEvent, DiagramSelectionEvent } from './lib/diagram/diagram-event';
18
21
  export { AdjacencyLayout } from './lib/diagram/layout/adjacency-layout';
19
22
  export { BreadthAdjacencyLayout } from './lib/diagram/layout/breadth-adjacency-layout';
@@ -0,0 +1,26 @@
1
+ import * as d3 from 'd3';
2
+ import { Point } from '../../util/canvas-util';
3
+ import { LineFunction, LineShape } from '../../util/line';
4
+ import { CursorStyle } from '../../util/style';
5
+ import { Side } from '../../util/svg-util';
6
+ import { DiagramField } from '../model/diagram-field';
7
+ import { DiagramNode } from '../model/diagram-node';
8
+ import { DiagramPort } from '../model/diagram-port';
9
+ import { DiagramSection } from '../model/diagram-section';
10
+ /**
11
+ * Checks if the given mouse event was produced with a secondary button press.
12
+ * @private
13
+ * @param event A mouse event.
14
+ * @returns `true` if the given mouse event was produced with a secondary button press, `false` otherwise.
15
+ */
16
+ export declare const isSecondaryButton: (event: MouseEvent) => boolean;
17
+ /**
18
+ * Get the SVG path of a diagram connection.
19
+ * @private
20
+ * @see linePath
21
+ */
22
+ export declare const getConnectionPath: (shape: LineShape | LineFunction, startCoords: Point, endCoords: Point, startDirection: Side | undefined, endDirection: Side | undefined, width: number, startMarkerWidth: number | undefined, endMarkerWidth: number | undefined) => string;
23
+ export declare const setCursorStyle: (style?: CursorStyle) => void;
24
+ export declare const getRelatedNodeOrItself: (element: DiagramNode | DiagramSection | DiagramPort | DiagramField) => DiagramNode | DiagramSection | DiagramPort | DiagramField;
25
+ export declare const initializeLook: (selection: d3.Selection<SVGGElement, DiagramNode | DiagramSection | DiagramPort, d3.BaseType, unknown>) => void;
26
+ export declare const updateLook: (selection: d3.Selection<SVGGElement, DiagramNode | DiagramSection | DiagramPort, d3.BaseType, unknown>) => void;
@@ -4,10 +4,9 @@ import { DiagramValidator } from '../../errors/diagram-validator';
4
4
  import { Canvas } from '../../interfaces/canvas';
5
5
  import { DiagramEditor } from '../../interfaces/diagram-editor';
6
6
  import { Point } from '../../util/canvas-util';
7
- import { CursorStyle } from '../../util/style';
8
7
  import { CollabEngine } from '../collab/collab-engine';
8
+ import { DiagramConfig } from '../config/diagram-config';
9
9
  import { ActionStack, DiagramAction, DiagramActionMethod, DiagramActions } from '../diagram-action';
10
- import { DiagramConfig } from '../diagram-config';
11
10
  import { DiagramEvent } from '../diagram-event';
12
11
  import { DiagramConnectionType } from '../model/diagram-connection';
13
12
  import { DiagramModel } from '../model/diagram-model';
@@ -145,4 +144,3 @@ export declare class DiagramCanvas implements Canvas {
145
144
  private continueMultipleSelection;
146
145
  private finishMultipleSelection;
147
146
  }
148
- export declare const setCursorStyle: (style?: CursorStyle) => void;
@@ -1,4 +1,8 @@
1
1
  import { Canvas } from '../../interfaces/canvas';
2
+ import { ContextMenuConfig } from '../config/diagram-canvas-config';
3
+ export declare const CONTEXT_MENU_DEFAULTS: {
4
+ customButtons: never[];
5
+ };
2
6
  /**
3
7
  * Stores the functionality regarding the context menu of a diagram canvas.
4
8
  * @public
@@ -6,13 +10,14 @@ import { Canvas } from '../../interfaces/canvas';
6
10
  */
7
11
  export declare class DiagramContextMenu {
8
12
  private readonly canvas;
13
+ private config;
9
14
  private contextMenuContainer?;
10
15
  /**
11
16
  * Constructs a context menu object.
12
17
  * @public
13
18
  * @param canvas A canvas.
14
19
  */
15
- constructor(canvas: Canvas);
20
+ constructor(canvas: Canvas, config?: ContextMenuConfig);
16
21
  /**
17
22
  * Opens the context menu at the location determined by the given mouse event.
18
23
  * @public
@@ -0,0 +1,97 @@
1
+ import { Canvas } from '../../interfaces/canvas';
2
+ /**
3
+ * The configuration for the visual behavior of a diagram in the user interface.
4
+ * @public
5
+ */
6
+ export interface CanvasConfig {
7
+ /**
8
+ * Configuration for the context menu in this diagram.
9
+ * If left undefined, the default context menu is used.
10
+ */
11
+ contextMenu?: ContextMenuConfig;
12
+ /**
13
+ * Configuration for the grid in the canvas.
14
+ * If left undefined, it is interpreted as disabling the grid,
15
+ * same as if the attribute `enabled` in its configuration was set to `false`.
16
+ */
17
+ grid?: GridConfig;
18
+ /**
19
+ * Background color of this diagram.
20
+ * @default "#FFFFFF"
21
+ */
22
+ backgroundColor?: string;
23
+ /**
24
+ * The factor by which the zoom level increases or decreases when the user users buttons or keys to zoom in or out. Should be above 1.
25
+ * @default 2
26
+ */
27
+ zoomFactor?: number;
28
+ /**
29
+ * The rate by which the view of the canvas moves when the user users buttons or keys to pan at a default zoom level in diagram units. Should be above 1.
30
+ * @default 100
31
+ */
32
+ panRate?: number;
33
+ /**
34
+ * Possible values of the priority threshold that the user can toggle between to hide nodes whose priority value is below it.
35
+ * If it is possible to toggle the priority threshold via the filter button, it should have at least two values.
36
+ * @default []
37
+ */
38
+ priorityThresholds?: number[];
39
+ }
40
+ /**
41
+ * Configuration of the guide grid in the background of the diagram.
42
+ */
43
+ export interface GridConfig {
44
+ /**
45
+ * Whether the grid is present in the diagram.
46
+ * @default true
47
+ */
48
+ enabled?: boolean;
49
+ /**
50
+ * Color of grid elements such as the points or axes.
51
+ * @default "rgba(0, 0, 0, 0.1)"
52
+ */
53
+ color?: string;
54
+ /**
55
+ * When true, the user moving or stretching nodes will cause their corners to automatically snap to the closest grid point.
56
+ * @default false
57
+ */
58
+ snap?: boolean;
59
+ /**
60
+ * Distance between each point of the grid of this diagram in diagram units.
61
+ * @default 10
62
+ */
63
+ spacing?: number;
64
+ /**
65
+ * In a range between 0 and 1, how thick the points of the grid are relative to the distance between them.
66
+ * @default 0.05
67
+ */
68
+ thickness?: number;
69
+ }
70
+ export interface ContextMenuConfig {
71
+ /**
72
+ * Custom buttons to be added to the context menu.
73
+ * @default []
74
+ */
75
+ customButtons?: ContextMenuButtonConfig[];
76
+ }
77
+ export interface ContextMenuButtonConfig {
78
+ /**
79
+ * Text on the button.
80
+ */
81
+ name: string;
82
+ /**
83
+ * File path to the image icon used by this button.
84
+ */
85
+ image?: string;
86
+ /**
87
+ * A function which is executed when the user clicks on this button.
88
+ * @param canvas The diagram's canvas.
89
+ */
90
+ onPress?: (canvas: Canvas) => void;
91
+ /**
92
+ * A function which given the canvas determines if the button should be present if the user opens a context menu on the canvas.
93
+ * @param canvas The diagram's canvas.
94
+ * @returns `true` if the button should be present on the menu, `false` otherwise.
95
+ */
96
+ condition?: (canvas: Canvas) => boolean;
97
+ }
@@ -1,9 +1,9 @@
1
- import { Point } from '../util/canvas-util';
2
- import { LineFunction, LineShape, LineStyle } from '../util/line';
3
- import { ClosedShape, ShapeFunction } from '../util/shape';
4
- import { Corner, HorizontalAlign, Side, VerticalAlign } from '../util/svg-util';
5
- import { DiagramActions } from './diagram-action';
6
- import { Property } from './model/diagram-property';
1
+ import { Point } from '../../util/canvas-util';
2
+ import { Corner, HorizontalAlign, Side, VerticalAlign } from '../../util/svg-util';
3
+ import { DiagramActions } from '../diagram-action';
4
+ import { Property } from '../model/diagram-property';
5
+ import { CanvasConfig } from './diagram-canvas-config';
6
+ import { ConnectionLookConfig, ImageLookConfig, MarkerImageLookConfig, ShapedLookConfig, StretchableImageLookConfig } from './diagram-look-config';
7
7
  /**
8
8
  * The configuration for a diagram.
9
9
  * @public
@@ -87,69 +87,6 @@ export interface DiagramConfig {
87
87
  */
88
88
  properties?: Property[];
89
89
  }
90
- /**
91
- * The configuration for the visual behavior of a diagram in the user interface.
92
- * @public
93
- */
94
- export interface CanvasConfig {
95
- /**
96
- * Configuration for the grid in the canvas.
97
- * If left undefined, it is interpreted as disabling the grid,
98
- * same as if the attribute `enabled` in its configuration was set to `false`.
99
- */
100
- grid?: GridConfig;
101
- /**
102
- * Background color of this diagram.
103
- * @default "#FFFFFF"
104
- */
105
- backgroundColor?: string;
106
- /**
107
- * The factor by which the zoom level increases or decreases when the user users buttons or keys to zoom in or out. Should be above 1.
108
- * @default 2
109
- */
110
- zoomFactor?: number;
111
- /**
112
- * The rate by which the view of the canvas moves when the user users buttons or keys to pan at a default zoom level in diagram units. Should be above 1.
113
- * @default 100
114
- */
115
- panRate?: number;
116
- /**
117
- * Possible values of the priority threshold that the user can toggle between to hide nodes whose priority value is below it.
118
- * If it is possible to toggle the priority threshold via the filter button, it should have at least two values.
119
- * @default []
120
- */
121
- priorityThresholds?: number[];
122
- }
123
- /**
124
- * Configuration of the guide grid in the background of the diagram.
125
- */
126
- export interface GridConfig {
127
- /**
128
- * Whether the grid is present in the diagram.
129
- * @default true
130
- */
131
- enabled?: boolean;
132
- /**
133
- * Color of grid elements such as the points or axes.
134
- * @default "rgba(0, 0, 0, 0.1)"
135
- */
136
- color?: string;
137
- /**
138
- * When true, the user moving or stretching nodes will cause their corners to automatically snap to the closest grid point.
139
- * @default false
140
- */
141
- snap?: boolean;
142
- /**
143
- * Distance between each point of the grid of this diagram in diagram units.
144
- * @default 10
145
- */
146
- spacing?: number;
147
- /**
148
- * In a range between 0 and 1, how thick the points of the grid are relative to the distance between them.
149
- * @default 0.05
150
- */
151
- thickness?: number;
152
- }
153
90
  /**
154
91
  * Configuration for which user actions are allowed in a diagram.
155
92
  * @public
@@ -348,7 +285,7 @@ export interface NodeTemplateConfig {
348
285
  /**
349
286
  * Look of this template as it appears on the palette which can be used to override the default look of the nodes of this type.
350
287
  */
351
- look?: ShapedLook | ImageLook | StretchableImageLook;
288
+ look?: ShapedLookConfig | ImageLookConfig | StretchableImageLookConfig;
352
289
  /**
353
290
  * Label of this template as it appears on the palette and label that will be given to nodes created from this template.
354
291
  */
@@ -468,10 +405,9 @@ export interface NodeTypeConfig {
468
405
  */
469
406
  ports?: PortConfig[];
470
407
  /**
471
- * Configuration of the look of nodes of this type as it should appear to the user.
472
- * @default {lookType: 'shaped-look', shape: ClosedShape.Rectangle, fillColor: '#FFFFFF', borderColor: '#000000', selectedFillColor: '#FFFFFF', selectedBorderColor: '#000000'}
408
+ * Configuration of the look of nodes of this type as they should appear to the user.
473
409
  */
474
- look?: ShapedLook | ImageLook | StretchableImageLook;
410
+ look?: ShapedLookConfig | ImageLookConfig | StretchableImageLookConfig;
475
411
  /**
476
412
  * If true and a node of this type already exists in the diagram, the user can't create more nodes of this type.
477
413
  * @default false
@@ -524,7 +460,7 @@ export interface PortTypeConfig {
524
460
  */
525
461
  allowsIncoming?: boolean;
526
462
  /**
527
- * Configuration for the label of nodes of this type.
463
+ * Configuration for the label of ports of this type.
528
464
  * @default null
529
465
  */
530
466
  label?: FieldConfig | null;
@@ -534,10 +470,9 @@ export interface PortTypeConfig {
534
470
  */
535
471
  width?: number;
536
472
  /**
537
- * Configuration of the look of ports of this type as they should appear to the user. Can be used to override the default look of ports.
538
- * @default undefined
473
+ * Configuration of the look of ports of this type as they should appear to the user.
539
474
  */
540
- look?: ImageLook;
475
+ look?: ShapedLookConfig | ImageLookConfig;
541
476
  }
542
477
  /**
543
478
  * Configuration for a port that is part of another element.
@@ -651,7 +586,7 @@ export interface SectionGridConfig {
651
586
  */
652
587
  margin?: number;
653
588
  /**
654
- * Configuration for the sections of this grid.
589
+ * Configuration for the look of each section of this grid.
655
590
  * @default [[]]
656
591
  */
657
592
  sections: SectionConfig[][];
@@ -673,162 +608,15 @@ export interface SectionConfig {
673
608
  */
674
609
  ports?: PortConfig[];
675
610
  /**
676
- * Configuration of the look of the sections as it should appear to the user.
677
- * @default {lookType: 'shaped-look', shape: ClosedShape.Rectangle, color: '#FFFFFF', borderColor: '#000000', selectedColor: '#FFFFFF', selectedBorderColor: '#000000'}
611
+ * Configuration of the look of nodes of this type as they should appear to the user.
678
612
  */
679
- look?: ShapedLook | ImageLook | StretchableImageLook;
613
+ look?: ShapedLookConfig | ImageLookConfig | StretchableImageLookConfig;
680
614
  /**
681
615
  * The priority of this section when filtering out sections below a given threshold.
682
616
  * @default 0
683
617
  */
684
618
  priority?: number;
685
619
  }
686
- /**
687
- * Configuration for the look of a node given by shape and color.
688
- * @public
689
- */
690
- export interface ShapedLook {
691
- /**
692
- * String used to discern the type of node look this is.
693
- */
694
- lookType: 'shaped-look';
695
- /**
696
- * Shape of nodes using this look.
697
- */
698
- shape: ClosedShape | ShapeFunction;
699
- /**
700
- * Background color of nodes using this look.
701
- */
702
- fillColor: string;
703
- /**
704
- * Border color of nodes using this look.
705
- */
706
- borderColor: string;
707
- /**
708
- * Background color of nodes using this look when selected.
709
- */
710
- selectedFillColor: string;
711
- /**
712
- * Border color of nodes using this look when selected.
713
- */
714
- selectedBorderColor: string;
715
- }
716
- /**
717
- * Configuration for the look of a node given by an image.
718
- * @public
719
- */
720
- export interface ImageLook {
721
- /**
722
- * String used to discern the type of node look this is.
723
- */
724
- lookType: 'image-look';
725
- /**
726
- * File path to the background image used by nodes using this look.
727
- */
728
- backgroundImage: string;
729
- /**
730
- * File path to the background image used by nodes using this look when selected.
731
- */
732
- selectedBackgroundImage: string;
733
- }
734
- /**
735
- * Configuration for the look of a node given by fixed size images in the corners and stretchable images in the middle.
736
- * @public
737
- */
738
- export interface StretchableImageLook {
739
- /**
740
- * String used to discern the type of node look this is.
741
- */
742
- lookType: 'stretchable-image-look';
743
- /**
744
- * Width taken up by the images at the left of nodes using this look in diagram units.
745
- */
746
- leftMargin: number;
747
- /**
748
- * Width taken up by the images at the right of nodes using this look in diagram units.
749
- */
750
- rightMargin: number;
751
- /**
752
- * Width taken up by the images at the top of nodes using this look in diagram units.
753
- */
754
- topMargin: number;
755
- /**
756
- * Width taken up by the images at the bottom of nodes using this look in diagram units.
757
- */
758
- bottomMargin: number;
759
- /**
760
- * File path to the background image used at the top left of nodes using this look.
761
- */
762
- backgroundImageTopLeft: string;
763
- /**
764
- * File path to the background image used at the top of nodes using this look.
765
- */
766
- backgroundImageTop: string;
767
- /**
768
- * File path to the background image used at the top right of nodes using this look.
769
- */
770
- backgroundImageTopRight: string;
771
- /**
772
- * File path to the background image used at the left of nodes using this look.
773
- */
774
- backgroundImageLeft: string;
775
- /**
776
- * File path to the background image used at the center of nodes using this look.
777
- */
778
- backgroundImageCenter: string;
779
- /**
780
- * File path to the background image used at the right of nodes using this look.
781
- */
782
- backgroundImageRight: string;
783
- /**
784
- * File path to the background image used at the bottom left of nodes using this look.
785
- */
786
- backgroundImageBottomLeft: string;
787
- /**
788
- * File path to the background image used at the bottom of nodes using this look.
789
- */
790
- backgroundImageBottom: string;
791
- /**
792
- * File path to the background image used at the bottom right of nodes using this look.
793
- */
794
- backgroundImageBottomRight: string;
795
- /**
796
- * File path to the background image used at the top left of nodes using this look when selected.
797
- */
798
- selectedBackgroundImageTopLeft: string;
799
- /**
800
- * File path to the background image used at the top of nodes using this look when selected.
801
- */
802
- selectedBackgroundImageTop: string;
803
- /**
804
- * File path to the background image used at the top right of nodes using this look when selected.
805
- */
806
- selectedBackgroundImageTopRight: string;
807
- /**
808
- * File path to the background image used at the left of nodes using this look when selected.
809
- */
810
- selectedBackgroundImageLeft: string;
811
- /**
812
- * File path to the background image used at the center of nodes using this look when selected.
813
- */
814
- selectedBackgroundImageCenter: string;
815
- /**
816
- * File path to the background image used at the right of nodes using this look when selected.
817
- */
818
- selectedBackgroundImageRight: string;
819
- /**
820
- * File path to the background image used at the bottom left of nodes using this look when selected.
821
- */
822
- selectedBackgroundImageBottomLeft: string;
823
- /**
824
- * File path to the background image used at the bottom of nodes using this look when selected.
825
- */
826
- selectedBackgroundImageBottom: string;
827
- /**
828
- * File path to the background image used at the bottom right of nodes using this look when selected.
829
- */
830
- selectedBackgroundImageBottomRight: string;
831
- }
832
620
  /**
833
621
  * Configuration for a type of connection.
834
622
  * @public
@@ -843,45 +631,24 @@ export interface ConnectionTypeConfig {
843
631
  * Name of this type of connection as displayed to the user.
844
632
  */
845
633
  name?: string;
846
- /**
847
- * Color of the line of connections of this type.
848
- * @default '#000000'
849
- */
850
- color?: string;
851
- /**
852
- * Color of the line of connections of this type when selected.
853
- * @default '#000000'
854
- */
855
- selectedColor?: string;
856
- /**
857
- * Width of the line of connections of this type in diagram units.
858
- * @default 1
859
- */
860
- width?: number;
861
- /**
862
- * Shape of the line of connections of this type.
863
- * @default 'straight'
864
- */
865
- shape?: LineShape | LineFunction;
866
- /**
867
- * Style of the line of connections of this type.
868
- * @default 'solid'
869
- */
870
- style?: LineStyle;
871
634
  /**
872
635
  * Configuration of the labels of connections of this type.
873
636
  */
874
637
  label?: FieldConfig | null;
638
+ /**
639
+ * Configuration of the look of connections of this type as they should appear to the user.
640
+ */
641
+ look?: ConnectionLookConfig;
875
642
  /**
876
643
  * Configuration of the look of the marker at the start of connections of this type as it should appear to the user. Undefined for no marker.
877
- * @default null
644
+ * @default undefined
878
645
  */
879
- defaultStartMarkerLook?: ConnectionMarkerLook | null;
646
+ startMarkerLook?: MarkerImageLookConfig;
880
647
  /**
881
648
  * Configuration of the look of the marker at the end of connections of this type as it should appear to the user. Undefined for no marker.
882
- * @default null
649
+ * @default undefined
883
650
  */
884
- defaultEndMarkerLook?: ConnectionMarkerLook | null;
651
+ endMarkerLook?: MarkerImageLookConfig;
885
652
  /**
886
653
  * Ids of the types of nodes that connections of this type can start from. Must correspond to the ids of types of node defined in the nodeTypes list. Should list one id at minimum.
887
654
  * @default []
@@ -899,41 +666,3 @@ export interface ConnectionTypeConfig {
899
666
  */
900
667
  properties?: Property[];
901
668
  }
902
- /**
903
- * Configuration for the look of the markers at the start and end of a connection.
904
- * @public
905
- */
906
- export interface ConnectionMarkerLook {
907
- /**
908
- * File path to the image used for the marker.
909
- */
910
- image: string;
911
- /**
912
- * File path to the image used for the marker when selected.
913
- */
914
- selectedImage: string;
915
- /**
916
- * The width of the marker in diagram units.
917
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker |marker}
918
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/markerWidth |markerWidth}
919
- */
920
- markerWidth: number;
921
- /**
922
- * The height of the marker in diagram units.
923
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker |marker}
924
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/markerHeight |markerHeight}
925
- */
926
- markerHeight: number;
927
- /**
928
- * The x coordinate of the reference point of the image used for the marker.
929
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker |marker}
930
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/refX |refX}
931
- */
932
- markerRefX: number;
933
- /**
934
- * The y coordinate of the reference point of the image used for the marker.
935
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Element/marker |marker}
936
- * @see {@link https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/refY |refY}
937
- */
938
- markerRefY: number;
939
- }