@editframe/elements 0.14.0-beta.3 → 0.15.0-beta.3

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.
@@ -39,7 +39,7 @@ export class EFTimegroup extends EFTemporal(LitElement) {
39
39
  display: block;
40
40
  width: 100%;
41
41
  height: 100%;
42
- position: relative;
42
+ position: absolute;
43
43
  transform-origin: center center;
44
44
  }
45
45
  `;
@@ -53,7 +53,7 @@ export class EFTimegroup extends EFTemporal(LitElement) {
53
53
  type: String,
54
54
  attribute: "mode",
55
55
  })
56
- mode: "fixed" | "sequence" | "contain" = "sequence";
56
+ mode: "fixed" | "sequence" | "contain" = "contain";
57
57
 
58
58
  @property({
59
59
  type: Number,
@@ -67,7 +67,7 @@ export class EFTimegroup extends EFTemporal(LitElement) {
67
67
 
68
68
  #resizeObserver?: ResizeObserver;
69
69
 
70
- @property({ type: Number })
70
+ @property({ type: Number, attribute: "currenttime" })
71
71
  set currentTime(time: number) {
72
72
  this.#currentTime = Math.max(0, Math.min(time, this.durationMs / 1000));
73
73
  try {
@@ -227,10 +227,9 @@ export class EFTimegroup extends EFTemporal(LitElement) {
227
227
  * in calculations and it was not clear why.
228
228
  */
229
229
  async waitForMediaDurations() {
230
+ const mediaElements = deepGetMediaElements(this);
230
231
  return await Promise.all(
231
- deepGetMediaElements(this).map(
232
- (media) => media.initSegmentsLoader.taskComplete,
233
- ),
232
+ mediaElements.map((m) => m.trackFragmentIndexLoader.taskComplete),
234
233
  );
235
234
  }
236
235
 
@@ -261,7 +260,6 @@ export class EFTimegroup extends EFTemporal(LitElement) {
261
260
  return;
262
261
  }
263
262
  this.style.display = "";
264
-
265
263
  const animations = this.getAnimations({ subtree: true });
266
264
  this.style.setProperty("--ef-duration", `${this.durationMs}ms`);
267
265
  this.style.setProperty(