@paramrig/web 0.1.1 → 0.1.2
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/rigs/types.d.ts
CHANGED
|
@@ -36,9 +36,11 @@ export type NumberParam = {
|
|
|
36
36
|
view?: 'field' | 'stepper' | 'bar' | 'knob' | 'angle' | 'seed';
|
|
37
37
|
scale?: 'linear' | 'log';
|
|
38
38
|
stops?: number[];
|
|
39
|
+
/** Constrain a weight control to the face selected by this font-library parameter. */
|
|
40
|
+
fontParameter?: string;
|
|
39
41
|
readOnly?: boolean;
|
|
40
42
|
role?: 'duration' | 'playhead';
|
|
41
|
-
defaultSource?: import('./extended-types').ValueSource;
|
|
43
|
+
defaultSource?: import('./extended-types.js').ValueSource;
|
|
42
44
|
hidden?: boolean;
|
|
43
45
|
};
|
|
44
46
|
export type ColorParam = {
|
|
@@ -48,6 +50,7 @@ export type ColorParam = {
|
|
|
48
50
|
group: string;
|
|
49
51
|
defaultValue: string;
|
|
50
52
|
alpha?: boolean;
|
|
53
|
+
allowNone?: boolean;
|
|
51
54
|
channels?: boolean;
|
|
52
55
|
hidden?: boolean;
|
|
53
56
|
};
|
|
@@ -63,7 +66,7 @@ export type SelectParam = {
|
|
|
63
66
|
}[];
|
|
64
67
|
defaultValue: string;
|
|
65
68
|
appliesToTracks?: boolean;
|
|
66
|
-
view?: 'search' | 'visual' | 'font';
|
|
69
|
+
view?: 'search' | 'visual' | 'font' | 'font-library';
|
|
67
70
|
hidden?: boolean;
|
|
68
71
|
};
|
|
69
72
|
export type CurveParam = {
|
|
@@ -90,7 +93,7 @@ export type GradientParam = {
|
|
|
90
93
|
defaultValue: GradientStop[];
|
|
91
94
|
hidden?: boolean;
|
|
92
95
|
};
|
|
93
|
-
export type ParameterDef = NumberParam | ColorParam | SelectParam | CurveParam | SwitchParam | GradientParam | import('./extended-types').ExtendedParameter;
|
|
96
|
+
export type ParameterDef = NumberParam | ColorParam | SelectParam | CurveParam | SwitchParam | GradientParam | import('./extended-types.js').ExtendedParameter;
|
|
94
97
|
export type Keyframe = {
|
|
95
98
|
id?: string;
|
|
96
99
|
time: number;
|
|
@@ -127,7 +130,7 @@ export type InspectorCategory = {
|
|
|
127
130
|
id: string;
|
|
128
131
|
label: string;
|
|
129
132
|
};
|
|
130
|
-
export type RendererKind = 'svg' | 'three' | 'html' | 'vector' | 'scene' | 'web';
|
|
133
|
+
export type RendererKind = 'svg' | 'three' | 'html' | 'vector' | 'scene' | 'web' | 'audio';
|
|
131
134
|
export type RigManifest = {
|
|
132
135
|
id: string;
|
|
133
136
|
name: string;
|
|
@@ -151,7 +154,7 @@ export type Snapshot = {
|
|
|
151
154
|
name: string;
|
|
152
155
|
createdAt: string;
|
|
153
156
|
values: Record<string, ParamValue>;
|
|
154
|
-
valueSources?: Record<string, import('./extended-types').ValueSource>;
|
|
157
|
+
valueSources?: Record<string, import('./extended-types.js').ValueSource>;
|
|
155
158
|
tracks?: AnimTrack[];
|
|
156
159
|
loop?: boolean;
|
|
157
160
|
loopRange?: LoopRange | null;
|
|
@@ -163,7 +166,7 @@ export type ExportDocument = {
|
|
|
163
166
|
name: string;
|
|
164
167
|
exportedAt: string;
|
|
165
168
|
values: Record<string, ParamValue>;
|
|
166
|
-
valueSources: Record<string, import('./extended-types').ValueSource>;
|
|
169
|
+
valueSources: Record<string, import('./extended-types.js').ValueSource>;
|
|
167
170
|
animation?: {
|
|
168
171
|
duration: number;
|
|
169
172
|
fps: number;
|
|
@@ -177,7 +180,7 @@ export type StoredDraft = {
|
|
|
177
180
|
version: 1;
|
|
178
181
|
rigId: string;
|
|
179
182
|
values: Record<string, ParamValue>;
|
|
180
|
-
valueSources?: Record<string, import('./extended-types').ValueSource>;
|
|
183
|
+
valueSources?: Record<string, import('./extended-types.js').ValueSource>;
|
|
181
184
|
snapshots: Snapshot[];
|
|
182
185
|
compare: 'original' | 'current';
|
|
183
186
|
activeSnapshotId: string | null;
|
package/dist/web/contracts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ParameterDef, ParamGroup, ParamValue } from '../rigs/types.
|
|
1
|
+
import type { ParameterDef, ParamGroup, ParamValue } from '../rigs/types.js';
|
|
2
2
|
export declare const WEB_PROTOCOL = 1;
|
|
3
3
|
export declare const WEB_CHANNEL = "paramrig.web";
|
|
4
4
|
export type Values = Record<string, ParamValue>;
|
package/dist/web/geometry.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Point, Rect, WebMark, WebTarget } from './contracts.
|
|
1
|
+
import type { Point, Rect, WebMark, WebTarget } from './contracts.js';
|
|
2
2
|
export declare function markPoints(mark: WebMark, targets: WebTarget[], scroll: Point): Point[] | null;
|
|
3
3
|
export declare function storedPoint(point: Point, target: WebTarget | undefined, scroll: Point): Point;
|
|
4
4
|
export declare function bounds(points: Point[]): Rect;
|
package/dist/web/sdk.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type WebProjectManifest } from './contracts.
|
|
2
|
-
import type { ParamValue } from '../rigs/types.
|
|
3
|
-
export { parseManifest } from './contracts.
|
|
4
|
-
export type { WebProjectManifest, WebBinding, WebTarget, FeedbackBatch, AgentResponse } from './contracts.
|
|
5
|
-
export type { ParameterDef, ParamValue } from '../rigs/types.
|
|
1
|
+
import { type WebProjectManifest } from './contracts.js';
|
|
2
|
+
import type { ParamValue } from '../rigs/types.js';
|
|
3
|
+
export { parseManifest } from './contracts.js';
|
|
4
|
+
export type { WebProjectManifest, WebBinding, WebTarget, FeedbackBatch, AgentResponse } from './contracts.js';
|
|
5
|
+
export type { ParameterDef, ParamValue } from '../rigs/types.js';
|
|
6
6
|
export type WebAdapter = {
|
|
7
7
|
read: () => ParamValue;
|
|
8
8
|
apply: (value: ParamValue) => void;
|