@byomakase/omakase-player 1.1.1 → 1.1.2-SNAPSHOT.1784793033
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
|
|
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
|
|
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
|
|
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.). */
|
|
@@ -8793,6 +8798,7 @@ export declare class ThumbnailTrackLane extends BaseTrackLane<ThumbnailTrackLane
|
|
|
8793
8798
|
protected _handleTimelineScroll: Subject<void>;
|
|
8794
8799
|
protected _eventsBreaker: ObserverBreaker;
|
|
8795
8800
|
constructor(configAndStyle?: ConfigAndStyle<ThumbnailTrackLaneConfig, ThumbnailTrackLaneStyle>);
|
|
8801
|
+
private get effectiveThumbnailHeight();
|
|
8796
8802
|
protected createStyledElement(): StyledElementWithId<ThumbnailTrackLaneStyle>;
|
|
8797
8803
|
private refreshFirstItemAvailable;
|
|
8798
8804
|
setTrack(track: ThumbnailTrack): void;
|
|
@@ -8845,7 +8851,9 @@ declare type ThumbnailTrackLaneEventTypeDataMap = {
|
|
|
8845
8851
|
};
|
|
8846
8852
|
|
|
8847
8853
|
export declare interface ThumbnailTrackLaneStyle extends TimelineLaneStyle {
|
|
8848
|
-
thumbnailHeight
|
|
8854
|
+
thumbnailHeight?: Size;
|
|
8855
|
+
paddingTop: number;
|
|
8856
|
+
paddingBottom: number;
|
|
8849
8857
|
thumbnailStroke: Color;
|
|
8850
8858
|
thumbnailStrokeWidth: Size;
|
|
8851
8859
|
thumbnailHoverScale: Size;
|
|
@@ -8902,7 +8910,8 @@ declare class ThumbnailWrapper implements Destroyable {
|
|
|
8902
8910
|
private _placeholderImg;
|
|
8903
8911
|
private _placeholderAnimation;
|
|
8904
8912
|
private _style;
|
|
8905
|
-
|
|
8913
|
+
private _thumbnailHeight;
|
|
8914
|
+
constructor(thumbnail: Thumbnail, x: number, placeholderUrl: string, style: ThumbnailTrackLaneStyle, thumbnailHeight: number);
|
|
8906
8915
|
private _stopPlaceholderAnimation;
|
|
8907
8916
|
private loadThumbnailImage;
|
|
8908
8917
|
updateThumbnail(thumbnail: Thumbnail): void;
|
|
@@ -20623,10 +20623,13 @@ 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
|
+
paddingTop: 0,
|
|
20632
|
+
paddingBottom: 0,
|
|
20630
20633
|
thumbnailStroke: "rgba(121,0,255,0.9)",
|
|
20631
20634
|
thumbnailStrokeWidth: 0,
|
|
20632
20635
|
thumbnailHoverScale: 1.5,
|
|
@@ -20647,7 +20650,9 @@ var _ne = ".d-none{display:none!important}.d-block{display:block}.shadow{filter:
|
|
|
20647
20650
|
textAreaStretch: !0
|
|
20648
20651
|
}, LT = {
|
|
20649
20652
|
...kT,
|
|
20650
|
-
height: 120
|
|
20653
|
+
height: 120,
|
|
20654
|
+
paddingTop: 0,
|
|
20655
|
+
paddingBottom: 0
|
|
20651
20656
|
}, RT, zT = l((() => {
|
|
20652
20657
|
RT = globalThis || self;
|
|
20653
20658
|
}));
|
|
@@ -76075,16 +76080,19 @@ var H0 = {
|
|
|
76075
76080
|
if (!this._timeline) throw Error("Marker not attached to timeline");
|
|
76076
76081
|
let e = this._timeline.getTimecodedFloatingDimension(), t = this._markerTrackLane.getTimecodedRect();
|
|
76077
76082
|
switch (this._style.markerRenderType) {
|
|
76078
|
-
case "default":
|
|
76079
|
-
|
|
76080
|
-
|
|
76081
|
-
|
|
76082
|
-
|
|
76083
|
-
|
|
76084
|
-
|
|
76085
|
-
|
|
76086
|
-
|
|
76087
|
-
|
|
76083
|
+
case "default": {
|
|
76084
|
+
let e = this._markerTrackLane.style.paddingTop, n = this._markerTrackLane.style.paddingBottom, r = t.height - e - n;
|
|
76085
|
+
return {
|
|
76086
|
+
area: {
|
|
76087
|
+
y: t.y + e,
|
|
76088
|
+
height: r
|
|
76089
|
+
},
|
|
76090
|
+
handle: {
|
|
76091
|
+
y: r / 2,
|
|
76092
|
+
height: 0
|
|
76093
|
+
}
|
|
76094
|
+
};
|
|
76095
|
+
}
|
|
76088
76096
|
case "spanning-over-all-lanes": return {
|
|
76089
76097
|
area: {
|
|
76090
76098
|
y: 0,
|
|
@@ -76621,25 +76629,25 @@ var H0 = {
|
|
|
76621
76629
|
this._loadingAnimation?.start(), this._loadingGroup?.show();
|
|
76622
76630
|
}
|
|
76623
76631
|
createLoadingGroupContent(e, t) {
|
|
76624
|
-
let n = this.style.paddingTop
|
|
76632
|
+
let n = this.style.paddingTop, r = t - this.style.paddingTop - this.style.paddingBottom;
|
|
76625
76633
|
if (this.style.loadingAnimationType === "gradient") return $j({
|
|
76626
76634
|
group: this._loadingGroup,
|
|
76627
76635
|
width: e,
|
|
76628
|
-
height:
|
|
76629
|
-
y:
|
|
76636
|
+
height: r,
|
|
76637
|
+
y: n,
|
|
76630
76638
|
fill: this.style.loadingAnimationFill ?? "#ffffff",
|
|
76631
76639
|
...this.style.loadingAnimationSpeed !== void 0 && { period: this.style.loadingAnimationSpeed }
|
|
76632
76640
|
});
|
|
76633
|
-
let
|
|
76641
|
+
let i = uj.createRect({
|
|
76634
76642
|
x: 0,
|
|
76635
|
-
y:
|
|
76643
|
+
y: n,
|
|
76636
76644
|
width: e,
|
|
76637
|
-
height:
|
|
76645
|
+
height: r,
|
|
76638
76646
|
fill: this.style.loadingAnimationFill,
|
|
76639
76647
|
listening: !1
|
|
76640
76648
|
});
|
|
76641
|
-
return this._loadingGroup.add(
|
|
76642
|
-
node:
|
|
76649
|
+
return this._loadingGroup.add(i), Qj({
|
|
76650
|
+
node: i,
|
|
76643
76651
|
...this.style.loadingAnimationSpeed !== void 0 && { period: this.style.loadingAnimationSpeed }
|
|
76644
76652
|
});
|
|
76645
76653
|
}
|
|
@@ -76974,8 +76982,9 @@ var H0 = {
|
|
|
76974
76982
|
_placeholderImg;
|
|
76975
76983
|
_placeholderAnimation;
|
|
76976
76984
|
_style;
|
|
76977
|
-
|
|
76978
|
-
|
|
76985
|
+
_thumbnailHeight;
|
|
76986
|
+
constructor(e, t, n, r, i) {
|
|
76987
|
+
this._thumbnail = e, this._style = r, this._thumbnailHeight = i, this._placeholderImg = new xM({
|
|
76979
76988
|
listening: !1,
|
|
76980
76989
|
style: {
|
|
76981
76990
|
x: t,
|
|
@@ -76984,7 +76993,7 @@ var H0 = {
|
|
|
76984
76993
|
stroke: r.thumbnailStroke,
|
|
76985
76994
|
strokeWidth: 0
|
|
76986
76995
|
}
|
|
76987
|
-
}), this._placeholderImg.loadImage(fj.createKonvaImageSizedByHeight(n,
|
|
76996
|
+
}), this._placeholderImg.loadImage(fj.createKonvaImageSizedByHeight(n, i)).subscribe((e) => {
|
|
76988
76997
|
this._placeholderAnimation = Qj({ node: e });
|
|
76989
76998
|
}), this._thumbnailTrackImg = new SM({
|
|
76990
76999
|
listening: !0,
|
|
@@ -77001,7 +77010,7 @@ var H0 = {
|
|
|
77001
77010
|
this._placeholderAnimation?.stop(), this._placeholderAnimation = void 0;
|
|
77002
77011
|
}
|
|
77003
77012
|
loadThumbnailImage() {
|
|
77004
|
-
let e = fj.createKonvaImageSizedByHeight(this._thumbnail.url, this.
|
|
77013
|
+
let e = fj.createKonvaImageSizedByHeight(this._thumbnail.url, this._thumbnailHeight, ol.authentication);
|
|
77005
77014
|
this._thumbnailTrackImg.loadImage(e).subscribe({
|
|
77006
77015
|
next: () => {
|
|
77007
77016
|
this._stopPlaceholderAnimation(), this.updateVisible(!0), this._placeholderImg.destroy();
|
|
@@ -77088,6 +77097,10 @@ var H0 = {
|
|
|
77088
77097
|
this._canRender = e && t && n, e && t && (this.trySetOnTrackDeleted(), this.tryUpdateDescription()), this._canRender && this.render();
|
|
77089
77098
|
});
|
|
77090
77099
|
}
|
|
77100
|
+
get effectiveThumbnailHeight() {
|
|
77101
|
+
let e = this.style.height - this.style.paddingTop - this.style.paddingBottom;
|
|
77102
|
+
return this.style.thumbnailHeight ?? e;
|
|
77103
|
+
}
|
|
77091
77104
|
createStyledElement() {
|
|
77092
77105
|
return {
|
|
77093
77106
|
id: this._id,
|
|
@@ -77117,7 +77130,7 @@ var H0 = {
|
|
|
77117
77130
|
}
|
|
77118
77131
|
render() {
|
|
77119
77132
|
if (this.clearContent(), this._canRender) {
|
|
77120
|
-
let e = this._placeholderKonvaImage ? Ct(this._placeholderKonvaImage) : fj.createKonvaImageSizedByHeight(this._placeholderImageUrl, this.
|
|
77133
|
+
let e = this._placeholderKonvaImage ? Ct(this._placeholderKonvaImage) : fj.createKonvaImageSizedByHeight(this._placeholderImageUrl, this.effectiveThumbnailHeight);
|
|
77121
77134
|
Qt([this.resolveThumbnailDimension(), e]).pipe(En(1)).pipe(z(this._destroyBreaker.observer)).subscribe({
|
|
77122
77135
|
next: ([e, t]) => {
|
|
77123
77136
|
this._thumbnailDimension = e, this._placeholderKonvaImage = t, this.createMissingThumbnails();
|
|
@@ -77161,9 +77174,11 @@ var H0 = {
|
|
|
77161
77174
|
prepareForTimeline(e, t, n) {
|
|
77162
77175
|
super.prepareForTimeline(e, t, n), this._placeholderImageUrl = fm.formatBase64Url("image/svg+xml", btoa(this._timeline.style.loadingAnimationTheme === "light" ? C2 : w2));
|
|
77163
77176
|
let r = this.getTimecodedRect();
|
|
77164
|
-
this._timecodedGroup = new ij.Group({ ...r }), this._timecodedEventCatcher = uj.createEventCatcherRect({ ...this._timecodedGroup.getSize() })
|
|
77177
|
+
this._timecodedGroup = new ij.Group({ ...r }), this._timecodedEventCatcher = uj.createEventCatcherRect({ ...this._timecodedGroup.getSize() });
|
|
77178
|
+
let i = this._style.paddingTop, a = this._style.paddingBottom, o = this._style.height - i - a, s = this._style.thumbnailHeight ?? o;
|
|
77179
|
+
this._thumbnailsGroup = new ij.Group({
|
|
77165
77180
|
x: 0,
|
|
77166
|
-
y:
|
|
77181
|
+
y: i + (o - s) / 2,
|
|
77167
77182
|
width: this._timecodedGroup.width(),
|
|
77168
77183
|
height: this._style.height
|
|
77169
77184
|
}), this._timecodedGroup.add(this._timecodedEventCatcher), this._timecodedGroup.add(this._thumbnailsGroup), this._timeline.addToTimecodedFloatingContent(this._timecodedGroup, 1), this._thumbnailHoverWrapper.thumbnailImg = new xM({ style: {
|
|
@@ -77180,11 +77195,11 @@ var H0 = {
|
|
|
77180
77195
|
let t = this._track.timedItemsSorted[0];
|
|
77181
77196
|
if (t) {
|
|
77182
77197
|
let n;
|
|
77183
|
-
n = fj.createKonvaImageSizedByHeight(t.url, this.
|
|
77198
|
+
n = fj.createKonvaImageSizedByHeight(t.url, this.effectiveThumbnailHeight, ol.authentication), n.subscribe({
|
|
77184
77199
|
next: (t) => {
|
|
77185
77200
|
V(e, {
|
|
77186
77201
|
width: t.getSize().width,
|
|
77187
|
-
height: this.
|
|
77202
|
+
height: this.effectiveThumbnailHeight
|
|
77188
77203
|
});
|
|
77189
77204
|
},
|
|
77190
77205
|
error: (n) => {
|
|
@@ -77221,7 +77236,7 @@ var H0 = {
|
|
|
77221
77236
|
let t = zl.extractStartTime(e.temporal) ?? 0, n = this._timeline.timeToTimelinePosition(t), r = this._visibleTimedItems.has(e.id);
|
|
77222
77237
|
if (this._thumbnailWrappers.has(e.id)) this._thumbnailWrappers.get(e.id).updateVisible(r);
|
|
77223
77238
|
else if (r) {
|
|
77224
|
-
let t = new D2(e, n, this._placeholderImageUrl, this.style);
|
|
77239
|
+
let t = new D2(e, n, this._placeholderImageUrl, this.style, this.effectiveThumbnailHeight);
|
|
77225
77240
|
this._thumbnailsGroup.add(t.thumbnailTrackImg.konvaNode), this._thumbnailWrappers.set(e.id, t), this._thumbnailsGroup.add(t.placeholderImg.konvaNode);
|
|
77226
77241
|
let r = t.thumbnailTrackImg;
|
|
77227
77242
|
r.onEvent$.pipe(z(this._eventsBreaker.observer)).subscribe((e) => {
|
|
@@ -78589,7 +78604,7 @@ var H0 = {
|
|
|
78589
78604
|
}
|
|
78590
78605
|
redrawBars(e, t) {
|
|
78591
78606
|
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;
|
|
78607
|
+
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
78608
|
for (let e = 0; e < this._config.barCount; e++) {
|
|
78594
78609
|
let n = e * (h + t) + v;
|
|
78595
78610
|
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 +78822,7 @@ var H0 = {
|
|
|
78807
78822
|
computeBaselineY() {
|
|
78808
78823
|
let e = this._config?.scale;
|
|
78809
78824
|
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));
|
|
78825
|
+
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
78826
|
return this._baselineY = s(r + (e.max - t) / o * a), this._baselineY;
|
|
78812
78827
|
}
|
|
78813
78828
|
updateBaseline(e) {
|
|
@@ -78918,12 +78933,12 @@ var H0 = {
|
|
|
78918
78933
|
scaleBaseline: f,
|
|
78919
78934
|
startTime: t,
|
|
78920
78935
|
style: p,
|
|
78921
|
-
|
|
78922
|
-
|
|
78936
|
+
paddingTop: this._timelineLane.style.paddingTop + (this._config?.style?.paddingTop ?? 0),
|
|
78937
|
+
paddingBottom: this._timelineLane.style.paddingBottom + (this._config?.style?.paddingBottom ?? 0)
|
|
78923
78938
|
}).computePosition();
|
|
78924
78939
|
m.push(n.x, n.y);
|
|
78925
78940
|
}), 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;
|
|
78941
|
+
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
78942
|
(a || o) && (this._fillBelowShape = uj.createLine({
|
|
78928
78943
|
points: [
|
|
78929
78944
|
...m,
|
|
@@ -79002,7 +79017,7 @@ var H0 = {
|
|
|
79002
79017
|
let a = e.updatePosition();
|
|
79003
79018
|
i.push(a.x, a.y), e.setPointVisible(a.x >= t - r && a.x <= n + r);
|
|
79004
79019
|
}), 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];
|
|
79020
|
+
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
79021
|
this._fillBelowShape?.points([
|
|
79007
79022
|
...i,
|
|
79008
79023
|
a,
|