@smoove/player 0.1.1 → 0.1.2
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/README.md +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,8 +27,8 @@ import "@smoove/player/styles.css"; // opt-in default styling
|
|
|
27
27
|
|
|
28
28
|
Hand the player a composition in one of two ways.
|
|
29
29
|
|
|
30
|
-
**Assign it imperatively
|
|
31
|
-
`Composition
|
|
30
|
+
**Assign it imperatively.** Set the `composition` property to a live
|
|
31
|
+
`Composition`. The player owns the canvas and mounts the stage itself:
|
|
32
32
|
|
|
33
33
|
```html
|
|
34
34
|
<smoove-player controls loop style="width: 640px; aspect-ratio: 16/9"></smoove-player>
|
|
@@ -38,7 +38,7 @@ Hand the player a composition in one of two ways.
|
|
|
38
38
|
document.querySelector("smoove-player").composition = comp;
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
**Point `src` at a module
|
|
41
|
+
**Point `src` at a module.** Like `<video src>`, the player `import()`s
|
|
42
42
|
the URL and resolves its default export (a `Composition`, or a sync/async
|
|
43
43
|
factory returning one):
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smoove/player",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Lit web components that play a smoove Composition like an HTML5 <video>.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"konva": ">=10",
|
|
36
|
-
"@smoove/core": "^0.1.
|
|
36
|
+
"@smoove/core": "^0.1.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"konva": "^10.3.0",
|
|
40
40
|
"vite": "^8.0.0",
|
|
41
41
|
"vite-plugin-dts": "^5.0.2",
|
|
42
|
-
"@smoove/core": "0.1.
|
|
42
|
+
"@smoove/core": "0.1.2"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|