@momoyu-ink/kit 0.4.0 → 0.4.2
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/hooks/useStage.js +1 -1
- package/dist/lib.d.ts +1 -0
- package/dist/lib.js +1 -0
- package/dist/spring/index.js +2 -5
- package/dist/zod-patch.d.ts +10 -0
- package/dist/zod-patch.js +2 -0
- package/package.json +1 -1
package/dist/hooks/useStage.js
CHANGED
|
@@ -21,7 +21,7 @@ const moyu_1 = require("../moyu");
|
|
|
21
21
|
// ---------------------------------------------------------------------------
|
|
22
22
|
// Skip state — independent valtio proxy (not serialized with game saves)
|
|
23
23
|
// ---------------------------------------------------------------------------
|
|
24
|
-
const SKIP_INTERVAL_MS =
|
|
24
|
+
const SKIP_INTERVAL_MS = 80;
|
|
25
25
|
const autoRuntime = {
|
|
26
26
|
defaultTailMs: 0,
|
|
27
27
|
};
|
package/dist/lib.d.ts
CHANGED
package/dist/lib.js
CHANGED
package/dist/spring/index.js
CHANGED
|
@@ -21,12 +21,9 @@ const primitives_1 = require("./primitives");
|
|
|
21
21
|
shared_1.Globals.assign({
|
|
22
22
|
createStringInterpolator: shared_1.createStringInterpolator,
|
|
23
23
|
colors: shared_1.colors,
|
|
24
|
-
frameLoop: '
|
|
24
|
+
frameLoop: 'always',
|
|
25
|
+
requestAnimationFrame: (cb) => requestAnimationFrame(cb),
|
|
25
26
|
});
|
|
26
|
-
// Let r3f drive the frameloop.
|
|
27
|
-
setInterval(() => {
|
|
28
|
-
shared_1.raf.advance();
|
|
29
|
-
}, 10);
|
|
30
27
|
const host = (0, animated_1.createHost)(primitives_1.primitives, {
|
|
31
28
|
applyAnimatedValues(instance, props) {
|
|
32
29
|
instance.updateProps(props);
|