paperlab 0.3.0 → 0.3.1
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-XE4E43MD.js} +4 -4
- package/dist/chunk-XE4E43MD.js.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/dist/{slots-D0Nc_5dq.d.cts → slots-DUMR64HB.d.cts} +2 -2
- package/dist/{slots-D0Nc_5dq.d.ts → slots-DUMR64HB.d.ts} +2 -2
- package/dist/stage.cjs +3 -3
- package/dist/stage.cjs.map +1 -1
- package/dist/stage.d.cts +1 -1
- package/dist/stage.d.ts +1 -1
- package/dist/stage.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-3IMUEESH.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1394,7 +1394,7 @@ var paperConfigSchema = import_zod14.z.object({
|
|
|
1394
1394
|
physics: physicsSchema.default("none"),
|
|
1395
1395
|
scene: sceneSchema.default({}),
|
|
1396
1396
|
onTwos: import_zod14.z.boolean().default(false),
|
|
1397
|
-
/** Interaction state machine — overrides-on-base diffs
|
|
1397
|
+
/** Interaction state machine — overrides-on-base diffs. */
|
|
1398
1398
|
states: paperStatesSchema.optional()
|
|
1399
1399
|
}).superRefine((config, ctx) => {
|
|
1400
1400
|
if (typeof config.physics === "object" && (config.behavior || config.deformers)) {
|
|
@@ -1757,7 +1757,7 @@ var builtins = {
|
|
|
1757
1757
|
meta: { name: "Blank sheet", tags: ["starter"] },
|
|
1758
1758
|
stock: "printer"
|
|
1759
1759
|
},
|
|
1760
|
-
// The
|
|
1760
|
+
// The driving use case: one stamp of the 2×5 block. Hover peels the
|
|
1761
1761
|
// outward-facing corner ('auto' resolves per sheet slot), pressing deepens
|
|
1762
1762
|
// the peel; the perforation tears when it detaches (field auto-wiring).
|
|
1763
1763
|
"postage-stamp": {
|
|
@@ -3623,7 +3623,7 @@ void plPerforation(inout vec4 color) {
|
|
|
3623
3623
|
float cell = mod(a + uPerfSpacing * 0.5, uPerfSpacing) - uPerfSpacing * 0.5;
|
|
3624
3624
|
if (uPerfTorn[e] < 0.5) {
|
|
3625
3625
|
// Intact: clean semicircular punches on the edge line (alphaTest, not
|
|
3626
|
-
// blending \u2014 shadow correctness
|
|
3626
|
+
// blending \u2014 shadow correctness).
|
|
3627
3627
|
if (length(vec2(cell, d)) < uPerfRadius) color.a = 0.0;
|
|
3628
3628
|
} else {
|
|
3629
3629
|
// Torn: ripped profile following the hole rhythm \u2014 alternating tabs and
|