@motionscript/renderer 0.1.0 → 0.1.1-alpha.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.
- package/CHANGELOG.md +13 -0
- package/README.md +4 -1
- package/dist/browser/index.js +10 -10
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +1 -1
- package/dist/index.d.ts +33 -0
- package/dist/index.js +9475 -8923
- package/dist/index.js.map +1 -1
- package/dist/ms_renderer_bg.wasm +0 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @motionscript/renderer
|
|
2
2
|
|
|
3
|
+
## 0.1.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6b89575: The renderer's prewarm now also builds the drawing pipelines for the canvas format, so their shader compile overlaps a host's start-up instead of delaying its first frame.
|
|
8
|
+
- e279864: A 3D scene's surface and image textures stay their own across frames. A frame's image ids are given out in the order they are met, so when a scene's set of textures changed size (a token appearing, a plane entering) the scene's id moved on and its old id became a surface, while the renderer kept the old scene and drew it into that surface: a texture showed a picture of the whole scene, and sampling the target being drawn raised a WebGPU validation error. The renderer now drops a scene whose id becomes something else, and binds every image and surface a scene uses to the current frame's id on every sync.
|
|
9
|
+
- e9db554: An asset is downloaded and decoded once while it is loading, however many ask for it: the weights of one font family share its files (each weight used to fetch the whole family), two draws of one image or video share one decode, and every session, still and export on a page shares one request per source (`loadAssetBytes`, which the audio mix now goes through as well). A load that fails is asked for again next time.
|
|
10
|
+
- 7cd4e53: A Text with a Write On reveal (`start`/`end` short of the whole string) or styled `runs` drew nothing at all: the renderer ignored the text's pieces while core left their painting to them. Each piece now draws with its own fill and stroke, the unrevealed characters held in place but clear, so a Write On types the text on character by character.
|
|
11
|
+
- Updated dependencies [3630b74]
|
|
12
|
+
- Updated dependencies [1c43a37]
|
|
13
|
+
- Updated dependencies [e279864]
|
|
14
|
+
- @motionscript/core@0.1.1-alpha.0
|
|
15
|
+
|
|
3
16
|
## 0.1.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -71,7 +71,10 @@ defaults to beside the module.
|
|
|
71
71
|
- `WgpuStorageAdapter` decodes images to `ImageBitmap`s, video frames with
|
|
72
72
|
mediabunny, and hands font bytes to ms-text. Bytes come through
|
|
73
73
|
`loadBytes` (a plain `fetch` by default), which a platform points at its own
|
|
74
|
-
asset store.
|
|
74
|
+
asset store. A load in flight is joined, never repeated: per adapter by asset
|
|
75
|
+
(a font by family, since every weight registers the family's files) and
|
|
76
|
+
page-wide by source, so the sessions, stills and exports asking for one file
|
|
77
|
+
while it arrives share one download (`sharedLoader`).
|
|
75
78
|
- `WgpuSurfaceContext` is the adapter's render context mounted on a canvas,
|
|
76
79
|
with the preview knobs a host sets (`pixelRatio`, `view`, `frame`,
|
|
77
80
|
`clipToFrame`, `frameBackground`). Mounting is asynchronous (WebGPU device
|