@angflow/angular 0.0.1 → 0.0.3
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/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js +24 -35
- package/dist/esm/lib/components/a11y-descriptions/a11y-descriptions.component.js.map +1 -1
- package/dist/esm/lib/components/attribution/attribution.component.js +21 -17
- package/dist/esm/lib/components/attribution/attribution.component.js.map +1 -1
- package/dist/esm/lib/components/background/background.component.js +85 -77
- package/dist/esm/lib/components/background/background.component.js.map +1 -1
- package/dist/esm/lib/components/connection-line/connection-line.component.js +34 -45
- package/dist/esm/lib/components/connection-line/connection-line.component.js.map +1 -1
- package/dist/esm/lib/components/controls/controls.component.d.ts.map +1 -1
- package/dist/esm/lib/components/controls/controls.component.js +83 -86
- package/dist/esm/lib/components/controls/controls.component.js.map +1 -1
- package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js +14 -19
- package/dist/esm/lib/components/edge-label-renderer/edge-label-renderer.component.js.map +1 -1
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js +20 -27
- package/dist/esm/lib/components/edge-toolbar/edge-toolbar.component.js.map +1 -1
- package/dist/esm/lib/components/edges/base-edge.component.js +30 -27
- package/dist/esm/lib/components/edges/base-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/bezier-edge.component.js +20 -18
- package/dist/esm/lib/components/edges/bezier-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/edge-text.component.js +24 -23
- package/dist/esm/lib/components/edges/edge-text.component.js.map +1 -1
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.js +19 -17
- package/dist/esm/lib/components/edges/simple-bezier-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/smooth-step-edge.component.js +19 -17
- package/dist/esm/lib/components/edges/smooth-step-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/step-edge.component.js +19 -17
- package/dist/esm/lib/components/edges/step-edge.component.js.map +1 -1
- package/dist/esm/lib/components/edges/straight-edge.component.js +19 -17
- package/dist/esm/lib/components/edges/straight-edge.component.js.map +1 -1
- package/dist/esm/lib/components/handle/handle.component.js +36 -46
- package/dist/esm/lib/components/handle/handle.component.js.map +1 -1
- package/dist/esm/lib/components/minimap/minimap.component.d.ts +8 -0
- package/dist/esm/lib/components/minimap/minimap.component.d.ts.map +1 -1
- package/dist/esm/lib/components/minimap/minimap.component.js +174 -75
- package/dist/esm/lib/components/minimap/minimap.component.js.map +1 -1
- package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js +12 -17
- package/dist/esm/lib/components/ng-flow-provider/ng-flow-provider.component.js.map +1 -1
- package/dist/esm/lib/components/node-resizer/node-resizer.component.js +83 -50
- package/dist/esm/lib/components/node-resizer/node-resizer.component.js.map +1 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts +1 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.d.ts.map +1 -1
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js +28 -29
- package/dist/esm/lib/components/node-toolbar/node-toolbar.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/default-node.component.js +16 -26
- package/dist/esm/lib/components/nodes/default-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/group-node.component.js +14 -15
- package/dist/esm/lib/components/nodes/group-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/input-node.component.js +15 -24
- package/dist/esm/lib/components/nodes/input-node.component.js.map +1 -1
- package/dist/esm/lib/components/nodes/output-node.component.js +15 -23
- package/dist/esm/lib/components/nodes/output-node.component.js.map +1 -1
- package/dist/esm/lib/components/panel/panel.component.js +19 -26
- package/dist/esm/lib/components/panel/panel.component.js.map +1 -1
- package/dist/esm/lib/components/selection-box/selection-box.component.d.ts +7 -0
- package/dist/esm/lib/components/selection-box/selection-box.component.d.ts.map +1 -1
- package/dist/esm/lib/components/selection-box/selection-box.component.js +69 -28
- package/dist/esm/lib/components/selection-box/selection-box.component.js.map +1 -1
- package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js +15 -22
- package/dist/esm/lib/components/viewport-portal/viewport-portal.component.js.map +1 -1
- package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts +6 -0
- package/dist/esm/lib/container/edge-renderer/edge-renderer.component.d.ts.map +1 -1
- package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js +192 -139
- package/dist/esm/lib/container/edge-renderer/edge-renderer.component.js.map +1 -1
- package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts +2 -0
- package/dist/esm/lib/container/ng-flow/ng-flow.component.d.ts.map +1 -1
- package/dist/esm/lib/container/ng-flow/ng-flow.component.js +135 -101
- package/dist/esm/lib/container/ng-flow/ng-flow.component.js.map +1 -1
- package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts +4 -0
- package/dist/esm/lib/container/node-renderer/node-renderer.component.d.ts.map +1 -1
- package/dist/esm/lib/container/node-renderer/node-renderer.component.js +164 -109
- package/dist/esm/lib/container/node-renderer/node-renderer.component.js.map +1 -1
- package/dist/esm/lib/container/pane/pane.component.d.ts.map +1 -1
- package/dist/esm/lib/container/pane/pane.component.js +23 -28
- package/dist/esm/lib/container/pane/pane.component.js.map +1 -1
- package/dist/esm/lib/container/viewport/viewport.component.js +16 -23
- package/dist/esm/lib/container/viewport/viewport.component.js.map +1 -1
- package/dist/esm/lib/directives/drag.directive.js +10 -10
- package/dist/esm/lib/directives/drag.directive.js.map +1 -1
- package/dist/esm/lib/directives/drop-zone.directive.js +9 -9
- package/dist/esm/lib/directives/drop-zone.directive.js.map +1 -1
- package/dist/esm/lib/directives/key-handler.directive.js +13 -15
- package/dist/esm/lib/directives/key-handler.directive.js.map +1 -1
- package/dist/esm/lib/directives/node-type.directive.js +12 -12
- package/dist/esm/lib/directives/node-type.directive.js.map +1 -1
- package/dist/esm/lib/services/flow-store.service.d.ts +7 -0
- package/dist/esm/lib/services/flow-store.service.d.ts.map +1 -1
- package/dist/esm/lib/services/flow-store.service.js +28 -5
- package/dist/esm/lib/services/flow-store.service.js.map +1 -1
- package/dist/esm/lib/services/ng-flow.service.d.ts +9 -9
- package/dist/esm/lib/services/ng-flow.service.d.ts.map +1 -1
- package/dist/esm/lib/services/ng-flow.service.js +18 -19
- package/dist/esm/lib/services/ng-flow.service.js.map +1 -1
- package/dist/esm/test-setup.d.ts +2 -0
- package/dist/esm/test-setup.d.ts.map +1 -0
- package/dist/esm/test-setup.js +6 -0
- package/dist/esm/test-setup.js.map +1 -0
- package/package.json +9 -3
|
@@ -2,29 +2,6 @@ import { Component, ChangeDetectionStrategy, input, output, inject, computed, vi
|
|
|
2
2
|
import { FlowStore } from '../../services/flow-store.service';
|
|
3
3
|
import { PanelComponent } from '../panel/panel.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
const _c0 = ["minimapContainer"];
|
|
6
|
-
const _forTrack0 = ($index, $item) => $item.id;
|
|
7
|
-
function MiniMapComponent_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
9
|
-
i0.ɵɵnamespaceSVG();
|
|
10
|
-
i0.ɵɵelementStart(0, "rect", 8);
|
|
11
|
-
i0.ɵɵlistener("click", function MiniMapComponent_For_10_Template_rect_click_0_listener($event) { const node_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMinimapNodeClick($event, node_r2)); });
|
|
12
|
-
i0.ɵɵelementEnd();
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const node_r2 = ctx.$implicit;
|
|
15
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
16
|
-
i0.ɵɵclassMap(ctx_r2.getNodeClassName(node_r2));
|
|
17
|
-
i0.ɵɵattribute("x", node_r2.x)("y", node_r2.y)("width", node_r2.width)("height", node_r2.height)("rx", ctx_r2.nodeBorderRadius())("fill", ctx_r2.getNodeColor(node_r2))("stroke", ctx_r2.getNodeStrokeColor(node_r2))("stroke-width", ctx_r2.nodeStrokeWidth());
|
|
18
|
-
} }
|
|
19
|
-
function MiniMapComponent_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
-
i0.ɵɵnamespaceSVG();
|
|
21
|
-
i0.ɵɵelement(0, "rect", 9)(1, "rect", 10);
|
|
22
|
-
} if (rf & 2) {
|
|
23
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
24
|
-
i0.ɵɵattribute("fill", ctx_r2.maskColor());
|
|
25
|
-
i0.ɵɵadvance();
|
|
26
|
-
i0.ɵɵattribute("x", ctx_r2.maskPosition().x)("y", ctx_r2.maskPosition().y)("width", ctx_r2.maskPosition().width)("height", ctx_r2.maskPosition().height);
|
|
27
|
-
} }
|
|
28
5
|
export class MiniMapComponent {
|
|
29
6
|
constructor() {
|
|
30
7
|
this.store = inject(FlowStore);
|
|
@@ -55,6 +32,10 @@ export class MiniMapComponent {
|
|
|
55
32
|
this.minimapClick = output();
|
|
56
33
|
this.minimapNodeClick = output();
|
|
57
34
|
this.xyMinimap = null;
|
|
35
|
+
this.animationFrameId = null;
|
|
36
|
+
this.isDragging = false;
|
|
37
|
+
this.boundOnMouseMove = this.onMinimapMouseMove.bind(this);
|
|
38
|
+
this.boundOnMouseUp = this.onMinimapMouseUp.bind(this);
|
|
58
39
|
this.minimapNodes = computed(() => {
|
|
59
40
|
this.store.version(); // react to node changes
|
|
60
41
|
const nodes = Array.from(this.store.nodeLookup.values());
|
|
@@ -135,6 +116,11 @@ export class MiniMapComponent {
|
|
|
135
116
|
const zoom = this.store.transform()[2];
|
|
136
117
|
const newX = this.store.width() / 2 - flowX * zoom;
|
|
137
118
|
const newY = this.store.height() / 2 - flowY * zoom;
|
|
119
|
+
// Cancel any in-flight animation before starting a new one
|
|
120
|
+
if (this.animationFrameId !== null) {
|
|
121
|
+
cancelAnimationFrame(this.animationFrameId);
|
|
122
|
+
this.animationFrameId = null;
|
|
123
|
+
}
|
|
138
124
|
// Animate the viewport pan over ~300ms using requestAnimationFrame
|
|
139
125
|
const startX = this.store.transform()[0];
|
|
140
126
|
const startY = this.store.transform()[1];
|
|
@@ -150,9 +136,10 @@ export class MiniMapComponent {
|
|
|
150
136
|
this.store.transform.set([currentX, currentY, zoom]);
|
|
151
137
|
this.store.bumpVersion();
|
|
152
138
|
if (t < 1) {
|
|
153
|
-
requestAnimationFrame(animate);
|
|
139
|
+
this.animationFrameId = requestAnimationFrame(animate);
|
|
154
140
|
}
|
|
155
141
|
else {
|
|
142
|
+
this.animationFrameId = null;
|
|
156
143
|
// Sync d3-zoom internal state without transition
|
|
157
144
|
try {
|
|
158
145
|
this.store.panZoom()?.syncViewport({ x: newX, y: newY, zoom });
|
|
@@ -163,7 +150,70 @@ export class MiniMapComponent {
|
|
|
163
150
|
}
|
|
164
151
|
}
|
|
165
152
|
};
|
|
166
|
-
requestAnimationFrame(animate);
|
|
153
|
+
this.animationFrameId = requestAnimationFrame(animate);
|
|
154
|
+
}
|
|
155
|
+
onMinimapMouseDown(event) {
|
|
156
|
+
if (!this.pannable())
|
|
157
|
+
return;
|
|
158
|
+
this.isDragging = true;
|
|
159
|
+
document.addEventListener('mousemove', this.boundOnMouseMove);
|
|
160
|
+
document.addEventListener('mouseup', this.boundOnMouseUp);
|
|
161
|
+
}
|
|
162
|
+
onMinimapMouseMove(event) {
|
|
163
|
+
if (!this.isDragging)
|
|
164
|
+
return;
|
|
165
|
+
const container = this.minimapContainerRef()?.nativeElement;
|
|
166
|
+
if (!container)
|
|
167
|
+
return;
|
|
168
|
+
const svgEl = container.querySelector('svg');
|
|
169
|
+
if (!svgEl)
|
|
170
|
+
return;
|
|
171
|
+
const rect = svgEl.getBoundingClientRect();
|
|
172
|
+
const clickX = event.clientX - rect.left;
|
|
173
|
+
const clickY = event.clientY - rect.top;
|
|
174
|
+
const bounds = this.computeBounds();
|
|
175
|
+
const padding = 20;
|
|
176
|
+
const vbX = bounds.x - padding;
|
|
177
|
+
const vbY = bounds.y - padding;
|
|
178
|
+
const vbW = bounds.width + padding * 2;
|
|
179
|
+
const vbH = bounds.height + padding * 2;
|
|
180
|
+
const flowX = vbX + (clickX / this.mmWidth()) * vbW;
|
|
181
|
+
const flowY = vbY + (clickY / this.mmHeight()) * vbH;
|
|
182
|
+
const zoom = this.store.transform()[2];
|
|
183
|
+
const newX = this.store.width() / 2 - flowX * zoom;
|
|
184
|
+
const newY = this.store.height() / 2 - flowY * zoom;
|
|
185
|
+
this.store.transform.set([newX, newY, zoom]);
|
|
186
|
+
this.store.bumpVersion();
|
|
187
|
+
try {
|
|
188
|
+
this.store.panZoom()?.syncViewport({ x: newX, y: newY, zoom });
|
|
189
|
+
}
|
|
190
|
+
catch { /* noop */ }
|
|
191
|
+
}
|
|
192
|
+
onMinimapMouseUp() {
|
|
193
|
+
this.isDragging = false;
|
|
194
|
+
document.removeEventListener('mousemove', this.boundOnMouseMove);
|
|
195
|
+
document.removeEventListener('mouseup', this.boundOnMouseUp);
|
|
196
|
+
}
|
|
197
|
+
onMinimapWheel(event) {
|
|
198
|
+
if (!this.zoomable())
|
|
199
|
+
return;
|
|
200
|
+
event.preventDefault();
|
|
201
|
+
const currentZoom = this.store.transform()[2];
|
|
202
|
+
const delta = -event.deltaY * (this.zoomStep() / 1000);
|
|
203
|
+
const nextZoom = Math.min(this.store.maxZoom(), Math.max(this.store.minZoom(), currentZoom + delta));
|
|
204
|
+
const [x, y] = this.store.transform();
|
|
205
|
+
// Zoom toward the center of the viewport
|
|
206
|
+
const cx = this.store.width() / 2;
|
|
207
|
+
const cy = this.store.height() / 2;
|
|
208
|
+
const scale = nextZoom / currentZoom;
|
|
209
|
+
const newX = cx - (cx - x) * scale;
|
|
210
|
+
const newY = cy - (cy - y) * scale;
|
|
211
|
+
this.store.transform.set([newX, newY, nextZoom]);
|
|
212
|
+
this.store.bumpVersion();
|
|
213
|
+
try {
|
|
214
|
+
this.store.panZoom()?.syncViewport({ x: newX, y: newY, zoom: nextZoom });
|
|
215
|
+
}
|
|
216
|
+
catch { /* noop */ }
|
|
167
217
|
}
|
|
168
218
|
onMinimapNodeClick(event, node) {
|
|
169
219
|
event.stopPropagation();
|
|
@@ -172,6 +222,11 @@ export class MiniMapComponent {
|
|
|
172
222
|
}
|
|
173
223
|
}
|
|
174
224
|
ngOnDestroy() {
|
|
225
|
+
if (this.animationFrameId !== null) {
|
|
226
|
+
cancelAnimationFrame(this.animationFrameId);
|
|
227
|
+
}
|
|
228
|
+
document.removeEventListener('mousemove', this.boundOnMouseMove);
|
|
229
|
+
document.removeEventListener('mouseup', this.boundOnMouseUp);
|
|
175
230
|
this.xyMinimap?.destroy();
|
|
176
231
|
}
|
|
177
232
|
computeBounds() {
|
|
@@ -187,54 +242,97 @@ export class MiniMapComponent {
|
|
|
187
242
|
}
|
|
188
243
|
return { x: minX, y: minY, width: maxX - minX, height: maxY - minY };
|
|
189
244
|
}
|
|
190
|
-
static { this.ɵfac =
|
|
191
|
-
static { this.ɵcmp =
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MiniMapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
246
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.6", type: MiniMapComponent, isStandalone: true, selector: "ng-flow-minimap", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, mmWidth: { classPropertyName: "mmWidth", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, mmHeight: { classPropertyName: "mmHeight", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, pannable: { classPropertyName: "pannable", publicName: "pannable", isSignal: true, isRequired: false, transformFunction: null }, zoomable: { classPropertyName: "zoomable", publicName: "zoomable", isSignal: true, isRequired: false, transformFunction: null }, zoomStep: { classPropertyName: "zoomStep", publicName: "zoomStep", isSignal: true, isRequired: false, transformFunction: null }, inversePan: { classPropertyName: "inversePan", publicName: "inversePan", isSignal: true, isRequired: false, transformFunction: null }, nodeColor: { classPropertyName: "nodeColor", publicName: "nodeColor", isSignal: true, isRequired: false, transformFunction: null }, nodeStrokeColor: { classPropertyName: "nodeStrokeColor", publicName: "nodeStrokeColor", isSignal: true, isRequired: false, transformFunction: null }, nodeClassName: { classPropertyName: "nodeClassName", publicName: "nodeClassName", isSignal: true, isRequired: false, transformFunction: null }, nodeBorderRadius: { classPropertyName: "nodeBorderRadius", publicName: "nodeBorderRadius", isSignal: true, isRequired: false, transformFunction: null }, nodeStrokeWidth: { classPropertyName: "nodeStrokeWidth", publicName: "nodeStrokeWidth", isSignal: true, isRequired: false, transformFunction: null }, nodeComponent: { classPropertyName: "nodeComponent", publicName: "nodeComponent", isSignal: true, isRequired: false, transformFunction: null }, bgColor: { classPropertyName: "bgColor", publicName: "bgColor", isSignal: true, isRequired: false, transformFunction: null }, maskColor: { classPropertyName: "maskColor", publicName: "maskColor", isSignal: true, isRequired: false, transformFunction: null }, maskStrokeColor: { classPropertyName: "maskStrokeColor", publicName: "maskStrokeColor", isSignal: true, isRequired: false, transformFunction: null }, maskStrokeWidth: { classPropertyName: "maskStrokeWidth", publicName: "maskStrokeWidth", isSignal: true, isRequired: false, transformFunction: null }, offsetScale: { classPropertyName: "offsetScale", publicName: "offsetScale", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { minimapClick: "minimapClick", minimapNodeClick: "minimapNodeClick" }, viewQueries: [{ propertyName: "minimapContainerRef", first: true, predicate: ["minimapContainer"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
247
|
+
<ng-flow-panel [position]="position()">
|
|
248
|
+
<div
|
|
249
|
+
class="ng-flow__minimap xy-flow__minimap"
|
|
250
|
+
#minimapContainer
|
|
251
|
+
[attr.aria-label]="ariaLabel()"
|
|
252
|
+
[style.width.px]="mmWidth()"
|
|
253
|
+
[style.height.px]="mmHeight()"
|
|
254
|
+
style="border-radius: 4px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 1px 4px rgba(0,0,0,0.1); cursor: pointer;"
|
|
255
|
+
(click)="onMinimapClick($event)"
|
|
256
|
+
(mousedown)="onMinimapMouseDown($event)"
|
|
257
|
+
(wheel)="onMinimapWheel($event)"
|
|
258
|
+
>
|
|
259
|
+
<svg
|
|
260
|
+
class="xy-flow__minimap-svg"
|
|
261
|
+
[attr.width]="mmWidth()"
|
|
262
|
+
[attr.height]="mmHeight()"
|
|
263
|
+
[attr.viewBox]="viewBox()"
|
|
264
|
+
>
|
|
265
|
+
<!-- Background -->
|
|
266
|
+
<rect x="-10000" y="-10000" width="20000" height="20000" [attr.fill]="bgColor() ?? '#f0f0f0'" />
|
|
267
|
+
<!-- Mask: dim area outside viewport -->
|
|
268
|
+
<defs>
|
|
269
|
+
<clipPath [attr.id]="'minimap-mask-' + store.rfId()">
|
|
270
|
+
<rect x="-10000" y="-10000" width="20000" height="20000" />
|
|
271
|
+
</clipPath>
|
|
272
|
+
</defs>
|
|
273
|
+
<!-- Viewport window (bright area) -->
|
|
274
|
+
<rect
|
|
275
|
+
[attr.x]="maskPosition().x"
|
|
276
|
+
[attr.y]="maskPosition().y"
|
|
277
|
+
[attr.width]="maskPosition().width"
|
|
278
|
+
[attr.height]="maskPosition().height"
|
|
279
|
+
fill="#fff"
|
|
280
|
+
/>
|
|
281
|
+
<!-- Nodes -->
|
|
282
|
+
@for (node of minimapNodes(); track node.id) {
|
|
283
|
+
<rect
|
|
284
|
+
class="xy-flow__minimap-node"
|
|
285
|
+
[class]="getNodeClassName(node)"
|
|
286
|
+
[attr.x]="node.x"
|
|
287
|
+
[attr.y]="node.y"
|
|
288
|
+
[attr.width]="node.width"
|
|
289
|
+
[attr.height]="node.height"
|
|
290
|
+
[attr.rx]="nodeBorderRadius()"
|
|
291
|
+
[attr.fill]="getNodeColor(node)"
|
|
292
|
+
[attr.stroke]="getNodeStrokeColor(node)"
|
|
293
|
+
[attr.stroke-width]="nodeStrokeWidth()"
|
|
294
|
+
(click)="onMinimapNodeClick($event, node)"
|
|
295
|
+
/>
|
|
296
|
+
}
|
|
297
|
+
<!-- Viewport outline -->
|
|
298
|
+
<rect
|
|
299
|
+
[attr.x]="maskPosition().x"
|
|
300
|
+
[attr.y]="maskPosition().y"
|
|
301
|
+
[attr.width]="maskPosition().width"
|
|
302
|
+
[attr.height]="maskPosition().height"
|
|
303
|
+
fill="none"
|
|
304
|
+
[attr.stroke]="maskStrokeColor() ?? 'rgba(0,89,220,0.6)'"
|
|
305
|
+
[attr.stroke-width]="maskStrokeWidth()"
|
|
306
|
+
rx="2"
|
|
307
|
+
/>
|
|
308
|
+
<!-- Mask overlay (dim non-viewport area) -->
|
|
309
|
+
@if (maskColor()) {
|
|
310
|
+
<rect x="-10000" y="-10000" width="20000" height="20000"
|
|
311
|
+
[attr.fill]="maskColor()"
|
|
312
|
+
style="pointer-events: none;"
|
|
313
|
+
/>
|
|
314
|
+
<rect
|
|
315
|
+
[attr.x]="maskPosition().x"
|
|
316
|
+
[attr.y]="maskPosition().y"
|
|
317
|
+
[attr.width]="maskPosition().width"
|
|
318
|
+
[attr.height]="maskPosition().height"
|
|
319
|
+
fill="#fff"
|
|
320
|
+
style="pointer-events: none;"
|
|
321
|
+
/>
|
|
322
|
+
}
|
|
323
|
+
</svg>
|
|
324
|
+
</div>
|
|
325
|
+
</ng-flow-panel>
|
|
326
|
+
`, isInline: true, dependencies: [{ kind: "component", type: PanelComponent, selector: "ng-flow-panel", inputs: ["position"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
229
327
|
}
|
|
230
|
-
(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MiniMapComponent, decorators: [{
|
|
329
|
+
type: Component,
|
|
330
|
+
args: [{
|
|
331
|
+
selector: 'ng-flow-minimap',
|
|
332
|
+
standalone: true,
|
|
333
|
+
imports: [PanelComponent],
|
|
334
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
335
|
+
template: `
|
|
238
336
|
<ng-flow-panel [position]="position()">
|
|
239
337
|
<div
|
|
240
338
|
class="ng-flow__minimap xy-flow__minimap"
|
|
@@ -244,6 +342,8 @@ export class MiniMapComponent {
|
|
|
244
342
|
[style.height.px]="mmHeight()"
|
|
245
343
|
style="border-radius: 4px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 1px 4px rgba(0,0,0,0.1); cursor: pointer;"
|
|
246
344
|
(click)="onMinimapClick($event)"
|
|
345
|
+
(mousedown)="onMinimapMouseDown($event)"
|
|
346
|
+
(wheel)="onMinimapWheel($event)"
|
|
247
347
|
>
|
|
248
348
|
<svg
|
|
249
349
|
class="xy-flow__minimap-svg"
|
|
@@ -313,7 +413,6 @@ export class MiniMapComponent {
|
|
|
313
413
|
</div>
|
|
314
414
|
</ng-flow-panel>
|
|
315
415
|
`,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MiniMapComponent, { className: "MiniMapComponent", filePath: "lib/components/minimap/minimap.component.ts", lineNumber: 110 }); })();
|
|
416
|
+
}]
|
|
417
|
+
}], propDecorators: { minimapContainerRef: [{ type: i0.ViewChild, args: ['minimapContainer', { isSignal: true }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], mmWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], mmHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], pannable: [{ type: i0.Input, args: [{ isSignal: true, alias: "pannable", required: false }] }], zoomable: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomable", required: false }] }], zoomStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomStep", required: false }] }], inversePan: [{ type: i0.Input, args: [{ isSignal: true, alias: "inversePan", required: false }] }], nodeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeColor", required: false }] }], nodeStrokeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeStrokeColor", required: false }] }], nodeClassName: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeClassName", required: false }] }], nodeBorderRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeBorderRadius", required: false }] }], nodeStrokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeStrokeWidth", required: false }] }], nodeComponent: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeComponent", required: false }] }], bgColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "bgColor", required: false }] }], maskColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskColor", required: false }] }], maskStrokeColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStrokeColor", required: false }] }], maskStrokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maskStrokeWidth", required: false }] }], offsetScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "offsetScale", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], minimapClick: [{ type: i0.Output, args: ["minimapClick"] }], minimapNodeClick: [{ type: i0.Output, args: ["minimapNodeClick"] }] } });
|
|
319
418
|
//# sourceMappingURL=minimap.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minimap.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/minimap/minimap.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EAER,SAAS,GAIV,MAAM,eAAe,CAAC;AAMvB,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;;;;;;;IA6C9C,+BAYE;IADA,2MAAS,0CAAgC,KAAC;IAX5C,iBAYE;;;;IAVA,+CAAgC;;;;;IA6BlC,AAJA,0BAGE,eAQA;;;;IANA,cAA2B;;;AAazC,MAAM,OAAO,gBAAgB;IArF7B;QAsFW,UAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAC3B,wBAAmB,GAAG,SAAS,CAAa,kBAAkB,0FAAC,CAAC;QAE/D,aAAQ,GAAG,KAAK,CAAgB,cAAc,+EAAC,CAAC;QAChD,YAAO,GAAG,KAAK,CAAC,GAAG,+EAAI,KAAK,EAAE,OAAO,GAAG,CAAC;QACzC,aAAQ,GAAG,KAAK,CAAC,GAAG,gFAAI,KAAK,EAAE,QAAQ,GAAG,CAAC;QAC3C,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,KAAK,+EAAC,CAAC;QACxB,aAAQ,GAAG,KAAK,CAAC,EAAE,+EAAC,CAAC;QACrB,eAAU,GAAG,KAAK,CAAC,KAAK,iFAAC,CAAC;QAEnC,eAAe;QACN,cAAS,GAAG,KAAK,CAAmC,SAAS,gFAAC,CAAC;QAC/D,oBAAe,GAAG,KAAK,CAAmC,aAAa,s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C;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC;IACvE,CAAC;iHAxLU,gBAAgB;oEAAhB,gBAAgB;;;;;YA9EvB,AADF,wCAAuC,gBASpC;YADC,gGAAS,0BAAsB,IAAC;;YAEhC,8BAKC;YAEC,0BAAgG;YAG9F,AADF,4BAAM,eACiD;YACnD,0BAA2D;YAE/D,AADE,iBAAW,EACN;YAEP,0BAME;YAEF,2FAcC;YAED,2BASE;YAEF,0EAAmB;YAgBzB,AADE,AADE,iBAAM,EACF,EACQ;;YA5ED,yCAAuB;YAKlC,cAA4B;YAC5B,AADA,4CAA4B,gCACE;;YAM5B,eAAwB;;YAKiC,cAAoC;;YAGjF,eAA0C;;YAMpD,eAA2B;;YAO7B,cAcC;YAdD,cAAA,kBAAc,CAcb;YAGC,eAA2B;;YAU7B,cAaC;YAbD,2CAaC;4BA5EC,cAAc;;iFAkFb,gBAAgB;cArF5B,SAAS;eAAC;gBACT,QAAQ,EAAE,iBAAiB;gBAC3B,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,CAAC,cAAc,CAAC;gBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;gBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8ET;aACF;mEAGqD,kBAAkB;kFAF3D,gBAAgB"}
|
|
1
|
+
{"version":3,"file":"minimap.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/minimap/minimap.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EAER,SAAS,GAIV,MAAM,eAAe,CAAC;AAMvB,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAm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IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC;YACrC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,EAAE,CAAC;IACvE,CAAC;8GAjRU,gBAAgB;kGAAhB,gBAAgB,41FAlFjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFT,4DAlFS,cAAc;;2FAoFb,gBAAgB;kBAvF5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,iBAAiB;oBAC3B,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,cAAc,CAAC;oBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFT;iBACF;iFAGqD,kBAAkB"}
|
|
@@ -2,23 +2,18 @@ import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
|
2
2
|
import { FlowStore } from '../../services/flow-store.service';
|
|
3
3
|
import { NgFlowService } from '../../services/ng-flow.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
const _c0 = ["*"];
|
|
6
5
|
export class NgFlowProviderComponent {
|
|
7
|
-
static { this.ɵfac =
|
|
8
|
-
static { this.ɵcmp =
|
|
9
|
-
i0.ɵɵprojectionDef();
|
|
10
|
-
i0.ɵɵprojection(0);
|
|
11
|
-
} }, encapsulation: 2, changeDetection: 0 }); }
|
|
6
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgFlowProviderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.6", type: NgFlowProviderComponent, isStandalone: true, selector: "ng-flow-provider", providers: [FlowStore, NgFlowService], ngImport: i0, template: `<ng-content />`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
8
|
}
|
|
13
|
-
(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NgFlowProviderComponent, { className: "NgFlowProviderComponent", filePath: "lib/components/ng-flow-provider/ng-flow-provider.component.ts", lineNumber: 12 }); })();
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgFlowProviderComponent, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{
|
|
12
|
+
selector: 'ng-flow-provider',
|
|
13
|
+
standalone: true,
|
|
14
|
+
providers: [FlowStore, NgFlowService],
|
|
15
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
+
template: `<ng-content />`,
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
24
19
|
//# sourceMappingURL=ng-flow-provider.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-flow-provider.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/ng-flow-provider/ng-flow-provider.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC
|
|
1
|
+
{"version":3,"file":"ng-flow-provider.component.js","sourceRoot":"","sources":["../../../../../src/lib/components/ng-flow-provider/ng-flow-provider.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;;AAS/D,MAAM,OAAO,uBAAuB;8GAAvB,uBAAuB;kGAAvB,uBAAuB,+DAJvB,CAAC,SAAS,EAAE,aAAa,CAAC,0BAE3B,gBAAgB;;2FAEf,uBAAuB;kBAPnC,SAAS;mBAAC;oBACT,QAAQ,EAAE,kBAAkB;oBAC5B,UAAU,EAAE,IAAI;oBAChB,SAAS,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC;oBACrC,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,QAAQ,EAAE,gBAAgB;iBAC3B"}
|
|
@@ -82,49 +82,83 @@ export class NodeResizerComponent {
|
|
|
82
82
|
ngOnDestroy() {
|
|
83
83
|
this.resizerInstances.forEach((r) => r.destroy());
|
|
84
84
|
}
|
|
85
|
-
static { this.ɵfac =
|
|
86
|
-
static { this.ɵcmp =
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
85
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NodeResizerComponent, deps: [{ token: NODE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
86
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.6", type: NodeResizerComponent, isStandalone: true, selector: "ng-flow-node-resizer", inputs: { nodeIdInput: { classPropertyName: "nodeIdInput", publicName: "nodeId", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, keepAspectRatio: { classPropertyName: "keepAspectRatio", publicName: "keepAspectRatio", isSignal: true, isRequired: false, transformFunction: null }, isVisible: { classPropertyName: "isVisible", publicName: "isVisible", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, handleClassName: { classPropertyName: "handleClassName", publicName: "handleClassName", isSignal: true, isRequired: false, transformFunction: null }, handleStyle: { classPropertyName: "handleStyle", publicName: "handleStyle", isSignal: true, isRequired: false, transformFunction: null }, lineClassName: { classPropertyName: "lineClassName", publicName: "lineClassName", isSignal: true, isRequired: false, transformFunction: null }, lineStyle: { classPropertyName: "lineStyle", publicName: "lineStyle", isSignal: true, isRequired: false, transformFunction: null }, autoScale: { classPropertyName: "autoScale", publicName: "autoScale", isSignal: true, isRequired: false, transformFunction: null }, shouldResize: { classPropertyName: "shouldResize", publicName: "shouldResize", isSignal: true, isRequired: false, transformFunction: null }, onResizeStartCb: { classPropertyName: "onResizeStartCb", publicName: "onResizeStart", isSignal: true, isRequired: false, transformFunction: null }, onResizeCb: { classPropertyName: "onResizeCb", publicName: "onResize", isSignal: true, isRequired: false, transformFunction: null }, onResizeEndCb: { classPropertyName: "onResizeEndCb", publicName: "onResizeEnd", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizeStart: "resizeStart", resize: "resize", resizeEnd: "resizeEnd" }, host: { properties: { "style.display": "isVisible() === false ? \"none\" : null" }, styleAttribute: "position: absolute; inset: 0; pointer-events: none;", classAttribute: "ng-flow__node-resizer xy-flow__resize-control" }, ngImport: i0, template: `
|
|
87
|
+
<div
|
|
88
|
+
class="xy-flow__resize-control handle-top-left"
|
|
89
|
+
[class]="handleClassName()"
|
|
90
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'"
|
|
91
|
+
[style.cursor]="'nw-resize'" [style.pointer-events]="'all'"
|
|
92
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
93
|
+
[style.border-color]="color() ?? null"
|
|
94
|
+
></div>
|
|
95
|
+
<div
|
|
96
|
+
class="xy-flow__resize-control handle-top-right"
|
|
97
|
+
[class]="handleClassName()"
|
|
98
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'"
|
|
99
|
+
[style.cursor]="'ne-resize'" [style.pointer-events]="'all'"
|
|
100
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
101
|
+
[style.border-color]="color() ?? null"
|
|
102
|
+
></div>
|
|
103
|
+
<div
|
|
104
|
+
class="xy-flow__resize-control handle-bottom-left"
|
|
105
|
+
[class]="handleClassName()"
|
|
106
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'"
|
|
107
|
+
[style.cursor]="'sw-resize'" [style.pointer-events]="'all'"
|
|
108
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
109
|
+
[style.border-color]="color() ?? null"
|
|
110
|
+
></div>
|
|
111
|
+
<div
|
|
112
|
+
class="xy-flow__resize-control handle-bottom-right"
|
|
113
|
+
[class]="handleClassName()"
|
|
114
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.right]="'0'"
|
|
115
|
+
[style.cursor]="'se-resize'" [style.pointer-events]="'all'"
|
|
116
|
+
[style.width.px]="10" [style.height.px]="10"
|
|
117
|
+
[style.border-color]="color() ?? null"
|
|
118
|
+
></div>
|
|
119
|
+
<!-- Resize lines -->
|
|
120
|
+
<div
|
|
121
|
+
class="xy-flow__resize-control line-top"
|
|
122
|
+
[class]="lineClassName()"
|
|
123
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
124
|
+
[style.height.px]="2" [style.cursor]="'n-resize'" [style.pointer-events]="'all'"
|
|
125
|
+
[style.border-color]="color() ?? null"
|
|
126
|
+
></div>
|
|
127
|
+
<div
|
|
128
|
+
class="xy-flow__resize-control line-right"
|
|
129
|
+
[class]="lineClassName()"
|
|
130
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.right]="'0'" [style.bottom]="'0'"
|
|
131
|
+
[style.width.px]="2" [style.cursor]="'e-resize'" [style.pointer-events]="'all'"
|
|
132
|
+
[style.border-color]="color() ?? null"
|
|
133
|
+
></div>
|
|
134
|
+
<div
|
|
135
|
+
class="xy-flow__resize-control line-bottom"
|
|
136
|
+
[class]="lineClassName()"
|
|
137
|
+
[style.position]="'absolute'" [style.bottom]="'0'" [style.left]="'0'" [style.right]="'0'"
|
|
138
|
+
[style.height.px]="2" [style.cursor]="'s-resize'" [style.pointer-events]="'all'"
|
|
139
|
+
[style.border-color]="color() ?? null"
|
|
140
|
+
></div>
|
|
141
|
+
<div
|
|
142
|
+
class="xy-flow__resize-control line-left"
|
|
143
|
+
[class]="lineClassName()"
|
|
144
|
+
[style.position]="'absolute'" [style.top]="'0'" [style.left]="'0'" [style.bottom]="'0'"
|
|
145
|
+
[style.width.px]="2" [style.cursor]="'w-resize'" [style.pointer-events]="'all'"
|
|
146
|
+
[style.border-color]="color() ?? null"
|
|
147
|
+
></div>
|
|
148
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
115
149
|
}
|
|
116
|
-
(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NodeResizerComponent, decorators: [{
|
|
151
|
+
type: Component,
|
|
152
|
+
args: [{
|
|
153
|
+
selector: 'ng-flow-node-resizer',
|
|
154
|
+
standalone: true,
|
|
155
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
156
|
+
host: {
|
|
157
|
+
'class': 'ng-flow__node-resizer xy-flow__resize-control',
|
|
158
|
+
'style': 'position: absolute; inset: 0; pointer-events: none;',
|
|
159
|
+
'[style.display]': 'isVisible() === false ? "none" : null',
|
|
160
|
+
},
|
|
161
|
+
template: `
|
|
128
162
|
<div
|
|
129
163
|
class="xy-flow__resize-control handle-top-left"
|
|
130
164
|
[class]="handleClassName()"
|
|
@@ -187,12 +221,11 @@ export class NodeResizerComponent {
|
|
|
187
221
|
[style.border-color]="color() ?? null"
|
|
188
222
|
></div>
|
|
189
223
|
`,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NodeResizerComponent, { className: "NodeResizerComponent", filePath: "lib/components/node-resizer/node-resizer.component.ts", lineNumber: 102 }); })();
|
|
224
|
+
}]
|
|
225
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
226
|
+
type: Optional
|
|
227
|
+
}, {
|
|
228
|
+
type: Inject,
|
|
229
|
+
args: [NODE_ID]
|
|
230
|
+
}] }], propDecorators: { nodeIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeId", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], minHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeight", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], keepAspectRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepAspectRatio", required: false }] }], isVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isVisible", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], handleClassName: [{ type: i0.Input, args: [{ isSignal: true, alias: "handleClassName", required: false }] }], handleStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "handleStyle", required: false }] }], lineClassName: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineClassName", required: false }] }], lineStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineStyle", required: false }] }], autoScale: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoScale", required: false }] }], shouldResize: [{ type: i0.Input, args: [{ isSignal: true, alias: "shouldResize", required: false }] }], onResizeStartCb: [{ type: i0.Input, args: [{ isSignal: true, alias: "onResizeStart", required: false }] }], onResizeCb: [{ type: i0.Input, args: [{ isSignal: true, alias: "onResize", required: false }] }], onResizeEndCb: [{ type: i0.Input, args: [{ isSignal: true, alias: "onResizeEnd", required: false }] }], resizeStart: [{ type: i0.Output, args: ["resizeStart"] }], resize: [{ type: i0.Output, args: ["resize"] }], resizeEnd: [{ type: i0.Output, args: ["resizeEnd"] }] } });
|
|
198
231
|
//# sourceMappingURL=node-resizer.component.js.map
|