@editframe/elements 0.16.1-beta.0 → 0.16.2-beta.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.
|
@@ -19,6 +19,7 @@ export declare class EFTimegroup extends EFTimegroup_base {
|
|
|
19
19
|
disconnectedCallback(): void;
|
|
20
20
|
get storageKey(): string;
|
|
21
21
|
get intrinsicDurationMs(): number | undefined;
|
|
22
|
+
get hasOwnDuration(): boolean;
|
|
22
23
|
get durationMs(): number;
|
|
23
24
|
/**
|
|
24
25
|
* Wait for all media elements to load their initial segments.
|
|
@@ -128,6 +128,9 @@ let EFTimegroup = class extends EFTemporal(LitElement) {
|
|
|
128
128
|
}
|
|
129
129
|
return void 0;
|
|
130
130
|
}
|
|
131
|
+
get hasOwnDuration() {
|
|
132
|
+
return this.mode === "contain" || this.mode === "sequence" || this.mode === "fixed" && this.hasExplicitDuration;
|
|
133
|
+
}
|
|
131
134
|
get durationMs() {
|
|
132
135
|
switch (this.mode) {
|
|
133
136
|
case "fit": {
|
|
@@ -157,6 +160,9 @@ let EFTimegroup = class extends EFTemporal(LitElement) {
|
|
|
157
160
|
if (child instanceof EFTimegroup && child.mode === "fit") {
|
|
158
161
|
continue;
|
|
159
162
|
}
|
|
163
|
+
if (!child.hasOwnDuration) {
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
160
166
|
maxDuration = Math.max(maxDuration, child.durationMs);
|
|
161
167
|
}
|
|
162
168
|
return maxDuration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@editframe/elements",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.2-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"license": "UNLICENSED",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@bramus/style-observer": "^1.3.0",
|
|
30
|
-
"@editframe/assets": "0.16.
|
|
30
|
+
"@editframe/assets": "0.16.2-beta.0",
|
|
31
31
|
"@lit/context": "^1.1.2",
|
|
32
32
|
"@lit/task": "^1.0.1",
|
|
33
33
|
"d3": "^7.9.0",
|
|
@@ -146,6 +146,14 @@ export class EFTimegroup extends EFTemporal(LitElement) {
|
|
|
146
146
|
return undefined;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
get hasOwnDuration() {
|
|
150
|
+
return (
|
|
151
|
+
this.mode === "contain" ||
|
|
152
|
+
this.mode === "sequence" ||
|
|
153
|
+
(this.mode === "fixed" && this.hasExplicitDuration)
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
149
157
|
get durationMs(): number {
|
|
150
158
|
switch (this.mode) {
|
|
151
159
|
case "fit": {
|
|
@@ -177,6 +185,9 @@ export class EFTimegroup extends EFTemporal(LitElement) {
|
|
|
177
185
|
if (child instanceof EFTimegroup && child.mode === "fit") {
|
|
178
186
|
continue;
|
|
179
187
|
}
|
|
188
|
+
if (!child.hasOwnDuration) {
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
180
191
|
maxDuration = Math.max(maxDuration, child.durationMs);
|
|
181
192
|
}
|
|
182
193
|
return maxDuration;
|