maestro-effects 0.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.
- package/README.md +15 -0
- package/dist/annotation.d.ts +12 -0
- package/dist/diagram-drawer.d.ts +58 -0
- package/dist/horizontal-scroll.d.ts +11 -0
- package/dist/index.cjs +1457 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1423 -0
- package/dist/scroll-organizer.d.ts +16 -0
- package/dist/utils.d.ts +17 -0
- package/dist/waveform.d.ts +14 -0
- package/package.json +30 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# maestro-effects
|
|
2
|
+
|
|
3
|
+
To install dependencies:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun install
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun run index.ts
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This project was created using `bun init` in bun v1.3.10. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface AnnotationOptions {
|
|
2
|
+
target: HTMLElement;
|
|
3
|
+
style?: 'underline' | 'highlight' | 'circle' | 'bracket';
|
|
4
|
+
color?: string;
|
|
5
|
+
wobble?: number;
|
|
6
|
+
strokeWidth?: number;
|
|
7
|
+
duration?: number;
|
|
8
|
+
delay?: number;
|
|
9
|
+
trigger?: 'scroll' | 'hover' | 'immediate';
|
|
10
|
+
scrollOffset?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function createAnnotationHighlight(options: AnnotationOptions): () => void;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export interface NodeDef {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
parentId?: string;
|
|
5
|
+
type: 'block' | 'stack' | 'network' | 'diamond' | 'group' | 'io';
|
|
6
|
+
color?: string;
|
|
7
|
+
children?: string[];
|
|
8
|
+
stackDepth?: number;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
bracket?: {
|
|
11
|
+
label: string;
|
|
12
|
+
position: 'top' | 'bottom' | 'left' | 'right';
|
|
13
|
+
};
|
|
14
|
+
audioTimestamp?: number;
|
|
15
|
+
position?: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export interface ColorScheme {
|
|
21
|
+
node: string;
|
|
22
|
+
nodeAlt: string;
|
|
23
|
+
nodeBorder: string;
|
|
24
|
+
nodeAccent: string;
|
|
25
|
+
nodeAccentSoft: string;
|
|
26
|
+
nodeHighlight: string;
|
|
27
|
+
nodeText: string;
|
|
28
|
+
nodeSubtext: string;
|
|
29
|
+
nodeMutedText: string;
|
|
30
|
+
connection: string;
|
|
31
|
+
connectionSoft: string;
|
|
32
|
+
glow: string;
|
|
33
|
+
bracket: string;
|
|
34
|
+
bracketText: string;
|
|
35
|
+
group: string;
|
|
36
|
+
groupBorder: string;
|
|
37
|
+
io: string;
|
|
38
|
+
}
|
|
39
|
+
export interface DiagramDrawerOptions {
|
|
40
|
+
container: HTMLElement;
|
|
41
|
+
nodes: NodeDef[];
|
|
42
|
+
direction?: 'horizontal' | 'vertical';
|
|
43
|
+
drawSpeed?: number;
|
|
44
|
+
connectionStyle?: 'bezier' | 'straight' | 'stepped';
|
|
45
|
+
connectionArrows?: boolean;
|
|
46
|
+
colorScheme?: Partial<ColorScheme>;
|
|
47
|
+
onNodeDrawn?: (nodeId: string) => void;
|
|
48
|
+
interactive?: boolean;
|
|
49
|
+
glowIntensity?: number;
|
|
50
|
+
audioElement?: HTMLAudioElement | null;
|
|
51
|
+
scrollFallback?: boolean;
|
|
52
|
+
padding?: number;
|
|
53
|
+
nodeSpacing?: {
|
|
54
|
+
x: number;
|
|
55
|
+
y: number;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export declare function createDiagramDrawer(options: DiagramDrawerOptions): () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface HorizontalScrollOptions {
|
|
2
|
+
container: HTMLElement;
|
|
3
|
+
panels?: string | HTMLElement[];
|
|
4
|
+
lerp?: number;
|
|
5
|
+
snap?: boolean;
|
|
6
|
+
snapThreshold?: number;
|
|
7
|
+
onProgress?: (panel: number, localProgress: number) => void;
|
|
8
|
+
mobileBreakpoint?: number;
|
|
9
|
+
keyboard?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function createHorizontalScroll(options: HorizontalScrollOptions): () => void;
|