Added minimal functionality for Robot teaching
- Added minimal HMI - Added possibility to open and close all chamber doors
This commit is contained in:
@@ -0,0 +1,314 @@
|
||||
import { TcHmiControl } from 'Beckhoff.TwinCAT.HMI.Framework/index.esm.js';
|
||||
declare class TcHmiVideo extends TcHmiControl.Control {
|
||||
#private;
|
||||
constructor(element: JQuery, pcElement: JQuery, attrs: TcHmi.Controls.ControlAttributeList);
|
||||
/** Reference to the root dom element of the current control template as jquery object. */
|
||||
protected __elementTemplateRoot: JQuery;
|
||||
/** Reference to the dom element in current control template which handles the border style as jquery object. */
|
||||
protected __elementBorder: JQuery;
|
||||
/** Reference to the dom element in current control template which handles the focus style as jquery object. */
|
||||
protected __elementFocusBorder: JQuery;
|
||||
/** Reference to the underlying default html text video element as default html element object. */
|
||||
protected __elemVideo: HTMLVideoElement;
|
||||
/**
|
||||
* Internal reference to the attribute "tchmi-src-list"
|
||||
*/
|
||||
protected __srcList: VideoSource[] | null | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-controls" */
|
||||
protected __controls: boolean | undefined | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-volume". Value between 0 and 1. */
|
||||
protected __volume: number | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-autoplay". */
|
||||
protected __autoplay: boolean | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-muted". */
|
||||
protected __mute: boolean | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-loop". */
|
||||
protected __loop: boolean | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-poster". */
|
||||
protected __poster: string | null | undefined;
|
||||
/** Internal reference to the attribute "data-tchmi-playbackrate". */
|
||||
protected __playbackrate: number | undefined;
|
||||
/** Returns the current duration of the video. */
|
||||
protected __duration: number;
|
||||
/** Returns the current duration of the video. */
|
||||
protected __currentTime: number;
|
||||
__runtimeWidthNeededForHeight: boolean;
|
||||
__runtimeHeightNeededForWidth: boolean;
|
||||
protected __onResizedEventDestroyEvent: TcHmi.DestroyFunction | null;
|
||||
protected __asyncWorkData: IControlSpecificData;
|
||||
/**
|
||||
* If raised, the control object exists in control cache and constructor of each inheritation level was called.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__previnit(): void;
|
||||
/**
|
||||
* If raised, all attributes have been set to it's default or dom values.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__init(): void;
|
||||
/**
|
||||
* Is called by the system after the control instance gets part of the current DOM.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__attach(): void;
|
||||
/**
|
||||
* Is called by the system after the control instance is no longer part of the current DOM.
|
||||
* This function is only to be used by the System. Other function calls are not intended.
|
||||
*/
|
||||
__detach(): void;
|
||||
/**
|
||||
* Destroy the current control instance.
|
||||
* Will be called automatically if system destroys control!
|
||||
*/
|
||||
destroy(): void;
|
||||
protected __onResized(event: TcHmi.EventProvider.Event, ctrl: TcHmi.Controls.System.TcHmiControl): void;
|
||||
protected __doAsyncWork(timestamp?: number): void;
|
||||
/**
|
||||
* Processes the current width and width unit.
|
||||
*/
|
||||
__processWidth(): void;
|
||||
/**
|
||||
* Processes the current height and height unit.
|
||||
*/
|
||||
__processHeight(): void;
|
||||
/**
|
||||
* Sets the value of the width mode attribute.
|
||||
* @param valueNew The new width mode value..
|
||||
*/
|
||||
setWidthMode(valueNew: TcHmi.SizeModeWithContent | null): void;
|
||||
/**
|
||||
* Sets the value of the height mode attribute.
|
||||
* @param valueNew The new height mode value..
|
||||
*/
|
||||
setHeightMode(valueNew: TcHmi.SizeModeWithContent | null): void;
|
||||
__getContentWidth(): null | number;
|
||||
__getContentHeight(): null | number;
|
||||
/**
|
||||
* Loads Video and Poster if access is now possible
|
||||
*/
|
||||
__processAccessConfig(): void;
|
||||
/**
|
||||
* Loads Video and Poster if access is now possible
|
||||
*/
|
||||
__processIsEnabled(): void;
|
||||
/**
|
||||
* Is raised if the browser have loaded the video data.
|
||||
*/
|
||||
__onLoadedData(_event: Event): void;
|
||||
/**
|
||||
* Is raised if the browser had an error while loading the video data.
|
||||
* Handles the video and all source elements!
|
||||
*/
|
||||
protected __onError(event: ErrorEvent): void;
|
||||
/**
|
||||
* Is raised if the volume of video is change.
|
||||
*/
|
||||
__onVolumeChange(_event: Event): void;
|
||||
/**
|
||||
* Is raised if the duration of video is change.
|
||||
*/
|
||||
__onDurationChange(_event: Event): void;
|
||||
/**
|
||||
* Is raised if the video ended playing.
|
||||
*/
|
||||
__onEnded(event: Event): void;
|
||||
/**
|
||||
* Is raised if the video started or paused playing.
|
||||
*/
|
||||
__onPlayingChange(_event: Event): void;
|
||||
/**
|
||||
* Is raised if the speed of video is change.
|
||||
*/
|
||||
__onRateChange(_event: Event): void;
|
||||
/**
|
||||
* Is raised if the time of video is updated.
|
||||
*/
|
||||
__onTimeUpdate(_event: Event): void;
|
||||
/**
|
||||
* Returns a {number} value in seconds which says whether the video is long.
|
||||
*/
|
||||
getDuration(): number;
|
||||
/**
|
||||
* Returns a {boolean} value which says whether the video is ended or not.
|
||||
*/
|
||||
getIsEnded(): boolean;
|
||||
/**
|
||||
* Returns a {boolean} value which says whether the video is playing or not.
|
||||
*/
|
||||
getIsPlaying(): boolean;
|
||||
/**
|
||||
* Sets the srcList attribute to a new value.
|
||||
* @param valueNew The new value for the src attribute;
|
||||
*/
|
||||
setSrcList(valueNew: VideoSource[] | null): void;
|
||||
/**
|
||||
* The watch callback for the srcList object resolver.
|
||||
*/
|
||||
protected __onResolverForSrcListWatchCallback(data: TcHmi.Symbol.ObjectResolver.IWatchResultObject<VideoSource[]>): void;
|
||||
/**
|
||||
* @returns The current value of the src attribute.
|
||||
*/
|
||||
getSrcList(): VideoSource[] | null | undefined;
|
||||
/**
|
||||
* Processes the current value of attribute src.
|
||||
*/
|
||||
protected __processSrcList(): void;
|
||||
/**
|
||||
* Starts the video.
|
||||
*/
|
||||
play(): void;
|
||||
/**
|
||||
* Paused the video.
|
||||
*/
|
||||
pause(): void;
|
||||
/**
|
||||
* Stops the video (paused video and reset the currentTime).
|
||||
*/
|
||||
stop(): void;
|
||||
/**
|
||||
* Skip backward (at the new value).
|
||||
*/
|
||||
skipBackward(valueNew: number): void;
|
||||
/**
|
||||
* Skip forward (with the new value).
|
||||
*/
|
||||
skipForward(valueNew: number): void;
|
||||
/**
|
||||
* Set the current time position to video in seconds.
|
||||
*/
|
||||
setCurrentTime(valueNew: number | null): void;
|
||||
/**
|
||||
* Returns a (Number) value in seconds which describes the current position in the video.
|
||||
* @returns The current attribute value in seconds.
|
||||
*/
|
||||
getCurrentTime(): number;
|
||||
/**
|
||||
* Processes the current time
|
||||
*/
|
||||
protected __processCurrentTime(): void;
|
||||
/**
|
||||
* Sets the controls value and calls the associated process function (processControls).
|
||||
* @param valueNew The new controls value.
|
||||
*/
|
||||
setControls(valueNew: boolean | null): void;
|
||||
/**
|
||||
* Returns the current controls value.
|
||||
*/
|
||||
getControls(): boolean | undefined;
|
||||
/**
|
||||
* Processes the current controls attribute.
|
||||
*/
|
||||
protected __processControls(): void;
|
||||
/**
|
||||
* Sets the volume value and calls the associated process function (processVolume).
|
||||
* @param valueNew The new volume value between 0 and 1.
|
||||
*/
|
||||
setVolume(valueNew: number | null): void;
|
||||
/**
|
||||
* Returns the current volume value.
|
||||
*/
|
||||
getVolume(): number | undefined;
|
||||
/**
|
||||
* Processes the current volume attribute.
|
||||
*/
|
||||
protected __processVolume(): void;
|
||||
/**
|
||||
* Sets the autoplay value and calls the associated process function (processAutoplay).
|
||||
* @param valueNew The new autoplay value.
|
||||
*/
|
||||
setAutoplay(valueNew: boolean | null): void;
|
||||
/**
|
||||
* Returns the current autoplay value.
|
||||
* @returns The current attribute autoplay value.
|
||||
*/
|
||||
getAutoplay(): boolean | undefined;
|
||||
/**
|
||||
* Processes the current autoplay attribute.
|
||||
*/
|
||||
protected __processAutoplay(): void;
|
||||
/**
|
||||
* Sets the mute value and calls the associated process function (processMute).
|
||||
* @param valueNew The new mute value.
|
||||
*/
|
||||
setMute(valueNew: boolean | null): void;
|
||||
/**
|
||||
* Returns the current mute value.
|
||||
*/
|
||||
getMute(): boolean | undefined;
|
||||
/**
|
||||
* Processes the current mute attribute.
|
||||
*/
|
||||
protected __processMute(): void;
|
||||
/**
|
||||
* Sets the loop value and calls the associated process function (processLoop).
|
||||
* @param valueNew The new loop value.
|
||||
*/
|
||||
setLoop(valueNew: boolean | null): void;
|
||||
/**
|
||||
* Returns the current loop value.
|
||||
*/
|
||||
getLoop(): boolean | undefined;
|
||||
/**
|
||||
* Processes the current loop attribute.
|
||||
*/
|
||||
protected __processLoop(): void;
|
||||
/**
|
||||
* Sets the poster value and calls the associated process function (processPoster).
|
||||
* @param valueNew The new poster value.
|
||||
*/
|
||||
setPoster(valueNew: string | null): void;
|
||||
/**
|
||||
* Returns the current poster value.
|
||||
* @returns The current attribute poster value.
|
||||
*/
|
||||
getPoster(): string | null | undefined;
|
||||
/**
|
||||
* Processes the current poster attribute.
|
||||
*/
|
||||
protected __processPoster(): void;
|
||||
/**
|
||||
* Sets the playbackrate value and calls the associated process function (processPlaybackrate).
|
||||
* @param valueNew The new playbackrate value.
|
||||
*/
|
||||
setPlaybackrate(valueNew: number | null): void;
|
||||
/**
|
||||
* Returns the current playbackrate value.
|
||||
* @returns The current attribute playbackrate value.
|
||||
*/
|
||||
getPlaybackrate(): number | undefined;
|
||||
/**
|
||||
* Processes the current playbackrate attribute.
|
||||
*/
|
||||
protected __processPlaybackrate(): void;
|
||||
/**
|
||||
* @returns The original width of the video.
|
||||
*/
|
||||
getOriginalWidth(): number;
|
||||
/**
|
||||
* @returns The original height of the video.
|
||||
*/
|
||||
getOriginalHeight(): number;
|
||||
}
|
||||
export interface VideoSource {
|
||||
source: string;
|
||||
type?: string;
|
||||
}
|
||||
export interface IControlSpecificData extends TcHmiControl.IControlSpecificData {
|
||||
'System.TcHmiVideo.resized': boolean;
|
||||
}
|
||||
export { TcHmiVideo as Control };
|
||||
declare const _TcHmiVideo: typeof TcHmiVideo;
|
||||
type tTcHmiVideo = TcHmiVideo;
|
||||
type tVideoSource = VideoSource;
|
||||
type tIControlSpecificData = IControlSpecificData;
|
||||
declare global {
|
||||
namespace TcHmi.Controls.Beckhoff {
|
||||
const TcHmiVideo: typeof _TcHmiVideo;
|
||||
type TcHmiVideo = tTcHmiVideo;
|
||||
namespace TcHmiVideo {
|
||||
type VideoSource = tVideoSource;
|
||||
type IControlSpecificData = tIControlSpecificData;
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=TcHmiVideo.esm.d.ts.map
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user