@byomakase/omakase-player 1.1.1 → 1.1.2-SNAPSHOT.1784790840

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.
@@ -1609,7 +1609,7 @@ declare abstract class BaseMessageChannelProxy<T extends MessageChannelType> imp
1609
1609
  destroy(): void;
1610
1610
  }
1611
1611
 
1612
- export declare abstract class BaseMultiTrackLane<C extends MultiTrackLaneConfig, S extends TimelineLaneStyle, T extends Track, TC extends MultiTrackLaneTrackConfig> extends BaseTimelineLane<C, S> implements MultiTrackTimelineLane<C, S, T, TC> {
1612
+ export declare abstract class BaseMultiTrackLane<C extends MultiTrackLaneConfig, S extends MultiTrackLaneStyle, T extends Track, TC extends MultiTrackLaneTrackConfig> extends BaseTimelineLane<C, S> implements MultiTrackTimelineLane<C, S, T, TC> {
1613
1613
  protected _trackRepository?: TrackRepository;
1614
1614
  protected _tracks: T[];
1615
1615
  protected _tracksMap: Map<T['id'], T>;
@@ -4462,7 +4462,7 @@ export declare interface MarkerTrackLaneMarkerEventData {
4462
4462
  itemInForeground: MarkerState | undefined;
4463
4463
  }
4464
4464
 
4465
- export declare interface MarkerTrackLaneStyle extends TimelineLaneStyle, MarkerOnMarkerTrackLaneStyle {
4465
+ export declare interface MarkerTrackLaneStyle extends MultiTrackLaneStyle, MarkerOnMarkerTrackLaneStyle {
4466
4466
  }
4467
4467
 
4468
4468
  export declare interface MarkerTrackLaneTrackConfig extends MultiTrackLaneTrackConfig {
@@ -4976,6 +4976,11 @@ declare interface Mp4PlayerPlaybackEngine extends PlayerPlaybackEngine {
4976
4976
  export declare interface MultiTrackLaneConfig extends TimelineLaneConfig {
4977
4977
  }
4978
4978
 
4979
+ export declare interface MultiTrackLaneStyle extends TimelineLaneStyle {
4980
+ paddingTop: number;
4981
+ paddingBottom: number;
4982
+ }
4983
+
4979
4984
  export declare interface MultiTrackLaneTrackConfig {
4980
4985
  /** Zero-based index at which to insert the track into the lane's track list. When omitted, the track is appended at the end. */
4981
4986
  trackOrderIndex?: number | undefined;
@@ -5131,7 +5136,7 @@ export declare interface ObservationTrackLaneObservationEventData {
5131
5136
  item: ObservationState;
5132
5137
  }
5133
5138
 
5134
- export declare interface ObservationTrackLaneStyle extends TimelineLaneStyle {
5139
+ export declare interface ObservationTrackLaneStyle extends MultiTrackLaneStyle {
5135
5140
  }
5136
5141
 
5137
5142
  /** Per-track configuration for lanes that render observation data (bar charts, line charts, etc.). */
@@ -20623,7 +20623,9 @@ var _ne = ".d-none{display:none!important}.d-block{display:block}.shadow{filter:
20623
20623
  }, NT = {
20624
20624
  ...kT,
20625
20625
  ...MT,
20626
- height: 190
20626
+ height: 190,
20627
+ paddingTop: 0,
20628
+ paddingBottom: 0
20627
20629
  }, PT = {
20628
20630
  ...kT,
20629
20631
  thumbnailHeight: 40,
@@ -20647,7 +20649,9 @@ var _ne = ".d-none{display:none!important}.d-block{display:block}.shadow{filter:
20647
20649
  textAreaStretch: !0
20648
20650
  }, LT = {
20649
20651
  ...kT,
20650
- height: 120
20652
+ height: 120,
20653
+ paddingTop: 0,
20654
+ paddingBottom: 0
20651
20655
  }, RT, zT = l((() => {
20652
20656
  RT = globalThis || self;
20653
20657
  }));
@@ -76075,16 +76079,19 @@ var H0 = {
76075
76079
  if (!this._timeline) throw Error("Marker not attached to timeline");
76076
76080
  let e = this._timeline.getTimecodedFloatingDimension(), t = this._markerTrackLane.getTimecodedRect();
76077
76081
  switch (this._style.markerRenderType) {
76078
- case "default": return {
76079
- area: {
76080
- y: t.y,
76081
- height: t.height
76082
- },
76083
- handle: {
76084
- y: t.height / 2,
76085
- height: 0
76086
- }
76087
- };
76082
+ case "default": {
76083
+ let e = this._markerTrackLane.style.paddingTop, n = this._markerTrackLane.style.paddingBottom, r = t.height - e - n;
76084
+ return {
76085
+ area: {
76086
+ y: t.y + e,
76087
+ height: r
76088
+ },
76089
+ handle: {
76090
+ y: r / 2,
76091
+ height: 0
76092
+ }
76093
+ };
76094
+ }
76088
76095
  case "spanning-over-all-lanes": return {
76089
76096
  area: {
76090
76097
  y: 0,
@@ -76621,25 +76628,25 @@ var H0 = {
76621
76628
  this._loadingAnimation?.start(), this._loadingGroup?.show();
76622
76629
  }
76623
76630
  createLoadingGroupContent(e, t) {
76624
- let n = this.style.paddingTop ?? 0, r = this.style.paddingBottom ?? 0, i = n, a = t - n - r;
76631
+ let n = this.style.paddingTop, r = t - this.style.paddingTop - this.style.paddingBottom;
76625
76632
  if (this.style.loadingAnimationType === "gradient") return $j({
76626
76633
  group: this._loadingGroup,
76627
76634
  width: e,
76628
- height: a,
76629
- y: i,
76635
+ height: r,
76636
+ y: n,
76630
76637
  fill: this.style.loadingAnimationFill ?? "#ffffff",
76631
76638
  ...this.style.loadingAnimationSpeed !== void 0 && { period: this.style.loadingAnimationSpeed }
76632
76639
  });
76633
- let o = uj.createRect({
76640
+ let i = uj.createRect({
76634
76641
  x: 0,
76635
- y: i,
76642
+ y: n,
76636
76643
  width: e,
76637
- height: a,
76644
+ height: r,
76638
76645
  fill: this.style.loadingAnimationFill,
76639
76646
  listening: !1
76640
76647
  });
76641
- return this._loadingGroup.add(o), Qj({
76642
- node: o,
76648
+ return this._loadingGroup.add(i), Qj({
76649
+ node: i,
76643
76650
  ...this.style.loadingAnimationSpeed !== void 0 && { period: this.style.loadingAnimationSpeed }
76644
76651
  });
76645
76652
  }
@@ -78589,7 +78596,7 @@ var H0 = {
78589
78596
  }
78590
78597
  redrawBars(e, t) {
78591
78598
  this._group.destroyChildren();
78592
- let n = this._group.height(), r = this._style.paddingTop ?? 0, i = this._style.paddingBottom ?? 0, a = n - r - i, o = r, s = n - i, c = this._config.scale.max - this._config.scale.min, l = (e) => r + (this._config.scale.max - e) / c * a, u = (e) => Math.max(r, Math.min(r + a, e)), d = u(l(this._config.scaleBaseline)), f = u(l(Number(this._observationItem.value))), p = Math.min(d, f), m = Math.abs(d - f), h = Math.max(Q2, e), g = this._config.viewWidth > 0 ? h / this._config.viewWidth : 1, _ = this._config.style?.paddingX, v = (Array.isArray(_) ? _[0] : _ ?? 0) * g, y = (Array.isArray(_) ? _[1] : _ ?? 0) * g, b = Math.max(0, h - v - y), x = f < d;
78599
+ let n = this._group.height(), r = this._timelineLane.style.paddingTop + (this._style.paddingTop ?? 0), i = this._timelineLane.style.paddingBottom + (this._style.paddingBottom ?? 0), a = n - r - i, o = r, s = n - i, c = this._config.scale.max - this._config.scale.min, l = (e) => r + (this._config.scale.max - e) / c * a, u = (e) => Math.max(r, Math.min(r + a, e)), d = u(l(this._config.scaleBaseline)), f = u(l(Number(this._observationItem.value))), p = Math.min(d, f), m = Math.abs(d - f), h = Math.max(Q2, e), g = this._config.viewWidth > 0 ? h / this._config.viewWidth : 1, _ = this._config.style?.paddingX, v = (Array.isArray(_) ? _[0] : _ ?? 0) * g, y = (Array.isArray(_) ? _[1] : _ ?? 0) * g, b = Math.max(0, h - v - y), x = f < d;
78593
78600
  for (let e = 0; e < this._config.barCount; e++) {
78594
78601
  let n = e * (h + t) + v;
78595
78602
  this._config.style?.barType === "og" ? this.drawOgBar(n, p, b, m, v, y, x, f, d, o, s) : this.drawDefaultBar(n, p, b, m, x, f, d, o, s);
@@ -78807,7 +78814,7 @@ var H0 = {
78807
78814
  computeBaselineY() {
78808
78815
  let e = this._config?.scale;
78809
78816
  if (!e) return;
78810
- let t = this._config?.scaleBaseline ?? s4.scaleBaseline, n = this._timelineLane.style.height, r = this._config?.style?.paddingTop ?? 0, i = this._config?.style?.paddingBottom ?? 0, a = n - r - i, o = e.max - e.min, s = (e) => Math.max(r, Math.min(r + a, e));
78817
+ let t = this._config?.scaleBaseline ?? s4.scaleBaseline, n = this._timelineLane.style.height, r = this._timelineLane.style.paddingTop + (this._config?.style?.paddingTop ?? 0), i = this._timelineLane.style.paddingBottom + (this._config?.style?.paddingBottom ?? 0), a = n - r - i, o = e.max - e.min, s = (e) => Math.max(r, Math.min(r + a, e));
78811
78818
  return this._baselineY = s(r + (e.max - t) / o * a), this._baselineY;
78812
78819
  }
78813
78820
  updateBaseline(e) {
@@ -78918,12 +78925,12 @@ var H0 = {
78918
78925
  scaleBaseline: f,
78919
78926
  startTime: t,
78920
78927
  style: p,
78921
- ...this._config?.style?.paddingTop === void 0 ? {} : { paddingTop: this._config.style.paddingTop },
78922
- ...this._config?.style?.paddingBottom === void 0 ? {} : { paddingBottom: this._config.style.paddingBottom }
78928
+ paddingTop: this._timelineLane.style.paddingTop + (this._config?.style?.paddingTop ?? 0),
78929
+ paddingBottom: this._timelineLane.style.paddingBottom + (this._config?.style?.paddingBottom ?? 0)
78923
78930
  }).computePosition();
78924
78931
  m.push(n.x, n.y);
78925
78932
  }), m.length >= 4) {
78926
- let e = this._timelineLane.style.height, t = this._config?.style?.paddingTop ?? 0, n = e - (this._config?.style?.paddingBottom ?? 0), r = m[0], i = m[m.length - 2], a = p?.fillBelow, o = p?.fillBelowLinearGradientColorStops;
78933
+ let e = this._timelineLane.style.height, t = this._timelineLane.style.paddingTop + (this._config?.style?.paddingTop ?? 0), n = e - this._timelineLane.style.paddingBottom - (this._config?.style?.paddingBottom ?? 0), r = m[0], i = m[m.length - 2], a = p?.fillBelow, o = p?.fillBelowLinearGradientColorStops;
78927
78934
  (a || o) && (this._fillBelowShape = uj.createLine({
78928
78935
  points: [
78929
78936
  ...m,
@@ -79002,7 +79009,7 @@ var H0 = {
79002
79009
  let a = e.updatePosition();
79003
79010
  i.push(a.x, a.y), e.setPointVisible(a.x >= t - r && a.x <= n + r);
79004
79011
  }), this._polyline?.points(i), i.length >= 4) {
79005
- let e = this._timelineLane.style.height, t = this._config?.style?.paddingTop ?? 0, n = e - (this._config?.style?.paddingBottom ?? 0), r = i[0], a = i[i.length - 2];
79012
+ let e = this._timelineLane.style.height, t = this._timelineLane.style.paddingTop + (this._config?.style?.paddingTop ?? 0), n = e - this._timelineLane.style.paddingBottom - (this._config?.style?.paddingBottom ?? 0), r = i[0], a = i[i.length - 2];
79006
79013
  this._fillBelowShape?.points([
79007
79014
  ...i,
79008
79015
  a,