@molecule/app-feature-graph-view-angular 0.0.0-stage → 1.1.0

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.
@@ -0,0 +1,101 @@
1
+ import type { GraphEdge, GraphLayout, GraphNode, PositionedNode } from './types.js';
2
+ /**
3
+ * Pure (framework-free) layout helpers for `<GraphView>`. Extracted so the
4
+ * math is unit-testable without a component library or jsdom.
5
+ *
6
+ * @module
7
+ */
8
+ /** Default cap on force-layout iterations. */
9
+ export declare const DEFAULT_FORCE_ITERATIONS = 200;
10
+ /** Default repulsion strength used by `forceLayout`. */
11
+ export declare const DEFAULT_REPULSION = 800;
12
+ /** Default spring stiffness used by `forceLayout`. */
13
+ export declare const DEFAULT_SPRING = 0.05;
14
+ /** Default ideal edge length used by `forceLayout`. */
15
+ export declare const DEFAULT_REST_LENGTH = 80;
16
+ /** Default velocity damping used by `forceLayout`. */
17
+ export declare const DEFAULT_DAMPING = 0.85;
18
+ /** Convergence threshold (max per-node displacement squared). */
19
+ export declare const CONVERGENCE_EPSILON = 0.01;
20
+ /** Force-layout tunables. */
21
+ export interface ForceLayoutOptions {
22
+ /** Hard cap on iterations. Defaults to {@link DEFAULT_FORCE_ITERATIONS}. */
23
+ iterations?: number;
24
+ /** Repulsive constant between every pair of nodes. */
25
+ repulsion?: number;
26
+ /** Spring (Hooke) constant for edges. */
27
+ spring?: number;
28
+ /** Ideal edge length (rest distance). */
29
+ restLength?: number;
30
+ /** Velocity damping per step (0–1). */
31
+ damping?: number;
32
+ /** Optional deterministic seed (for tests). Defaults to a fixed value. */
33
+ seed?: number;
34
+ }
35
+ /**
36
+ * Tiny deterministic PRNG (mulberry32). Allows reproducible initial
37
+ * positions in tests without depending on `Math.random()`.
38
+ *
39
+ * @param seed - 32-bit unsigned seed.
40
+ * @returns A function returning floats in `[0, 1)`.
41
+ */
42
+ export declare function createRng(seed: number): () => number;
43
+ /**
44
+ * Place nodes evenly around the unit circle (scaled by `radius`).
45
+ *
46
+ * @param nodes - Nodes to position.
47
+ * @param radius - Circle radius in world units.
48
+ * @returns Positioned nodes, in input order.
49
+ */
50
+ export declare function circularLayout(nodes: GraphNode[], radius: number): PositionedNode[];
51
+ /**
52
+ * Place nodes on a square-ish grid, centred on the origin.
53
+ *
54
+ * @param nodes - Nodes to position.
55
+ * @param spacing - Pixel spacing between adjacent grid cells.
56
+ * @returns Positioned nodes, in input order.
57
+ */
58
+ export declare function gridLayout(nodes: GraphNode[], spacing: number): PositionedNode[];
59
+ /**
60
+ * Run a minimal velocity-Verlet force-directed simulation.
61
+ *
62
+ * Implements:
63
+ * - Pairwise repulsion (Coulomb-like, O(n²)) between every node pair.
64
+ * - Spring (Hooke) attraction along each edge toward `restLength`.
65
+ * - Per-step velocity damping for stability.
66
+ *
67
+ * Stops early once the maximum per-node displacement-squared drops below
68
+ * {@link CONVERGENCE_EPSILON}, or after `iterations` steps — whichever
69
+ * comes first.
70
+ *
71
+ * @param nodes - Nodes to lay out.
72
+ * @param edges - Edges (used only for attractive springs).
73
+ * @param options - Force-layout tunables.
74
+ * @returns Positioned nodes, in input order.
75
+ */
76
+ export declare function forceLayout(nodes: GraphNode[], edges: GraphEdge[], options?: ForceLayoutOptions): PositionedNode[];
77
+ /**
78
+ * Compute world-space positions for every node using the chosen layout.
79
+ *
80
+ * @param nodes - Nodes to position.
81
+ * @param edges - Edges (consumed only by `force`).
82
+ * @param layout - Layout strategy.
83
+ * @param options - Optional force-layout tunables (ignored for non-force).
84
+ * @returns Positioned nodes.
85
+ */
86
+ export declare function layoutNodes(nodes: GraphNode[], edges: GraphEdge[], layout: GraphLayout, options?: ForceLayoutOptions): PositionedNode[];
87
+ /**
88
+ * Compute the world-space bounding box of a set of positioned nodes,
89
+ * with a small padding for visual breathing room.
90
+ *
91
+ * @param nodes - Positioned nodes.
92
+ * @param padding - Padding (world units) added to every side. Default 40.
93
+ * @returns Bounding box `{ minX, minY, maxX, maxY }` — or `null` if empty.
94
+ */
95
+ export declare function boundingBox(nodes: PositionedNode[], padding?: number): {
96
+ minX: number;
97
+ minY: number;
98
+ maxX: number;
99
+ maxY: number;
100
+ } | null;
101
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEnF;;;;;GAKG;AAEH,8CAA8C;AAC9C,eAAO,MAAM,wBAAwB,MAAM,CAAA;AAE3C,wDAAwD;AACxD,eAAO,MAAM,iBAAiB,MAAM,CAAA;AAEpC,sDAAsD;AACtD,eAAO,MAAM,cAAc,OAAO,CAAA;AAElC,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,sDAAsD;AACtD,eAAO,MAAM,eAAe,OAAO,CAAA;AAEnC,iEAAiE;AACjE,eAAO,MAAM,mBAAmB,OAAO,CAAA;AAEvC,6BAA6B;AAC7B,MAAM,WAAW,kBAAkB;IACjC,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,MAAM,CASpD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,EAAE,CAOnF;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,EAAE,CAWhF;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,SAAS,EAAE,EAClB,KAAK,EAAE,SAAS,EAAE,EAClB,OAAO,GAAE,kBAAuB,GAC/B,cAAc,EAAE,CA0GlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,SAAS,EAAE,EAClB,KAAK,EAAE,SAAS,EAAE,EAClB,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,cAAc,EAAE,CAUlB;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,cAAc,EAAE,EACvB,OAAO,SAAK,GACX;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAanE"}
package/dist/layout.js ADDED
@@ -0,0 +1,239 @@
1
+ /**
2
+ * Pure (framework-free) layout helpers for `<GraphView>`. Extracted so the
3
+ * math is unit-testable without a component library or jsdom.
4
+ *
5
+ * @module
6
+ */
7
+ /** Default cap on force-layout iterations. */
8
+ export const DEFAULT_FORCE_ITERATIONS = 200;
9
+ /** Default repulsion strength used by `forceLayout`. */
10
+ export const DEFAULT_REPULSION = 800;
11
+ /** Default spring stiffness used by `forceLayout`. */
12
+ export const DEFAULT_SPRING = 0.05;
13
+ /** Default ideal edge length used by `forceLayout`. */
14
+ export const DEFAULT_REST_LENGTH = 80;
15
+ /** Default velocity damping used by `forceLayout`. */
16
+ export const DEFAULT_DAMPING = 0.85;
17
+ /** Convergence threshold (max per-node displacement squared). */
18
+ export const CONVERGENCE_EPSILON = 0.01;
19
+ /**
20
+ * Tiny deterministic PRNG (mulberry32). Allows reproducible initial
21
+ * positions in tests without depending on `Math.random()`.
22
+ *
23
+ * @param seed - 32-bit unsigned seed.
24
+ * @returns A function returning floats in `[0, 1)`.
25
+ */
26
+ export function createRng(seed) {
27
+ let s = seed >>> 0;
28
+ return function rand() {
29
+ s = (s + 0x6d2b79f5) >>> 0;
30
+ let t = s;
31
+ t = Math.imul(t ^ (t >>> 15), t | 1);
32
+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
33
+ return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
34
+ };
35
+ }
36
+ /**
37
+ * Place nodes evenly around the unit circle (scaled by `radius`).
38
+ *
39
+ * @param nodes - Nodes to position.
40
+ * @param radius - Circle radius in world units.
41
+ * @returns Positioned nodes, in input order.
42
+ */
43
+ export function circularLayout(nodes, radius) {
44
+ if (nodes.length === 0)
45
+ return [];
46
+ if (nodes.length === 1)
47
+ return [{ ...nodes[0], x: 0, y: 0 }];
48
+ return nodes.map((n, i) => {
49
+ const angle = (i / nodes.length) * Math.PI * 2;
50
+ return { ...n, x: Math.cos(angle) * radius, y: Math.sin(angle) * radius };
51
+ });
52
+ }
53
+ /**
54
+ * Place nodes on a square-ish grid, centred on the origin.
55
+ *
56
+ * @param nodes - Nodes to position.
57
+ * @param spacing - Pixel spacing between adjacent grid cells.
58
+ * @returns Positioned nodes, in input order.
59
+ */
60
+ export function gridLayout(nodes, spacing) {
61
+ if (nodes.length === 0)
62
+ return [];
63
+ const cols = Math.max(1, Math.ceil(Math.sqrt(nodes.length)));
64
+ const rows = Math.ceil(nodes.length / cols);
65
+ const offsetX = ((cols - 1) * spacing) / 2;
66
+ const offsetY = ((rows - 1) * spacing) / 2;
67
+ return nodes.map((n, i) => {
68
+ const col = i % cols;
69
+ const row = Math.floor(i / cols);
70
+ return { ...n, x: col * spacing - offsetX, y: row * spacing - offsetY };
71
+ });
72
+ }
73
+ /**
74
+ * Run a minimal velocity-Verlet force-directed simulation.
75
+ *
76
+ * Implements:
77
+ * - Pairwise repulsion (Coulomb-like, O(n²)) between every node pair.
78
+ * - Spring (Hooke) attraction along each edge toward `restLength`.
79
+ * - Per-step velocity damping for stability.
80
+ *
81
+ * Stops early once the maximum per-node displacement-squared drops below
82
+ * {@link CONVERGENCE_EPSILON}, or after `iterations` steps — whichever
83
+ * comes first.
84
+ *
85
+ * @param nodes - Nodes to lay out.
86
+ * @param edges - Edges (used only for attractive springs).
87
+ * @param options - Force-layout tunables.
88
+ * @returns Positioned nodes, in input order.
89
+ */
90
+ export function forceLayout(nodes, edges, options = {}) {
91
+ const iterations = options.iterations ?? DEFAULT_FORCE_ITERATIONS;
92
+ const repulsion = options.repulsion ?? DEFAULT_REPULSION;
93
+ const spring = options.spring ?? DEFAULT_SPRING;
94
+ const restLength = options.restLength ?? DEFAULT_REST_LENGTH;
95
+ const damping = options.damping ?? DEFAULT_DAMPING;
96
+ const rand = createRng(options.seed ?? 0x9e3779b9);
97
+ const n = nodes.length;
98
+ if (n === 0)
99
+ return [];
100
+ // Seed positions on a small circle so all-pairs repulsion has somewhere
101
+ // to push from on iteration 0 (true zero-vectors give NaN directions).
102
+ const seedRadius = Math.max(20, Math.sqrt(n) * 10);
103
+ const x = new Float64Array(n);
104
+ const y = new Float64Array(n);
105
+ const vx = new Float64Array(n);
106
+ const vy = new Float64Array(n);
107
+ for (let i = 0; i < n; i++) {
108
+ const angle = (i / Math.max(1, n)) * Math.PI * 2 + rand() * 0.5;
109
+ const jitter = 1 + rand() * 0.5;
110
+ x[i] = Math.cos(angle) * seedRadius * jitter;
111
+ y[i] = Math.sin(angle) * seedRadius * jitter;
112
+ }
113
+ // Map id → index once (edges reference ids).
114
+ const idx = new Map();
115
+ for (let i = 0; i < n; i++)
116
+ idx.set(nodes[i].id, i);
117
+ // Precompute valid edges (both endpoints present, not self-loops).
118
+ const ea = [];
119
+ const eb = [];
120
+ const ew = [];
121
+ for (const e of edges) {
122
+ const a = idx.get(e.source);
123
+ const b = idx.get(e.target);
124
+ if (a === undefined || b === undefined || a === b)
125
+ continue;
126
+ ea.push(a);
127
+ eb.push(b);
128
+ ew.push(e.weight ?? 1);
129
+ }
130
+ for (let step = 0; step < iterations; step++) {
131
+ // Reset force accumulator (we reuse vx/vy as fx/fy then integrate).
132
+ const fx = new Float64Array(n);
133
+ const fy = new Float64Array(n);
134
+ // Pairwise repulsion — O(n²). Acceptable for the small graphs the
135
+ // note-taking app will throw at this (hundreds, not millions, of nodes).
136
+ for (let i = 0; i < n; i++) {
137
+ for (let j = i + 1; j < n; j++) {
138
+ let dx = x[i] - x[j];
139
+ let dy = y[i] - y[j];
140
+ let distSq = dx * dx + dy * dy;
141
+ if (distSq < 1e-4) {
142
+ // Two nodes on top of each other — nudge them apart.
143
+ dx = (rand() - 0.5) * 0.1;
144
+ dy = (rand() - 0.5) * 0.1;
145
+ distSq = dx * dx + dy * dy + 1e-4;
146
+ }
147
+ const dist = Math.sqrt(distSq);
148
+ const f = repulsion / distSq;
149
+ const fxi = (dx / dist) * f;
150
+ const fyi = (dy / dist) * f;
151
+ fx[i] += fxi;
152
+ fy[i] += fyi;
153
+ fx[j] -= fxi;
154
+ fy[j] -= fyi;
155
+ }
156
+ }
157
+ // Edge springs.
158
+ for (let k = 0; k < ea.length; k++) {
159
+ const a = ea[k];
160
+ const b = eb[k];
161
+ const w = ew[k];
162
+ const dx = x[b] - x[a];
163
+ const dy = y[b] - y[a];
164
+ const dist = Math.sqrt(dx * dx + dy * dy) || 1e-4;
165
+ const displacement = dist - restLength;
166
+ const f = spring * displacement * w;
167
+ const fxk = (dx / dist) * f;
168
+ const fyk = (dy / dist) * f;
169
+ fx[a] += fxk;
170
+ fy[a] += fyk;
171
+ fx[b] -= fxk;
172
+ fy[b] -= fyk;
173
+ }
174
+ // Integrate (semi-implicit Euler with damping).
175
+ let maxDispSq = 0;
176
+ for (let i = 0; i < n; i++) {
177
+ vx[i] = (vx[i] + fx[i]) * damping;
178
+ vy[i] = (vy[i] + fy[i]) * damping;
179
+ const dx = vx[i];
180
+ const dy = vy[i];
181
+ x[i] += dx;
182
+ y[i] += dy;
183
+ const dispSq = dx * dx + dy * dy;
184
+ if (dispSq > maxDispSq)
185
+ maxDispSq = dispSq;
186
+ }
187
+ if (maxDispSq < CONVERGENCE_EPSILON)
188
+ break;
189
+ }
190
+ return nodes.map((node, i) => ({ ...node, x: x[i], y: y[i] }));
191
+ }
192
+ /**
193
+ * Compute world-space positions for every node using the chosen layout.
194
+ *
195
+ * @param nodes - Nodes to position.
196
+ * @param edges - Edges (consumed only by `force`).
197
+ * @param layout - Layout strategy.
198
+ * @param options - Optional force-layout tunables (ignored for non-force).
199
+ * @returns Positioned nodes.
200
+ */
201
+ export function layoutNodes(nodes, edges, layout, options) {
202
+ switch (layout) {
203
+ case 'circular':
204
+ return circularLayout(nodes, Math.max(40, Math.sqrt(nodes.length) * 30));
205
+ case 'grid':
206
+ return gridLayout(nodes, 60);
207
+ case 'force':
208
+ default:
209
+ return forceLayout(nodes, edges, options);
210
+ }
211
+ }
212
+ /**
213
+ * Compute the world-space bounding box of a set of positioned nodes,
214
+ * with a small padding for visual breathing room.
215
+ *
216
+ * @param nodes - Positioned nodes.
217
+ * @param padding - Padding (world units) added to every side. Default 40.
218
+ * @returns Bounding box `{ minX, minY, maxX, maxY }` — or `null` if empty.
219
+ */
220
+ export function boundingBox(nodes, padding = 40) {
221
+ if (nodes.length === 0)
222
+ return null;
223
+ let minX = Infinity;
224
+ let minY = Infinity;
225
+ let maxX = -Infinity;
226
+ let maxY = -Infinity;
227
+ for (const n of nodes) {
228
+ if (n.x < minX)
229
+ minX = n.x;
230
+ if (n.y < minY)
231
+ minY = n.y;
232
+ if (n.x > maxX)
233
+ maxX = n.x;
234
+ if (n.y > maxY)
235
+ maxY = n.y;
236
+ }
237
+ return { minX: minX - padding, minY: minY - padding, maxX: maxX + padding, maxY: maxY + padding };
238
+ }
239
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAEA;;;;;GAK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AAG,OAAO,EAAE,CAAA;AACnG,CAAC"}
@@ -0,0 +1,99 @@
1
+ import type { TemplateRef } from '@angular/core';
2
+ import type { ForceLayoutOptions } from './layout.js';
3
+ /**
4
+ * Graph-view types: nodes, edges, layout choice and renderer templates for
5
+ * `<GraphView>` — the Angular counterpart of
6
+ * `@molecule/app-feature-graph-view-react`'s types, with the same names.
7
+ *
8
+ * @module
9
+ */
10
+ /** A 2-D point in graph (world) coordinates. */
11
+ export interface GraphPoint {
12
+ /** X coordinate. */
13
+ x: number;
14
+ /** Y coordinate. */
15
+ y: number;
16
+ }
17
+ /**
18
+ * Single node in the graph.
19
+ *
20
+ * `group` is an opaque grouping discriminator (e.g. tag, folder) the
21
+ * caller can use for colouring; `weight` scales the rendered radius.
22
+ */
23
+ export interface GraphNode {
24
+ /** Unique node id. */
25
+ id: string;
26
+ /** Human-readable label rendered next to the node. */
27
+ label: string;
28
+ /** Optional grouping discriminator (e.g. tag id). */
29
+ group?: string;
30
+ /** Optional weight; default 1. Scales the rendered radius. */
31
+ weight?: number;
32
+ }
33
+ /** Edge connecting two nodes by id. */
34
+ export interface GraphEdge {
35
+ /** Unique edge id. */
36
+ id: string;
37
+ /** Source node id. */
38
+ source: string;
39
+ /** Target node id. */
40
+ target: string;
41
+ /** Optional weight; default 1. Stronger edges pull harder under force layout. */
42
+ weight?: number;
43
+ }
44
+ /** Available layout strategies. */
45
+ export type GraphLayout = 'force' | 'circular' | 'grid';
46
+ /**
47
+ * Internal positioned node used by the renderer; the `x`/`y` coordinates
48
+ * are in world (graph) space, with `(0, 0)` at the canvas centre.
49
+ */
50
+ export interface PositionedNode extends GraphNode {
51
+ /** World-space X coordinate. */
52
+ x: number;
53
+ /** World-space Y coordinate. */
54
+ y: number;
55
+ }
56
+ /**
57
+ * Renderer for an individual node: an Angular template rendered through
58
+ * `ngTemplateOutlet`, with the positioned node as `a0` (`$implicit` is not
59
+ * used, so the template reads `let-node="a0"`).
60
+ */
61
+ export type GraphNodeRenderer = TemplateRef<{
62
+ a0: PositionedNode;
63
+ }>;
64
+ /**
65
+ * Renderer for an individual edge: a template rendered with the edge as `a0`,
66
+ * the source node as `a1` and the target node as `a2`.
67
+ */
68
+ export type GraphEdgeRenderer = TemplateRef<{
69
+ a0: GraphEdge;
70
+ a1: PositionedNode;
71
+ a2: PositionedNode;
72
+ }>;
73
+ /**
74
+ * Props accepted by {@link GraphView} — the same props
75
+ * `@molecule/app-feature-graph-view-react` accepts. The renderer props are
76
+ * Angular templates (a node cannot carry a function), so they are written in
77
+ * the host template, not bound as values.
78
+ */
79
+ export interface GraphViewProps {
80
+ /** Nodes to render. */
81
+ nodes: GraphNode[];
82
+ /** Edges to render. */
83
+ edges: GraphEdge[];
84
+ /** Fired when the user clicks (or activates) a node. */
85
+ onNodeClick?: (node: GraphNode) => void;
86
+ /** Currently-selected node id (highlighted in the view). */
87
+ selectedNodeId?: string;
88
+ /** Layout strategy. Defaults to `'force'`. */
89
+ layout?: GraphLayout;
90
+ /** Custom node renderer (overrides the default circle + label). */
91
+ nodeRenderer?: GraphNodeRenderer;
92
+ /** Custom edge renderer (overrides the default `<line>`). */
93
+ edgeRenderer?: GraphEdgeRenderer;
94
+ /** Force-layout tunables; ignored for non-force layouts. */
95
+ forceOptions?: ForceLayoutOptions;
96
+ /** Extra classes merged onto the outer wrapper. */
97
+ className?: string;
98
+ }
99
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD;;;;;;GAMG;AAEH,gDAAgD;AAChD,MAAM,WAAW,UAAU;IACzB,oBAAoB;IACpB,CAAC,EAAE,MAAM,CAAA;IACT,oBAAoB;IACpB,CAAC,EAAE,MAAM,CAAA;CACV;AAED;;;;;GAKG;A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,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,mEAAmE;IACnE,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,6DAA6D;IAC7D,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC,4DAA4D;IAC5D,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC,mDAAmD;IACnD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,75 @@
1
1
  {
2
2
  "name": "@molecule/app-feature-graph-view-angular",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.0",
4
+ "description": "Force-directed graph view (Obsidian-style) for visualizing note / page linkages",
5
+ "homepage": "https://www.molecule.dev/packages/app-feature-graph-view-angular",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "ngc",
21
+ "dev": "ngc --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest"
24
+ },
25
+ "keywords": [
26
+ "molecule",
27
+ "graph",
28
+ "force-directed",
29
+ "visualization",
30
+ "obsidian",
31
+ "notes",
32
+ "angular"
33
+ ],
34
+ "author": "Molecule Dev, Inc. (https://molecule.dev)",
35
+ "license": "Apache-2.0",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/molecule-dev/molecule.git",
39
+ "directory": "packages/app/features/feature-graph-view-angular"
40
+ },
41
+ "engines": {
42
+ "node": ">=20"
43
+ },
44
+ "bugs": "https://github.com/molecule-dev/molecule/issues",
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "peerDependencies": {
49
+ "@angular/common": "^22.0.0",
50
+ "@angular/core": "^22.0.0",
51
+ "@angular/platform-browser": "^22.0.0",
52
+ "@molecule/app-angular": "^3.5.0",
53
+ "@molecule/app-ui": "^1.0.1",
54
+ "@molecule/app-ui-angular": "^1.1.0"
55
+ },
56
+ "devDependencies": {
57
+ "@angular/common": "22.2.3",
58
+ "@angular/compiler": "22.2.3",
59
+ "@angular/compiler-cli": "22.2.3",
60
+ "@angular/core": "22.2.3",
61
+ "@angular/platform-browser": "22.2.3",
62
+ "@molecule/app-angular": "3.9.0",
63
+ "@molecule/app-framework-conformance": "0.0.0",
64
+ "@molecule/app-i18n": "1.2.2",
65
+ "@molecule/app-icons": "1.0.4",
66
+ "@molecule/app-ui": "1.5.0",
67
+ "@molecule/app-ui-angular": "1.3.1",
68
+ "@types/node": "26.6.5",
69
+ "jsdom": "30.1.3",
70
+ "rxjs": "7.8.2",
71
+ "typescript": "6.0.3",
72
+ "vitest": "4.1.12",
73
+ "zone.js": "0.16.3"
74
+ }
75
+ }