@glissade/element 0.17.0 → 0.17.1-pre.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/dist/index.js +4 -1
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -15,6 +15,8 @@ const TEMPLATE = `
|
|
|
15
15
|
var GsPlayerElement = class extends HTMLElement {
|
|
16
16
|
static observedAttributes = [
|
|
17
17
|
"loop",
|
|
18
|
+
"pingpong",
|
|
19
|
+
"yoyo",
|
|
18
20
|
"autoplay",
|
|
19
21
|
"controls"
|
|
20
22
|
];
|
|
@@ -156,8 +158,9 @@ var GsPlayerElement = class extends HTMLElement {
|
|
|
156
158
|
const scene = this.#scene.createScene();
|
|
157
159
|
this.#canvas.width = scene.size.w;
|
|
158
160
|
this.#canvas.height = scene.size.h;
|
|
161
|
+
const loop = this.hasAttribute("pingpong") || this.hasAttribute("yoyo") ? { mode: "alternate" } : this.hasAttribute("loop");
|
|
159
162
|
this.#mounted = mount(scene, this.#scene.timeline, this.#canvas, {
|
|
160
|
-
loop
|
|
163
|
+
loop,
|
|
161
164
|
autoplay: this.hasAttribute("autoplay")
|
|
162
165
|
});
|
|
163
166
|
this.#playhead = scene.playhead;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/element",
|
|
3
|
-
"version": "0.17.0",
|
|
3
|
+
"version": "0.17.1-pre.0",
|
|
4
4
|
"description": "glissade <gs-player> custom element: zero-framework embedding with minimal, CSS-part themable controls.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"engines": {
|
|
@@ -18,10 +18,13 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@glissade/backend-canvas2d": "0.17.0",
|
|
22
|
-
"@glissade/core": "0.17.0",
|
|
23
|
-
"@glissade/player": "0.17.0",
|
|
24
|
-
"@glissade/scene": "0.17.0"
|
|
21
|
+
"@glissade/backend-canvas2d": "0.17.1-pre.0",
|
|
22
|
+
"@glissade/core": "0.17.1-pre.0",
|
|
23
|
+
"@glissade/player": "0.17.1-pre.0",
|
|
24
|
+
"@glissade/scene": "0.17.1-pre.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"jsdom": "^26.0.0"
|
|
25
28
|
},
|
|
26
29
|
"repository": {
|
|
27
30
|
"type": "git",
|