@motionscript/browser 0.1.0-alpha.5 → 0.1.0-alpha.7
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/CHANGELOG.md +19 -0
- package/README.md +5 -5
- package/dist/browser/index.js +24 -24
- package/dist/browser/index.js.map +3 -3
- package/dist/browser/manifest.json +1 -1
- package/dist/dynamic-nodes.d.ts.map +1 -1
- package/dist/dynamic-nodes.js +6 -12
- package/dist/dynamic-nodes.js.map +1 -1
- package/dist/engine.d.ts +6 -6
- package/dist/engine.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @motionscript/browser
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @motionscript/skia-render@0.1.0-alpha.7
|
|
8
|
+
|
|
9
|
+
## 0.1.0-alpha.6
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- aa75a19: A source-string node default-exports a component, and is written with calls.
|
|
14
|
+
|
|
15
|
+
- `Registry.addNodeFromSource`, `engine.registerNode(source)` and a string in `nodes` (browser and headless) take a script whose default export is a component (`export default component2d({ key: "…", … })`), not a class decorated with `@node(...)`.
|
|
16
|
+
- `DynamicNodeConfig.jsxRuntime` is gone, and browser's default compiler reads TypeScript without JSX or decorators: a script with JSX fails to compile, and one that requires `@motionscript/sdk/jsx-runtime` fails to link. The CDN build no longer imports `@motionscript/core/jsx/jsx-runtime`, so an import map need not name it.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- @motionscript/skia-render@0.1.0-alpha.6
|
|
21
|
+
|
|
3
22
|
## 0.1.0-alpha.5
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -45,10 +45,11 @@ draws with.
|
|
|
45
45
|
`setAssetByteSource` lets a host answer for an asset's bytes (a file the user just
|
|
46
46
|
chose, say) before the adapter goes to the network; it applies to previews,
|
|
47
47
|
exports and stills alike.
|
|
48
|
-
- **Source-string nodes**: `createBrowserEngine({ nodes })` also accepts TS
|
|
49
|
-
strings (array form only), each
|
|
50
|
-
`esbuild-wasm` on first use.
|
|
51
|
-
|
|
48
|
+
- **Source-string nodes**: `createBrowserEngine({ nodes })` also accepts TS source
|
|
49
|
+
strings (array form only), each default-exporting a component (`component2d({ key })`),
|
|
50
|
+
compiled with `esbuild-wasm` on first use. A script is written with calls: JSX
|
|
51
|
+
neither compiles nor links. `dynamicNodes` overrides the SDK, extra importable
|
|
52
|
+
`modules` or the compiler, each field defaulting on its own.
|
|
52
53
|
- **Clock**: `WebTicker` synchronizes scene playback to `requestAnimationFrame` while calculating dt from audio context to ensure audio and animation line up.
|
|
53
54
|
- **CanvasKit access**: `getCanvasKit` loads and caches the CanvasKit/Skia
|
|
54
55
|
WebAssembly module used for rendering.
|
|
@@ -86,7 +87,6 @@ once, to one copy:
|
|
|
86
87
|
```
|
|
87
88
|
@motionscript/core
|
|
88
89
|
@motionscript/core/sdk
|
|
89
|
-
@motionscript/core/jsx/jsx-runtime
|
|
90
90
|
@motionscript/canvaskit
|
|
91
91
|
```
|
|
92
92
|
|