@pixodesk/svg-animator-core 1.0.27 → 1.0.28
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/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1314,6 +1314,11 @@ declare const PxScrollSchema: PxSchema<{} & {
|
|
|
1314
1314
|
kind?: "view" | "scroll" | undefined;
|
|
1315
1315
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
1316
1316
|
source?: "nearest" | "root" | undefined;
|
|
1317
|
+
subject?: string | undefined;
|
|
1318
|
+
smoothing?: number | undefined;
|
|
1319
|
+
pin?: boolean | undefined;
|
|
1320
|
+
pinTop?: number | undefined;
|
|
1321
|
+
pinDistance?: number | undefined;
|
|
1317
1322
|
range?: ({} & {
|
|
1318
1323
|
start?: ({} & {
|
|
1319
1324
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -1330,6 +1335,11 @@ declare const PxScrollSchema: PxSchema<{} & {
|
|
|
1330
1335
|
kind: PxSchema<"view" | "scroll" | undefined, true>;
|
|
1331
1336
|
axis: PxSchema<"x" | "y" | "block" | "inline" | undefined, true>;
|
|
1332
1337
|
source: PxSchema<"nearest" | "root" | undefined, true>;
|
|
1338
|
+
subject: PxSchema<string | undefined, true>;
|
|
1339
|
+
smoothing: PxSchema<number | undefined, true>;
|
|
1340
|
+
pin: PxSchema<boolean | undefined, true>;
|
|
1341
|
+
pinTop: PxSchema<number | undefined, true>;
|
|
1342
|
+
pinDistance: PxSchema<number | undefined, true>;
|
|
1333
1343
|
range: PxSchema<({} & {
|
|
1334
1344
|
start?: ({} & {
|
|
1335
1345
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -1631,6 +1641,11 @@ declare const PxAnimatorConfigSchema: PxSchema<{} & {
|
|
|
1631
1641
|
kind?: "view" | "scroll" | undefined;
|
|
1632
1642
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
1633
1643
|
source?: "nearest" | "root" | undefined;
|
|
1644
|
+
subject?: string | undefined;
|
|
1645
|
+
smoothing?: number | undefined;
|
|
1646
|
+
pin?: boolean | undefined;
|
|
1647
|
+
pinTop?: number | undefined;
|
|
1648
|
+
pinDistance?: number | undefined;
|
|
1634
1649
|
range?: ({} & {
|
|
1635
1650
|
start?: ({} & {
|
|
1636
1651
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -1932,6 +1947,11 @@ declare const PxAnimatorConfigSchema: PxSchema<{} & {
|
|
|
1932
1947
|
kind?: "view" | "scroll" | undefined;
|
|
1933
1948
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
1934
1949
|
source?: "nearest" | "root" | undefined;
|
|
1950
|
+
subject?: string | undefined;
|
|
1951
|
+
smoothing?: number | undefined;
|
|
1952
|
+
pin?: boolean | undefined;
|
|
1953
|
+
pinTop?: number | undefined;
|
|
1954
|
+
pinDistance?: number | undefined;
|
|
1935
1955
|
range?: ({} & {
|
|
1936
1956
|
start?: ({} & {
|
|
1937
1957
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -17760,6 +17780,11 @@ declare const PxSvgNodeExtra: PxSchema<{} & {
|
|
|
17760
17780
|
kind?: "view" | "scroll" | undefined;
|
|
17761
17781
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
17762
17782
|
source?: "nearest" | "root" | undefined;
|
|
17783
|
+
subject?: string | undefined;
|
|
17784
|
+
smoothing?: number | undefined;
|
|
17785
|
+
pin?: boolean | undefined;
|
|
17786
|
+
pinTop?: number | undefined;
|
|
17787
|
+
pinDistance?: number | undefined;
|
|
17763
17788
|
range?: ({} & {
|
|
17764
17789
|
start?: ({} & {
|
|
17765
17790
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -18066,6 +18091,11 @@ declare const PxSvgNodeExtra: PxSchema<{} & {
|
|
|
18066
18091
|
kind?: "view" | "scroll" | undefined;
|
|
18067
18092
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
18068
18093
|
source?: "nearest" | "root" | undefined;
|
|
18094
|
+
subject?: string | undefined;
|
|
18095
|
+
smoothing?: number | undefined;
|
|
18096
|
+
pin?: boolean | undefined;
|
|
18097
|
+
pinTop?: number | undefined;
|
|
18098
|
+
pinDistance?: number | undefined;
|
|
18069
18099
|
range?: ({} & {
|
|
18070
18100
|
start?: ({} & {
|
|
18071
18101
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -18391,6 +18421,11 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
18391
18421
|
kind?: "view" | "scroll" | undefined;
|
|
18392
18422
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
18393
18423
|
source?: "nearest" | "root" | undefined;
|
|
18424
|
+
subject?: string | undefined;
|
|
18425
|
+
smoothing?: number | undefined;
|
|
18426
|
+
pin?: boolean | undefined;
|
|
18427
|
+
pinTop?: number | undefined;
|
|
18428
|
+
pinDistance?: number | undefined;
|
|
18394
18429
|
range?: ({} & {
|
|
18395
18430
|
start?: ({} & {
|
|
18396
18431
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -21376,6 +21411,11 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
21376
21411
|
kind?: "view" | "scroll" | undefined;
|
|
21377
21412
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
21378
21413
|
source?: "nearest" | "root" | undefined;
|
|
21414
|
+
subject?: string | undefined;
|
|
21415
|
+
smoothing?: number | undefined;
|
|
21416
|
+
pin?: boolean | undefined;
|
|
21417
|
+
pinTop?: number | undefined;
|
|
21418
|
+
pinDistance?: number | undefined;
|
|
21379
21419
|
range?: ({} & {
|
|
21380
21420
|
start?: ({} & {
|
|
21381
21421
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1314,6 +1314,11 @@ declare const PxScrollSchema: PxSchema<{} & {
|
|
|
1314
1314
|
kind?: "view" | "scroll" | undefined;
|
|
1315
1315
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
1316
1316
|
source?: "nearest" | "root" | undefined;
|
|
1317
|
+
subject?: string | undefined;
|
|
1318
|
+
smoothing?: number | undefined;
|
|
1319
|
+
pin?: boolean | undefined;
|
|
1320
|
+
pinTop?: number | undefined;
|
|
1321
|
+
pinDistance?: number | undefined;
|
|
1317
1322
|
range?: ({} & {
|
|
1318
1323
|
start?: ({} & {
|
|
1319
1324
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -1330,6 +1335,11 @@ declare const PxScrollSchema: PxSchema<{} & {
|
|
|
1330
1335
|
kind: PxSchema<"view" | "scroll" | undefined, true>;
|
|
1331
1336
|
axis: PxSchema<"x" | "y" | "block" | "inline" | undefined, true>;
|
|
1332
1337
|
source: PxSchema<"nearest" | "root" | undefined, true>;
|
|
1338
|
+
subject: PxSchema<string | undefined, true>;
|
|
1339
|
+
smoothing: PxSchema<number | undefined, true>;
|
|
1340
|
+
pin: PxSchema<boolean | undefined, true>;
|
|
1341
|
+
pinTop: PxSchema<number | undefined, true>;
|
|
1342
|
+
pinDistance: PxSchema<number | undefined, true>;
|
|
1333
1343
|
range: PxSchema<({} & {
|
|
1334
1344
|
start?: ({} & {
|
|
1335
1345
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -1631,6 +1641,11 @@ declare const PxAnimatorConfigSchema: PxSchema<{} & {
|
|
|
1631
1641
|
kind?: "view" | "scroll" | undefined;
|
|
1632
1642
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
1633
1643
|
source?: "nearest" | "root" | undefined;
|
|
1644
|
+
subject?: string | undefined;
|
|
1645
|
+
smoothing?: number | undefined;
|
|
1646
|
+
pin?: boolean | undefined;
|
|
1647
|
+
pinTop?: number | undefined;
|
|
1648
|
+
pinDistance?: number | undefined;
|
|
1634
1649
|
range?: ({} & {
|
|
1635
1650
|
start?: ({} & {
|
|
1636
1651
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -1932,6 +1947,11 @@ declare const PxAnimatorConfigSchema: PxSchema<{} & {
|
|
|
1932
1947
|
kind?: "view" | "scroll" | undefined;
|
|
1933
1948
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
1934
1949
|
source?: "nearest" | "root" | undefined;
|
|
1950
|
+
subject?: string | undefined;
|
|
1951
|
+
smoothing?: number | undefined;
|
|
1952
|
+
pin?: boolean | undefined;
|
|
1953
|
+
pinTop?: number | undefined;
|
|
1954
|
+
pinDistance?: number | undefined;
|
|
1935
1955
|
range?: ({} & {
|
|
1936
1956
|
start?: ({} & {
|
|
1937
1957
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -17760,6 +17780,11 @@ declare const PxSvgNodeExtra: PxSchema<{} & {
|
|
|
17760
17780
|
kind?: "view" | "scroll" | undefined;
|
|
17761
17781
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
17762
17782
|
source?: "nearest" | "root" | undefined;
|
|
17783
|
+
subject?: string | undefined;
|
|
17784
|
+
smoothing?: number | undefined;
|
|
17785
|
+
pin?: boolean | undefined;
|
|
17786
|
+
pinTop?: number | undefined;
|
|
17787
|
+
pinDistance?: number | undefined;
|
|
17763
17788
|
range?: ({} & {
|
|
17764
17789
|
start?: ({} & {
|
|
17765
17790
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -18066,6 +18091,11 @@ declare const PxSvgNodeExtra: PxSchema<{} & {
|
|
|
18066
18091
|
kind?: "view" | "scroll" | undefined;
|
|
18067
18092
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
18068
18093
|
source?: "nearest" | "root" | undefined;
|
|
18094
|
+
subject?: string | undefined;
|
|
18095
|
+
smoothing?: number | undefined;
|
|
18096
|
+
pin?: boolean | undefined;
|
|
18097
|
+
pinTop?: number | undefined;
|
|
18098
|
+
pinDistance?: number | undefined;
|
|
18069
18099
|
range?: ({} & {
|
|
18070
18100
|
start?: ({} & {
|
|
18071
18101
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -18391,6 +18421,11 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
18391
18421
|
kind?: "view" | "scroll" | undefined;
|
|
18392
18422
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
18393
18423
|
source?: "nearest" | "root" | undefined;
|
|
18424
|
+
subject?: string | undefined;
|
|
18425
|
+
smoothing?: number | undefined;
|
|
18426
|
+
pin?: boolean | undefined;
|
|
18427
|
+
pinTop?: number | undefined;
|
|
18428
|
+
pinDistance?: number | undefined;
|
|
18394
18429
|
range?: ({} & {
|
|
18395
18430
|
start?: ({} & {
|
|
18396
18431
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
|
@@ -21376,6 +21411,11 @@ declare const PxAnimatedSvgDocumentSchema: PxSchema<{
|
|
|
21376
21411
|
kind?: "view" | "scroll" | undefined;
|
|
21377
21412
|
axis?: "x" | "y" | "block" | "inline" | undefined;
|
|
21378
21413
|
source?: "nearest" | "root" | undefined;
|
|
21414
|
+
subject?: string | undefined;
|
|
21415
|
+
smoothing?: number | undefined;
|
|
21416
|
+
pin?: boolean | undefined;
|
|
21417
|
+
pinTop?: number | undefined;
|
|
21418
|
+
pinDistance?: number | undefined;
|
|
21379
21419
|
range?: ({} & {
|
|
21380
21420
|
start?: ({} & {
|
|
21381
21421
|
phase?: "cover" | "contain" | "entry" | "exit" | "entry-crossing" | "exit-crossing" | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1184,6 +1184,12 @@ var PxScrollSchema = implementsInterface()(px.object({
|
|
|
1184
1184
|
kind: px.enum(["view", "scroll"]).optional(),
|
|
1185
1185
|
axis: px.enum(["block", "inline", "x", "y"]).optional(),
|
|
1186
1186
|
source: px.enum(["nearest", "root"]).optional(),
|
|
1187
|
+
// Free-form: the two keywords `parent`/`scroller` plus any CSS selector.
|
|
1188
|
+
subject: px.string().optional(),
|
|
1189
|
+
smoothing: px.number().optional(),
|
|
1190
|
+
pin: px.boolean().optional(),
|
|
1191
|
+
pinTop: px.number().optional(),
|
|
1192
|
+
pinDistance: px.number().optional(),
|
|
1187
1193
|
range: PxScrollRangeSchema.optional()
|
|
1188
1194
|
}));
|
|
1189
1195
|
var PxAnimatorConfigSchema = implementsInterface()(px.object({
|