@glissade/scene 0.55.0-pre.0 → 0.55.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/motion.d.ts +9 -3
- package/dist/motion.js +6 -1
- 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.55.0-pre.
|
|
26
|
+
const RAW_VERSION = "0.55.0-pre.1";
|
|
27
27
|
const PACKAGE_VERSION = RAW_VERSION.includes("GLISSADE_".concat("VERSION")) ? "0.0.0-dev" : RAW_VERSION;
|
|
28
28
|
/**
|
|
29
29
|
* Parse the documented positional-arg count from a helper `usage` string — the
|
package/dist/motion.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as DisplayListBuilder } from "./displayList.js";
|
|
1
|
+
import { C as Mat2x3, r as DisplayListBuilder } from "./displayList.js";
|
|
2
2
|
import { B as Node, H as NodeProps, R as EvalContext, U as PropInit, a as Group, l as Path } from "./nodes.js";
|
|
3
3
|
import { BindableSignal, PathValue, Vec2, Vec2Signal } from "@glissade/core";
|
|
4
4
|
|
|
@@ -182,7 +182,10 @@ interface CameraProps extends NodeProps {
|
|
|
182
182
|
* the PAN by the layer's depth (far layers, depth<1, pan less). `centerRel` is the
|
|
183
183
|
* RELATIVE focal point ([0.5,0.5]=screen center); `roll` is degrees.
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
declare function cameraLayerMatrix(size: {
|
|
186
|
+
w: number;
|
|
187
|
+
h: number;
|
|
188
|
+
}, centerRel: Vec2, zoom: number, roll: number, depth: number): Mat2x3;
|
|
186
189
|
declare class Camera extends Group {
|
|
187
190
|
#private;
|
|
188
191
|
get describeType(): string;
|
|
@@ -194,6 +197,9 @@ declare class Camera extends Group {
|
|
|
194
197
|
readonly roll: BindableSignal<number>;
|
|
195
198
|
/** Resolved layers (content + depth), parallel to `children`. */
|
|
196
199
|
readonly layers: readonly Required<CameraLayer>[];
|
|
200
|
+
/** The whole-frame shake spec, if any — read by exporters (render-only, so it is
|
|
201
|
+
* warned + not baked into Lottie keyframes). */
|
|
202
|
+
get shakeSpec(): ShakeSpec | undefined;
|
|
197
203
|
constructor(layers: CameraLayer[], props?: CameraProps);
|
|
198
204
|
protected draw(out: DisplayListBuilder, ctx: EvalContext): void;
|
|
199
205
|
}
|
|
@@ -207,4 +213,4 @@ declare class Camera extends Group {
|
|
|
207
213
|
*/
|
|
208
214
|
declare function camera(layers: CameraLayer[], props?: CameraProps): Camera;
|
|
209
215
|
//#endregion
|
|
210
|
-
export { Camera, CameraError, type CameraLayer, type CameraProps, FollowPath, type FollowPathProps, LookAt, type LookAtProps, OrientToPath, type OrientToPathProps, type PathSampler, type ShakeSpec, camera, followPath, lookAt, motionPath, orientToPath, pathLength, pointAtLength, shake, shakeOffset };
|
|
216
|
+
export { Camera, CameraError, type CameraLayer, type CameraProps, FollowPath, type FollowPathProps, LookAt, type LookAtProps, OrientToPath, type OrientToPathProps, type PathSampler, type ShakeSpec, camera, cameraLayerMatrix, followPath, lookAt, motionPath, orientToPath, pathLength, pointAtLength, shake, shakeOffset };
|
package/dist/motion.js
CHANGED
|
@@ -196,6 +196,11 @@ var Camera = class extends Group {
|
|
|
196
196
|
/** Resolved layers (content + depth), parallel to `children`. */
|
|
197
197
|
layers;
|
|
198
198
|
#shake;
|
|
199
|
+
/** The whole-frame shake spec, if any — read by exporters (render-only, so it is
|
|
200
|
+
* warned + not baked into Lottie keyframes). */
|
|
201
|
+
get shakeSpec() {
|
|
202
|
+
return this.#shake;
|
|
203
|
+
}
|
|
199
204
|
constructor(layers, props = {}) {
|
|
200
205
|
if (!Array.isArray(layers) || layers.length === 0) throw new CameraError("camera(layers, props?): needs at least one layer — pass [{ content }] (a node per depth plane).");
|
|
201
206
|
const resolved = layers.map((l, i) => {
|
|
@@ -265,4 +270,4 @@ function camera(layers, props = {}) {
|
|
|
265
270
|
return new Camera(layers, props);
|
|
266
271
|
}
|
|
267
272
|
//#endregion
|
|
268
|
-
export { Camera, CameraError, FollowPath, LookAt, OrientToPath, camera, followPath, lookAt, motionPath, orientToPath, pathLength, pointAtLength, shake, shakeOffset };
|
|
273
|
+
export { Camera, CameraError, FollowPath, LookAt, OrientToPath, camera, cameraLayerMatrix, followPath, lookAt, motionPath, orientToPath, pathLength, pointAtLength, shake, shakeOffset };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/scene",
|
|
3
|
-
"version": "0.55.0-pre.
|
|
3
|
+
"version": "0.55.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.55.0-pre.
|
|
80
|
+
"@glissade/core": "0.55.0-pre.1"
|
|
81
81
|
},
|
|
82
82
|
"repository": {
|
|
83
83
|
"type": "git",
|