@glissade/player 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +23 -0
  2. package/package.json +4 -4
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # @glissade/player
2
+
3
+ The embed runtime: `Player` (play/pause/seek/loop/rate — time-based, never frame-counted), the **Driver** seam (`InputDriver<T>`: clock, scroll, or anything that writes a value), and `mount()` — scene + timeline + canvas in one call. v2 machines attach here: `player.attach(machine)` steps them on every host tick, even while linear playback is paused, with hard target-disjointness validation.
4
+
5
+ ```sh
6
+ npm i @glissade/player
7
+ ```
8
+
9
+ ```ts
10
+ import { mount } from '@glissade/player';
11
+
12
+ const { player } = mount(scene, doc, canvas, { loop: true, autoplay: true });
13
+ player.seek(1.5); // pure: identical to having played there
14
+ ```
15
+
16
+ ## Part of glissade
17
+
18
+ *(glide & slide)* — programmatic motion graphics for TypeScript: realtime-first in any web page, deterministic headless video export from the same code, a visual studio over the same document. No generator functions.
19
+
20
+ - [Repository & full README](https://github.com/tyevco/glissade)
21
+ - [Getting started](https://github.com/tyevco/glissade/blob/main/docs/getting-started.md) · [Concepts](https://github.com/tyevco/glissade/blob/main/docs/concepts.md) · [Interactivity](https://github.com/tyevco/glissade/blob/main/docs/interactivity.md)
22
+
23
+ Apache-2.0.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/player",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "glissade embed runtime: Player, Drivers (clock, scroll), mount().",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -15,9 +15,9 @@
15
15
  "dist"
16
16
  ],
17
17
  "dependencies": {
18
- "@glissade/backend-canvas2d": "0.2.0",
19
- "@glissade/core": "0.2.0",
20
- "@glissade/scene": "0.2.0"
18
+ "@glissade/core": "0.3.0",
19
+ "@glissade/backend-canvas2d": "0.3.0",
20
+ "@glissade/scene": "0.3.0"
21
21
  },
22
22
  "repository": {
23
23
  "type": "git",