@ghchinoy/litflow 0.2.2 → 0.2.4
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/README.md +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/lit-flow.d.ts +10 -0
- package/dist/lit-gemini-image-node.d.ts +12 -0
- package/dist/lit-gemini-prompt-node.d.ts +12 -0
- package/dist/litflow.js +640 -368
- package/dist/litflow.js.map +1 -1
- package/dist/theme.js +1 -0
- package/dist/theme.js.map +1 -1
- package/package.json +5 -4
- package/src/index.ts +2 -0
- package/src/lit-flow.ts +283 -46
- package/src/lit-gemini-image-node.ts +72 -0
- package/src/lit-gemini-prompt-node.ts +92 -0
- package/src/theme.ts +1 -0
package/README.md
CHANGED
|
@@ -126,6 +126,7 @@ LitFlow leverages `@xyflow/system`, the same headless core that powers React Flo
|
|
|
126
126
|
## 🛠️ Key Features
|
|
127
127
|
- **Panning & Zooming**: Full support for viewport manipulation via d3-zoom (via xyflow).
|
|
128
128
|
- **Node Dragging**: Individual nodes can be dragged, with positions synced back to the state.
|
|
129
|
+
- **Marquee Selection**: Bulk select nodes and edges by dragging a selection box (Shift + Drag).
|
|
129
130
|
- **Edge Markers**: Support for arrowheads and other markers on edges.
|
|
130
131
|
- **Manual Connections**: Drag-to-connect functionality between handles with a live connection line.
|
|
131
132
|
- **Controls & MiniMap**: Built-in utility components for navigation and overview.
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,7 @@ export * from './lit-handle';
|
|
|
5
5
|
export * from './lit-controls';
|
|
6
6
|
export * from './lit-minimap';
|
|
7
7
|
export * from './lit-sidebar';
|
|
8
|
+
export * from './lit-gemini-prompt-node';
|
|
9
|
+
export * from './lit-gemini-image-node';
|
|
8
10
|
export * from './store';
|
|
9
11
|
export * from './theme';
|
package/dist/lit-flow.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export declare class LitFlow extends LitFlow_base {
|
|
|
22
22
|
zoomOnPinch: boolean;
|
|
23
23
|
zoomOnDoubleClick: boolean;
|
|
24
24
|
promptOnDrop: boolean;
|
|
25
|
+
selectionMode: 'pan' | 'select';
|
|
26
|
+
private _selectionRect;
|
|
27
|
+
private _selectionStart;
|
|
25
28
|
private _width;
|
|
26
29
|
private _height;
|
|
27
30
|
set nodes(nodes: NodeBase[]);
|
|
@@ -45,14 +48,21 @@ export declare class LitFlow extends LitFlow_base {
|
|
|
45
48
|
x: number;
|
|
46
49
|
y: number;
|
|
47
50
|
};
|
|
51
|
+
private _updatePanZoom;
|
|
48
52
|
firstUpdated(): void;
|
|
49
53
|
updated(changedProperties: Map<string, any>): void;
|
|
50
54
|
private _setupDrags;
|
|
51
55
|
private _renderEdge;
|
|
56
|
+
private _isPaneClick;
|
|
57
|
+
private _onPointerDown;
|
|
58
|
+
private _onPointerMove;
|
|
59
|
+
private _onPointerUp;
|
|
60
|
+
private _performSelection;
|
|
52
61
|
private _onHandlePointerDown;
|
|
53
62
|
private _onDragOver;
|
|
54
63
|
private _onDrop;
|
|
55
64
|
private _renderConnectionLine;
|
|
65
|
+
private _onKeyDown;
|
|
56
66
|
render(): import("lit").TemplateResult;
|
|
57
67
|
}
|
|
58
68
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './lit-handle';
|
|
3
|
+
export declare class LitGeminiImageNode extends LitElement {
|
|
4
|
+
createRenderRoot(): this;
|
|
5
|
+
nodeId: string;
|
|
6
|
+
set data(val: any);
|
|
7
|
+
get data(): any;
|
|
8
|
+
private _data;
|
|
9
|
+
imageUrl: string;
|
|
10
|
+
status: 'idle' | 'loading' | 'success' | 'error';
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './lit-handle';
|
|
3
|
+
export declare class LitGeminiPromptNode extends LitElement {
|
|
4
|
+
createRenderRoot(): this;
|
|
5
|
+
nodeId: string;
|
|
6
|
+
set data(val: any);
|
|
7
|
+
get data(): any;
|
|
8
|
+
private _data;
|
|
9
|
+
prompt: string;
|
|
10
|
+
private _onInput;
|
|
11
|
+
render(): import("lit").TemplateResult<1>;
|
|
12
|
+
}
|