@metadev/daga 3.1.0 → 3.1.2
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/Changelog.md +14 -0
- package/index.cjs.js +4 -3
- package/index.esm.js +4 -3
- package/package.json +1 -1
- package/src/lib/diagram/canvas/diagram-canvas.d.ts +0 -1
- package/src/lib/interfaces/canvas.d.ts +0 -5
package/Changelog.md
CHANGED
|
@@ -6,6 +6,20 @@ List of releases and changes.
|
|
|
6
6
|
|
|
7
7
|
## Next release Joyeuse
|
|
8
8
|
|
|
9
|
+
## v. 3.1.2
|
|
10
|
+
|
|
11
|
+
Date: _2025-01-24_
|
|
12
|
+
|
|
13
|
+
- Expose configuration and canvas observables in diagram component [#221](https://github.com/metadevpro/daga/pull/221)
|
|
14
|
+
- Fix bug where palette fails to reload properly [#221](https://github.com/metadevpro/daga/pull/221)
|
|
15
|
+
|
|
16
|
+
## v. 3.1.1
|
|
17
|
+
|
|
18
|
+
Date: _2025-01-23_
|
|
19
|
+
|
|
20
|
+
- Enable switching the configuration of a diagram [#220](https://github.com/metadevpro/daga/pull/220)
|
|
21
|
+
- Remove `viewInitialized$` subject in canvas [#220](https://github.com/metadevpro/daga/pull/220)
|
|
22
|
+
|
|
9
23
|
## v. 3.1.0 Excalibur
|
|
10
24
|
|
|
11
25
|
Date: _2025-01-21_
|
package/index.cjs.js
CHANGED
|
@@ -5956,7 +5956,6 @@ class DiagramCanvas {
|
|
|
5956
5956
|
this.dragging = false;
|
|
5957
5957
|
// used to track whether a click is secondary or primary
|
|
5958
5958
|
this.secondaryButton = false;
|
|
5959
|
-
this.viewInitialized$ = new rxjs.Subject();
|
|
5960
5959
|
this.validatorChange$ = new rxjs.Subject();
|
|
5961
5960
|
this.diagramChange$ = new rxjs.Subject();
|
|
5962
5961
|
this.diagramEvent$ = new rxjs.Subject();
|
|
@@ -6023,7 +6022,10 @@ class DiagramCanvas {
|
|
|
6023
6022
|
}
|
|
6024
6023
|
// View methods
|
|
6025
6024
|
initView(appendTo) {
|
|
6026
|
-
|
|
6025
|
+
const appendToSelection = d3__namespace.select(appendTo);
|
|
6026
|
+
// remove all children
|
|
6027
|
+
appendToSelection.html('');
|
|
6028
|
+
this.diagramRoot = appendToSelection.append('div').node();
|
|
6027
6029
|
d3__namespace.select(this.diagramRoot).attr('tabindex', 0) // make element focusable
|
|
6028
6030
|
.style('width', '100%').style('height', '100%').append('svg').style('width', '100%').style('height', '100%');
|
|
6029
6031
|
d3__namespace.select(this.diagramRoot).on(exports.Events.Click, () => {
|
|
@@ -6216,7 +6218,6 @@ class DiagramCanvas {
|
|
|
6216
6218
|
canvasBackground.attr('fill', `url(#${this.backgroundPatternId})`);
|
|
6217
6219
|
}
|
|
6218
6220
|
canvasView.append('g').attr('class', 'daga-canvas-elements');
|
|
6219
|
-
this.viewInitialized$.next();
|
|
6220
6221
|
}
|
|
6221
6222
|
zoomBy(factor) {
|
|
6222
6223
|
if (!isNaN(factor)) {
|
package/index.esm.js
CHANGED
|
@@ -5935,7 +5935,6 @@ class DiagramCanvas {
|
|
|
5935
5935
|
this.dragging = false;
|
|
5936
5936
|
// used to track whether a click is secondary or primary
|
|
5937
5937
|
this.secondaryButton = false;
|
|
5938
|
-
this.viewInitialized$ = new Subject();
|
|
5939
5938
|
this.validatorChange$ = new Subject();
|
|
5940
5939
|
this.diagramChange$ = new Subject();
|
|
5941
5940
|
this.diagramEvent$ = new Subject();
|
|
@@ -6002,7 +6001,10 @@ class DiagramCanvas {
|
|
|
6002
6001
|
}
|
|
6003
6002
|
// View methods
|
|
6004
6003
|
initView(appendTo) {
|
|
6005
|
-
|
|
6004
|
+
const appendToSelection = d3.select(appendTo);
|
|
6005
|
+
// remove all children
|
|
6006
|
+
appendToSelection.html('');
|
|
6007
|
+
this.diagramRoot = appendToSelection.append('div').node();
|
|
6006
6008
|
d3.select(this.diagramRoot).attr('tabindex', 0) // make element focusable
|
|
6007
6009
|
.style('width', '100%').style('height', '100%').append('svg').style('width', '100%').style('height', '100%');
|
|
6008
6010
|
d3.select(this.diagramRoot).on(Events.Click, () => {
|
|
@@ -6195,7 +6197,6 @@ class DiagramCanvas {
|
|
|
6195
6197
|
canvasBackground.attr('fill', `url(#${this.backgroundPatternId})`);
|
|
6196
6198
|
}
|
|
6197
6199
|
canvasView.append('g').attr('class', 'daga-canvas-elements');
|
|
6198
|
-
this.viewInitialized$.next();
|
|
6199
6200
|
}
|
|
6200
6201
|
zoomBy(factor) {
|
|
6201
6202
|
if (!isNaN(factor)) {
|
package/package.json
CHANGED
|
@@ -73,7 +73,6 @@ export declare class DiagramCanvas implements Canvas {
|
|
|
73
73
|
private dragging;
|
|
74
74
|
private secondaryButton;
|
|
75
75
|
private currentAction?;
|
|
76
|
-
readonly viewInitialized$: Subject<void>;
|
|
77
76
|
readonly validatorChange$: Subject<void>;
|
|
78
77
|
readonly diagramChange$: Subject<{
|
|
79
78
|
action: DiagramAction;
|
|
@@ -116,11 +116,6 @@ export interface Canvas {
|
|
|
116
116
|
* @public
|
|
117
117
|
*/
|
|
118
118
|
userActions: UserActionConfig;
|
|
119
|
-
/**
|
|
120
|
-
* Subject for tracking when the canvas' view is initialized.
|
|
121
|
-
* @public
|
|
122
|
-
*/
|
|
123
|
-
readonly viewInitialized$: Subject<void>;
|
|
124
119
|
/**
|
|
125
120
|
* Subject for tracking when validators are added to or removed from the canvas.
|
|
126
121
|
* @public
|