@pixodesk/svg-animator-core 1.0.45 → 1.0.47
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 +12 -0
- package/dist/{PxDocumentDiagnostic-CBhVyNEi.d.cts → PxDocumentDiagnostic-DX8w42-I.d.cts} +364 -207
- package/dist/{PxDocumentDiagnostic-CBhVyNEi.d.ts → PxDocumentDiagnostic-DX8w42-I.d.ts} +364 -207
- package/dist/{chunk-YVKMPBHE.js → chunk-37OFJ3RX.js} +139 -78
- package/dist/chunk-37OFJ3RX.js.map +1 -0
- package/dist/chunk-K2732IVS.min.js +1 -0
- package/dist/index.cjs +141 -80
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.js +1 -1
- package/dist/internal.cjs +137 -76
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +4 -5
- package/dist/internal.d.ts +4 -5
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/dist/internal.min.cjs +1 -1
- package/dist/internal.min.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5HEVTP2N.min.js +0 -1
- package/dist/chunk-YVKMPBHE.js.map +0 -1
|
@@ -55,7 +55,7 @@ interface PxValidationContext {
|
|
|
55
55
|
strict?: boolean;
|
|
56
56
|
}
|
|
57
57
|
/** @public @advanced */
|
|
58
|
-
interface PxSchema<T, IsOptional extends boolean = false> {
|
|
58
|
+
interface PxSchema<T, IsOptional extends boolean = false, StatesDefault extends boolean = boolean> {
|
|
59
59
|
/** Phantom discriminator — `false` for required schemas, `true` for optional. Used by InferShape. */
|
|
60
60
|
readonly _optional: IsOptional;
|
|
61
61
|
sanitize(raw: unknown): T;
|
|
@@ -69,8 +69,19 @@ interface PxSchema<T, IsOptional extends boolean = false> {
|
|
|
69
69
|
/** True if raw has the right structure to attempt sanitization (may still need repair). */
|
|
70
70
|
_canSanitize(raw: unknown): boolean;
|
|
71
71
|
readonly _default: T;
|
|
72
|
+
/** Whether `_default` was STATED (`px.enum([...], x)`, `px.number(x)`) rather than implied by
|
|
73
|
+
* position or type — carried in the type, so an object schema can offer its stated ones as
|
|
74
|
+
* `defaults`. Only a stated default is what an ABSENT optional field means. */
|
|
75
|
+
readonly _statesDefault: StatesDefault;
|
|
76
|
+
/**
|
|
77
|
+
* What the field means when a document LEAVES IT OUT — the value every reader must fall back
|
|
78
|
+
* to (the player normalises to it, the Editor's model defaults to it). `undefined` when the
|
|
79
|
+
* schema states none: absent then simply means unset. Readers ask the OBJECT schema instead:
|
|
80
|
+
* `PxTriggerSchema.defaults.mouseOut` is typed, and only stated fields are keys of it.
|
|
81
|
+
*/
|
|
82
|
+
absentDefault(): T | undefined;
|
|
72
83
|
/** Returns a new schema that marks this field as optional (?: in object shapes). */
|
|
73
|
-
optional(): PxSchema<T | undefined, true>;
|
|
84
|
+
optional(): PxSchema<T | undefined, true, StatesDefault>;
|
|
74
85
|
}
|
|
75
86
|
/** Extract the TypeScript type from a schema. @public @advanced */
|
|
76
87
|
type PxInfer<S> = S extends PxSchema<infer T, any> ? T : never;
|
|
@@ -92,6 +103,25 @@ type UnionMembers<T extends ReadonlyArray<PxSchema<any, any>>> = {
|
|
|
92
103
|
}[number];
|
|
93
104
|
type AnyDiscriminantShape<K extends string> = Record<K, PxSchema<string | number | boolean | undefined, any>>;
|
|
94
105
|
type AnyShape = Record<string, PxSchema<any, any>>;
|
|
106
|
+
/** The keys of a shape whose schema STATES what absent means. */
|
|
107
|
+
type StatedKeys<S extends AnyShape> = {
|
|
108
|
+
[K in keyof S]: S[K] extends PxSchema<any, any, true> ? K : never;
|
|
109
|
+
}[keyof S];
|
|
110
|
+
/**
|
|
111
|
+
* WHAT EACH FIELD MEANS WHEN A DOCUMENT LEAVES IT OUT — one entry per field whose schema states it
|
|
112
|
+
* (`px.enum([...], x)`, `px.number(x)`, a literal), typed without `undefined`. A field that states
|
|
113
|
+
* none (absent = unset, e.g. `clone.without`) is not a key, so asking for it does not compile — and
|
|
114
|
+
* neither does a key the schema has since renamed. The ONE source every reader shares: the player
|
|
115
|
+
* normalises an absent field to it, the Editor's model defaults to it.
|
|
116
|
+
*/
|
|
117
|
+
type InferDefaults<S extends AnyShape> = {
|
|
118
|
+
readonly [K in StatedKeys<S>]: Exclude<PxInfer<S[K]>, undefined>;
|
|
119
|
+
};
|
|
120
|
+
/** A closed or open object schema, with its shape and its stated {@link InferDefaults}. */
|
|
121
|
+
type ObjectSchema<T, S extends AnyShape> = PxSchema<T> & {
|
|
122
|
+
readonly _shape: S;
|
|
123
|
+
readonly defaults: InferDefaults<S>;
|
|
124
|
+
};
|
|
95
125
|
type InferShape<S extends AnyShape> = {
|
|
96
126
|
[K in keyof S as S[K] extends PxSchema<any, true> ? never : K]: PxInfer<S[K]>;
|
|
97
127
|
} & {
|
|
@@ -166,23 +196,34 @@ type PxSchemaDesc = {
|
|
|
166
196
|
};
|
|
167
197
|
/** @public @advanced */
|
|
168
198
|
declare function describeSchema(schema: PxSchema<any, any>): PxSchemaDesc;
|
|
199
|
+
/** Matches a string. Absent means the stated value; without one, '' is only the repair value. */
|
|
200
|
+
declare function string(): PxSchema<string, false, false>;
|
|
201
|
+
declare function string(defaultVal: string): PxSchema<string, false, true>;
|
|
202
|
+
/** Matches a finite number. Absent means the stated value; without one, 0 is only the repair value. */
|
|
203
|
+
declare function number(): PxSchema<number, false, false>;
|
|
204
|
+
declare function number(defaultVal: number): PxSchema<number, false, true>;
|
|
205
|
+
/** Matches a boolean. Absent means the stated value; without one, false is only the repair value. */
|
|
206
|
+
declare function boolean(): PxSchema<boolean, false, false>;
|
|
207
|
+
declare function boolean(defaultVal: boolean): PxSchema<boolean, false, true>;
|
|
208
|
+
/** Matches one of a fixed set of string/number values. Absent means the stated value; without one,
|
|
209
|
+
* the first value is only the repair value. */
|
|
210
|
+
declare function oneOf<T extends string | number>(values: readonly T[]): PxSchema<T, false, false>;
|
|
211
|
+
declare function oneOf<T extends string | number>(values: readonly T[], defaultVal: T): PxSchema<T, false, true>;
|
|
212
|
+
/**
|
|
213
|
+
* Returns the first schema whose isValid passes; TypeScript infers the union of all member types.
|
|
214
|
+
* Absent means the stated value; without one, the first member's default is only the repair value.
|
|
215
|
+
*/
|
|
216
|
+
declare function unionOf<const T extends ReadonlyArray<PxSchema<any, any>>>(schemas: T): PxSchema<UnionMembers<T>, false, false>;
|
|
217
|
+
declare function unionOf<const T extends ReadonlyArray<PxSchema<any, any>>>(schemas: T, defaultVal: UnionMembers<T>): PxSchema<UnionMembers<T>, false, true>;
|
|
169
218
|
/** @public @advanced */
|
|
170
219
|
declare const px: {
|
|
171
|
-
|
|
172
|
-
readonly
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
readonly
|
|
177
|
-
|
|
178
|
-
readonly literal: <T extends string | number | boolean>(value: T) => PxSchema<T>;
|
|
179
|
-
/** Matches one of a fixed set of string/number values. Default: first value. */
|
|
180
|
-
readonly enum: <T extends string | number>(values: readonly T[], defaultVal?: T) => PxSchema<T>;
|
|
181
|
-
/**
|
|
182
|
-
* Returns the first schema whose isValid passes.
|
|
183
|
-
* TypeScript infers the union of all member types automatically.
|
|
184
|
-
*/
|
|
185
|
-
readonly union: <const T extends ReadonlyArray<PxSchema<any, any>>>(schemas: T, defaultVal?: UnionMembers<T>) => PxSchema<UnionMembers<T>>;
|
|
220
|
+
readonly string: typeof string;
|
|
221
|
+
readonly number: typeof number;
|
|
222
|
+
readonly boolean: typeof boolean;
|
|
223
|
+
/** Matches one exact primitive value; absent means the value itself. */
|
|
224
|
+
readonly literal: <T extends string | number | boolean>(value: T) => PxSchema<T, false, true>;
|
|
225
|
+
readonly enum: typeof oneOf;
|
|
226
|
+
readonly union: typeof unionOf;
|
|
186
227
|
/**
|
|
187
228
|
* Discriminated union — reads `raw[key]`, finds the member schema whose
|
|
188
229
|
* literal at `key` matches, then delegates sanitize/isValid to that member.
|
|
@@ -192,17 +233,14 @@ declare const px: {
|
|
|
192
233
|
readonly discriminatedUnion: <K extends string, const T extends ReadonlyArray<PxSchema<any, any> & {
|
|
193
234
|
readonly _shape: AnyDiscriminantShape<K>;
|
|
194
235
|
}>>(key: K, schemas: T) => PxSchema<UnionMembers<T>>;
|
|
195
|
-
/** Typed object — unknown keys are stripped. Required fields fall back to their default.
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
};
|
|
236
|
+
/** Typed object — unknown keys are stripped. Required fields fall back to their default.
|
|
237
|
+
* Its `defaults` say what each stated field means when a document leaves it out. */
|
|
238
|
+
readonly object: <S extends AnyShape>(shape: S) => ObjectSchema<InferShape<S>, S>;
|
|
199
239
|
/**
|
|
200
240
|
* Open object — validates known keys; passes unknown keys through as-is,
|
|
201
241
|
* or validates/sanitizes them against `openSchema` when provided.
|
|
202
242
|
*/
|
|
203
|
-
readonly openObject: <S extends AnyShape, V = any>(shape: S, openSchema?: PxSchema<V>) =>
|
|
204
|
-
readonly _shape: S;
|
|
205
|
-
};
|
|
243
|
+
readonly openObject: <S extends AnyShape, V = any>(shape: S, openSchema?: PxSchema<V>) => ObjectSchema<InferOpenShape<S, V>, S>;
|
|
206
244
|
/**
|
|
207
245
|
* Creates a new closed object schema by merging a base schema's shape with additional fields.
|
|
208
246
|
* The base can be the result of px.object() or px.openObject() — anything with a _shape property.
|
|
@@ -212,9 +250,7 @@ declare const px: {
|
|
|
212
250
|
*/
|
|
213
251
|
readonly extendedObject: <B extends AnyShape, E extends AnyShape>(base: {
|
|
214
252
|
readonly _shape: B;
|
|
215
|
-
}, extra: E) =>
|
|
216
|
-
readonly _shape: B & E;
|
|
217
|
-
};
|
|
253
|
+
}, extra: E) => ObjectSchema<InferShape<B & E>, B & E>;
|
|
218
254
|
/** Array whose unrecoverable items are filtered out. Default: []. */
|
|
219
255
|
readonly array: <T>(item: PxSchema<T>) => PxSchema<Array<T>>;
|
|
220
256
|
/** String-keyed record whose unrecoverable values are dropped. Default: {}. */
|
|
@@ -544,7 +580,14 @@ declare const PX_TRIGGER_DEFAULTS: {
|
|
|
544
580
|
readonly mouseOut: "continue";
|
|
545
581
|
readonly visibilityThreshold: 0.5;
|
|
546
582
|
readonly visibilityDebounce: 150;
|
|
583
|
+
readonly finish: "hold";
|
|
547
584
|
};
|
|
585
|
+
/**
|
|
586
|
+
* What an absent `timeline.duration` means — the number the SCHEMA states (`PxTimeTimelineSchema.defaults.duration`), kept here as a constant for the runtime's arithmetic. @internal
|
|
587
|
+
*/
|
|
588
|
+
declare const PX_DEFAULT_DURATION_MS = 1000;
|
|
589
|
+
/** What an absent `timeline.iterations` means — see `PX_DEFAULT_DURATION_MS`. @internal */
|
|
590
|
+
declare const PX_DEFAULT_ITERATIONS = 1;
|
|
548
591
|
/** A trigger with every default filled in. @public @advanced */
|
|
549
592
|
interface PxResolvedTrigger {
|
|
550
593
|
readonly start: NonNullable<PxTrigger['start']>;
|
|
@@ -1004,7 +1047,7 @@ declare function createDiagnostics(config?: PxDiagnosticsConfig, prefix?: string
|
|
|
1004
1047
|
* `string | [x1, y1, x2, y2]`
|
|
1005
1048
|
* @public @advanced
|
|
1006
1049
|
*/
|
|
1007
|
-
declare const PxEasingOrRefSchema: PxSchema<string | [number, number, number, number], false>;
|
|
1050
|
+
declare const PxEasingOrRefSchema: PxSchema<string | [number, number, number, number], false, false>;
|
|
1008
1051
|
/**
|
|
1009
1052
|
* Easing function definition.
|
|
1010
1053
|
* Can be a named reference to a predefined easing or a cubic-bezier array [x1, y1, x2, y2].
|
|
@@ -1060,7 +1103,7 @@ declare const PxKeyframeValueSchema: PxSchema<string | number | number[] | ({} &
|
|
|
1060
1103
|
origin?: [number, number] | undefined;
|
|
1061
1104
|
}) | _PxGradientStop[] | ({
|
|
1062
1105
|
pathData: string;
|
|
1063
|
-
} & {}), false>;
|
|
1106
|
+
} & {}), false, false>;
|
|
1064
1107
|
/** @public @advanced */
|
|
1065
1108
|
declare const PxKeyframeSchema: PxSchema<{} & {
|
|
1066
1109
|
time?: number | undefined;
|
|
@@ -1076,9 +1119,9 @@ declare const PxKeyframeSchema: PxSchema<{} & {
|
|
|
1076
1119
|
easing?: string | [number, number, number, number] | undefined;
|
|
1077
1120
|
tangentOut?: [number, number] | undefined;
|
|
1078
1121
|
tangentIn?: [number, number] | undefined;
|
|
1079
|
-
}, false> & {
|
|
1122
|
+
}, false, boolean> & {
|
|
1080
1123
|
readonly _shape: {
|
|
1081
|
-
time: PxSchema<number | undefined, true>;
|
|
1124
|
+
time: PxSchema<number | undefined, true, false>;
|
|
1082
1125
|
value: PxSchema<string | number | number[] | ({} & {
|
|
1083
1126
|
translate?: [number, number] | undefined;
|
|
1084
1127
|
rotate?: number | undefined;
|
|
@@ -1087,11 +1130,12 @@ declare const PxKeyframeSchema: PxSchema<{} & {
|
|
|
1087
1130
|
origin?: [number, number] | undefined;
|
|
1088
1131
|
}) | _PxGradientStop[] | ({
|
|
1089
1132
|
pathData: string;
|
|
1090
|
-
} & {}) | undefined, true>;
|
|
1091
|
-
easing: PxSchema<string | [number, number, number, number] | undefined, true>;
|
|
1092
|
-
tangentOut: PxSchema<[number, number] | undefined, true>;
|
|
1093
|
-
tangentIn: PxSchema<[number, number] | undefined, true>;
|
|
1133
|
+
} & {}) | undefined, true, false>;
|
|
1134
|
+
easing: PxSchema<string | [number, number, number, number] | undefined, true, false>;
|
|
1135
|
+
tangentOut: PxSchema<[number, number] | undefined, true, boolean>;
|
|
1136
|
+
tangentIn: PxSchema<[number, number] | undefined, true, boolean>;
|
|
1094
1137
|
};
|
|
1138
|
+
readonly defaults: {};
|
|
1095
1139
|
};
|
|
1096
1140
|
/**
|
|
1097
1141
|
* THE RUNTIME FORM — what `normalizeKeyframes` hands the engines, and what the tree-level
|
|
@@ -1155,11 +1199,15 @@ declare const PxLoopSchema: PxSchema<{} & {
|
|
|
1155
1199
|
segmentCount?: number | undefined;
|
|
1156
1200
|
repeatAt?: "start" | "end" | undefined;
|
|
1157
1201
|
direction?: "normal" | "alternate" | undefined;
|
|
1158
|
-
}, false> & {
|
|
1202
|
+
}, false, boolean> & {
|
|
1159
1203
|
readonly _shape: {
|
|
1160
|
-
segmentCount: PxSchema<number | undefined, true>;
|
|
1161
|
-
repeatAt: PxSchema<"start" | "end" | undefined, true>;
|
|
1162
|
-
direction: PxSchema<"normal" | "alternate" | undefined, true>;
|
|
1204
|
+
segmentCount: PxSchema<number | undefined, true, false>;
|
|
1205
|
+
repeatAt: PxSchema<"start" | "end" | undefined, true, true>;
|
|
1206
|
+
direction: PxSchema<"normal" | "alternate" | undefined, true, true>;
|
|
1207
|
+
};
|
|
1208
|
+
readonly defaults: {
|
|
1209
|
+
readonly direction: "normal" | "alternate";
|
|
1210
|
+
readonly repeatAt: "start" | "end";
|
|
1163
1211
|
};
|
|
1164
1212
|
};
|
|
1165
1213
|
/**
|
|
@@ -1248,7 +1296,7 @@ declare const PxPropertyAnimationSchema: PxSchema<{} & {
|
|
|
1248
1296
|
}) | undefined;
|
|
1249
1297
|
autoOrient?: boolean | undefined;
|
|
1250
1298
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
1251
|
-
}, false> & {
|
|
1299
|
+
}, false, boolean> & {
|
|
1252
1300
|
readonly _shape: {
|
|
1253
1301
|
value: PxSchema<string | number | number[] | ({} & {
|
|
1254
1302
|
translate?: [number, number] | undefined;
|
|
@@ -1258,7 +1306,7 @@ declare const PxPropertyAnimationSchema: PxSchema<{} & {
|
|
|
1258
1306
|
origin?: [number, number] | undefined;
|
|
1259
1307
|
}) | _PxGradientStop[] | ({
|
|
1260
1308
|
pathData: string;
|
|
1261
|
-
} & {}) | undefined, true>;
|
|
1309
|
+
} & {}) | undefined, true, false>;
|
|
1262
1310
|
keyframes: PxSchema<({} & {
|
|
1263
1311
|
time?: number | undefined;
|
|
1264
1312
|
value?: string | number | number[] | ({} & {
|
|
@@ -1273,14 +1321,17 @@ declare const PxPropertyAnimationSchema: PxSchema<{} & {
|
|
|
1273
1321
|
easing?: string | [number, number, number, number] | undefined;
|
|
1274
1322
|
tangentOut?: [number, number] | undefined;
|
|
1275
1323
|
tangentIn?: [number, number] | undefined;
|
|
1276
|
-
})[] | undefined, true>;
|
|
1324
|
+
})[] | undefined, true, boolean>;
|
|
1277
1325
|
loop: PxSchema<boolean | ({} & {
|
|
1278
1326
|
segmentCount?: number | undefined;
|
|
1279
1327
|
repeatAt?: "start" | "end" | undefined;
|
|
1280
1328
|
direction?: "normal" | "alternate" | undefined;
|
|
1281
|
-
}) | undefined, true>;
|
|
1282
|
-
autoOrient: PxSchema<boolean | undefined, true>;
|
|
1283
|
-
alongPathMode: PxSchema<"sampled" | "offsetPath" | undefined, true>;
|
|
1329
|
+
}) | undefined, true, false>;
|
|
1330
|
+
autoOrient: PxSchema<boolean | undefined, true, false>;
|
|
1331
|
+
alongPathMode: PxSchema<"sampled" | "offsetPath" | undefined, true, true>;
|
|
1332
|
+
};
|
|
1333
|
+
readonly defaults: {
|
|
1334
|
+
readonly alongPathMode: "sampled" | "offsetPath";
|
|
1284
1335
|
};
|
|
1285
1336
|
};
|
|
1286
1337
|
/** Animation definition for a single CSS/SVG property. @public */
|
|
@@ -1292,14 +1343,15 @@ declare const PxTransformPartsSchema: PxSchema<{} & {
|
|
|
1292
1343
|
skew?: number | undefined;
|
|
1293
1344
|
scale?: [number, number] | undefined;
|
|
1294
1345
|
origin?: [number, number] | undefined;
|
|
1295
|
-
}, false> & {
|
|
1346
|
+
}, false, boolean> & {
|
|
1296
1347
|
readonly _shape: {
|
|
1297
|
-
translate: PxSchema<[number, number] | undefined, true>;
|
|
1298
|
-
rotate: PxSchema<number | undefined, true>;
|
|
1299
|
-
skew: PxSchema<number | undefined, true>;
|
|
1300
|
-
scale: PxSchema<[number, number] | undefined, true>;
|
|
1301
|
-
origin: PxSchema<[number, number] | undefined, true>;
|
|
1348
|
+
translate: PxSchema<[number, number] | undefined, true, boolean>;
|
|
1349
|
+
rotate: PxSchema<number | undefined, true, false>;
|
|
1350
|
+
skew: PxSchema<number | undefined, true, false>;
|
|
1351
|
+
scale: PxSchema<[number, number] | undefined, true, boolean>;
|
|
1352
|
+
origin: PxSchema<[number, number] | undefined, true, boolean>;
|
|
1302
1353
|
};
|
|
1354
|
+
readonly defaults: {};
|
|
1303
1355
|
};
|
|
1304
1356
|
/** Record of transform parts forming a single transform `value`. @public */
|
|
1305
1357
|
type PxTransformParts = PxInfer<typeof PxTransformPartsSchema>;
|
|
@@ -1371,7 +1423,7 @@ declare const PxTransformValueSchema: PxSchema<string | ({} & {
|
|
|
1371
1423
|
scale?: [number, number] | undefined;
|
|
1372
1424
|
origin?: [number, number] | undefined;
|
|
1373
1425
|
};
|
|
1374
|
-
} & {}), false>;
|
|
1426
|
+
} & {}), false, false>;
|
|
1375
1427
|
/** Unified `transform` slot value: string | structured static | animated. @public */
|
|
1376
1428
|
type PxTransformValue = PxInfer<typeof PxTransformValueSchema>;
|
|
1377
1429
|
/** @public @advanced */
|
|
@@ -1407,7 +1459,7 @@ declare const PxAnimationDefinitionSchema: PxSchema<Record<string, {} & {
|
|
|
1407
1459
|
}) | undefined;
|
|
1408
1460
|
autoOrient?: boolean | undefined;
|
|
1409
1461
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
1410
|
-
}>, false>;
|
|
1462
|
+
}>, false, boolean>;
|
|
1411
1463
|
/**
|
|
1412
1464
|
* Complete animation definition containing one or more property animations.
|
|
1413
1465
|
* Each key is a CSS/SVG property name (e.g., "opacity", "scale", "rotate").
|
|
@@ -1479,7 +1531,7 @@ declare const PxElementAnimationSchema: PxSchema<string | Record<string, {} & {
|
|
|
1479
1531
|
}) | undefined;
|
|
1480
1532
|
autoOrient?: boolean | undefined;
|
|
1481
1533
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
1482
|
-
}>)[], false>;
|
|
1534
|
+
}>)[], false, false>;
|
|
1483
1535
|
/**
|
|
1484
1536
|
* Element animation specification.
|
|
1485
1537
|
* Can be a string reference, array of references, inline definition, or a mixed array.
|
|
@@ -1494,14 +1546,22 @@ declare const PxTriggerSchema: PxSchema<{} & {
|
|
|
1494
1546
|
finish?: "reset" | "hold" | undefined;
|
|
1495
1547
|
visibilityThreshold?: number | undefined;
|
|
1496
1548
|
visibilityDebounce?: number | undefined;
|
|
1497
|
-
}, false> & {
|
|
1549
|
+
}, false, boolean> & {
|
|
1498
1550
|
readonly _shape: {
|
|
1499
|
-
start: PxSchema<"none" | "mouseOver" | "load" | "click" | undefined, true>;
|
|
1500
|
-
offScreen: PxSchema<"continue" | "pause" | "reset" | undefined, true>;
|
|
1501
|
-
mouseOut: PxSchema<"reverse" | "continue" | "pause" | "reset" | undefined, true>;
|
|
1502
|
-
finish: PxSchema<"reset" | "hold" | undefined, true>;
|
|
1503
|
-
visibilityThreshold: PxSchema<number | undefined, true>;
|
|
1504
|
-
visibilityDebounce: PxSchema<number | undefined, true>;
|
|
1551
|
+
start: PxSchema<"none" | "mouseOver" | "load" | "click" | undefined, true, true>;
|
|
1552
|
+
offScreen: PxSchema<"continue" | "pause" | "reset" | undefined, true, true>;
|
|
1553
|
+
mouseOut: PxSchema<"reverse" | "continue" | "pause" | "reset" | undefined, true, true>;
|
|
1554
|
+
finish: PxSchema<"reset" | "hold" | undefined, true, true>;
|
|
1555
|
+
visibilityThreshold: PxSchema<number | undefined, true, true>;
|
|
1556
|
+
visibilityDebounce: PxSchema<number | undefined, true, true>;
|
|
1557
|
+
};
|
|
1558
|
+
readonly defaults: {
|
|
1559
|
+
readonly offScreen: "continue" | "pause" | "reset";
|
|
1560
|
+
readonly start: "none" | "mouseOver" | "load" | "click";
|
|
1561
|
+
readonly mouseOut: "reverse" | "continue" | "pause" | "reset";
|
|
1562
|
+
readonly visibilityThreshold: number;
|
|
1563
|
+
readonly finish: "reset" | "hold";
|
|
1564
|
+
readonly visibilityDebounce: number;
|
|
1505
1565
|
};
|
|
1506
1566
|
};
|
|
1507
1567
|
/** Defines when and how an animation should be triggered. @public */
|
|
@@ -1509,11 +1569,12 @@ type PxTrigger = PxInfer<typeof PxTriggerSchema>;
|
|
|
1509
1569
|
declare const PxGlyphSchema: PxSchema<{
|
|
1510
1570
|
width: number;
|
|
1511
1571
|
pathData: string;
|
|
1512
|
-
} & {}, false> & {
|
|
1572
|
+
} & {}, false, boolean> & {
|
|
1513
1573
|
readonly _shape: {
|
|
1514
|
-
width: PxSchema<number, false>;
|
|
1515
|
-
pathData: PxSchema<string, false>;
|
|
1574
|
+
width: PxSchema<number, false, false>;
|
|
1575
|
+
pathData: PxSchema<string, false, false>;
|
|
1516
1576
|
};
|
|
1577
|
+
readonly defaults: {};
|
|
1517
1578
|
};
|
|
1518
1579
|
/** @public */
|
|
1519
1580
|
type PxGlyph = PxInfer<typeof PxGlyphSchema>;
|
|
@@ -1526,17 +1587,18 @@ declare const PxGlyphFontSchema: PxSchema<{
|
|
|
1526
1587
|
width: number;
|
|
1527
1588
|
pathData: string;
|
|
1528
1589
|
} & {}>;
|
|
1529
|
-
} & {}, false> & {
|
|
1590
|
+
} & {}, false, boolean> & {
|
|
1530
1591
|
readonly _shape: {
|
|
1531
|
-
fontFamily: PxSchema<string, false>;
|
|
1532
|
-
fontStyle: PxSchema<string, false>;
|
|
1533
|
-
ascent: PxSchema<number, false>;
|
|
1534
|
-
unitsPerEm: PxSchema<number, false>;
|
|
1592
|
+
fontFamily: PxSchema<string, false, false>;
|
|
1593
|
+
fontStyle: PxSchema<string, false, false>;
|
|
1594
|
+
ascent: PxSchema<number, false, false>;
|
|
1595
|
+
unitsPerEm: PxSchema<number, false, false>;
|
|
1535
1596
|
glyphs: PxSchema<Record<string, {
|
|
1536
1597
|
width: number;
|
|
1537
1598
|
pathData: string;
|
|
1538
|
-
} & {}>, false>;
|
|
1599
|
+
} & {}>, false, boolean>;
|
|
1539
1600
|
};
|
|
1601
|
+
readonly defaults: {};
|
|
1540
1602
|
};
|
|
1541
1603
|
/** @public */
|
|
1542
1604
|
type PxGlyphFont = PxInfer<typeof PxGlyphFontSchema>;
|
|
@@ -1586,9 +1648,9 @@ declare const PxDefinitionsSchema: PxSchema<{} & {
|
|
|
1586
1648
|
pathData: string;
|
|
1587
1649
|
} & {}>;
|
|
1588
1650
|
} & {}> | undefined;
|
|
1589
|
-
}, false> & {
|
|
1651
|
+
}, false, boolean> & {
|
|
1590
1652
|
readonly _shape: {
|
|
1591
|
-
easings: PxSchema<Record<string, [number, number, number, number]> | undefined, true>;
|
|
1653
|
+
easings: PxSchema<Record<string, [number, number, number, number]> | undefined, true, boolean>;
|
|
1592
1654
|
animations: PxSchema<Record<string, Record<string, {} & {
|
|
1593
1655
|
value?: string | number | number[] | ({} & {
|
|
1594
1656
|
translate?: [number, number] | undefined;
|
|
@@ -1621,7 +1683,7 @@ declare const PxDefinitionsSchema: PxSchema<{} & {
|
|
|
1621
1683
|
}) | undefined;
|
|
1622
1684
|
autoOrient?: boolean | undefined;
|
|
1623
1685
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
1624
|
-
}>> | undefined, true>;
|
|
1686
|
+
}>> | undefined, true, boolean>;
|
|
1625
1687
|
fonts: PxSchema<Record<string, {
|
|
1626
1688
|
fontFamily: string;
|
|
1627
1689
|
fontStyle: string;
|
|
@@ -1631,8 +1693,9 @@ declare const PxDefinitionsSchema: PxSchema<{} & {
|
|
|
1631
1693
|
width: number;
|
|
1632
1694
|
pathData: string;
|
|
1633
1695
|
} & {}>;
|
|
1634
|
-
} & {}> | undefined, true>;
|
|
1696
|
+
} & {}> | undefined, true, boolean>;
|
|
1635
1697
|
};
|
|
1698
|
+
readonly defaults: {};
|
|
1636
1699
|
};
|
|
1637
1700
|
/** Reusable definitions library for easings, animations and fonts. @public */
|
|
1638
1701
|
type PxDefinitions = PxInfer<typeof PxDefinitionsSchema>;
|
|
@@ -1640,10 +1703,13 @@ type PxDefinitions = PxInfer<typeof PxDefinitionsSchema>;
|
|
|
1640
1703
|
declare const PxScrollRangePointSchema: PxSchema<{} & {
|
|
1641
1704
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
1642
1705
|
fraction?: number | undefined;
|
|
1643
|
-
}, false> & {
|
|
1706
|
+
}, false, boolean> & {
|
|
1644
1707
|
readonly _shape: {
|
|
1645
|
-
phase: PxSchema<"cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined, true>;
|
|
1646
|
-
fraction: PxSchema<number | undefined, true>;
|
|
1708
|
+
phase: PxSchema<"cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined, true, true>;
|
|
1709
|
+
fraction: PxSchema<number | undefined, true, false>;
|
|
1710
|
+
};
|
|
1711
|
+
readonly defaults: {
|
|
1712
|
+
readonly phase: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing";
|
|
1647
1713
|
};
|
|
1648
1714
|
};
|
|
1649
1715
|
/** @public */
|
|
@@ -1658,17 +1724,18 @@ declare const PxScrollRangeSchema: PxSchema<{} & {
|
|
|
1658
1724
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
1659
1725
|
fraction?: number | undefined;
|
|
1660
1726
|
}) | undefined;
|
|
1661
|
-
}, false> & {
|
|
1727
|
+
}, false, boolean> & {
|
|
1662
1728
|
readonly _shape: {
|
|
1663
1729
|
start: PxSchema<({} & {
|
|
1664
1730
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
1665
1731
|
fraction?: number | undefined;
|
|
1666
|
-
}) | undefined, true>;
|
|
1732
|
+
}) | undefined, true, boolean>;
|
|
1667
1733
|
end: PxSchema<({} & {
|
|
1668
1734
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
1669
1735
|
fraction?: number | undefined;
|
|
1670
|
-
}) | undefined, true>;
|
|
1736
|
+
}) | undefined, true, boolean>;
|
|
1671
1737
|
};
|
|
1738
|
+
readonly defaults: {};
|
|
1672
1739
|
};
|
|
1673
1740
|
/** @public @advanced */
|
|
1674
1741
|
declare const PxScrollSchema: PxSchema<{} & {
|
|
@@ -1691,17 +1758,17 @@ declare const PxScrollSchema: PxSchema<{} & {
|
|
|
1691
1758
|
fraction?: number | undefined;
|
|
1692
1759
|
}) | undefined;
|
|
1693
1760
|
}) | undefined;
|
|
1694
|
-
}, false> & {
|
|
1761
|
+
}, false, boolean> & {
|
|
1695
1762
|
readonly _shape: {
|
|
1696
|
-
kind: PxSchema<"view" | "scroll" | undefined, true>;
|
|
1697
|
-
axis: PxSchema<"block" | "inline" | "x" | "y" | undefined, true>;
|
|
1698
|
-
source: PxSchema<"nearest" | "root" | undefined, true>;
|
|
1699
|
-
subject: PxSchema<string | undefined, true>;
|
|
1700
|
-
smoothing: PxSchema<number | undefined, true>;
|
|
1701
|
-
pin: PxSchema<boolean | undefined, true>;
|
|
1702
|
-
pinAlign: PxSchema<"top" | "center" | "bottom" | undefined, true>;
|
|
1703
|
-
pinOffset: PxSchema<number | undefined, true>;
|
|
1704
|
-
pinDistance: PxSchema<number | undefined, true>;
|
|
1763
|
+
kind: PxSchema<"view" | "scroll" | undefined, true, true>;
|
|
1764
|
+
axis: PxSchema<"block" | "inline" | "x" | "y" | undefined, true, true>;
|
|
1765
|
+
source: PxSchema<"nearest" | "root" | undefined, true, true>;
|
|
1766
|
+
subject: PxSchema<string | undefined, true, false>;
|
|
1767
|
+
smoothing: PxSchema<number | undefined, true, false>;
|
|
1768
|
+
pin: PxSchema<boolean | undefined, true, true>;
|
|
1769
|
+
pinAlign: PxSchema<"top" | "center" | "bottom" | undefined, true, true>;
|
|
1770
|
+
pinOffset: PxSchema<number | undefined, true, false>;
|
|
1771
|
+
pinDistance: PxSchema<number | undefined, true, false>;
|
|
1705
1772
|
range: PxSchema<({} & {
|
|
1706
1773
|
start?: ({} & {
|
|
1707
1774
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -1711,11 +1778,67 @@ declare const PxScrollSchema: PxSchema<{} & {
|
|
|
1711
1778
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
1712
1779
|
fraction?: number | undefined;
|
|
1713
1780
|
}) | undefined;
|
|
1714
|
-
}) | undefined, true>;
|
|
1781
|
+
}) | undefined, true, boolean>;
|
|
1782
|
+
};
|
|
1783
|
+
readonly defaults: {
|
|
1784
|
+
readonly source: "nearest" | "root";
|
|
1785
|
+
readonly axis: "block" | "inline" | "x" | "y";
|
|
1786
|
+
readonly pin: boolean;
|
|
1787
|
+
readonly kind: "view" | "scroll";
|
|
1788
|
+
readonly pinAlign: "top" | "center" | "bottom";
|
|
1715
1789
|
};
|
|
1716
1790
|
};
|
|
1717
1791
|
/** @public */
|
|
1718
1792
|
type PxScroll = PxInfer<typeof PxScrollSchema>;
|
|
1793
|
+
/** The time-driven member of {@link PxTimelineSchema} — what an absent `type` selects. Exported
|
|
1794
|
+
* so a reader can ask it what an omitted field means (`PxTimeTimelineSchema.defaults.duration`).
|
|
1795
|
+
* @public @advanced */
|
|
1796
|
+
declare const PxTimeTimelineSchema: PxSchema<{} & {
|
|
1797
|
+
type?: "time" | undefined;
|
|
1798
|
+
engine?: "native" | "js" | "auto" | undefined;
|
|
1799
|
+
frameRate?: number | undefined;
|
|
1800
|
+
duration?: number | undefined;
|
|
1801
|
+
trigger?: ({} & {
|
|
1802
|
+
start?: "none" | "mouseOver" | "load" | "click" | undefined;
|
|
1803
|
+
offScreen?: "continue" | "pause" | "reset" | undefined;
|
|
1804
|
+
mouseOut?: "reverse" | "continue" | "pause" | "reset" | undefined;
|
|
1805
|
+
finish?: "reset" | "hold" | undefined;
|
|
1806
|
+
visibilityThreshold?: number | undefined;
|
|
1807
|
+
visibilityDebounce?: number | undefined;
|
|
1808
|
+
}) | undefined;
|
|
1809
|
+
delay?: number | undefined;
|
|
1810
|
+
iterations?: number | "infinite" | undefined;
|
|
1811
|
+
fillMode?: "none" | "forwards" | "backwards" | "both" | undefined;
|
|
1812
|
+
direction?: "reverse" | "normal" | "alternate" | "alternate-reverse" | undefined;
|
|
1813
|
+
}, false, boolean> & {
|
|
1814
|
+
readonly _shape: {
|
|
1815
|
+
type: PxSchema<"time" | undefined, true, true>;
|
|
1816
|
+
engine: PxSchema<"native" | "js" | "auto" | undefined, true, true>;
|
|
1817
|
+
frameRate: PxSchema<number | undefined, true, false>;
|
|
1818
|
+
duration: PxSchema<number | undefined, true, true>;
|
|
1819
|
+
trigger: PxSchema<({} & {
|
|
1820
|
+
start?: "none" | "mouseOver" | "load" | "click" | undefined;
|
|
1821
|
+
offScreen?: "continue" | "pause" | "reset" | undefined;
|
|
1822
|
+
mouseOut?: "reverse" | "continue" | "pause" | "reset" | undefined;
|
|
1823
|
+
finish?: "reset" | "hold" | undefined;
|
|
1824
|
+
visibilityThreshold?: number | undefined;
|
|
1825
|
+
visibilityDebounce?: number | undefined;
|
|
1826
|
+
}) | undefined, true, boolean>;
|
|
1827
|
+
delay: PxSchema<number | undefined, true, true>;
|
|
1828
|
+
iterations: PxSchema<number | "infinite" | undefined, true, true>;
|
|
1829
|
+
fillMode: PxSchema<"none" | "forwards" | "backwards" | "both" | undefined, true, true>;
|
|
1830
|
+
direction: PxSchema<"reverse" | "normal" | "alternate" | "alternate-reverse" | undefined, true, true>;
|
|
1831
|
+
};
|
|
1832
|
+
readonly defaults: {
|
|
1833
|
+
readonly duration: number;
|
|
1834
|
+
readonly iterations: number | "infinite";
|
|
1835
|
+
readonly engine: "native" | "js" | "auto";
|
|
1836
|
+
readonly delay: number;
|
|
1837
|
+
readonly fillMode: "none" | "forwards" | "backwards" | "both";
|
|
1838
|
+
readonly direction: "reverse" | "normal" | "alternate" | "alternate-reverse";
|
|
1839
|
+
readonly type: "time";
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1719
1842
|
/** @public @advanced */
|
|
1720
1843
|
declare const PxTimelineSchema: PxSchema<({} & {
|
|
1721
1844
|
type?: "time" | undefined;
|
|
@@ -1786,7 +1909,7 @@ declare const PxTimelineSchema: PxSchema<({} & {
|
|
|
1786
1909
|
fraction?: number | undefined;
|
|
1787
1910
|
}) | undefined;
|
|
1788
1911
|
}) | undefined;
|
|
1789
|
-
}), false>;
|
|
1912
|
+
}), false, boolean>;
|
|
1790
1913
|
/** @public */
|
|
1791
1914
|
type PxTimeline = PxInfer<typeof PxTimelineSchema>;
|
|
1792
1915
|
/**
|
|
@@ -1886,11 +2009,12 @@ interface _PxAnimatorConfig {
|
|
|
1886
2009
|
declare const PxBindingSchema: PxSchema<{
|
|
1887
2010
|
target: string;
|
|
1888
2011
|
animateWith: string[];
|
|
1889
|
-
} & {}, false> & {
|
|
2012
|
+
} & {}, false, boolean> & {
|
|
1890
2013
|
readonly _shape: {
|
|
1891
|
-
target: PxSchema<string, false>;
|
|
1892
|
-
animateWith: PxSchema<string[], false>;
|
|
2014
|
+
target: PxSchema<string, false, false>;
|
|
2015
|
+
animateWith: PxSchema<string[], false, boolean>;
|
|
1893
2016
|
};
|
|
2017
|
+
readonly defaults: {};
|
|
1894
2018
|
};
|
|
1895
2019
|
/** @public */
|
|
1896
2020
|
type PxBinding = PxInfer<typeof PxBindingSchema>;
|
|
@@ -2028,7 +2152,7 @@ declare const PxAnimatorConfigSchema: PxSchema<{} & {
|
|
|
2028
2152
|
} & {})[] | undefined;
|
|
2029
2153
|
debugGlobalName?: string | undefined;
|
|
2030
2154
|
version?: string | undefined;
|
|
2031
|
-
}, false> & {
|
|
2155
|
+
}, false, boolean> & {
|
|
2032
2156
|
readonly _shape: {
|
|
2033
2157
|
timeline: PxSchema<({} & {
|
|
2034
2158
|
type?: "time" | undefined;
|
|
@@ -2099,7 +2223,7 @@ declare const PxAnimatorConfigSchema: PxSchema<{} & {
|
|
|
2099
2223
|
fraction?: number | undefined;
|
|
2100
2224
|
}) | undefined;
|
|
2101
2225
|
}) | undefined;
|
|
2102
|
-
}) | undefined, true>;
|
|
2226
|
+
}) | undefined, true, boolean>;
|
|
2103
2227
|
definitions: PxSchema<({} & {
|
|
2104
2228
|
easings?: Record<string, [number, number, number, number]> | undefined;
|
|
2105
2229
|
animations?: Record<string, Record<string, {} & {
|
|
@@ -2145,14 +2269,15 @@ declare const PxAnimatorConfigSchema: PxSchema<{} & {
|
|
|
2145
2269
|
pathData: string;
|
|
2146
2270
|
} & {}>;
|
|
2147
2271
|
} & {}> | undefined;
|
|
2148
|
-
}) | undefined, true>;
|
|
2272
|
+
}) | undefined, true, boolean>;
|
|
2149
2273
|
bindings: PxSchema<({
|
|
2150
2274
|
target: string;
|
|
2151
2275
|
animateWith: string[];
|
|
2152
|
-
} & {})[] | undefined, true>;
|
|
2153
|
-
debugGlobalName: PxSchema<string | undefined, true>;
|
|
2154
|
-
version: PxSchema<string | undefined, true>;
|
|
2276
|
+
} & {})[] | undefined, true, boolean>;
|
|
2277
|
+
debugGlobalName: PxSchema<string | undefined, true, false>;
|
|
2278
|
+
version: PxSchema<string | undefined, true, false>;
|
|
2155
2279
|
};
|
|
2280
|
+
readonly defaults: {};
|
|
2156
2281
|
};
|
|
2157
2282
|
/**
|
|
2158
2283
|
* Global animation configuration that applies to all animations in the document.
|
|
@@ -2201,7 +2326,7 @@ declare const PxAttrValueSchema: PxSchema<string | number | number[] | ({} & {
|
|
|
2201
2326
|
origin?: [number, number] | undefined;
|
|
2202
2327
|
}) | ({
|
|
2203
2328
|
value: any;
|
|
2204
|
-
} & {}), false>;
|
|
2329
|
+
} & {}), false, false>;
|
|
2205
2330
|
/** Fixed-length 2-number tuple. `[x, y]` for positions, `[sx, sy]` for scale, …. @public */
|
|
2206
2331
|
type PxVec2 = [number, number];
|
|
2207
2332
|
/**
|
|
@@ -2403,7 +2528,7 @@ declare const PxTransformByEffectSchema: PxSchema<{} & {
|
|
|
2403
2528
|
}) | ({
|
|
2404
2529
|
value: [number, number];
|
|
2405
2530
|
} & {}) | undefined;
|
|
2406
|
-
}, false> & {
|
|
2531
|
+
}, false, boolean> & {
|
|
2407
2532
|
readonly _shape: {
|
|
2408
2533
|
translate: PxSchema<[number, number] | ({} & {
|
|
2409
2534
|
value?: string | number | number[] | ({} & {
|
|
@@ -2439,7 +2564,7 @@ declare const PxTransformByEffectSchema: PxSchema<{} & {
|
|
|
2439
2564
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2440
2565
|
}) | ({
|
|
2441
2566
|
value: [number, number];
|
|
2442
|
-
} & {}) | undefined, true>;
|
|
2567
|
+
} & {}) | undefined, true, false>;
|
|
2443
2568
|
rotate: PxSchema<number | ({} & {
|
|
2444
2569
|
value?: string | number | number[] | ({} & {
|
|
2445
2570
|
translate?: [number, number] | undefined;
|
|
@@ -2474,7 +2599,7 @@ declare const PxTransformByEffectSchema: PxSchema<{} & {
|
|
|
2474
2599
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2475
2600
|
}) | ({
|
|
2476
2601
|
value: number;
|
|
2477
|
-
} & {}) | undefined, true>;
|
|
2602
|
+
} & {}) | undefined, true, false>;
|
|
2478
2603
|
scale: PxSchema<[number, number] | ({} & {
|
|
2479
2604
|
value?: string | number | number[] | ({} & {
|
|
2480
2605
|
translate?: [number, number] | undefined;
|
|
@@ -2509,7 +2634,7 @@ declare const PxTransformByEffectSchema: PxSchema<{} & {
|
|
|
2509
2634
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2510
2635
|
}) | ({
|
|
2511
2636
|
value: [number, number];
|
|
2512
|
-
} & {}) | undefined, true>;
|
|
2637
|
+
} & {}) | undefined, true, false>;
|
|
2513
2638
|
skew: PxSchema<number | ({} & {
|
|
2514
2639
|
value?: string | number | number[] | ({} & {
|
|
2515
2640
|
translate?: [number, number] | undefined;
|
|
@@ -2544,7 +2669,7 @@ declare const PxTransformByEffectSchema: PxSchema<{} & {
|
|
|
2544
2669
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2545
2670
|
}) | ({
|
|
2546
2671
|
value: number;
|
|
2547
|
-
} & {}) | undefined, true>;
|
|
2672
|
+
} & {}) | undefined, true, false>;
|
|
2548
2673
|
origin: PxSchema<[number, number] | ({} & {
|
|
2549
2674
|
value?: string | number | number[] | ({} & {
|
|
2550
2675
|
translate?: [number, number] | undefined;
|
|
@@ -2579,8 +2704,9 @@ declare const PxTransformByEffectSchema: PxSchema<{} & {
|
|
|
2579
2704
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2580
2705
|
}) | ({
|
|
2581
2706
|
value: [number, number];
|
|
2582
|
-
} & {}) | undefined, true>;
|
|
2707
|
+
} & {}) | undefined, true, false>;
|
|
2583
2708
|
};
|
|
2709
|
+
readonly defaults: {};
|
|
2584
2710
|
};
|
|
2585
2711
|
/** @public @advanced */
|
|
2586
2712
|
declare const PxRepeaterEffectSchema: PxSchema<{} & {
|
|
@@ -2760,9 +2886,9 @@ declare const PxRepeaterEffectSchema: PxSchema<{} & {
|
|
|
2760
2886
|
}) | ({
|
|
2761
2887
|
value: [number, number];
|
|
2762
2888
|
} & {}) | undefined;
|
|
2763
|
-
}, false> & {
|
|
2889
|
+
}, false, boolean> & {
|
|
2764
2890
|
readonly _shape: {
|
|
2765
|
-
copies: PxSchema<number | undefined, true>;
|
|
2891
|
+
copies: PxSchema<number | undefined, true, false>;
|
|
2766
2892
|
translate: PxSchema<[number, number] | ({} & {
|
|
2767
2893
|
value?: string | number | number[] | ({} & {
|
|
2768
2894
|
translate?: [number, number] | undefined;
|
|
@@ -2797,7 +2923,7 @@ declare const PxRepeaterEffectSchema: PxSchema<{} & {
|
|
|
2797
2923
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2798
2924
|
}) | ({
|
|
2799
2925
|
value: [number, number];
|
|
2800
|
-
} & {}) | undefined, true>;
|
|
2926
|
+
} & {}) | undefined, true, false>;
|
|
2801
2927
|
rotate: PxSchema<number | ({} & {
|
|
2802
2928
|
value?: string | number | number[] | ({} & {
|
|
2803
2929
|
translate?: [number, number] | undefined;
|
|
@@ -2832,7 +2958,7 @@ declare const PxRepeaterEffectSchema: PxSchema<{} & {
|
|
|
2832
2958
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2833
2959
|
}) | ({
|
|
2834
2960
|
value: number;
|
|
2835
|
-
} & {}) | undefined, true>;
|
|
2961
|
+
} & {}) | undefined, true, false>;
|
|
2836
2962
|
skew: PxSchema<number | ({} & {
|
|
2837
2963
|
value?: string | number | number[] | ({} & {
|
|
2838
2964
|
translate?: [number, number] | undefined;
|
|
@@ -2867,7 +2993,7 @@ declare const PxRepeaterEffectSchema: PxSchema<{} & {
|
|
|
2867
2993
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2868
2994
|
}) | ({
|
|
2869
2995
|
value: number;
|
|
2870
|
-
} & {}) | undefined, true>;
|
|
2996
|
+
} & {}) | undefined, true, false>;
|
|
2871
2997
|
scale: PxSchema<[number, number] | ({} & {
|
|
2872
2998
|
value?: string | number | number[] | ({} & {
|
|
2873
2999
|
translate?: [number, number] | undefined;
|
|
@@ -2902,7 +3028,7 @@ declare const PxRepeaterEffectSchema: PxSchema<{} & {
|
|
|
2902
3028
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2903
3029
|
}) | ({
|
|
2904
3030
|
value: [number, number];
|
|
2905
|
-
} & {}) | undefined, true>;
|
|
3031
|
+
} & {}) | undefined, true, false>;
|
|
2906
3032
|
origin: PxSchema<[number, number] | ({} & {
|
|
2907
3033
|
value?: string | number | number[] | ({} & {
|
|
2908
3034
|
translate?: [number, number] | undefined;
|
|
@@ -2937,8 +3063,9 @@ declare const PxRepeaterEffectSchema: PxSchema<{} & {
|
|
|
2937
3063
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
2938
3064
|
}) | ({
|
|
2939
3065
|
value: [number, number];
|
|
2940
|
-
} & {}) | undefined, true>;
|
|
3066
|
+
} & {}) | undefined, true, false>;
|
|
2941
3067
|
};
|
|
3068
|
+
readonly defaults: {};
|
|
2942
3069
|
};
|
|
2943
3070
|
/** @public @advanced */
|
|
2944
3071
|
declare const PxMaskedByEffectSchema: PxSchema<{} & {
|
|
@@ -2950,16 +3077,21 @@ declare const PxMaskedByEffectSchema: PxSchema<{} & {
|
|
|
2950
3077
|
y?: number | undefined;
|
|
2951
3078
|
width?: number | undefined;
|
|
2952
3079
|
height?: number | undefined;
|
|
2953
|
-
}, false> & {
|
|
3080
|
+
}, false, boolean> & {
|
|
2954
3081
|
readonly _shape: {
|
|
2955
|
-
source: PxSchema<string | undefined, true>;
|
|
2956
|
-
maskType: PxSchema<"luminance" | "alpha" | undefined, true>;
|
|
2957
|
-
maskUnits: PxSchema<"userSpaceOnUse" | "objectBoundingBox" | undefined, true>;
|
|
2958
|
-
maskContentUnits: PxSchema<"userSpaceOnUse" | "objectBoundingBox" | undefined, true>;
|
|
2959
|
-
x: PxSchema<number | undefined, true>;
|
|
2960
|
-
y: PxSchema<number | undefined, true>;
|
|
2961
|
-
width: PxSchema<number | undefined, true>;
|
|
2962
|
-
height: PxSchema<number | undefined, true>;
|
|
3082
|
+
source: PxSchema<string | undefined, true, false>;
|
|
3083
|
+
maskType: PxSchema<"luminance" | "alpha" | undefined, true, true>;
|
|
3084
|
+
maskUnits: PxSchema<"userSpaceOnUse" | "objectBoundingBox" | undefined, true, true>;
|
|
3085
|
+
maskContentUnits: PxSchema<"userSpaceOnUse" | "objectBoundingBox" | undefined, true, true>;
|
|
3086
|
+
x: PxSchema<number | undefined, true, false>;
|
|
3087
|
+
y: PxSchema<number | undefined, true, false>;
|
|
3088
|
+
width: PxSchema<number | undefined, true, false>;
|
|
3089
|
+
height: PxSchema<number | undefined, true, false>;
|
|
3090
|
+
};
|
|
3091
|
+
readonly defaults: {
|
|
3092
|
+
readonly maskType: "luminance" | "alpha";
|
|
3093
|
+
readonly maskUnits: "userSpaceOnUse" | "objectBoundingBox";
|
|
3094
|
+
readonly maskContentUnits: "userSpaceOnUse" | "objectBoundingBox";
|
|
2963
3095
|
};
|
|
2964
3096
|
};
|
|
2965
3097
|
/** @public @advanced */
|
|
@@ -2999,7 +3131,7 @@ declare const PxClipPathEffectSchema: PxSchema<{} & {
|
|
|
2999
3131
|
}) | ({
|
|
3000
3132
|
value: string;
|
|
3001
3133
|
} & {}) | undefined;
|
|
3002
|
-
}, false> & {
|
|
3134
|
+
}, false, boolean> & {
|
|
3003
3135
|
readonly _shape: {
|
|
3004
3136
|
pathData: PxSchema<string | ({} & {
|
|
3005
3137
|
value?: string | number | number[] | ({} & {
|
|
@@ -3035,8 +3167,9 @@ declare const PxClipPathEffectSchema: PxSchema<{} & {
|
|
|
3035
3167
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3036
3168
|
}) | ({
|
|
3037
3169
|
value: string;
|
|
3038
|
-
} & {}) | undefined, true>;
|
|
3170
|
+
} & {}) | undefined, true, false>;
|
|
3039
3171
|
};
|
|
3172
|
+
readonly defaults: {};
|
|
3040
3173
|
};
|
|
3041
3174
|
/** @public @advanced */
|
|
3042
3175
|
declare const PxStrokeTrimEffectSchema: PxSchema<{} & {
|
|
@@ -3111,7 +3244,7 @@ declare const PxStrokeTrimEffectSchema: PxSchema<{} & {
|
|
|
3111
3244
|
value: [number, number];
|
|
3112
3245
|
} & {}) | undefined;
|
|
3113
3246
|
subPaths?: "separate" | "combined" | undefined;
|
|
3114
|
-
}, false> & {
|
|
3247
|
+
}, false, boolean> & {
|
|
3115
3248
|
readonly _shape: {
|
|
3116
3249
|
offset: PxSchema<number | ({} & {
|
|
3117
3250
|
value?: string | number | number[] | ({} & {
|
|
@@ -3147,7 +3280,7 @@ declare const PxStrokeTrimEffectSchema: PxSchema<{} & {
|
|
|
3147
3280
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3148
3281
|
}) | ({
|
|
3149
3282
|
value: number;
|
|
3150
|
-
} & {}) | undefined, true>;
|
|
3283
|
+
} & {}) | undefined, true, false>;
|
|
3151
3284
|
range: PxSchema<[number, number] | ({} & {
|
|
3152
3285
|
value?: string | number | number[] | ({} & {
|
|
3153
3286
|
translate?: [number, number] | undefined;
|
|
@@ -3182,8 +3315,11 @@ declare const PxStrokeTrimEffectSchema: PxSchema<{} & {
|
|
|
3182
3315
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3183
3316
|
}) | ({
|
|
3184
3317
|
value: [number, number];
|
|
3185
|
-
} & {}) | undefined, true>;
|
|
3186
|
-
subPaths: PxSchema<"separate" | "combined" | undefined, true>;
|
|
3318
|
+
} & {}) | undefined, true, false>;
|
|
3319
|
+
subPaths: PxSchema<"separate" | "combined" | undefined, true, true>;
|
|
3320
|
+
};
|
|
3321
|
+
readonly defaults: {
|
|
3322
|
+
readonly subPaths: "separate" | "combined";
|
|
3187
3323
|
};
|
|
3188
3324
|
};
|
|
3189
3325
|
/** @public @advanced */
|
|
@@ -3191,12 +3327,13 @@ declare const PxRetimeEffectSchema: PxSchema<{} & {
|
|
|
3191
3327
|
start?: number | undefined;
|
|
3192
3328
|
stretch?: number | undefined;
|
|
3193
3329
|
timeCrop?: [number, number] | undefined;
|
|
3194
|
-
}, false> & {
|
|
3330
|
+
}, false, boolean> & {
|
|
3195
3331
|
readonly _shape: {
|
|
3196
|
-
start: PxSchema<number | undefined, true>;
|
|
3197
|
-
stretch: PxSchema<number | undefined, true>;
|
|
3198
|
-
timeCrop: PxSchema<[number, number] | undefined, true>;
|
|
3332
|
+
start: PxSchema<number | undefined, true, false>;
|
|
3333
|
+
stretch: PxSchema<number | undefined, true, false>;
|
|
3334
|
+
timeCrop: PxSchema<[number, number] | undefined, true, boolean>;
|
|
3199
3335
|
};
|
|
3336
|
+
readonly defaults: {};
|
|
3200
3337
|
};
|
|
3201
3338
|
/** @public @advanced */
|
|
3202
3339
|
declare const PxCloneEffectSchema: PxSchema<{} & {
|
|
@@ -3207,16 +3344,17 @@ declare const PxCloneEffectSchema: PxSchema<{} & {
|
|
|
3207
3344
|
stretch?: number | undefined;
|
|
3208
3345
|
timeCrop?: [number, number] | undefined;
|
|
3209
3346
|
}) | undefined;
|
|
3210
|
-
}, false> & {
|
|
3347
|
+
}, false, boolean> & {
|
|
3211
3348
|
readonly _shape: {
|
|
3212
|
-
without: PxSchema<"translate" | undefined, true>;
|
|
3213
|
-
source: PxSchema<string | undefined, true>;
|
|
3349
|
+
without: PxSchema<"translate" | undefined, true, false>;
|
|
3350
|
+
source: PxSchema<string | undefined, true, false>;
|
|
3214
3351
|
retime: PxSchema<({} & {
|
|
3215
3352
|
start?: number | undefined;
|
|
3216
3353
|
stretch?: number | undefined;
|
|
3217
3354
|
timeCrop?: [number, number] | undefined;
|
|
3218
|
-
}) | undefined, true>;
|
|
3355
|
+
}) | undefined, true, boolean>;
|
|
3219
3356
|
};
|
|
3357
|
+
readonly defaults: {};
|
|
3220
3358
|
};
|
|
3221
3359
|
/** A single color stop. `offset` is in `[0, 1]`; `color` is a CSS color
|
|
3222
3360
|
* string (`#rrggbb`, `rgb(…)`, `rgba(…)`, or named). */
|
|
@@ -3228,11 +3366,12 @@ interface _PxGradientStop {
|
|
|
3228
3366
|
declare const PxGradientStopSchema: PxSchema<{
|
|
3229
3367
|
offset: number;
|
|
3230
3368
|
color: string;
|
|
3231
|
-
} & {}, false> & {
|
|
3369
|
+
} & {}, false, boolean> & {
|
|
3232
3370
|
readonly _shape: {
|
|
3233
|
-
offset: PxSchema<number, false>;
|
|
3234
|
-
color: PxSchema<string, false>;
|
|
3371
|
+
offset: PxSchema<number, false, false>;
|
|
3372
|
+
color: PxSchema<string, false, false>;
|
|
3235
3373
|
};
|
|
3374
|
+
readonly defaults: {};
|
|
3236
3375
|
};
|
|
3237
3376
|
/** @public @advanced */
|
|
3238
3377
|
declare const PxFillGradientEffectSchema: PxSchema<{
|
|
@@ -3457,9 +3596,9 @@ declare const PxFillGradientEffectSchema: PxSchema<{
|
|
|
3457
3596
|
gradientUnits?: "userSpaceOnUse" | "objectBoundingBox" | undefined;
|
|
3458
3597
|
spreadMethod?: "repeat" | "pad" | "reflect" | undefined;
|
|
3459
3598
|
gradientTransform?: string | undefined;
|
|
3460
|
-
}, false> & {
|
|
3599
|
+
}, false, boolean> & {
|
|
3461
3600
|
readonly _shape: {
|
|
3462
|
-
type: PxSchema<"linear" | "radial", false>;
|
|
3601
|
+
type: PxSchema<"linear" | "radial", false, false>;
|
|
3463
3602
|
start: PxSchema<[number, number] | ({} & {
|
|
3464
3603
|
value?: string | number | number[] | ({} & {
|
|
3465
3604
|
translate?: [number, number] | undefined;
|
|
@@ -3494,7 +3633,7 @@ declare const PxFillGradientEffectSchema: PxSchema<{
|
|
|
3494
3633
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3495
3634
|
}) | ({
|
|
3496
3635
|
value: [number, number];
|
|
3497
|
-
} & {}) | undefined, true>;
|
|
3636
|
+
} & {}) | undefined, true, false>;
|
|
3498
3637
|
end: PxSchema<[number, number] | ({} & {
|
|
3499
3638
|
value?: string | number | number[] | ({} & {
|
|
3500
3639
|
translate?: [number, number] | undefined;
|
|
@@ -3529,7 +3668,7 @@ declare const PxFillGradientEffectSchema: PxSchema<{
|
|
|
3529
3668
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3530
3669
|
}) | ({
|
|
3531
3670
|
value: [number, number];
|
|
3532
|
-
} & {}) | undefined, true>;
|
|
3671
|
+
} & {}) | undefined, true, false>;
|
|
3533
3672
|
center: PxSchema<[number, number] | ({} & {
|
|
3534
3673
|
value?: string | number | number[] | ({} & {
|
|
3535
3674
|
translate?: [number, number] | undefined;
|
|
@@ -3564,7 +3703,7 @@ declare const PxFillGradientEffectSchema: PxSchema<{
|
|
|
3564
3703
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3565
3704
|
}) | ({
|
|
3566
3705
|
value: [number, number];
|
|
3567
|
-
} & {}) | undefined, true>;
|
|
3706
|
+
} & {}) | undefined, true, false>;
|
|
3568
3707
|
radius: PxSchema<number | ({} & {
|
|
3569
3708
|
value?: string | number | number[] | ({} & {
|
|
3570
3709
|
translate?: [number, number] | undefined;
|
|
@@ -3599,7 +3738,7 @@ declare const PxFillGradientEffectSchema: PxSchema<{
|
|
|
3599
3738
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3600
3739
|
}) | ({
|
|
3601
3740
|
value: number;
|
|
3602
|
-
} & {}) | undefined, true>;
|
|
3741
|
+
} & {}) | undefined, true, false>;
|
|
3603
3742
|
focal: PxSchema<[number, number] | ({} & {
|
|
3604
3743
|
value?: string | number | number[] | ({} & {
|
|
3605
3744
|
translate?: [number, number] | undefined;
|
|
@@ -3634,7 +3773,7 @@ declare const PxFillGradientEffectSchema: PxSchema<{
|
|
|
3634
3773
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3635
3774
|
}) | ({
|
|
3636
3775
|
value: [number, number];
|
|
3637
|
-
} & {}) | undefined, true>;
|
|
3776
|
+
} & {}) | undefined, true, false>;
|
|
3638
3777
|
stops: PxSchema<({
|
|
3639
3778
|
offset: number;
|
|
3640
3779
|
color: string;
|
|
@@ -3675,10 +3814,14 @@ declare const PxFillGradientEffectSchema: PxSchema<{
|
|
|
3675
3814
|
offset: number;
|
|
3676
3815
|
color: string;
|
|
3677
3816
|
} & {})[];
|
|
3678
|
-
} & {}) | undefined, true>;
|
|
3679
|
-
gradientUnits: PxSchema<"userSpaceOnUse" | "objectBoundingBox" | undefined, true>;
|
|
3680
|
-
spreadMethod: PxSchema<"repeat" | "pad" | "reflect" | undefined, true>;
|
|
3681
|
-
gradientTransform: PxSchema<string | undefined, true>;
|
|
3817
|
+
} & {}) | undefined, true, false>;
|
|
3818
|
+
gradientUnits: PxSchema<"userSpaceOnUse" | "objectBoundingBox" | undefined, true, true>;
|
|
3819
|
+
spreadMethod: PxSchema<"repeat" | "pad" | "reflect" | undefined, true, true>;
|
|
3820
|
+
gradientTransform: PxSchema<string | undefined, true, false>;
|
|
3821
|
+
};
|
|
3822
|
+
readonly defaults: {
|
|
3823
|
+
readonly gradientUnits: "userSpaceOnUse" | "objectBoundingBox";
|
|
3824
|
+
readonly spreadMethod: "repeat" | "pad" | "reflect";
|
|
3682
3825
|
};
|
|
3683
3826
|
};
|
|
3684
3827
|
/** @public @advanced */
|
|
@@ -3759,13 +3902,13 @@ declare const PxTextPathEffectSchema: PxSchema<{
|
|
|
3759
3902
|
}) | ({
|
|
3760
3903
|
value: number;
|
|
3761
3904
|
} & {}) | undefined;
|
|
3762
|
-
}, false> & {
|
|
3905
|
+
}, false, boolean> & {
|
|
3763
3906
|
readonly _shape: {
|
|
3764
|
-
pathData: PxSchema<string, false>;
|
|
3765
|
-
pathOverflow: PxSchema<"clip" | "extend" | undefined, true>;
|
|
3766
|
-
lengthAdjust: PxSchema<"spacing" | "spacingAndGlyphs" | undefined, true>;
|
|
3767
|
-
method: PxSchema<"align" | "stretch" | undefined, true>;
|
|
3768
|
-
spacing: PxSchema<"auto" | "exact" | undefined, true>;
|
|
3907
|
+
pathData: PxSchema<string, false, false>;
|
|
3908
|
+
pathOverflow: PxSchema<"clip" | "extend" | undefined, true, true>;
|
|
3909
|
+
lengthAdjust: PxSchema<"spacing" | "spacingAndGlyphs" | undefined, true, true>;
|
|
3910
|
+
method: PxSchema<"align" | "stretch" | undefined, true, true>;
|
|
3911
|
+
spacing: PxSchema<"auto" | "exact" | undefined, true, true>;
|
|
3769
3912
|
startOffset: PxSchema<number | ({} & {
|
|
3770
3913
|
value?: string | number | number[] | ({} & {
|
|
3771
3914
|
translate?: [number, number] | undefined;
|
|
@@ -3800,7 +3943,7 @@ declare const PxTextPathEffectSchema: PxSchema<{
|
|
|
3800
3943
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3801
3944
|
}) | ({
|
|
3802
3945
|
value: number;
|
|
3803
|
-
} & {}) | undefined, true>;
|
|
3946
|
+
} & {}) | undefined, true, false>;
|
|
3804
3947
|
textLength: PxSchema<number | ({} & {
|
|
3805
3948
|
value?: string | number | number[] | ({} & {
|
|
3806
3949
|
translate?: [number, number] | undefined;
|
|
@@ -3835,16 +3978,23 @@ declare const PxTextPathEffectSchema: PxSchema<{
|
|
|
3835
3978
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
3836
3979
|
}) | ({
|
|
3837
3980
|
value: number;
|
|
3838
|
-
} & {}) | undefined, true>;
|
|
3981
|
+
} & {}) | undefined, true, false>;
|
|
3982
|
+
};
|
|
3983
|
+
readonly defaults: {
|
|
3984
|
+
readonly spacing: "auto" | "exact";
|
|
3985
|
+
readonly pathOverflow: "clip" | "extend";
|
|
3986
|
+
readonly lengthAdjust: "spacing" | "spacingAndGlyphs";
|
|
3987
|
+
readonly method: "align" | "stretch";
|
|
3839
3988
|
};
|
|
3840
3989
|
};
|
|
3841
3990
|
/** @public @advanced */
|
|
3842
3991
|
declare const PxTextEffectSchema: PxSchema<{} & {
|
|
3843
3992
|
useGlyphs?: boolean | undefined;
|
|
3844
|
-
}, false> & {
|
|
3993
|
+
}, false, boolean> & {
|
|
3845
3994
|
readonly _shape: {
|
|
3846
|
-
useGlyphs: PxSchema<boolean | undefined, true>;
|
|
3995
|
+
useGlyphs: PxSchema<boolean | undefined, true, false>;
|
|
3847
3996
|
};
|
|
3997
|
+
readonly defaults: {};
|
|
3848
3998
|
};
|
|
3849
3999
|
/** @public @advanced */
|
|
3850
4000
|
declare const PxEffectsSchema: PxSchema<{} & {
|
|
@@ -4859,7 +5009,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
4859
5009
|
text?: ({} & {
|
|
4860
5010
|
useGlyphs?: boolean | undefined;
|
|
4861
5011
|
}) | undefined;
|
|
4862
|
-
}, false> & {
|
|
5012
|
+
}, false, boolean> & {
|
|
4863
5013
|
readonly _shape: {
|
|
4864
5014
|
transformBy: PxSchema<({} & {
|
|
4865
5015
|
translate?: [number, number] | ({} & {
|
|
@@ -5037,7 +5187,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5037
5187
|
}) | ({
|
|
5038
5188
|
value: [number, number];
|
|
5039
5189
|
} & {}) | undefined;
|
|
5040
|
-
}) | undefined, true>;
|
|
5190
|
+
}) | undefined, true, boolean>;
|
|
5041
5191
|
repeater: PxSchema<({} & {
|
|
5042
5192
|
copies?: number | undefined;
|
|
5043
5193
|
translate?: [number, number] | ({} & {
|
|
@@ -5215,7 +5365,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5215
5365
|
}) | ({
|
|
5216
5366
|
value: [number, number];
|
|
5217
5367
|
} & {}) | undefined;
|
|
5218
|
-
}) | undefined, true>;
|
|
5368
|
+
}) | undefined, true, boolean>;
|
|
5219
5369
|
maskedBy: PxSchema<({} & {
|
|
5220
5370
|
source?: string | undefined;
|
|
5221
5371
|
maskType?: "luminance" | "alpha" | undefined;
|
|
@@ -5225,7 +5375,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5225
5375
|
y?: number | undefined;
|
|
5226
5376
|
width?: number | undefined;
|
|
5227
5377
|
height?: number | undefined;
|
|
5228
|
-
}) | undefined, true>;
|
|
5378
|
+
}) | undefined, true, boolean>;
|
|
5229
5379
|
clipPath: PxSchema<({} & {
|
|
5230
5380
|
pathData?: string | ({} & {
|
|
5231
5381
|
value?: string | number | number[] | ({} & {
|
|
@@ -5262,7 +5412,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5262
5412
|
}) | ({
|
|
5263
5413
|
value: string;
|
|
5264
5414
|
} & {}) | undefined;
|
|
5265
|
-
}) | undefined, true>;
|
|
5415
|
+
}) | undefined, true, boolean>;
|
|
5266
5416
|
strokeTrim: PxSchema<({} & {
|
|
5267
5417
|
offset?: number | ({} & {
|
|
5268
5418
|
value?: string | number | number[] | ({} & {
|
|
@@ -5335,7 +5485,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5335
5485
|
value: [number, number];
|
|
5336
5486
|
} & {}) | undefined;
|
|
5337
5487
|
subPaths?: "separate" | "combined" | undefined;
|
|
5338
|
-
}) | undefined, true>;
|
|
5488
|
+
}) | undefined, true, boolean>;
|
|
5339
5489
|
clone: PxSchema<({} & {
|
|
5340
5490
|
without?: "translate" | undefined;
|
|
5341
5491
|
source?: string | undefined;
|
|
@@ -5344,7 +5494,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5344
5494
|
stretch?: number | undefined;
|
|
5345
5495
|
timeCrop?: [number, number] | undefined;
|
|
5346
5496
|
}) | undefined;
|
|
5347
|
-
}) | undefined, true>;
|
|
5497
|
+
}) | undefined, true, boolean>;
|
|
5348
5498
|
fillGradient: PxSchema<({
|
|
5349
5499
|
type: "linear" | "radial";
|
|
5350
5500
|
} & {
|
|
@@ -5567,7 +5717,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5567
5717
|
gradientUnits?: "userSpaceOnUse" | "objectBoundingBox" | undefined;
|
|
5568
5718
|
spreadMethod?: "repeat" | "pad" | "reflect" | undefined;
|
|
5569
5719
|
gradientTransform?: string | undefined;
|
|
5570
|
-
}) | undefined, true>;
|
|
5720
|
+
}) | undefined, true, boolean>;
|
|
5571
5721
|
strokeGradient: PxSchema<({
|
|
5572
5722
|
type: "linear" | "radial";
|
|
5573
5723
|
} & {
|
|
@@ -5790,7 +5940,7 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5790
5940
|
gradientUnits?: "userSpaceOnUse" | "objectBoundingBox" | undefined;
|
|
5791
5941
|
spreadMethod?: "repeat" | "pad" | "reflect" | undefined;
|
|
5792
5942
|
gradientTransform?: string | undefined;
|
|
5793
|
-
}) | undefined, true>;
|
|
5943
|
+
}) | undefined, true, boolean>;
|
|
5794
5944
|
textPath: PxSchema<({
|
|
5795
5945
|
pathData: string;
|
|
5796
5946
|
} & {
|
|
@@ -5868,11 +6018,12 @@ declare const PxEffectsSchema: PxSchema<{} & {
|
|
|
5868
6018
|
}) | ({
|
|
5869
6019
|
value: number;
|
|
5870
6020
|
} & {}) | undefined;
|
|
5871
|
-
}) | undefined, true>;
|
|
6021
|
+
}) | undefined, true, boolean>;
|
|
5872
6022
|
text: PxSchema<({} & {
|
|
5873
6023
|
useGlyphs?: boolean | undefined;
|
|
5874
|
-
}) | undefined, true>;
|
|
6024
|
+
}) | undefined, true, boolean>;
|
|
5875
6025
|
};
|
|
6026
|
+
readonly defaults: {};
|
|
5876
6027
|
};
|
|
5877
6028
|
/** @public */
|
|
5878
6029
|
type PxEffects = PxInfer<typeof PxEffectsSchema>;
|
|
@@ -6995,13 +7146,13 @@ declare const PxNodeBaseSchema: PxSchema<{
|
|
|
6995
7146
|
style?: Record<string, string | number> | undefined;
|
|
6996
7147
|
} & {
|
|
6997
7148
|
[key: string]: any;
|
|
6998
|
-
}, false> & {
|
|
7149
|
+
}, false, boolean> & {
|
|
6999
7150
|
readonly _shape: {
|
|
7000
|
-
type: PxSchema<string, false>;
|
|
7001
|
-
domType: PxSchema<string | undefined, true>;
|
|
7002
|
-
textContent: PxSchema<string | undefined, true>;
|
|
7003
|
-
id: PxSchema<string | undefined, true>;
|
|
7004
|
-
meta: PxSchema<any, true>;
|
|
7151
|
+
type: PxSchema<string, false, false>;
|
|
7152
|
+
domType: PxSchema<string | undefined, true, false>;
|
|
7153
|
+
textContent: PxSchema<string | undefined, true, false>;
|
|
7154
|
+
id: PxSchema<string | undefined, true, false>;
|
|
7155
|
+
meta: PxSchema<any, true, boolean>;
|
|
7005
7156
|
effects: PxSchema<({} & {
|
|
7006
7157
|
transformBy?: ({} & {
|
|
7007
7158
|
translate?: [number, number] | ({} & {
|
|
@@ -8014,7 +8165,7 @@ declare const PxNodeBaseSchema: PxSchema<{
|
|
|
8014
8165
|
text?: ({} & {
|
|
8015
8166
|
useGlyphs?: boolean | undefined;
|
|
8016
8167
|
}) | undefined;
|
|
8017
|
-
}) | undefined, true>;
|
|
8168
|
+
}) | undefined, true, boolean>;
|
|
8018
8169
|
animate: PxSchema<string | Record<string, {} & {
|
|
8019
8170
|
value?: string | number | number[] | ({} & {
|
|
8020
8171
|
translate?: [number, number] | undefined;
|
|
@@ -8079,9 +8230,10 @@ declare const PxNodeBaseSchema: PxSchema<{
|
|
|
8079
8230
|
}) | undefined;
|
|
8080
8231
|
autoOrient?: boolean | undefined;
|
|
8081
8232
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
8082
|
-
}>)[] | undefined, true>;
|
|
8083
|
-
style: PxSchema<Record<string, string | number> | undefined, true>;
|
|
8233
|
+
}>)[] | undefined, true, false>;
|
|
8234
|
+
style: PxSchema<Record<string, string | number> | undefined, true, boolean>;
|
|
8084
8235
|
};
|
|
8236
|
+
readonly defaults: {};
|
|
8085
8237
|
};
|
|
8086
8238
|
/** @public @advanced */
|
|
8087
8239
|
declare let PxNodeSchema: PxSchema<any>;
|
|
@@ -8233,11 +8385,11 @@ declare const PxSvgNodeRootSchema: PxSchema<{} & {
|
|
|
8233
8385
|
debugGlobalName?: string | undefined;
|
|
8234
8386
|
version?: string | undefined;
|
|
8235
8387
|
}) | undefined;
|
|
8236
|
-
}, false> & {
|
|
8388
|
+
}, false, boolean> & {
|
|
8237
8389
|
readonly _shape: {
|
|
8238
|
-
width: PxSchema<string | number | undefined, true>;
|
|
8239
|
-
height: PxSchema<string | number | undefined, true>;
|
|
8240
|
-
viewBox: PxSchema<string | undefined, true>;
|
|
8390
|
+
width: PxSchema<string | number | undefined, true, false>;
|
|
8391
|
+
height: PxSchema<string | number | undefined, true, false>;
|
|
8392
|
+
viewBox: PxSchema<string | undefined, true, false>;
|
|
8241
8393
|
animator: PxSchema<({} & {
|
|
8242
8394
|
timeline?: ({} & {
|
|
8243
8395
|
type?: "time" | undefined;
|
|
@@ -8361,8 +8513,9 @@ declare const PxSvgNodeRootSchema: PxSchema<{} & {
|
|
|
8361
8513
|
} & {})[] | undefined;
|
|
8362
8514
|
debugGlobalName?: string | undefined;
|
|
8363
8515
|
version?: string | undefined;
|
|
8364
|
-
}) | undefined, true>;
|
|
8516
|
+
}) | undefined, true, boolean>;
|
|
8365
8517
|
};
|
|
8518
|
+
readonly defaults: {};
|
|
8366
8519
|
};
|
|
8367
8520
|
/**
|
|
8368
8521
|
* Root SVG element containing the entire animated graphic.
|
|
@@ -9602,13 +9755,13 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
9602
9755
|
style?: Record<string, string | number> | undefined;
|
|
9603
9756
|
} & {
|
|
9604
9757
|
[key: string]: any;
|
|
9605
|
-
}, false> & {
|
|
9758
|
+
}, false, boolean> & {
|
|
9606
9759
|
readonly _shape: {
|
|
9607
|
-
type: PxSchema<"svg", false>;
|
|
9608
|
-
children: PxSchema<any[] | undefined, true>;
|
|
9609
|
-
width: PxSchema<string | number | undefined, true>;
|
|
9610
|
-
height: PxSchema<string | number | undefined, true>;
|
|
9611
|
-
viewBox: PxSchema<string | undefined, true>;
|
|
9760
|
+
type: PxSchema<"svg", false, true>;
|
|
9761
|
+
children: PxSchema<any[] | undefined, true, boolean>;
|
|
9762
|
+
width: PxSchema<string | number | undefined, true, false>;
|
|
9763
|
+
height: PxSchema<string | number | undefined, true, false>;
|
|
9764
|
+
viewBox: PxSchema<string | undefined, true, false>;
|
|
9612
9765
|
animator: PxSchema<({} & {
|
|
9613
9766
|
timeline?: ({} & {
|
|
9614
9767
|
type?: "time" | undefined;
|
|
@@ -9732,11 +9885,11 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
9732
9885
|
} & {})[] | undefined;
|
|
9733
9886
|
debugGlobalName?: string | undefined;
|
|
9734
9887
|
version?: string | undefined;
|
|
9735
|
-
}) | undefined, true>;
|
|
9736
|
-
domType: PxSchema<string | undefined, true>;
|
|
9737
|
-
textContent: PxSchema<string | undefined, true>;
|
|
9738
|
-
id: PxSchema<string | undefined, true>;
|
|
9739
|
-
meta: PxSchema<any, true>;
|
|
9888
|
+
}) | undefined, true, boolean>;
|
|
9889
|
+
domType: PxSchema<string | undefined, true, false>;
|
|
9890
|
+
textContent: PxSchema<string | undefined, true, false>;
|
|
9891
|
+
id: PxSchema<string | undefined, true, false>;
|
|
9892
|
+
meta: PxSchema<any, true, boolean>;
|
|
9740
9893
|
effects: PxSchema<({} & {
|
|
9741
9894
|
transformBy?: ({} & {
|
|
9742
9895
|
translate?: [number, number] | ({} & {
|
|
@@ -10749,7 +10902,7 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
10749
10902
|
text?: ({} & {
|
|
10750
10903
|
useGlyphs?: boolean | undefined;
|
|
10751
10904
|
}) | undefined;
|
|
10752
|
-
}) | undefined, true>;
|
|
10905
|
+
}) | undefined, true, boolean>;
|
|
10753
10906
|
animate: PxSchema<string | Record<string, {} & {
|
|
10754
10907
|
value?: string | number | number[] | ({} & {
|
|
10755
10908
|
translate?: [number, number] | undefined;
|
|
@@ -10814,8 +10967,11 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
10814
10967
|
}) | undefined;
|
|
10815
10968
|
autoOrient?: boolean | undefined;
|
|
10816
10969
|
alongPathMode?: "sampled" | "offsetPath" | undefined;
|
|
10817
|
-
}>)[] | undefined, true>;
|
|
10818
|
-
style: PxSchema<Record<string, string | number> | undefined, true>;
|
|
10970
|
+
}>)[] | undefined, true, false>;
|
|
10971
|
+
style: PxSchema<Record<string, string | number> | undefined, true, boolean>;
|
|
10972
|
+
};
|
|
10973
|
+
readonly defaults: {
|
|
10974
|
+
readonly type: "svg";
|
|
10819
10975
|
};
|
|
10820
10976
|
};
|
|
10821
10977
|
/**
|
|
@@ -10866,13 +11022,14 @@ declare const PxBezierPathSchema: PxSchema<{
|
|
|
10866
11022
|
i?: number[][] | undefined;
|
|
10867
11023
|
o?: number[][] | undefined;
|
|
10868
11024
|
c?: boolean | undefined;
|
|
10869
|
-
}, false> & {
|
|
11025
|
+
}, false, boolean> & {
|
|
10870
11026
|
readonly _shape: {
|
|
10871
|
-
v: PxSchema<number[][], false>;
|
|
10872
|
-
i: PxSchema<number[][] | undefined, true>;
|
|
10873
|
-
o: PxSchema<number[][] | undefined, true>;
|
|
10874
|
-
c: PxSchema<boolean | undefined, true>;
|
|
11027
|
+
v: PxSchema<number[][], false, boolean>;
|
|
11028
|
+
i: PxSchema<number[][] | undefined, true, boolean>;
|
|
11029
|
+
o: PxSchema<number[][] | undefined, true, boolean>;
|
|
11030
|
+
c: PxSchema<boolean | undefined, true, false>;
|
|
10875
11031
|
};
|
|
11032
|
+
readonly defaults: {};
|
|
10876
11033
|
};
|
|
10877
11034
|
/** Represents a vector path for SVG shape animations. @public */
|
|
10878
11035
|
type PxBezierPath = PxInfer<typeof PxBezierPathSchema>;
|
|
@@ -11159,4 +11316,4 @@ declare function diagnoseDocument(doc: unknown): PxDocumentDiagnosis;
|
|
|
11159
11316
|
*/
|
|
11160
11317
|
declare function reportDocumentDiagnostics(doc: unknown, where: string): void;
|
|
11161
11318
|
|
|
11162
|
-
export { PxLoopRepeatAt as $, type PxDefinitions as A, PxDefinitionsSchema as B, type PxDiagnostic as C, PxDiagnosticCode as D, PxDiagnosticKind as E, type PxDiagnostics as F, type PxDiagnosticsConfig as G, type PxEffects as H, PxEffectsSchema as I, type PxElementAnimation as J, PxElementAnimationSchema as K, PxFillGradientEffectSchema as L, PxFillMode as M, PxFinishAction as N, type PxGlyph as O, type PxAnimatedSvgDocument as P, type PxGlyphFont as Q, PxGradientSpreadMethod as R, PxGradientStopSchema as S, PxGradientType as T, type PxInfer as U, type PxKeyframe as V, PxKeyframeSchema as W, PxKeyframeValueSchema as X, PxLengthAdjust as Y, type PxLoop as Z, PxLoopDirection as _, type PxEngineCallbacks as a,
|
|
11319
|
+
export { PxLoopRepeatAt as $, type PxDefinitions as A, PxDefinitionsSchema as B, type PxDiagnostic as C, PxDiagnosticCode as D, PxDiagnosticKind as E, type PxDiagnostics as F, type PxDiagnosticsConfig as G, type PxEffects as H, PxEffectsSchema as I, type PxElementAnimation as J, PxElementAnimationSchema as K, PxFillGradientEffectSchema as L, PxFillMode as M, PxFinishAction as N, type PxGlyph as O, type PxAnimatedSvgDocument as P, type PxGlyphFont as Q, PxGradientSpreadMethod as R, PxGradientStopSchema as S, PxGradientType as T, type PxInfer as U, type PxKeyframe as V, PxKeyframeSchema as W, PxKeyframeValueSchema as X, PxLengthAdjust as Y, type PxLoop as Z, PxLoopDirection as _, type PxEngineCallbacks as a, downgradeWireDocument as a$, PxLoopSchema as a0, PxMaskType as a1, PxMaskedByEffectSchema as a2, PxMouseOutAction as a3, PxNodeBaseSchema as a4, PxNodeSchema as a5, PxOffScreenAction as a6, PxPathOverflow as a7, PxPinAlign as a8, type PxPlaybackApi as a9, type PxTimeline as aA, PxTimelineEngine as aB, PxTimelineEngineSetting as aC, PxTimelineSchema as aD, PxTransformByEffectSchema as aE, type PxTransformParts as aF, PxTransformPartsSchema as aG, type PxTransformValue as aH, PxTransformValueSchema as aI, type PxTrigger as aJ, PxTriggerSchema as aK, PxUnits as aL, type PxValidationContext as aM, type PxVec2 as aN, type PxWireConversionOptions as aO, type PxWireConversionResult as aP, PxWireStepKind as aQ, type PxWireVersion as aR, PxWireVersionRelation as aS, type PxWireVersionStep as aT, applyWireSteps as aU, calcAnimationValues as aV, compareWireVersion as aW, controlModeTakesOverTrigger as aX, convertWireDocument as aY, describeSchema as aZ, diagnoseDocument as a_, PxPlaybackDirection as aa, type PxPropertyAnimation as ab, PxPropertyAnimationSchema as ac, type PxRemoveIndex as ad, PxRepeaterEffectSchema as ae, PxRetimeEffectSchema as af, type PxSchema as ag, type PxSchemaDesc as ah, type PxScroll as ai, PxScrollAxis as aj, PxScrollKind as ak, PxScrollPhase as al, type PxScrollRangePoint as am, PxScrollRangePointSchema as an, PxScrollRangeSchema as ao, PxScrollSchema as ap, PxScrollSource as aq, PxStrokeTrimEffectSchema as ar, PxStrokeTrimSubPaths as as, type PxSvgNode as at, PxSvgNodeRootSchema as au, PxTextEffectSchema as av, PxTextPathEffectSchema as aw, PxTextPathMethod as ax, PxTextPathSpacing as ay, PxTimeTimelineSchema as az, type PxAnimatorApi as b, flattenAnimatorTimeline as b0, formatWireVersion as b1, generateNewIds as b2, getAnimatorConfig as b3, getBindings as b4, getChildren as b5, getDefinitions as b6, isNativeForced as b7, isPxDocument as b8, isValidPxDocument as b9, type PxMaterializeAllOptions as bA, type PxNormalizedKeyframe as bB, type PxNormalizedPropertyAnimation as bC, createDiagnostics as bD, deepClone as bE, generateUniqueId as bF, interpolateValue as bG, keyframeEasing as bH, keyframeValue as bI, materializeMotionPathInPropAnim as bJ, prepareDocumentForRender as bK, reportDocumentDiagnostics as bL, sanitizeAttributeValue as bM, materializeAllInTree as ba, mayUseNativeScrollTimeline as bb, nestAnimatorTimeline as bc, normalizeBindings as bd, parseWireVersion as be, px as bf, readWireVersion as bg, resolveControlMode as bh, resolveTimelineEngine as bi, resolveTrigger as bj, schemaKeys as bk, toDomProps as bl, validateDocument as bm, validateNodeEffects as bn, wireVersionAdvice as bo, type PxAnimatable as bp, PX_ANIM_ATTR_NAME as bq, PX_ANIM_SRC_ATTR_NAME as br, PX_CSS_ONLY_STYLE_PROPS as bs, PX_DEFAULT_DURATION_MS as bt, PX_DEFAULT_ITERATIONS as bu, PX_DISALLOWED_SVG_TAGS_LOWER as bv, PX_LOOP_JUMP_SHIFT_MS as bw, PX_TEXT_CONTENT_ATTR as bx, PX_UNKNOWN_KEY_ERROR as by, type PxAnyKeyframe as bz, type PxAnimatorConfig as c, PxTriggerStart as d, type PxNode as e, PX_TRANSFORM_PART_KEYS as f, PX_TRIGGER_DEFAULTS as g, PX_WIRE_BASELINE_VERSION as h, PX_WIRE_STEPS as i, PX_WIRE_VERSION as j, PX_WIRE_VERSION_KEY as k, PxAlongPathMode as l, PxAnimatedSvgDocumentSchema as m, type PxAnimationDefinition as n, type PxAnimatorCallbacks as o, PxAnimatorConfigSchema as p, type PxAnimatorHandle as q, PxAttrValueSchema as r, type PxBezierPath as s, PxBezierPathSchema as t, type PxBinding as u, PxClipPathEffectSchema as v, PxCloneEffectSchema as w, PxCloneWithout as x, PxControlMode as y, type PxControlProps as z };
|