@pinepaper.studio/mcp-server 1.6.4 → 1.6.6
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 +19 -0
- package/dist/browser/puppeteer-controller.d.ts.map +1 -1
- package/dist/browser/puppeteer-controller.js +22 -4
- package/dist/browser/puppeteer-controller.js.map +1 -1
- package/dist/types/code-generator.d.ts.map +1 -1
- package/dist/types/code-generator.js +6 -3
- package/dist/types/code-generator.js.map +1 -1
- package/manifest.json +1 -1
- package/package.json +21 -4
- package/dist/__tests__/fixtures/index.d.ts +0 -8
- package/dist/__tests__/fixtures/index.d.ts.map +0 -1
- package/dist/__tests__/fixtures/index.js +0 -8
- package/dist/__tests__/fixtures/index.js.map +0 -1
- package/dist/__tests__/fixtures/mock-animations.d.ts +0 -213
- package/dist/__tests__/fixtures/mock-animations.d.ts.map +0 -1
- package/dist/__tests__/fixtures/mock-animations.js +0 -96
- package/dist/__tests__/fixtures/mock-animations.js.map +0 -1
- package/dist/__tests__/fixtures/mock-generators.d.ts +0 -294
- package/dist/__tests__/fixtures/mock-generators.d.ts.map +0 -1
- package/dist/__tests__/fixtures/mock-generators.js +0 -175
- package/dist/__tests__/fixtures/mock-generators.js.map +0 -1
- package/dist/__tests__/fixtures/mock-items.d.ts +0 -157
- package/dist/__tests__/fixtures/mock-items.d.ts.map +0 -1
- package/dist/__tests__/fixtures/mock-items.js +0 -74
- package/dist/__tests__/fixtures/mock-items.js.map +0 -1
- package/dist/__tests__/fixtures/mock-relations.d.ts +0 -195
- package/dist/__tests__/fixtures/mock-relations.d.ts.map +0 -1
- package/dist/__tests__/fixtures/mock-relations.js +0 -121
- package/dist/__tests__/fixtures/mock-relations.js.map +0 -1
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock Generators for Testing
|
|
3
|
-
*/
|
|
4
|
-
export const mockSunburstGenerator = {
|
|
5
|
-
generatorName: 'drawSunburst',
|
|
6
|
-
params: {
|
|
7
|
-
rayCount: 16,
|
|
8
|
-
colors: ['#FF6B6B', '#4ECDC4'],
|
|
9
|
-
bgColor: '#1a1a2e',
|
|
10
|
-
animated: true,
|
|
11
|
-
},
|
|
12
|
-
};
|
|
13
|
-
export const mockSunsetGenerator = {
|
|
14
|
-
generatorName: 'drawSunsetScene',
|
|
15
|
-
params: {
|
|
16
|
-
sunColor: '#fbbf24',
|
|
17
|
-
skyColors: ['#f97316', '#ec4899', '#8b5cf6'],
|
|
18
|
-
cloudCount: 5,
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
export const mockGridGenerator = {
|
|
22
|
-
generatorName: 'drawGrid',
|
|
23
|
-
params: {
|
|
24
|
-
gridType: 'lines',
|
|
25
|
-
spacing: 40,
|
|
26
|
-
lineColor: '#374151',
|
|
27
|
-
bgColor: '#1f2937',
|
|
28
|
-
lineWidth: 1,
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
export const mockDotsGridGenerator = {
|
|
32
|
-
generatorName: 'drawGrid',
|
|
33
|
-
params: {
|
|
34
|
-
gridType: 'dots',
|
|
35
|
-
spacing: 30,
|
|
36
|
-
lineColor: '#60a5fa',
|
|
37
|
-
bgColor: '#0f172a',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
export const mockWavesGenerator = {
|
|
41
|
-
generatorName: 'drawWaves',
|
|
42
|
-
params: {
|
|
43
|
-
waveCount: 5,
|
|
44
|
-
colors: ['#3b82f6', '#6366f1', '#8b5cf6', '#a855f7', '#d946ef'],
|
|
45
|
-
amplitude: 50,
|
|
46
|
-
frequency: 2,
|
|
47
|
-
bgColor: '#0f172a',
|
|
48
|
-
animated: true,
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
export const mockCircuitGenerator = {
|
|
52
|
-
generatorName: 'drawCircuit',
|
|
53
|
-
params: {
|
|
54
|
-
lineColor: '#60a5fa',
|
|
55
|
-
nodeColor: '#3b82f6',
|
|
56
|
-
bgColor: '#0f172a',
|
|
57
|
-
density: 0.6,
|
|
58
|
-
animated: true,
|
|
59
|
-
boltColor: '#fbbf24',
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
export const mockStackedCirclesGenerator = {
|
|
63
|
-
generatorName: 'drawStackedCircles',
|
|
64
|
-
params: {
|
|
65
|
-
count: 8,
|
|
66
|
-
colors: ['#ef4444', '#f97316', '#fbbf24', '#22c55e', '#3b82f6', '#8b5cf6'],
|
|
67
|
-
distribution: 'random',
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
export const mockPatternGenerator = {
|
|
71
|
-
generatorName: 'drawPattern',
|
|
72
|
-
params: {
|
|
73
|
-
patternType: 'hexagon',
|
|
74
|
-
size: 30,
|
|
75
|
-
color: '#60a5fa',
|
|
76
|
-
bgColor: '#1e293b',
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
// Phase 2: New generators
|
|
80
|
-
export const mockBokehGenerator = {
|
|
81
|
-
generatorName: 'drawBokeh',
|
|
82
|
-
params: {
|
|
83
|
-
count: 30,
|
|
84
|
-
colors: ['#f472b6', '#818cf8', '#34d399', '#fbbf24'],
|
|
85
|
-
bgColor: '#0f172a',
|
|
86
|
-
minRadius: 10,
|
|
87
|
-
maxRadius: 60,
|
|
88
|
-
shadowBlur: 20,
|
|
89
|
-
distribution: 'poisson',
|
|
90
|
-
driftAnimation: true,
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
export const mockGradientMeshGenerator = {
|
|
94
|
-
generatorName: 'drawGradientMesh',
|
|
95
|
-
params: {
|
|
96
|
-
colors: ['#ec4899', '#8b5cf6', '#06b6d4'],
|
|
97
|
-
bgColor: '#0f0f23',
|
|
98
|
-
blobCount: 5,
|
|
99
|
-
blendMode: 'screen',
|
|
100
|
-
drift: true,
|
|
101
|
-
},
|
|
102
|
-
};
|
|
103
|
-
export const mockGeometricAbstractGenerator = {
|
|
104
|
-
generatorName: 'drawGeometricAbstract',
|
|
105
|
-
params: {
|
|
106
|
-
colors: ['#f43f5e', '#3b82f6', '#10b981', '#f59e0b'],
|
|
107
|
-
bgColor: '#1e1b4b',
|
|
108
|
-
shapeCount: 12,
|
|
109
|
-
blendMode: 'multiply',
|
|
110
|
-
rotation: true,
|
|
111
|
-
},
|
|
112
|
-
};
|
|
113
|
-
export const mockWindFieldGenerator = {
|
|
114
|
-
generatorName: 'drawWindField',
|
|
115
|
-
params: {
|
|
116
|
-
particleCount: 200,
|
|
117
|
-
colors: ['#e0f2fe', '#bae6fd', '#7dd3fc'],
|
|
118
|
-
bgColor: '#0c4a6e',
|
|
119
|
-
direction: 45,
|
|
120
|
-
turbulence: 0.5,
|
|
121
|
-
trailLength: 30,
|
|
122
|
-
speed: 1.5,
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
export const mockFluidFlowGenerator = {
|
|
126
|
-
generatorName: 'drawFluidFlow',
|
|
127
|
-
params: {
|
|
128
|
-
streamCount: 8,
|
|
129
|
-
colors: ['#67e8f9', '#a78bfa', '#f9a8d4'],
|
|
130
|
-
bgColor: '#0f172a',
|
|
131
|
-
depthLayers: 3,
|
|
132
|
-
speed: 0.8,
|
|
133
|
-
},
|
|
134
|
-
};
|
|
135
|
-
export const mockOrganicFlowGenerator = {
|
|
136
|
-
generatorName: 'drawOrganicFlow',
|
|
137
|
-
params: {
|
|
138
|
-
layerCount: 4,
|
|
139
|
-
colors: ['#34d399', '#6ee7b7', '#a7f3d0', '#d1fae5'],
|
|
140
|
-
bgColor: '#064e3b',
|
|
141
|
-
blendMode: 'screen',
|
|
142
|
-
fillToBottom: true,
|
|
143
|
-
animated: true,
|
|
144
|
-
},
|
|
145
|
-
};
|
|
146
|
-
export const mockNoiseTextureGenerator = {
|
|
147
|
-
generatorName: 'drawNoiseTexture',
|
|
148
|
-
params: {
|
|
149
|
-
noiseType: 'perlin',
|
|
150
|
-
colors: ['#94a3b8', '#64748b'],
|
|
151
|
-
bgColor: '#1e293b',
|
|
152
|
-
scale: 0.01,
|
|
153
|
-
density: 0.7,
|
|
154
|
-
animated: true,
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
// Collection of all mock generators
|
|
158
|
-
export const allMockGenerators = [
|
|
159
|
-
mockSunburstGenerator,
|
|
160
|
-
mockSunsetGenerator,
|
|
161
|
-
mockGridGenerator,
|
|
162
|
-
mockDotsGridGenerator,
|
|
163
|
-
mockWavesGenerator,
|
|
164
|
-
mockCircuitGenerator,
|
|
165
|
-
mockStackedCirclesGenerator,
|
|
166
|
-
mockPatternGenerator,
|
|
167
|
-
mockBokehGenerator,
|
|
168
|
-
mockGradientMeshGenerator,
|
|
169
|
-
mockGeometricAbstractGenerator,
|
|
170
|
-
mockWindFieldGenerator,
|
|
171
|
-
mockFluidFlowGenerator,
|
|
172
|
-
mockOrganicFlowGenerator,
|
|
173
|
-
mockNoiseTextureGenerator,
|
|
174
|
-
];
|
|
175
|
-
//# sourceMappingURL=mock-generators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock-generators.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-generators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,aAAa,EAAE,cAAuB;IACtC,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE;QACZ,MAAM,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC;QAC9B,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,IAAI;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,aAAa,EAAE,iBAA0B;IACzC,MAAM,EAAE;QACN,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;QAC5C,UAAU,EAAE,CAAC;KACd;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,aAAa,EAAE,UAAmB;IAClC,MAAM,EAAE;QACN,QAAQ,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
-
itemType: "text";
|
|
6
|
-
position: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
};
|
|
10
|
-
properties: {
|
|
11
|
-
content: string;
|
|
12
|
-
fontSize: number;
|
|
13
|
-
color: string;
|
|
14
|
-
fontFamily: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export declare const mockCircleItem: {
|
|
18
|
-
itemType: "circle";
|
|
19
|
-
position: {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
};
|
|
23
|
-
properties: {
|
|
24
|
-
radius: number;
|
|
25
|
-
color: string;
|
|
26
|
-
strokeColor: string;
|
|
27
|
-
strokeWidth: number;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export declare const mockStarItem: {
|
|
31
|
-
itemType: "star";
|
|
32
|
-
position: {
|
|
33
|
-
x: number;
|
|
34
|
-
y: number;
|
|
35
|
-
};
|
|
36
|
-
properties: {
|
|
37
|
-
radius1: number;
|
|
38
|
-
radius2: number;
|
|
39
|
-
points: number;
|
|
40
|
-
color: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export declare const mockRectangleItem: {
|
|
44
|
-
itemType: "rectangle";
|
|
45
|
-
position: {
|
|
46
|
-
x: number;
|
|
47
|
-
y: number;
|
|
48
|
-
};
|
|
49
|
-
properties: {
|
|
50
|
-
width: number;
|
|
51
|
-
height: number;
|
|
52
|
-
color: string;
|
|
53
|
-
cornerRadius: number;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export declare const mockPathItem: {
|
|
57
|
-
itemType: "path";
|
|
58
|
-
position: {
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
};
|
|
62
|
-
properties: {
|
|
63
|
-
segments: [number, number][];
|
|
64
|
-
strokeColor: string;
|
|
65
|
-
strokeWidth: number;
|
|
66
|
-
closed: boolean;
|
|
67
|
-
smooth: boolean;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export declare const mockLineItem: {
|
|
71
|
-
itemType: "line";
|
|
72
|
-
position: {
|
|
73
|
-
x: number;
|
|
74
|
-
y: number;
|
|
75
|
-
};
|
|
76
|
-
properties: {
|
|
77
|
-
from: [number, number];
|
|
78
|
-
to: [number, number];
|
|
79
|
-
strokeColor: string;
|
|
80
|
-
strokeWidth: number;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
export declare const allMockItems: ({
|
|
84
|
-
itemType: "text";
|
|
85
|
-
position: {
|
|
86
|
-
x: number;
|
|
87
|
-
y: number;
|
|
88
|
-
};
|
|
89
|
-
properties: {
|
|
90
|
-
content: string;
|
|
91
|
-
fontSize: number;
|
|
92
|
-
color: string;
|
|
93
|
-
fontFamily: string;
|
|
94
|
-
};
|
|
95
|
-
} | {
|
|
96
|
-
itemType: "circle";
|
|
97
|
-
position: {
|
|
98
|
-
x: number;
|
|
99
|
-
y: number;
|
|
100
|
-
};
|
|
101
|
-
properties: {
|
|
102
|
-
radius: number;
|
|
103
|
-
color: string;
|
|
104
|
-
strokeColor: string;
|
|
105
|
-
strokeWidth: number;
|
|
106
|
-
};
|
|
107
|
-
} | {
|
|
108
|
-
itemType: "star";
|
|
109
|
-
position: {
|
|
110
|
-
x: number;
|
|
111
|
-
y: number;
|
|
112
|
-
};
|
|
113
|
-
properties: {
|
|
114
|
-
radius1: number;
|
|
115
|
-
radius2: number;
|
|
116
|
-
points: number;
|
|
117
|
-
color: string;
|
|
118
|
-
};
|
|
119
|
-
} | {
|
|
120
|
-
itemType: "rectangle";
|
|
121
|
-
position: {
|
|
122
|
-
x: number;
|
|
123
|
-
y: number;
|
|
124
|
-
};
|
|
125
|
-
properties: {
|
|
126
|
-
width: number;
|
|
127
|
-
height: number;
|
|
128
|
-
color: string;
|
|
129
|
-
cornerRadius: number;
|
|
130
|
-
};
|
|
131
|
-
} | {
|
|
132
|
-
itemType: "path";
|
|
133
|
-
position: {
|
|
134
|
-
x: number;
|
|
135
|
-
y: number;
|
|
136
|
-
};
|
|
137
|
-
properties: {
|
|
138
|
-
segments: [number, number][];
|
|
139
|
-
strokeColor: string;
|
|
140
|
-
strokeWidth: number;
|
|
141
|
-
closed: boolean;
|
|
142
|
-
smooth: boolean;
|
|
143
|
-
};
|
|
144
|
-
} | {
|
|
145
|
-
itemType: "line";
|
|
146
|
-
position: {
|
|
147
|
-
x: number;
|
|
148
|
-
y: number;
|
|
149
|
-
};
|
|
150
|
-
properties: {
|
|
151
|
-
from: [number, number];
|
|
152
|
-
to: [number, number];
|
|
153
|
-
strokeColor: string;
|
|
154
|
-
strokeWidth: number;
|
|
155
|
-
};
|
|
156
|
-
})[];
|
|
157
|
-
//# sourceMappingURL=mock-items.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock-items.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-items.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;CASxB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;CAS1B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;CASxB,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;kBAIsB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;;;;;;CAMhE,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;cAID,CAAC,MAAM,EAAE,MAAM,CAAC;YAClB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;CAIrC,CAAC;AAGF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBApBsB,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE;;;;;;;;;;;;;cAYzC,CAAC,MAAM,EAAE,MAAM,CAAC;YAClB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;IAcrC,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock Items for Testing
|
|
3
|
-
*/
|
|
4
|
-
export const mockTextItem = {
|
|
5
|
-
itemType: 'text',
|
|
6
|
-
position: { x: 400, y: 300 },
|
|
7
|
-
properties: {
|
|
8
|
-
content: 'Hello World',
|
|
9
|
-
fontSize: 48,
|
|
10
|
-
color: '#ffffff',
|
|
11
|
-
fontFamily: 'Arial, sans-serif',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
export const mockCircleItem = {
|
|
15
|
-
itemType: 'circle',
|
|
16
|
-
position: { x: 200, y: 200 },
|
|
17
|
-
properties: {
|
|
18
|
-
radius: 50,
|
|
19
|
-
color: '#3b82f6',
|
|
20
|
-
strokeColor: '#1d4ed8',
|
|
21
|
-
strokeWidth: 2,
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
export const mockStarItem = {
|
|
25
|
-
itemType: 'star',
|
|
26
|
-
position: { x: 500, y: 300 },
|
|
27
|
-
properties: {
|
|
28
|
-
radius1: 60,
|
|
29
|
-
radius2: 30,
|
|
30
|
-
points: 5,
|
|
31
|
-
color: '#fbbf24',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export const mockRectangleItem = {
|
|
35
|
-
itemType: 'rectangle',
|
|
36
|
-
position: { x: 100, y: 100 },
|
|
37
|
-
properties: {
|
|
38
|
-
width: 200,
|
|
39
|
-
height: 100,
|
|
40
|
-
color: '#10b981',
|
|
41
|
-
cornerRadius: 8,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
export const mockPathItem = {
|
|
45
|
-
itemType: 'path',
|
|
46
|
-
position: { x: 300, y: 300 },
|
|
47
|
-
properties: {
|
|
48
|
-
segments: [[0, 0], [100, 50], [200, 0]],
|
|
49
|
-
strokeColor: '#ef4444',
|
|
50
|
-
strokeWidth: 3,
|
|
51
|
-
closed: false,
|
|
52
|
-
smooth: true,
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
export const mockLineItem = {
|
|
56
|
-
itemType: 'line',
|
|
57
|
-
position: { x: 0, y: 0 },
|
|
58
|
-
properties: {
|
|
59
|
-
from: [100, 100],
|
|
60
|
-
to: [300, 200],
|
|
61
|
-
strokeColor: '#8b5cf6',
|
|
62
|
-
strokeWidth: 2,
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
// Collection of all mock items
|
|
66
|
-
export const allMockItems = [
|
|
67
|
-
mockTextItem,
|
|
68
|
-
mockCircleItem,
|
|
69
|
-
mockStarItem,
|
|
70
|
-
mockRectangleItem,
|
|
71
|
-
mockPathItem,
|
|
72
|
-
mockLineItem,
|
|
73
|
-
];
|
|
74
|
-
//# sourceMappingURL=mock-items.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock-items.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-items.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,MAAe;IACzB,QAAQ,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;IAC5B,UAAU,EAAE;QACV,OAAO,EAAE,aAAa;QACtB,QAAQ,EAAE,EAAE;QACZ,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,mBAAmB;KAChC;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,QAAQ,EAAE,QAAiB;IAC3B,QAAQ,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE;IAC5B,UAAU,EAAE;QACV,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,CAAC;KACf;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,MAAe;IACzB,QAAQ,EAAE,EAAE,CAAC,EAAE,GAAG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ACZ,iBAAiB;IACjB,YAAY;IACZ,YAAY;CACb,CAAC"}
|
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mock Relations for Testing
|
|
3
|
-
*/
|
|
4
|
-
export declare const mockOrbitsRelation: {
|
|
5
|
-
sourceId: string;
|
|
6
|
-
targetId: string;
|
|
7
|
-
relationType: "orbits";
|
|
8
|
-
params: {
|
|
9
|
-
radius: number;
|
|
10
|
-
speed: number;
|
|
11
|
-
direction: "counterclockwise";
|
|
12
|
-
phase: number;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export declare const mockFollowsRelation: {
|
|
16
|
-
sourceId: string;
|
|
17
|
-
targetId: string;
|
|
18
|
-
relationType: "follows";
|
|
19
|
-
params: {
|
|
20
|
-
offset: [number, number];
|
|
21
|
-
smoothing: number;
|
|
22
|
-
delay: number;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare const mockAttachedToRelation: {
|
|
26
|
-
sourceId: string;
|
|
27
|
-
targetId: string;
|
|
28
|
-
relationType: "attached_to";
|
|
29
|
-
params: {
|
|
30
|
-
offset: [number, number];
|
|
31
|
-
inherit_rotation: boolean;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const mockMaintainsDistanceRelation: {
|
|
35
|
-
sourceId: string;
|
|
36
|
-
targetId: string;
|
|
37
|
-
relationType: "maintains_distance";
|
|
38
|
-
params: {
|
|
39
|
-
distance: number;
|
|
40
|
-
strength: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export declare const mockPointsAtRelation: {
|
|
44
|
-
sourceId: string;
|
|
45
|
-
targetId: string;
|
|
46
|
-
relationType: "points_at";
|
|
47
|
-
params: {
|
|
48
|
-
offset_angle: number;
|
|
49
|
-
smoothing: number;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export declare const mockMirrorsRelation: {
|
|
53
|
-
sourceId: string;
|
|
54
|
-
targetId: string;
|
|
55
|
-
relationType: "mirrors";
|
|
56
|
-
params: {
|
|
57
|
-
axis: "vertical";
|
|
58
|
-
center: [number, number];
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
export declare const mockParallaxRelation: {
|
|
62
|
-
sourceId: string;
|
|
63
|
-
targetId: string;
|
|
64
|
-
relationType: "parallax";
|
|
65
|
-
params: {
|
|
66
|
-
depth: number;
|
|
67
|
-
origin: [number, number];
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export declare const mockBoundsToRelation: {
|
|
71
|
-
sourceId: string;
|
|
72
|
-
targetId: string;
|
|
73
|
-
relationType: "bounds_to";
|
|
74
|
-
params: {
|
|
75
|
-
padding: number;
|
|
76
|
-
bounce: boolean;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export declare const mockDrivenByRelation: {
|
|
80
|
-
sourceId: string;
|
|
81
|
-
targetId: string;
|
|
82
|
-
relationType: "driven_by";
|
|
83
|
-
params: {
|
|
84
|
-
sourceProperty: string;
|
|
85
|
-
targetProperty: string;
|
|
86
|
-
multiplier: number;
|
|
87
|
-
offset: number;
|
|
88
|
-
colorFrom: string;
|
|
89
|
-
colorTo: string;
|
|
90
|
-
signal: boolean;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
export declare const mockTimeExpressionRelation: {
|
|
94
|
-
sourceId: string;
|
|
95
|
-
targetId: null;
|
|
96
|
-
relationType: "time_expression";
|
|
97
|
-
params: {
|
|
98
|
-
property: string;
|
|
99
|
-
expression: string;
|
|
100
|
-
baseValue: number;
|
|
101
|
-
signal: boolean;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
export declare const allMockRelations: ({
|
|
105
|
-
sourceId: string;
|
|
106
|
-
targetId: string;
|
|
107
|
-
relationType: "orbits";
|
|
108
|
-
params: {
|
|
109
|
-
radius: number;
|
|
110
|
-
speed: number;
|
|
111
|
-
direction: "counterclockwise";
|
|
112
|
-
phase: number;
|
|
113
|
-
};
|
|
114
|
-
} | {
|
|
115
|
-
sourceId: string;
|
|
116
|
-
targetId: string;
|
|
117
|
-
relationType: "follows";
|
|
118
|
-
params: {
|
|
119
|
-
offset: [number, number];
|
|
120
|
-
smoothing: number;
|
|
121
|
-
delay: number;
|
|
122
|
-
};
|
|
123
|
-
} | {
|
|
124
|
-
sourceId: string;
|
|
125
|
-
targetId: string;
|
|
126
|
-
relationType: "attached_to";
|
|
127
|
-
params: {
|
|
128
|
-
offset: [number, number];
|
|
129
|
-
inherit_rotation: boolean;
|
|
130
|
-
};
|
|
131
|
-
} | {
|
|
132
|
-
sourceId: string;
|
|
133
|
-
targetId: string;
|
|
134
|
-
relationType: "maintains_distance";
|
|
135
|
-
params: {
|
|
136
|
-
distance: number;
|
|
137
|
-
strength: number;
|
|
138
|
-
};
|
|
139
|
-
} | {
|
|
140
|
-
sourceId: string;
|
|
141
|
-
targetId: string;
|
|
142
|
-
relationType: "points_at";
|
|
143
|
-
params: {
|
|
144
|
-
offset_angle: number;
|
|
145
|
-
smoothing: number;
|
|
146
|
-
};
|
|
147
|
-
} | {
|
|
148
|
-
sourceId: string;
|
|
149
|
-
targetId: string;
|
|
150
|
-
relationType: "mirrors";
|
|
151
|
-
params: {
|
|
152
|
-
axis: "vertical";
|
|
153
|
-
center: [number, number];
|
|
154
|
-
};
|
|
155
|
-
} | {
|
|
156
|
-
sourceId: string;
|
|
157
|
-
targetId: string;
|
|
158
|
-
relationType: "parallax";
|
|
159
|
-
params: {
|
|
160
|
-
depth: number;
|
|
161
|
-
origin: [number, number];
|
|
162
|
-
};
|
|
163
|
-
} | {
|
|
164
|
-
sourceId: string;
|
|
165
|
-
targetId: string;
|
|
166
|
-
relationType: "bounds_to";
|
|
167
|
-
params: {
|
|
168
|
-
padding: number;
|
|
169
|
-
bounce: boolean;
|
|
170
|
-
};
|
|
171
|
-
} | {
|
|
172
|
-
sourceId: string;
|
|
173
|
-
targetId: string;
|
|
174
|
-
relationType: "driven_by";
|
|
175
|
-
params: {
|
|
176
|
-
sourceProperty: string;
|
|
177
|
-
targetProperty: string;
|
|
178
|
-
multiplier: number;
|
|
179
|
-
offset: number;
|
|
180
|
-
colorFrom: string;
|
|
181
|
-
colorTo: string;
|
|
182
|
-
signal: boolean;
|
|
183
|
-
};
|
|
184
|
-
} | {
|
|
185
|
-
sourceId: string;
|
|
186
|
-
targetId: null;
|
|
187
|
-
relationType: "time_expression";
|
|
188
|
-
params: {
|
|
189
|
-
property: string;
|
|
190
|
-
expression: string;
|
|
191
|
-
baseValue: number;
|
|
192
|
-
signal: boolean;
|
|
193
|
-
};
|
|
194
|
-
})[];
|
|
195
|
-
//# sourceMappingURL=mock-relations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mock-relations.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/mock-relations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;CAU9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;gBAKR,CAAC,MAAM,EAAE,MAAM,CAAC;;;;CAIvC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;gBAKX,CAAC,MAAM,EAAE,MAAM,CAAC;;;CAGvC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;CAQzC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;gBAMN,CAAC,MAAM,EAAE,MAAM,CAAC;;CAEzC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;gBAMP,CAAC,MAAM,EAAE,MAAM,CAAC;;CAEzC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;CAQhC,CAAC;AAKF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAC;AAGF,eAAO,MAAM,0BAA0B;;;;;;;;;;CAUtC,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;gBAlGL,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;gBAWhB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;gBA+Bd,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;gBAUhB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyDzC,CAAC"}
|