@glissade/scene 0.40.0-pre.0 → 0.40.0-pre.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/dist/describe.js +1 -1
- package/dist/examples.js +3 -2
- package/package.json +2 -2
package/dist/describe.js
CHANGED
|
@@ -23,7 +23,7 @@ import { easings, listValueTypes } from "@glissade/core";
|
|
|
23
23
|
* never pulled onto the base embed path — a scene that never calls `describe()`
|
|
24
24
|
* pays zero bytes for it.
|
|
25
25
|
*/
|
|
26
|
-
const RAW_VERSION = "0.40.0-pre.
|
|
26
|
+
const RAW_VERSION = "0.40.0-pre.1";
|
|
27
27
|
const PACKAGE_VERSION = RAW_VERSION.includes("GLISSADE_".concat("VERSION")) ? "0.0.0-dev" : RAW_VERSION;
|
|
28
28
|
/** Arity of a value type's numeric repr: vec2/vec2-arc → 2, number → 1; others (color/paint/path/string/boolean) carry no scalar arity. */
|
|
29
29
|
function arityOf(type) {
|
package/dist/examples.js
CHANGED
|
@@ -7,7 +7,8 @@ import { splitText } from "./type.js";
|
|
|
7
7
|
import { i as orientToPath, r as lookAt, s as motionPath } from "./orient.js";
|
|
8
8
|
import { i as echo, n as motionBlur } from "./motionBlur.js";
|
|
9
9
|
import { pathFromSvg } from "./path.js";
|
|
10
|
-
import { key,
|
|
10
|
+
import { key, timeline, track } from "@glissade/core";
|
|
11
|
+
import { retime } from "@glissade/core/clips";
|
|
11
12
|
//#region src/examples.ts
|
|
12
13
|
/**
|
|
13
14
|
* `@glissade/scene/examples` — the runnable example corpus (§0.24 onboarding,
|
|
@@ -238,7 +239,7 @@ const EXAMPLES = [
|
|
|
238
239
|
},
|
|
239
240
|
{
|
|
240
241
|
key: "retime",
|
|
241
|
-
code: "import { retime
|
|
242
|
+
code: "import { retime } from '@glissade/core/clips';\nimport { track, key } from '@glissade/core';\n// pure key-time transform → ordinary retimed tracks (speed / shift / reverse / pingpong)\nconst move = [track('box/position.x', 'number', [key(0, 0), key(1, 100, 'easeInCubic')])];\nconst slow = retime(move, { speed: 0.5 }); // half speed\nconst back = retime(move, { reverse: true }); // play it backward",
|
|
242
243
|
run: () => {
|
|
243
244
|
const move = [track("box/position.x", "number", [key(0, 0), key(1, 100, "easeInCubic")])];
|
|
244
245
|
retime(move, { speed: .5 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/scene",
|
|
3
|
-
"version": "0.40.0-pre.
|
|
3
|
+
"version": "0.40.0-pre.1",
|
|
4
4
|
"description": "glissade scene graph: nodes, transforms, DisplayList emission. Renderer-agnostic; zero DOM/Node dependencies.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"engines": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
],
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"yoga-layout": "^3.2.1",
|
|
80
|
-
"@glissade/core": "0.40.0-pre.
|
|
80
|
+
"@glissade/core": "0.40.0-pre.1"
|
|
81
81
|
},
|
|
82
82
|
"repository": {
|
|
83
83
|
"type": "git",
|