paperlab 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -6
- package/dist/{chunk-HRXQTJFS.js → chunk-E22ILEDO.js} +2408 -486
- package/dist/chunk-E22ILEDO.js.map +1 -0
- package/dist/index.cjs +2365 -435
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +175 -29
- package/dist/index.d.ts +175 -29
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/slots-C5PqY0Q5.d.cts +2297 -0
- package/dist/slots-C5PqY0Q5.d.ts +2297 -0
- package/dist/stage.cjs +2358 -449
- package/dist/stage.cjs.map +1 -1
- package/dist/stage.d.cts +78 -636
- package/dist/stage.d.ts +78 -636
- package/dist/stage.js +11 -11
- package/dist/stage.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-HRXQTJFS.js.map +0 -1
- package/dist/slots-CIo7FnlY.d.cts +0 -13357
- package/dist/slots-CIo7FnlY.d.ts +0 -13357
package/dist/stage.js
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
resolveLighting,
|
|
17
17
|
usePrefersReducedMotion,
|
|
18
18
|
walkPathSchema
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E22ILEDO.js";
|
|
20
20
|
|
|
21
21
|
// src/stage/PaperStage.tsx
|
|
22
22
|
import * as THREE6 from "three";
|
|
@@ -958,9 +958,9 @@ var stageRoomSchema = z3.object({
|
|
|
958
958
|
height: z3.number().min(1).max(6).default(2.2),
|
|
959
959
|
color: z3.string().default("#171310").describe("color"),
|
|
960
960
|
/** Columns flanking the walk — see `stageColumnsSchema`. */
|
|
961
|
-
columns: stageColumnsSchema.
|
|
961
|
+
columns: stageColumnsSchema.prefault({}),
|
|
962
962
|
/** A wall at the end of the walk with the source in it. */
|
|
963
|
-
doorway: stageDoorwaySchema.
|
|
963
|
+
doorway: stageDoorwaySchema.prefault({})
|
|
964
964
|
});
|
|
965
965
|
var stageGradeSchema = z3.object({
|
|
966
966
|
/**
|
|
@@ -1014,9 +1014,9 @@ var stageGradeSchema = z3.object({
|
|
|
1014
1014
|
grain: z3.number().min(0).max(0.5).default(0.022)
|
|
1015
1015
|
});
|
|
1016
1016
|
var stageSchema = z3.object({
|
|
1017
|
-
path: walkPathSchema.
|
|
1018
|
-
shot: shotSchema.
|
|
1019
|
-
figure: figureSchema.
|
|
1017
|
+
path: walkPathSchema.prefault({}),
|
|
1018
|
+
shot: shotSchema.prefault({}),
|
|
1019
|
+
figure: figureSchema.prefault({}),
|
|
1020
1020
|
/** Stage mode is built for `nave`; the others are all front-lit. */
|
|
1021
1021
|
lighting: z3.enum(lightingNames).default("nave"),
|
|
1022
1022
|
/**
|
|
@@ -1043,12 +1043,12 @@ var stageSchema = z3.object({
|
|
|
1043
1043
|
* Still one flag away for anyone who wants it.
|
|
1044
1044
|
*/
|
|
1045
1045
|
showFigure: z3.boolean().default(false),
|
|
1046
|
-
source: stageSourceSchema.
|
|
1047
|
-
ground: stageGroundSchema.
|
|
1046
|
+
source: stageSourceSchema.prefault({}),
|
|
1047
|
+
ground: stageGroundSchema.prefault({}),
|
|
1048
1048
|
/** Ceiling and the architecture around the walk — see `stageRoomSchema`. */
|
|
1049
|
-
room: stageRoomSchema.
|
|
1049
|
+
room: stageRoomSchema.prefault({}),
|
|
1050
1050
|
/** Thread and clips — see `stageSuspensionSchema`. */
|
|
1051
|
-
suspension: stageSuspensionSchema.
|
|
1051
|
+
suspension: stageSuspensionSchema.prefault({}),
|
|
1052
1052
|
/**
|
|
1053
1053
|
* The print — bloom, vignette, grain.
|
|
1054
1054
|
*
|
|
@@ -1060,7 +1060,7 @@ var stageSchema = z3.object({
|
|
|
1060
1060
|
* behaviour: a stage silently losing its grade would be worse than a
|
|
1061
1061
|
* missing-module error that names the package.
|
|
1062
1062
|
*/
|
|
1063
|
-
grade: stageGradeSchema.
|
|
1063
|
+
grade: stageGradeSchema.prefault({})
|
|
1064
1064
|
});
|
|
1065
1065
|
|
|
1066
1066
|
// src/stage/navigate.ts
|