@metadev/daga 5.0.4 → 5.0.5
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/index.cjs.js +4 -4
- package/index.esm.js +4 -4
- package/package.json +3 -2
- package/src/lib/diagram/config/diagram-config.d.ts +1 -1
- package/Changelog.md +0 -415
- package/LICENSE.md +0 -13
- package/README.md +0 -78
package/index.cjs.js
CHANGED
|
@@ -2700,7 +2700,7 @@ const DIAGRAM_FIELD_DEFAULTS = {
|
|
|
2700
2700
|
fontFamily: "'Wonder Unit Sans', sans-serif",
|
|
2701
2701
|
color: '#000000',
|
|
2702
2702
|
selectedColor: '#000000',
|
|
2703
|
-
backgroundColor: '
|
|
2703
|
+
backgroundColor: 'transparent',
|
|
2704
2704
|
horizontalAlign: exports.HorizontalAlign.Center,
|
|
2705
2705
|
verticalAlign: exports.VerticalAlign.Center,
|
|
2706
2706
|
orientation: exports.Side.Top,
|
|
@@ -7886,7 +7886,7 @@ class DiagramCanvas {
|
|
|
7886
7886
|
this.zoomBehavior.translateTo(this.selectCanvasView(), currentX, currentY);
|
|
7887
7887
|
}
|
|
7888
7888
|
} catch (e) {
|
|
7889
|
-
console.warn('Animation has been interrupted');
|
|
7889
|
+
console.warn('Animation has been interrupted.', e);
|
|
7890
7890
|
animationInterrupted = true;
|
|
7891
7891
|
}
|
|
7892
7892
|
};
|
|
@@ -8940,7 +8940,7 @@ class DiagramCanvas {
|
|
|
8940
8940
|
let middleLabelShiftY = 0;
|
|
8941
8941
|
let endLabelShiftX = 0;
|
|
8942
8942
|
let endLabelShiftY = 0;
|
|
8943
|
-
if (labelConfiguration.backgroundColor === '
|
|
8943
|
+
if (labelConfiguration.backgroundColor === 'transparent') {
|
|
8944
8944
|
// background color is transparent / not set, so we find an alternative position for the label
|
|
8945
8945
|
const deltaX = connection.endCoords[0] - connection.startCoords[0];
|
|
8946
8946
|
const deltaY = connection.endCoords[1] - connection.startCoords[1];
|
|
@@ -9347,7 +9347,7 @@ class DiagramCanvas {
|
|
|
9347
9347
|
}
|
|
9348
9348
|
}).on(exports.Events.KeyUp, event => {
|
|
9349
9349
|
event.stopPropagation();
|
|
9350
|
-
}).on(exports.Events.Input,
|
|
9350
|
+
}).on(exports.Events.Input, _event => {
|
|
9351
9351
|
const value = inputField.property('value');
|
|
9352
9352
|
inputField.attr('cols', numberOfColumns(value) + 1);
|
|
9353
9353
|
inputField.attr('rows', numberOfRows(value) + 1);
|
package/index.esm.js
CHANGED
|
@@ -2679,7 +2679,7 @@ const DIAGRAM_FIELD_DEFAULTS = {
|
|
|
2679
2679
|
fontFamily: "'Wonder Unit Sans', sans-serif",
|
|
2680
2680
|
color: '#000000',
|
|
2681
2681
|
selectedColor: '#000000',
|
|
2682
|
-
backgroundColor: '
|
|
2682
|
+
backgroundColor: 'transparent',
|
|
2683
2683
|
horizontalAlign: HorizontalAlign.Center,
|
|
2684
2684
|
verticalAlign: VerticalAlign.Center,
|
|
2685
2685
|
orientation: Side.Top,
|
|
@@ -7865,7 +7865,7 @@ class DiagramCanvas {
|
|
|
7865
7865
|
this.zoomBehavior.translateTo(this.selectCanvasView(), currentX, currentY);
|
|
7866
7866
|
}
|
|
7867
7867
|
} catch (e) {
|
|
7868
|
-
console.warn('Animation has been interrupted');
|
|
7868
|
+
console.warn('Animation has been interrupted.', e);
|
|
7869
7869
|
animationInterrupted = true;
|
|
7870
7870
|
}
|
|
7871
7871
|
};
|
|
@@ -8919,7 +8919,7 @@ class DiagramCanvas {
|
|
|
8919
8919
|
let middleLabelShiftY = 0;
|
|
8920
8920
|
let endLabelShiftX = 0;
|
|
8921
8921
|
let endLabelShiftY = 0;
|
|
8922
|
-
if (labelConfiguration.backgroundColor === '
|
|
8922
|
+
if (labelConfiguration.backgroundColor === 'transparent') {
|
|
8923
8923
|
// background color is transparent / not set, so we find an alternative position for the label
|
|
8924
8924
|
const deltaX = connection.endCoords[0] - connection.startCoords[0];
|
|
8925
8925
|
const deltaY = connection.endCoords[1] - connection.startCoords[1];
|
|
@@ -9326,7 +9326,7 @@ class DiagramCanvas {
|
|
|
9326
9326
|
}
|
|
9327
9327
|
}).on(Events.KeyUp, event => {
|
|
9328
9328
|
event.stopPropagation();
|
|
9329
|
-
}).on(Events.Input,
|
|
9329
|
+
}).on(Events.Input, _event => {
|
|
9330
9330
|
const value = inputField.property('value');
|
|
9331
9331
|
inputField.attr('cols', numberOfColumns(value) + 1);
|
|
9332
9332
|
inputField.attr('rows', numberOfRows(value) + 1);
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metadev/daga",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
4
5
|
"dependencies": {},
|
|
5
6
|
"peerDependencies": {
|
|
6
7
|
"d3": "^7.9.0",
|
|
7
8
|
"rxjs": "~7.8.1",
|
|
8
|
-
"uuid": "^
|
|
9
|
+
"uuid": "^14.0.0"
|
|
9
10
|
},
|
|
10
11
|
"main": "./index.cjs.js",
|
|
11
12
|
"typings": "./src/index.d.ts",
|
package/Changelog.md
DELETED
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
# DAGA Changelog
|
|
2
|
-
|
|
3
|
-
List of releases and changes.
|
|
4
|
-
|
|
5
|
-

|
|
6
|
-
|
|
7
|
-
## Next release Durendal
|
|
8
|
-
|
|
9
|
-
## 5.0.4
|
|
10
|
-
|
|
11
|
-
- Fix check for whether a browser is Safari [#363](https://github.com/metadevpro/daga/pull/363)
|
|
12
|
-
- Fix `getViewCoordinates()` canvas method to return coordinates such that using those coordinates for the `translateTo()` method results in no changes [#364](https://github.com/metadevpro/daga/pull/364)
|
|
13
|
-
- Add `zoomAndPanTo()` method to canvas to enable zooming and panning with animation [#364](https://github.com/metadevpro/daga/pull/364)
|
|
14
|
-
- Enable configuring nodes and sections to be only resizable when selected [#365](https://github.com/metadevpro/daga/pull/365)
|
|
15
|
-
- Configure center animation duration in buttons component [#368](https://github.com/metadevpro/daga/pull/368)
|
|
16
|
-
- Handle interruptions in zoom and pan animations [#369](https://github.com/metadevpro/daga/pull/369)
|
|
17
|
-
- Render ports on top of connections in diagram [#370](https://github.com/metadevpro/daga/pull/370)
|
|
18
|
-
- Enable making a connection pass through extra points if configured as such [#371](https://github.com/metadevpro/daga/pull/371)
|
|
19
|
-
- Allow configuring the tightening of connections across ports of different types [#372](https://github.com/metadevpro/daga/pull/372)
|
|
20
|
-
- Fix bug where the `DagaImporter` fails to create a node's label if it's blank [#373](https://github.com/metadevpro/daga/pull/373)
|
|
21
|
-
- Add `openTextInput` method to `Canvas` to enable opening a text box editor for a text via API [#374](https://github.com/metadevpro/daga/pull/374)
|
|
22
|
-
- Remove usage of `<foreignObject>` elements for diagram fields [#375](https://github.com/metadevpro/daga/pull/375)
|
|
23
|
-
- Add a `DiagramDraggingNodeEvent` for when the user drags a node to enable listening to the active dragging of a node if unfinished [#376](https://github.com/metadevpro/daga/pull/376)
|
|
24
|
-
- Add `multiline` property to label configuration to enable toggling whether a label should be multiline or not [#378](https://github.com/metadevpro/daga/pull/378)
|
|
25
|
-
- Fix bug where diagram properties with a `null` value fail because the `clone` function fails with `null` values [#379](https://github.com/metadevpro/daga/pull/379)
|
|
26
|
-
- Fix bugs in incorrect calculation of the margin of connection labels [#382](https://github.com/metadevpro/daga/pull/382)
|
|
27
|
-
|
|
28
|
-
## 5.0.3
|
|
29
|
-
|
|
30
|
-
- Force location of field `<foreignObject>` tags in webkit browsers [#356](https://github.com/metadevpro/daga/pull/356)
|
|
31
|
-
- Use `<g>` instead of `<foreignObject>` for containers of diagram decorators and objects [#357](https://github.com/metadevpro/daga/pull/357)
|
|
32
|
-
|
|
33
|
-
## 5.0.2
|
|
34
|
-
|
|
35
|
-
- Found bug in ng-packagr. Fix package with revert to ng-packagr 21.0.1
|
|
36
|
-
|
|
37
|
-
## 5.0.1
|
|
38
|
-
|
|
39
|
-
- Update libraries and peer dependences [#354](https://github.com/metadevpro/daga/pull/354)
|
|
40
|
-
|
|
41
|
-
## 5.0.0 Joyeuse
|
|
42
|
-
|
|
43
|
-
- Support for Angular 21 [#346](https://github.com/metadevpro/daga/pull/346)
|
|
44
|
-
- Ensure that an array remains an array after cloning [#349](https://github.com/metadevpro/daga/pull/349)
|
|
45
|
-
- When checking if a port is being shared, ignore connections that have been removed [#350](https://github.com/metadevpro/daga/pull/350)
|
|
46
|
-
- Create `DiagramZoomEvent` to enable listening to user zooming and panning events [#351](https://github.com/metadevpro/daga/pull/351)
|
|
47
|
-
|
|
48
|
-
## v. 4.2.10
|
|
49
|
-
|
|
50
|
-
- Fix errors with cloned objects containing functions [#345](https://github.com/metadevpro/daga/pull/345)
|
|
51
|
-
|
|
52
|
-
## v. 4.2.9
|
|
53
|
-
|
|
54
|
-
- Enable configuring the text heading the diagram properties component to values other than `'Diagram properties'` [#341](https://github.com/metadevpro/daga/pull/341)
|
|
55
|
-
- Enable opening diagram properties in property editor even without involving a deselection [#342](https://github.com/metadevpro/daga/pull/342)
|
|
56
|
-
- Enable binding properties of diagram elements to the element's `lookConfig` when applicable [#343](https://github.com/metadevpro/daga/pull/343)
|
|
57
|
-
|
|
58
|
-
## v. 4.2.8
|
|
59
|
-
|
|
60
|
-
- Add a snap to grid offset to node types [#337](https://github.com/metadevpro/daga/pull/337)
|
|
61
|
-
- Add `selectedAndHighlightedLook` variable to `LookConfig` [#338](https://github.com/metadevpro/daga/pull/338)
|
|
62
|
-
- Improve pathing algorithm for connections of `shape` of type `square` [#339](https://github.com/metadevpro/daga/pull/339)
|
|
63
|
-
|
|
64
|
-
## v. 4.2.7
|
|
65
|
-
|
|
66
|
-
- Adjust connection label positioning [#334](https://github.com/metadevpro/daga/pull/334)
|
|
67
|
-
- Prevent connections from jumping when highlighted [#335](https://github.com/metadevpro/daga/pull/335)
|
|
68
|
-
- Preserve `stroke-dasharray` length of lines and borders when highlighted [#335](https://github.com/metadevpro/daga/pull/335)
|
|
69
|
-
|
|
70
|
-
## v. 4.2.6
|
|
71
|
-
|
|
72
|
-
- Fix bug where editing a property with a root attribute fails in React [#323](https://github.com/metadevpro/daga/pull/323)
|
|
73
|
-
- Fix bug where nodes dragged from the palette are off center in React [#324](https://github.com/metadevpro/daga/pull/324)
|
|
74
|
-
- Adjust connection label locations [#326](https://github.com/metadevpro/daga/pull/326)
|
|
75
|
-
|
|
76
|
-
## v. 4.2.5
|
|
77
|
-
|
|
78
|
-
- Add methods `getZoomLevel()` and `getViewCoordinates()` in `canvas` to obtain the current zoom and pan level of the view [#317](https://github.com/metadevpro/daga/pull/317)
|
|
79
|
-
- Enable configuring the height of the palette and property editor [#319](https://github.com/metadevpro/daga/pull/319)
|
|
80
|
-
- Correctly update the connection point of ports when pasting [#321](https://github.com/metadevpro/daga/pull/321)
|
|
81
|
-
|
|
82
|
-
## v. 4.2.4
|
|
83
|
-
|
|
84
|
-
- Enable configuring line style in shaped looks [#313](https://github.com/metadevpro/daga/pull/313)
|
|
85
|
-
- Enable default values for parameters of looks [#313](https://github.com/metadevpro/daga/pull/313)
|
|
86
|
-
- Use optional `label` fields in `Property` [#314](https://github.com/metadevpro/daga/pull/314)
|
|
87
|
-
- Use default values for `basic` and `editable` fields of `Property` [#315](https://github.com/metadevpro/daga/pull/315)
|
|
88
|
-
|
|
89
|
-
## v. 4.2.3
|
|
90
|
-
|
|
91
|
-
- Enable toggling whether individual sections can be highlighted or entire nodes [#308](https://github.com/metadevpro/daga/pull/308)
|
|
92
|
-
- Enable toggling whether connections tighten automatically and whether they can loop and share ports [#309](https://github.com/metadevpro/daga/pull/309)
|
|
93
|
-
- Enable toggling background color of connection label [#310](https://github.com/metadevpro/daga/pull/310)
|
|
94
|
-
|
|
95
|
-
## v. 4.2.2
|
|
96
|
-
|
|
97
|
-
- Fix zoom on double click [#307](https://github.com/metadevpro/daga/pull/307)
|
|
98
|
-
|
|
99
|
-
## v. 4.2.1
|
|
100
|
-
|
|
101
|
-
- Apply zoom when scrolling over diagram elements [#278](https://github.com/metadevpro/daga/issues/278) [#290](https://github.com/metadevpro/daga/pull/290)
|
|
102
|
-
- Add `shrink` parameter to canvas method `fitNodeInView()` to toggle whether nodes and sections should be shrunk as part of the fitting process [#293](https://github.com/metadevpro/daga/pull/293)
|
|
103
|
-
- Correctly fire UpdateValuesAction when updating the type of a node or connection [#297](https://github.com/metadevpro/daga/pull/297)
|
|
104
|
-
- Enable configuring the resizability of node sections independently from their node [#298](https://github.com/metadevpro/daga/pull/298)
|
|
105
|
-
- Correctly account for the rotation of a label when calculating the maximum size of the text [#300](https://github.com/metadevpro/daga/pull/300)
|
|
106
|
-
- When fitting node to its children stretch its sections as well [#301](https://github.com/metadevpro/daga/pull/301)
|
|
107
|
-
- Add anchor points for ports and decorators [#302](https://github.com/metadevpro/daga/pull/302)
|
|
108
|
-
|
|
109
|
-
## v. 4.2.0 Longclaw
|
|
110
|
-
|
|
111
|
-
- Support for Angular 20
|
|
112
|
-
- Allow toggling the size of node templates in palette [#287](https://github.com/metadevpro/daga/pull/287)
|
|
113
|
-
- Allow configuring the orientation of a field [#288](https://github.com/metadevpro/daga/pull/288)
|
|
114
|
-
- Solve bug where a node covers the input field when editing its label [#288](https://github.com/metadevpro/daga/pull/288)
|
|
115
|
-
- Use the correct default value when creating a new node with values with root attribute [#289](https://github.com/metadevpro/daga/pull/289)
|
|
116
|
-
|
|
117
|
-
## v. 4.1.0 Heartsbane
|
|
118
|
-
|
|
119
|
-
- Add methods for adding and removing rows and columns of sections in a node [#277](https://github.com/metadevpro/daga/pull/277)
|
|
120
|
-
- Allow toggling gapSize in layout algorithms [#279](https://github.com/metadevpro/daga/pull/279)
|
|
121
|
-
- Raise ports after raising sections inside nodes so that sections don't hide ports [#280](https://github.com/metadevpro/daga/pull/280)
|
|
122
|
-
- Add `fieldRootFitsInView()` method to canvas [#281](https://github.com/metadevpro/daga/pull/281)
|
|
123
|
-
- Add `shrink` parameter to canvas method `fitFieldRootInView()` to toggle whether nodes and sections should be shrunk as part of the fitting process [#282](https://github.com/metadevpro/daga/pull/282)
|
|
124
|
-
- Set root vlaue of property to default value when resetting values [#284](https://github.com/metadevpro/daga/pull/284)
|
|
125
|
-
|
|
126
|
-
## v. 4.0.3
|
|
127
|
-
|
|
128
|
-
- Allow angular 20.
|
|
129
|
-
- Fix bug with connections breaking when they have an id which is not a valid CSS selector [#277](https://github.com/metadevpro/daga/pull/277)
|
|
130
|
-
|
|
131
|
-
## v. 4.0.2
|
|
132
|
-
|
|
133
|
-
- Add grid style [#261](https://github.com/metadevpro/daga/pull/261)
|
|
134
|
-
- Fix bug where user could perform an action they are not allowed to by using the keyboard [#264](https://github.com/metadevpro/daga/pull/264)
|
|
135
|
-
- Fix bug with boolean input not displaying properly in React [#266](https://github.com/metadevpro/daga/pull/266)
|
|
136
|
-
- Fix bug with not being able to edit nested value sets in property editor in React [#267](https://github.com/metadevpro/daga/pull/267)
|
|
137
|
-
- Fix bug with hexadecimal characters not allowed in colors [#268](https://github.com/metadevpro/daga/pull/268)
|
|
138
|
-
- Make diagram decorators behave as extensions of their diagram node when clicking or hovering over them [#270](https://github.com/metadevpro/daga/pull/270)
|
|
139
|
-
- Make zoom not affect multiple selection rectangle [#271](https://github.com/metadevpro/daga/pull/271)
|
|
140
|
-
- Enable making decorators inherent to a node type [#272](https://github.com/metadevpro/daga/pull/272)
|
|
141
|
-
|
|
142
|
-
## v. 4.0.1
|
|
143
|
-
|
|
144
|
-
- Ensure borders of nodes are fully contained within palette [#253](https://github.com/metadevpro/daga/pull/253)
|
|
145
|
-
- Adjust nodes in palette [#254](https://github.com/metadevpro/daga/pull/254)
|
|
146
|
-
- Fix bug where dragging a decorator creates a multiple selection instead of dragging the node [#257](https://github.com/metadevpro/daga/pull/257)
|
|
147
|
-
- Allow special characters in diagram element identifiers [#258](https://github.com/metadevpro/daga/pull/258)
|
|
148
|
-
- Add custom context menu buttons [#259](https://github.com/metadevpro/daga/pull/259)
|
|
149
|
-
|
|
150
|
-
## v. 4.0.0 Hielo
|
|
151
|
-
|
|
152
|
-
- Expose `viewInitialized$` observable in diagram component [#239](https://github.com/metadevpro/daga/pull/239)
|
|
153
|
-
- Throw error when a diagram element is initialized with an empty or null id to prevent errors with selectors caused by empty ids [#240](https://github.com/metadevpro/daga/pull/240)
|
|
154
|
-
- Change the structure of the configuration for the looks of nodes, sections, ports and connections [#244](https://github.com/metadevpro/daga/pull/244)
|
|
155
|
-
- Ensure that the type of a node can be changed safely [#244](https://github.com/metadevpro/daga/pull/244)
|
|
156
|
-
- Fix error with text map properties disappearing on update [#245](https://github.com/metadevpro/daga/pull/245)
|
|
157
|
-
|
|
158
|
-
## v. 3.1.5
|
|
159
|
-
|
|
160
|
-
Date: _2025-02-07_
|
|
161
|
-
|
|
162
|
-
- Fix bug with the initial loading of a diagram not working [#226](https://github.com/metadevpro/daga/pull/226)
|
|
163
|
-
- Ensure that the parent element of a diagram has fully loaded before initializing the view [#226](https://github.com/metadevpro/daga/pull/226)
|
|
164
|
-
- Ensure that the elements of a diagram are rendered in the correct order after importing a diagram [#228](https://github.com/metadevpro/daga/pull/228)
|
|
165
|
-
- Add port directionality such that ports can be configured as only allowing incoming connections or only allowing outgoing connections [#229](https://github.com/metadevpro/daga/pull/229)
|
|
166
|
-
- Add port types and enable configuring the look of ports and the start/end point of connections within the port [#230](https://github.com/metadevpro/daga/pull/230)
|
|
167
|
-
- Fix bug where the close icons for some property editor inputs wasn't showing [#231](https://github.com/metadevpro/daga/pull/231)
|
|
168
|
-
- Enable configuring the labels of ports [#233](https://github.com/metadevpro/daga/pull/233)
|
|
169
|
-
|
|
170
|
-
## v. 3.1.4
|
|
171
|
-
|
|
172
|
-
Date: _2025-01-30_
|
|
173
|
-
|
|
174
|
-
- Make dragging the palette node templates create a clone of the node appended to the diagram root instead of a child of the palette to prevent the palette from being affected by CSS transforms on the diagram [#224](https://github.com/metadevpro/daga/pull/224)
|
|
175
|
-
|
|
176
|
-
## v. 3.1.3
|
|
177
|
-
|
|
178
|
-
Date: _2025-01-26_
|
|
179
|
-
|
|
180
|
-
- Fix null-check on `DiagramField` setter [#223](https://github.com/metadevpro/daga/pull/223)
|
|
181
|
-
|
|
182
|
-
## v. 3.1.2
|
|
183
|
-
|
|
184
|
-
Date: _2025-01-24_
|
|
185
|
-
|
|
186
|
-
- Expose configuration and canvas observables in diagram component [#221](https://github.com/metadevpro/daga/pull/221)
|
|
187
|
-
- Fix bug where palette fails to reload properly [#221](https://github.com/metadevpro/daga/pull/221)
|
|
188
|
-
|
|
189
|
-
## v. 3.1.1
|
|
190
|
-
|
|
191
|
-
Date: _2025-01-23_
|
|
192
|
-
|
|
193
|
-
- Enable switching the configuration of a diagram [#220](https://github.com/metadevpro/daga/pull/220)
|
|
194
|
-
- Remove `viewInitialized$` subject in canvas [#220](https://github.com/metadevpro/daga/pull/220)
|
|
195
|
-
|
|
196
|
-
## v. 3.1.0 Excalibur
|
|
197
|
-
|
|
198
|
-
Date: _2025-01-21_
|
|
199
|
-
|
|
200
|
-
- Add node continence [#200](https://github.com/metadevpro/daga/pull/200)
|
|
201
|
-
- Enable defining custom shape functions for nodes in the configuration [#206](https://github.com/metadevpro/daga/pull/206)
|
|
202
|
-
- Fix order of diagram elements [#208](https://github.com/metadevpro/daga/pull/208)
|
|
203
|
-
- Simplify usage of `<daga-diagram>` tag in Angular by removing the need to include a `<daga-diagram-editor>` inside [#210](https://github.com/metadevpro/daga/pull/210)
|
|
204
|
-
- Distinguish between diagram actions (which affect the model) and diagram events (which don't affect the model) [#210](https://github.com/metadevpro/daga/pull/210)
|
|
205
|
-
- Add layout action so layouts applied by the user can be undone and redone (which don't affect the model) [#210](https://github.com/metadevpro/daga/pull/210)
|
|
206
|
-
- Add diagram events for the selection and highlight of diagram elements [#212](https://github.com/metadevpro/daga/pull/212) [#214](https://github.com/metadevpro/daga/pull/214)
|
|
207
|
-
- Enable customizing the look of nodes in the palette [#216](https://github.com/metadevpro/daga/pull/216)
|
|
208
|
-
- Enable adding custom line shapes [#217](https://github.com/metadevpro/daga/pull/217)
|
|
209
|
-
|
|
210
|
-
## v. 3.0.0 Curtana
|
|
211
|
-
|
|
212
|
-
Date: _2025-01-03_
|
|
213
|
-
|
|
214
|
-
- Port to Angular 19 and update libraries [#202](https://github.com/metadevpro/daga/pull/202)
|
|
215
|
-
- Enable configuring different looks for palette connection templates based on whether the connection type is the one currently selected or not [#197](https://github.com/metadevpro/daga/pull/197)
|
|
216
|
-
- Enable configuring the gap in palette elements [#197](https://github.com/metadevpro/daga/pull/197)
|
|
217
|
-
- Enable placing palette templates in multiple columns if they fit [#197](https://github.com/metadevpro/daga/pull/197)
|
|
218
|
-
- Use grab cursor style when hovering cursor on node palette templates and pointer cursor style when hovering cursor on connection palette templates [#197](https://github.com/metadevpro/daga/pull/197)
|
|
219
|
-
|
|
220
|
-
## v. 2.0.0 Lobera
|
|
221
|
-
|
|
222
|
-
Date: _2024-11-22_
|
|
223
|
-
|
|
224
|
-
- Allow multiple selection of nodes by secondary click and drag to draw a selection rectangle [#146](https://github.com/metadevpro/daga/issues/146) [#174](https://github.com/metadevpro/daga/pull/174)
|
|
225
|
-
- Make all diagram components disabled by default in diagram configuration [#174](https://github.com/metadevpro/daga/pull/174)
|
|
226
|
-
- Rename `exists` attribute of diagram configuration of components to `enabled` [#174](https://github.com/metadevpro/daga/pull/174)
|
|
227
|
-
- Move methods regarding user selection in diagram canvas (`isInUserSelection`, `addToUserSelection`, `removeFromUserSelection`, `toggleUserSelection`, `clearUserSelection`, `deleteUserSelection`, `copyUserSelectionToClipboard`, `pasteUserSelectionFromClipboard`, `setPropertyEditorSelection`) to its own `userSelection` object in the canvas [#174](https://github.com/metadevpro/daga/pull/174)
|
|
228
|
-
- Move methods regarding user highlight in diagram canvas (`highlight`, `unhighlight`) to its own `userHighlight` object in the canvas [#174](https://github.com/metadevpro/daga/pull/174)
|
|
229
|
-
- Move methods regarding context menu in diagram canvas (`openContextMenu`, `closeContextMenu`) to its own `contextMenu` object in the canvas [#174](https://github.com/metadevpro/daga/pull/174)
|
|
230
|
-
- Split the core of Daga functionalities from the Angular-specific parts [#150](https://github.com/metadevpro/daga/issues/150) [#175](https://github.com/metadevpro/daga/pull/175)
|
|
231
|
-
- Add `Move` action type to support moving multiple elements at once [#177](https://github.com/metadevpro/daga/pull/177)
|
|
232
|
-
- When moving a selected element, move the entire user selection [#177](https://github.com/metadevpro/daga/pull/177)
|
|
233
|
-
- Fix bug with undoing paste actions not removing the correct elements [#177](https://github.com/metadevpro/daga/pull/177)
|
|
234
|
-
- Void property editor selection when selecting multiple elements [#178](https://github.com/metadevpro/daga/pull/178)
|
|
235
|
-
- Extract canvas configuration to its own object within the diagram configuration [#180](https://github.com/metadevpro/daga/pull/180)
|
|
236
|
-
- Solve bug with infinite loop on getting an element from an element set [#181](https://github.com/metadevpro/daga/pull/181)
|
|
237
|
-
- Add multiple selection menu button [#182](https://github.com/metadevpro/daga/pull/182)
|
|
238
|
-
- Do not highlight nodes when moving nodes or drawing a multiple selection rectangle [#182](https://github.com/metadevpro/daga/pull/182)
|
|
239
|
-
- Rename `guessConnectionType` to `inferConnectionType` [#185](https://github.com/metadevpro/daga/pull/185)
|
|
240
|
-
- Rename `ActionQueue` to `ActionStack` [#185](https://github.com/metadevpro/daga/pull/185)
|
|
241
|
-
- Rename `zoomRate` to `zoomFactor` [#185](https://github.com/metadevpro/daga/pull/185)
|
|
242
|
-
- Rename `validatorChanges$` to `validatorChange$`, `diagramChanges$` to `diagramChange$` and `diagramImportantChanges$` to `diagramImportantChange$` [#185](https://github.com/metadevpro/daga/pull/185)
|
|
243
|
-
- When undoing or redoing user actions, perform undo or redo repeatedly until there's an effect on the diagram [#190](https://github.com/metadevpro/daga/pull/190)
|
|
244
|
-
|
|
245
|
-
## v. 1.5.7
|
|
246
|
-
|
|
247
|
-
Date: _2024-10-16_
|
|
248
|
-
|
|
249
|
-
- Fix the selecion of layout algorithms in examples [#170](https://github.com/metadevpro/daga/pull/170)
|
|
250
|
-
- Add `daga-` prefixes to element classes to avoid stylesheet conflicts [#171](https://github.com/metadevpro/daga/pull/171)
|
|
251
|
-
- Highlight diagram elements with the error when showing an error [#171](https://github.com/metadevpro/daga/pull/171)
|
|
252
|
-
- Prevent selecting the same element multiple times [#172](https://github.com/metadevpro/daga/issues/172) [#173](https://github.com/metadevpro/daga/pull/173)
|
|
253
|
-
|
|
254
|
-
## v. 1.5.6
|
|
255
|
-
|
|
256
|
-
Date: _2024-10-10_
|
|
257
|
-
|
|
258
|
-
- Filter away removed elements by default [#168](https://github.com/metadevpro/daga/pull/168)
|
|
259
|
-
- Generalize the margin and padding of fields to enable different amounts of margin on each side [#168](https://github.com/metadevpro/daga/pull/168)
|
|
260
|
-
- Enable using the - and + keys for zoom [#168](https://github.com/metadevpro/daga/pull/168)
|
|
261
|
-
- Enable using the arrow keys for panning [#168](https://github.com/metadevpro/daga/pull/168)
|
|
262
|
-
|
|
263
|
-
## v. 1.5.5
|
|
264
|
-
|
|
265
|
-
Date: _2024-10-02_
|
|
266
|
-
|
|
267
|
-
- Ensure that decorators are always removed [#167](https://github.com/metadevpro/daga/pull/167)
|
|
268
|
-
|
|
269
|
-
## v. 1.5.4
|
|
270
|
-
|
|
271
|
-
Date: _2024-09-21_
|
|
272
|
-
|
|
273
|
-
- Add diagram decorators [#164](https://github.com/metadevpro/daga/issues/164) [#166](https://github.com/metadevpro/daga/pull/166)
|
|
274
|
-
- Enable diagram events on diagram objects [#166](https://github.com/metadevpro/daga/pull/166)
|
|
275
|
-
|
|
276
|
-
## v. 1.5.3
|
|
277
|
-
|
|
278
|
-
Date: _2024-09-09_
|
|
279
|
-
|
|
280
|
-
- Create interface for listening to user events on the diagram [#160](https://github.com/metadevpro/daga/issues/160) [#161](https://github.com/metadevpro/daga/pull/161)
|
|
281
|
-
|
|
282
|
-
## v. 1.5.2
|
|
283
|
-
|
|
284
|
-
Date: _2024-08-30_
|
|
285
|
-
|
|
286
|
-
- Create new UpdateValuesAction on debounced user changes instead of only on closing the property editor [#136](https://github.com/metadevpro/daga/issues/136) [#152](https://github.com/metadevpro/daga/pull/152)
|
|
287
|
-
- Fix bug with failing to highlight ports due to attempting to highlight ports from a removed node instead [#156](https://github.com/metadevpro/daga/pull/156)
|
|
288
|
-
- Stop propagation of keydown events on input fields to prevent deleting nodes on pressing backspace while editing a node's label [#155](https://github.com/metadevpro/daga/issues/155) [#157](https://github.com/metadevpro/daga/pull/157)
|
|
289
|
-
- Add hasProperty method to PropertySet [#158](https://github.com/metadevpro/daga/pull/158)
|
|
290
|
-
|
|
291
|
-
## v. 1.5.1
|
|
292
|
-
|
|
293
|
-
Date: _2024-06-19_
|
|
294
|
-
|
|
295
|
-
- Highlight elements when opening the context menu on them [#142](https://github.com/metadevpro/daga/pull/142)
|
|
296
|
-
- Add select all (Control+A) and invert selection (Control+I) keyboard shortcuts [#143](https://github.com/metadevpro/daga/pull/143)
|
|
297
|
-
- Enable adding to selection with Shift+Click as well as Control+Click [#145](https://github.com/metadevpro/daga/pull/145)
|
|
298
|
-
- Make context menu items focusable [#145](https://github.com/metadevpro/daga/pull/145)
|
|
299
|
-
- Only show context menu buttons if they can be clicked [#145](https://github.com/metadevpro/daga/pull/145)
|
|
300
|
-
- Select elements when opening the context menu on them [#145](https://github.com/metadevpro/daga/pull/145)
|
|
301
|
-
- Paste selection centered on the user's view or on the context menu location instead of in the place of the original selection [#147](https://github.com/metadevpro/daga/pull/147)
|
|
302
|
-
- Add diagram objects [#148](https://github.com/metadevpro/daga/pull/148)
|
|
303
|
-
- Enable toggling context menu in diagram configuration [#149](https://github.com/metadevpro/daga/pull/149)
|
|
304
|
-
- Center icons of context menu buttons [#149](https://github.com/metadevpro/daga/pull/149)
|
|
305
|
-
|
|
306
|
-
## v. 1.5.0 Colada
|
|
307
|
-
|
|
308
|
-
Date: _2024-06-06_
|
|
309
|
-
|
|
310
|
-
- Ported to Angular 18, nx 19, node 20 [#140](https://github.com/metadevpro/daga/pull/140)
|
|
311
|
-
- Add context menu and clipboard functionality [#139](https://github.com/metadevpro/daga/pull/139)
|
|
312
|
-
|
|
313
|
-
## v. 1.4.3
|
|
314
|
-
|
|
315
|
-
Date: _2024-06-04_
|
|
316
|
-
|
|
317
|
-
- Add property editor settings page [#113](https://github.com/metadevpro/daga/issues/113) [#119](https://github.com/metadevpro/daga/pull/119) [#120](https://github.com/metadevpro/daga/pull/120)
|
|
318
|
-
- Add `TextSet` and `OptionSet` property types [#121](https://github.com/metadevpro/daga/pull/121)
|
|
319
|
-
- Don't allow adding empty values in `TextList`, `TextSet` and `TextMap` property types [#121](https://github.com/metadevpro/daga/pull/121)
|
|
320
|
-
- Prevent overlapping connections [#122](https://github.com/metadevpro/daga/pull/122)
|
|
321
|
-
- Highlight a port when the pointer is close to the port while drawing a connection [#138](https://github.com/metadevpro/daga/pull/138)
|
|
322
|
-
- Adding support for collaborative actions.
|
|
323
|
-
|
|
324
|
-
## v. 1.4.2
|
|
325
|
-
|
|
326
|
-
Date: _2024-04-11_
|
|
327
|
-
|
|
328
|
-
- Allow instancing nodes and connections referencing their type by its identifier rather than having to get the type from the set of types [#94](https://github.com/metadevpro/daga/pull/94)
|
|
329
|
-
- Use logical removal of diagram elements via the `removed` flag instead of removing them from the model [#96](https://github.com/metadevpro/daga/pull/96)
|
|
330
|
-
- Add `do()` method to `DiagramAction` [#96](https://github.com/metadevpro/daga/pull/96)
|
|
331
|
-
- Only register changed values in `UpdateValuesAction` to reduce chances of overwriting when different users edit the same `ValueSet` simultaneously [#106](https://github.com/metadevpro/daga/pull/106)
|
|
332
|
-
- Define and document the behavior of `ValueSet` [#106](https://github.com/metadevpro/daga/pull/106)
|
|
333
|
-
- When creating a new `DiagramElement` with a `ValueSet`, set the `DiagramElement`'s attributes to the `ValueSet`'s values if any of the values has an associated attribute [#106](https://github.com/metadevpro/daga/pull/106)
|
|
334
|
-
- Move the components of property editor to within property editor folder for better code organization [#106](https://github.com/metadevpro/daga/pull/106)
|
|
335
|
-
- Remove Lux dependence [#106](https://github.com/metadevpro/daga/pull/106)
|
|
336
|
-
- Make the `rootAttribute` of `Property` optional to make diagram configurations simpler [#106](https://github.com/metadevpro/daga/pull/106)
|
|
337
|
-
- Improve behavior of nested `ValueSet`s [#106](https://github.com/metadevpro/daga/pull/106)
|
|
338
|
-
- Fix bug with the list of options in properties of `Option` type appearing misplaced in scrolled property editors [#116](https://github.com/metadevpro/daga/pull/116)
|
|
339
|
-
- Make property editor not appear when collapsed [#118](https://github.com/metadevpro/daga/pull/118)
|
|
340
|
-
|
|
341
|
-
## v. 1.4.1
|
|
342
|
-
|
|
343
|
-
Date: _2024-03-08_
|
|
344
|
-
|
|
345
|
-
- Fix bug with diagram changes not triggering validation [#91](https://github.com/metadevpro/daga/pull/91)
|
|
346
|
-
- Compensate for scroll when getting cursor position relative to screen [#92](https://github.com/metadevpro/daga/pull/92)
|
|
347
|
-
|
|
348
|
-
## v. 1.4.0 Tizona
|
|
349
|
-
|
|
350
|
-
Date: _2024-03-08_
|
|
351
|
-
|
|
352
|
-
- Enable configuring which components are present in a diagram [#66](https://github.com/metadevpro/daga/pull/66)
|
|
353
|
-
- Add `zoom` configurable user action and enable configuring whether zooming and panning is enabled [#66](https://github.com/metadevpro/daga/pull/66)
|
|
354
|
-
- Rename `color` configuration property of diagram to `backgroundColor` and `color` configuration property of node to `fillColor` [#65](https://github.com/metadevpro/daga/issues/65) [#69](https://github.com/metadevpro/daga/pull/69)
|
|
355
|
-
- Remove `generic-diagram.json` file and add testing diagram configuration in `test-util` file instead [#69](https://github.com/metadevpro/daga/pull/69)
|
|
356
|
-
- Fix bug with connections with zero priority not being displayed [#70](https://github.com/metadevpro/daga/pull/70)
|
|
357
|
-
- Organize the configuration for each diagram component in the diagram configuration interface [#71](https://github.com/metadevpro/daga/pull/71)
|
|
358
|
-
- Enable configuring the location of diagram components [#71](https://github.com/metadevpro/daga/pull/71)
|
|
359
|
-
- Enable configuring the presence of specific buttons in the diagram buttons [#71](https://github.com/metadevpro/daga/pull/71)
|
|
360
|
-
- Generalize the expansion and collapse animation of the diagram buttons to an arbitrary number of buttons [#71](https://github.com/metadevpro/daga/pull/71)
|
|
361
|
-
- Add `fit` option to `FieldConfig` interface. Resize nodes and sections when that option is true and the size of their labels changes. [#35](https://github.com/metadevpro/daga/pull/35)
|
|
362
|
-
- Fix [#39](https://github.com/metadevpro/daga/issues/39) Allow delete with `backspace` key for Mac (no delete key on Mac).
|
|
363
|
-
- Fix [#75](https://github.com/metadevpro/daga/issues/75) Blur event in input field. Also implement autoselect all text.
|
|
364
|
-
- Reorganize configuration of diagram sections such that each section can be configured individually [#81](https://github.com/metadevpro/daga/pull/81)
|
|
365
|
-
- Resize nodes when filtering their sections [#83](https://github.com/metadevpro/daga/pull/83)
|
|
366
|
-
- Add methods to more easily get the priority of diagram elements and get and set the priority threshold of a canvas [#83](https://github.com/metadevpro/daga/pull/83)
|
|
367
|
-
- Use `not-allowed` cursor style when the user attempts to do an action that is not allowed [#41](https://github.com/metadevpro/daga/issues/41) [#85](https://github.com/metadevpro/daga/pull/85)
|
|
368
|
-
- Group up diagram elements by their type in the dom to ensure order of drawing of diagram elements [#84](https://github.com/metadevpro/daga/issues/84) [#86](https://github.com/metadevpro/daga/pull/86)
|
|
369
|
-
- Enable two way diagram model databinding [#73](https://github.com/metadevpro/daga/issues/73) [#87](https://github.com/metadevpro/daga/pull/87)
|
|
370
|
-
- Enable making changes to the diagram in the view without broadcasting changes to the model [#87](https://github.com/metadevpro/daga/pull/87)
|
|
371
|
-
- Move example-specific assets to their example asset folder [#87](https://github.com/metadevpro/daga/pull/87)
|
|
372
|
-
- Add a diagram's ValueSet to the DagaModel and serialize and deserialize a diagram's ValueSet when exporting and importing a diagram using the default daga exporter/importer [#87](https://github.com/metadevpro/daga/pull/87)
|
|
373
|
-
|
|
374
|
-
## v. 1.3.1
|
|
375
|
-
|
|
376
|
-
Date: _2024.02.13_
|
|
377
|
-
|
|
378
|
-
- Add link to documentation and tutorials: <https://daga.metadev.pro/>
|
|
379
|
-
|
|
380
|
-
## v. 1.3.0
|
|
381
|
-
|
|
382
|
-
Date: _2024.02.12_
|
|
383
|
-
|
|
384
|
-
- Add TSDoc documentation of types, methods and fields [#62](https://github.com/metadevpro/daga/pull/62)
|
|
385
|
-
- Creatw UserActionConfig type to represent configuration of allowed user actions [#62](https://github.com/metadevpro/daga/pull/62)
|
|
386
|
-
- Fix typo in README [#62](https://github.com/metadevpro/daga/pull/62)
|
|
387
|
-
- Use `DataSource<unknown, string>` as the type for the options of `Property` instead of `DataSource<string, string>` to allow arbitrary values [#63](https://github.com/metadevpro/daga/pull/63)
|
|
388
|
-
- Improved efficiency of moving the start and end ports of a connection [#64](https://github.com/metadevpro/daga/pull/64)
|
|
389
|
-
|
|
390
|
-
## v. 1.2.0
|
|
391
|
-
|
|
392
|
-
Date: _2024.02.08_
|
|
393
|
-
|
|
394
|
-
- Enable configuring what user actions are allowed [#47](https://github.com/metadevpro/daga/issues/47) [#54](https://github.com/metadevpro/daga/pull/54)
|
|
395
|
-
- Add missing exports to index and clean up unused utils [#55](https://github.com/metadevpro/daga/pull/55)
|
|
396
|
-
- Use separate configuration defaults for `DiagramNode` and `DiagramSection` [#56](https://github.com/metadevpro/daga/pull/56)
|
|
397
|
-
- Add TypeDoc for automatic documentation generation [#58](https://github.com/metadevpro/daga/pull/58)
|
|
398
|
-
- Move all styles to a dedicated `styles` folder [#60](https://github.com/metadevpro/daga/pull/60)
|
|
399
|
-
- Remove unused CSS variables [#60](https://github.com/metadevpro/daga/pull/60)
|
|
400
|
-
- Remove ampersands from stylesheets [#60](https://github.com/metadevpro/daga/pull/60)
|
|
401
|
-
- Prefix Daga's CSS variables with `daga-` [#60](https://github.com/metadevpro/daga/pull/60)
|
|
402
|
-
- Update libraries [#60](https://github.com/metadevpro/daga/pull/60)
|
|
403
|
-
|
|
404
|
-
## v. 1.1.0
|
|
405
|
-
|
|
406
|
-
Date: _2024.02.05_
|
|
407
|
-
|
|
408
|
-
- Refactor API for sets of elements of Diagram Model [#51](https://github.com/metadevpro/daga/pull/51)
|
|
409
|
-
- Make diagrams not absolutely positioned in CSS [#50](https://github.com/metadevpro/daga/issues/50), [#52](https://github.com/metadevpro/daga/pull/52)
|
|
410
|
-
|
|
411
|
-
## v. 1.0.0
|
|
412
|
-
|
|
413
|
-
Date: _2024.02.01_
|
|
414
|
-
|
|
415
|
-
- First public version. ⚔️🚀🎉
|
package/LICENSE.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# DAGA License
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
**Metadev** offers a dual license for [**Daga**](https://metadev.pro/products/daga/).
|
|
6
|
-
Feel free to [contact](https://metadev.pro/contact/) for any inquiry about it.
|
|
7
|
-
|
|
8
|
-
1. Commercial license granted for for-profit organizations.
|
|
9
|
-
2. Free license for research and educational usages.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-

|
package/README.md
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
# Daga
|
|
2
|
-
|
|
3
|
-

|
|
4
|
-
|
|
5
|
-
Diagramming library for models.
|
|
6
|
-
|
|
7
|
-
[Daga documentation and tutorial](https://daga.metadev.pro)
|
|
8
|
-
[Daga product page](https://metadev.pro/products/daga/).
|
|
9
|
-
Made and comercial suport by [Metadev](https://metadev.pro).
|
|
10
|
-
|
|
11
|
-
## Diagram Example
|
|
12
|
-
|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
## Requirements
|
|
16
|
-
|
|
17
|
-
- Angular
|
|
18
|
-
|
|
19
|
-
### Compatibility Matrix
|
|
20
|
-
|
|
21
|
-
Please ensure you use a compatible Angular version with Daga version.
|
|
22
|
-
|
|
23
|
-
|Daga Version |Angular Version |
|
|
24
|
-
|---------:|-----:|
|
|
25
|
-
|4.2.x | 20.x |
|
|
26
|
-
|3.x | 19.x |
|
|
27
|
-
|1.5 - 2.x | 18.x |
|
|
28
|
-
|1.x - 1.4 | 17.x |
|
|
29
|
-
|
|
30
|
-
## Build Daga
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm run build
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## Generate Docs
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npm run doc
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Test
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
npm run test
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Lint
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm run lint
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Pack
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
npm run pack-daga
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
## Publish in npmjs
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
npm run publish-daga
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Tutorial & Documentation
|
|
67
|
-
|
|
68
|
-
- [Documentation, tutorial and samples](https://daga.metadev.pro/)
|
|
69
|
-
|
|
70
|
-
## License
|
|
71
|
-
|
|
72
|
-
(C) 2023-2024 [Metadev S.L.](https://metadev.pro) All rights reserved.
|
|
73
|
-
[Dual license](LICENSE.md):
|
|
74
|
-
|
|
75
|
-
1. Comercial licence for for-profit organizations.
|
|
76
|
-
2. Free license for research & educational usages.
|
|
77
|
-
|
|
78
|
-

|