paperlab 0.3.0 → 0.4.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 +154 -45
- package/dist/{chunk-3IMUEESH.js → chunk-4ZU5DZEF.js} +1705 -1807
- package/dist/chunk-4ZU5DZEF.js.map +1 -0
- package/dist/index.cjs +493 -748
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +419 -1874
- package/dist/index.d.ts +419 -1874
- package/dist/index.js +183 -431
- package/dist/index.js.map +1 -1
- package/dist/{slots-D0Nc_5dq.d.cts → slots-BYoLxVZ4.d.cts} +3 -656
- package/dist/{slots-D0Nc_5dq.d.ts → slots-BYoLxVZ4.d.ts} +3 -656
- package/dist/stage.cjs +3 -17
- package/dist/stage.cjs.map +1 -1
- package/dist/stage.d.cts +2 -178
- package/dist/stage.d.ts +2 -178
- package/dist/stage.js +1 -8
- package/package.json +1 -1
- package/dist/chunk-3IMUEESH.js.map +0 -1
package/dist/stage.cjs
CHANGED
|
@@ -32,7 +32,6 @@ var stage_exports = {};
|
|
|
32
32
|
__export(stage_exports, {
|
|
33
33
|
PaperStage: () => PaperStage,
|
|
34
34
|
PaperStageScene: () => PaperStageScene,
|
|
35
|
-
SOURCE_INTENSITY: () => SOURCE_INTENSITY,
|
|
36
35
|
buildStageAgentPayload: () => buildStageAgentPayload,
|
|
37
36
|
buildStageComponentSource: () => buildStageComponentSource,
|
|
38
37
|
createWalkPath: () => createWalkPath,
|
|
@@ -43,14 +42,8 @@ __export(stage_exports, {
|
|
|
43
42
|
listStagePresets: () => listStagePresets,
|
|
44
43
|
qualityNames: () => qualityNames,
|
|
45
44
|
shotNames: () => shotNames,
|
|
46
|
-
stageGradeSchema: () => stageGradeSchema,
|
|
47
|
-
stageMotionSchema: () => stageMotionSchema,
|
|
48
45
|
stagePresets: () => stagePresets,
|
|
49
|
-
stageRoomSchema: () => stageRoomSchema,
|
|
50
46
|
stageSchema: () => stageSchema,
|
|
51
|
-
stageSuspensionSchema: () => stageSuspensionSchema,
|
|
52
|
-
stringifyStage: () => stringifyStage,
|
|
53
|
-
walkNameFor: () => walkNameFor,
|
|
54
47
|
walkNames: () => walkNames,
|
|
55
48
|
walks: () => walks
|
|
56
49
|
});
|
|
@@ -1515,7 +1508,7 @@ var paperConfigSchema = import_zod14.z.object({
|
|
|
1515
1508
|
physics: physicsSchema.default("none"),
|
|
1516
1509
|
scene: sceneSchema.default({}),
|
|
1517
1510
|
onTwos: import_zod14.z.boolean().default(false),
|
|
1518
|
-
/** Interaction state machine — overrides-on-base diffs
|
|
1511
|
+
/** Interaction state machine — overrides-on-base diffs. */
|
|
1519
1512
|
states: paperStatesSchema.optional()
|
|
1520
1513
|
}).superRefine((config, ctx) => {
|
|
1521
1514
|
if (typeof config.physics === "object" && (config.behavior || config.deformers)) {
|
|
@@ -1784,7 +1777,7 @@ var builtins = {
|
|
|
1784
1777
|
meta: { name: "Blank sheet", tags: ["starter"] },
|
|
1785
1778
|
stock: "printer"
|
|
1786
1779
|
},
|
|
1787
|
-
// The
|
|
1780
|
+
// The driving use case: one stamp of the 2×5 block. Hover peels the
|
|
1788
1781
|
// outward-facing corner ('auto' resolves per sheet slot), pressing deepens
|
|
1789
1782
|
// the peel; the perforation tears when it detaches (field auto-wiring).
|
|
1790
1783
|
"postage-stamp": {
|
|
@@ -3537,7 +3530,7 @@ void plPerforation(inout vec4 color) {
|
|
|
3537
3530
|
float cell = mod(a + uPerfSpacing * 0.5, uPerfSpacing) - uPerfSpacing * 0.5;
|
|
3538
3531
|
if (uPerfTorn[e] < 0.5) {
|
|
3539
3532
|
// Intact: clean semicircular punches on the edge line (alphaTest, not
|
|
3540
|
-
// blending \u2014 shadow correctness
|
|
3533
|
+
// blending \u2014 shadow correctness).
|
|
3541
3534
|
if (length(vec2(cell, d)) < uPerfRadius) color.a = 0.0;
|
|
3542
3535
|
} else {
|
|
3543
3536
|
// Torn: ripped profile following the hole rhythm \u2014 alternating tabs and
|
|
@@ -8846,7 +8839,6 @@ required; the component needs no props.`;
|
|
|
8846
8839
|
0 && (module.exports = {
|
|
8847
8840
|
PaperStage,
|
|
8848
8841
|
PaperStageScene,
|
|
8849
|
-
SOURCE_INTENSITY,
|
|
8850
8842
|
buildStageAgentPayload,
|
|
8851
8843
|
buildStageComponentSource,
|
|
8852
8844
|
createWalkPath,
|
|
@@ -8857,14 +8849,8 @@ required; the component needs no props.`;
|
|
|
8857
8849
|
listStagePresets,
|
|
8858
8850
|
qualityNames,
|
|
8859
8851
|
shotNames,
|
|
8860
|
-
stageGradeSchema,
|
|
8861
|
-
stageMotionSchema,
|
|
8862
8852
|
stagePresets,
|
|
8863
|
-
stageRoomSchema,
|
|
8864
8853
|
stageSchema,
|
|
8865
|
-
stageSuspensionSchema,
|
|
8866
|
-
stringifyStage,
|
|
8867
|
-
walkNameFor,
|
|
8868
8854
|
walkNames,
|
|
8869
8855
|
walks
|
|
8870
8856
|
});
|