@xibosignage/xibo-layout-renderer 1.0.23 → 1.0.25
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/README.md +49 -0
- package/dist/src/Modules/Generators/Generators.d.ts +3 -2
- package/dist/src/Modules/Generators/index.d.ts +1 -2
- package/dist/src/Modules/Media/VideoMedia.d.ts +1 -2
- package/dist/src/Modules/Region/Region.d.ts +0 -3
- package/dist/src/Types/Layout/Layout.types.d.ts +1 -0
- package/dist/src/Types/XLR/XLR.types.d.ts +1 -0
- package/dist/xibo-layout-renderer.cjs.js +1309 -1492
- package/dist/xibo-layout-renderer.cjs.js.map +1 -1
- package/dist/xibo-layout-renderer.d.ts +14 -6
- package/dist/xibo-layout-renderer.esm.js +1302 -1492
- package/dist/xibo-layout-renderer.esm.js.map +1 -1
- package/dist/xibo-layout-renderer.js +1309 -1492
- package/dist/xibo-layout-renderer.min.js +8 -8
- package/dist/xibo-layout-renderer.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -196,6 +196,7 @@ type IXlrEvents = {
|
|
|
196
196
|
overlayEnd: (overlay: ILayout) => void;
|
|
197
197
|
commandCodeReceived: (commandCode: string) => void;
|
|
198
198
|
commandStringReceived: (commandString: string) => void;
|
|
199
|
+
navLayout: (layoutCode: string, url: string) => void;
|
|
199
200
|
};
|
|
200
201
|
interface IXlrPlayback {
|
|
201
202
|
currentLayout: ILayout | undefined;
|
|
@@ -258,7 +259,6 @@ interface IVideoMediaHandler {
|
|
|
258
259
|
duration: number;
|
|
259
260
|
stop(disposeOnly?: boolean): void;
|
|
260
261
|
}
|
|
261
|
-
declare function videoMediaHandler(media: IMedia, platform: OptionsType['platform']): IVideoMediaHandler;
|
|
262
262
|
declare function VideoMedia(media: IMedia, xlr: IXlr): {
|
|
263
263
|
duration: number;
|
|
264
264
|
init: () => void;
|
|
@@ -455,6 +455,7 @@ type InputLayoutType = {
|
|
|
455
455
|
getXlf?(): string;
|
|
456
456
|
duration?: number;
|
|
457
457
|
isOverlay?: boolean;
|
|
458
|
+
shareOfVoice?: number;
|
|
458
459
|
};
|
|
459
460
|
type OptionsType = {
|
|
460
461
|
xlfUrl: string;
|
|
@@ -570,7 +571,7 @@ declare function videoFileType(str: string): string | undefined;
|
|
|
570
571
|
declare function composeResourceUrlByPlatform(options: OptionsType, params: any): string;
|
|
571
572
|
declare function composeResourceUrl(options: OptionsType, params: any): string;
|
|
572
573
|
declare function composeMediaUrl(params: any): string;
|
|
573
|
-
declare function composeBgUrlByPlatform(platform: OptionsType['platform'], params:
|
|
574
|
+
declare function composeBgUrlByPlatform(platform: OptionsType['platform'], params: ILayout): string;
|
|
574
575
|
type LayoutIndexType = {
|
|
575
576
|
[k: string]: InputLayoutType & {
|
|
576
577
|
index: number;
|
|
@@ -582,6 +583,9 @@ declare function getIndexByLayoutId(layoutsInput: InputLayoutType[], layoutId?:
|
|
|
582
583
|
index: number;
|
|
583
584
|
};
|
|
584
585
|
declare function isEmpty(input: any): boolean;
|
|
586
|
+
declare function getAllAttributes(elem: Element): {
|
|
587
|
+
[k: string]: any;
|
|
588
|
+
};
|
|
585
589
|
/**
|
|
586
590
|
* Create expiration day based on current date
|
|
587
591
|
* @param numDays Number of days as expiry
|
|
@@ -596,8 +600,15 @@ declare function setExpiry(numDays: number): string;
|
|
|
596
600
|
* @return boolean
|
|
597
601
|
*/
|
|
598
602
|
declare function isLayoutValid(layouts: InputLayoutType[], layoutId: number | undefined): boolean;
|
|
603
|
+
declare function getLayoutIndexByLayoutId(layouts: InputLayoutType[], layoutId: number): number | null;
|
|
599
604
|
declare function hasDefaultOnly(inputLayouts: InputLayoutType[]): boolean;
|
|
605
|
+
declare function hasSspLayout(inputLayouts: InputLayoutType[], defaultValue?: boolean): boolean;
|
|
600
606
|
declare function createMediaElement(mediaObject: IMedia): HTMLElement;
|
|
607
|
+
declare function prepareVideoMedia(media: IMedia, region: IRegion): void;
|
|
608
|
+
declare function prepareImageMedia(media: IMedia, region: IRegion): void;
|
|
609
|
+
declare function prepareAudioMedia(media: IMedia, region: IRegion): void;
|
|
610
|
+
declare function prepareHtmlMedia(media: IMedia, region: IRegion): void;
|
|
611
|
+
declare function playerReportFault(msg: string, media: IMedia): Promise<void>;
|
|
601
612
|
|
|
602
613
|
declare class Region implements IRegion {
|
|
603
614
|
layout: ILayout;
|
|
@@ -638,9 +649,6 @@ declare class Region implements IRegion {
|
|
|
638
649
|
prepareNextMedia(): void;
|
|
639
650
|
prepareMediaObjects(): void;
|
|
640
651
|
finished(): void;
|
|
641
|
-
private prepareVideo;
|
|
642
|
-
private prepareImage;
|
|
643
|
-
private prepareIframe;
|
|
644
652
|
run(): void;
|
|
645
653
|
transitionNodes(oldMedia: IMedia | undefined, newMedia: IMedia | undefined): void;
|
|
646
654
|
playNextMedia(): void;
|
|
@@ -753,4 +761,4 @@ type flyTransitionParams = {
|
|
|
753
761
|
};
|
|
754
762
|
declare const flyTransitionKeyframes: (params: flyTransitionParams) => KeyframeOptionsType;
|
|
755
763
|
|
|
756
|
-
export { Action, ActionsWrapper, AudioMedia, ConsumerPlatform, ELayoutState, ELayoutType, type EventEmitter, type EventUnsubscriber, type GetLayoutParamType, type GetLayoutType, type ILayout, type ILayoutEvents, type IMedia, type IMediaEvents, type IRegion, type IRegionEvents, type ISplashScreen, type IVideoMediaHandler, type IXlr, type IXlrEvents, type IXlrPlayback, type InactOptions, type InputLayoutType, type KeyframeOptionsType, LayoutPlaybackType, Media, MediaState, type MediaTypes, type OptionsType, type PrepareLayoutsType, type PreviewSplashElement, Region, type TransitionElementOptions, type TransitionNameType, VideoMedia, audioFileType, capitalizeStr, type compassPoints, composeBgUrlByPlatform, composeMediaUrl, composeResourceUrl, composeResourceUrlByPlatform, composeVideoSource, createMediaElement, XiboLayoutRenderer as default, defaultTrans, defaultVjsOpts, fadeInElem, fadeOutElem, fetchJSON, fetchText, flyInElem, flyOutElem, flyTransitionKeyframes, type flyTransitionParams, getDataBlob, getFileExt, getIndexByLayoutId, getLayout, getMediaId, getXlf, hasDefaultOnly, initRenderingDOM, initialLayout, initialMedia, initialRegion, initialXlr, isEmpty, isLayoutValid, nextId, preloadMediaBlob, setExpiry, transitionElement, videoFileType,
|
|
764
|
+
export { Action, ActionsWrapper, AudioMedia, ConsumerPlatform, ELayoutState, ELayoutType, type EventEmitter, type EventUnsubscriber, type GetLayoutParamType, type GetLayoutType, type ILayout, type ILayoutEvents, type IMedia, type IMediaEvents, type IRegion, type IRegionEvents, type ISplashScreen, type IVideoMediaHandler, type IXlr, type IXlrEvents, type IXlrPlayback, type InactOptions, type InputLayoutType, type KeyframeOptionsType, LayoutPlaybackType, Media, MediaState, type MediaTypes, type OptionsType, type PrepareLayoutsType, type PreviewSplashElement, Region, type TransitionElementOptions, type TransitionNameType, VideoMedia, audioFileType, capitalizeStr, type compassPoints, composeBgUrlByPlatform, composeMediaUrl, composeResourceUrl, composeResourceUrlByPlatform, composeVideoSource, createMediaElement, XiboLayoutRenderer as default, defaultTrans, defaultVjsOpts, fadeInElem, fadeOutElem, fetchJSON, fetchText, flyInElem, flyOutElem, flyTransitionKeyframes, type flyTransitionParams, getAllAttributes, getDataBlob, getFileExt, getIndexByLayoutId, getLayout, getLayoutIndexByLayoutId, getMediaId, getXlf, hasDefaultOnly, hasSspLayout, initRenderingDOM, initialLayout, initialMedia, initialRegion, initialXlr, isEmpty, isLayoutValid, nextId, playerReportFault, preloadMediaBlob, prepareAudioMedia, prepareHtmlMedia, prepareImageMedia, prepareVideoMedia, setExpiry, transitionElement, videoFileType, vjsDefaultOptions };
|