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,51 @@
|
||||
import { Control as TcHmiLinearGauge } from '../TcHmiLinearGauge/TcHmiLinearGauge.esm.js';
|
||||
declare class TcHmiThermometer extends TcHmiLinearGauge {
|
||||
#private;
|
||||
/** Internal reference to the attribute 'data-tchmi-filler-color' */
|
||||
protected __bulbColor: TcHmi.SolidColor | null | undefined;
|
||||
protected __resizeObserver: ResizeObserver;
|
||||
private __resizeObserverActive;
|
||||
constructor(element: JQuery, pcElement: JQuery, attrs: TcHmi.Controls.ControlAttributeList);
|
||||
__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(): void;
|
||||
/**
|
||||
* Resizes the bulb.
|
||||
* Will be called automatically by the resize observer.
|
||||
*/
|
||||
protected __resizeBulb(): void;
|
||||
protected __processOrientation(): void;
|
||||
/**
|
||||
* Processes the current value of attribute progressForegroundColor.
|
||||
*/
|
||||
protected __processProgressForegroundColor(): void;
|
||||
}
|
||||
export { TcHmiThermometer as Control };
|
||||
declare const _TcHmiThermometer: typeof TcHmiThermometer;
|
||||
type tTcHmiThermometer = TcHmiThermometer;
|
||||
declare global {
|
||||
namespace TcHmi.Controls.Beckhoff {
|
||||
const TcHmiThermometer: typeof _TcHmiThermometer;
|
||||
type TcHmiThermometer = tTcHmiThermometer;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=TcHmiThermometer.esm.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
import{Control as TcHmiLinearGauge}from"../TcHmiLinearGauge/TcHmiLinearGauge.esm.js";class TcHmiThermometer extends TcHmiLinearGauge{static#tchmiFQN="TcHmi.Controls.Beckhoff."+this.name;__bulbColor;__resizeObserver;__resizeObserverActive=!1;constructor(element,pcElement,attrs){super(element,pcElement,attrs),this.__resizeObserver=new ResizeObserver(evt=>{this.__resizeObserverActive||(this.__resizeObserverActive=!0,requestAnimationFrame(()=>{this.__resizeBulb(),this.__resizeObserverActive=!1}))})}__previnit(){super.__previnit()}__init(){super.__init()}__attach(){super.__attach(),this.__resizeObserver.observe(this.__elementTrack[0])}__detach(){this.__resizeObserver.unobserve(this.__elementTrack[0]),super.__detach()}destroy(){super.destroy()}__onResized(){super.__onResized(),this.__elementTemplateRoot[0].style.padding="";const paddingLeft=parseFloat(window.getComputedStyle(this.__elementTemplateRoot[0]).paddingLeft),paddingRight=parseFloat(window.getComputedStyle(this.__elementTemplateRoot[0]).paddingRight),paddingTop=parseFloat(window.getComputedStyle(this.__elementTemplateRoot[0]).paddingTop),paddingBottom=parseFloat(window.getComputedStyle(this.__elementTemplateRoot[0]).paddingBottom);if("Vertical"===this.__orientation||"VerticalInverted"===this.__orientation){if(this.__elementTrack[0].clientWidth/2>this.__elementTicks[0].clientWidth+this.__elementLabels[0].clientWidth){const test=this.__elementTrack[0].clientWidth/2-(this.__elementTicks[0].clientWidth+this.__elementLabels[0].clientWidth);this.__elementTemplateRoot[0].style.paddingLeft=paddingLeft+test/2+"px",this.__elementTemplateRoot[0].style.paddingRight=paddingRight+test/2+"px"}}else if(this.__elementTrack[0].clientHeight/2>this.__elementTicks[0].clientHeight+this.__elementLabels[0].clientHeight){const test=this.__elementTrack[0].clientHeight/2-(this.__elementTicks[0].clientHeight+this.__elementLabels[0].clientHeight);this.__elementTemplateRoot[0].style.paddingTop=paddingTop+test/2+"px",this.__elementTemplateRoot[0].style.paddingBottom=paddingBottom+test/2+"px"}}__resizeBulb(){const width=this.__elementTrack[0].getBoundingClientRect().width,height=this.__elementTrack[0].getBoundingClientRect().height;let newBulbRadius;newBulbRadius="Vertical"===this.__orientation||"VerticalInverted"===this.__orientation?width:height,this.__element[0].style.setProperty("--bulb-radius",newBulbRadius+"px"),this.__onResized()}__processOrientation(){super.__processOrientation(),this.__elementTemplateRoot.removeClass("horizontal horizontal-inverted vertical vertical-inverted"),"Horizontal"===this.__orientation?this.__elementTemplateRoot.addClass("horizontal"):"HorizontalInverted"===this.__orientation?this.__elementTemplateRoot.addClass("horizontal-inverted"):"Vertical"===this.__orientation?this.__elementTemplateRoot.addClass("vertical"):"VerticalInverted"===this.__orientation&&this.__elementTemplateRoot.addClass("vertical-inverted")}__processProgressForegroundColor(){if(super.__processProgressForegroundColor(),!TcHmi.isSolidColor(this.__progressForegroundColor))return void this.__element[0].style.setProperty("--bulb-color","");const color=TcHmi.StyleProvider.resolveSolidColorAsCssValue(this.__progressForegroundColor);this.__element[0].style.setProperty("--bulb-color",color)}}TcHmi.Controls.registerEx("TcHmiThermometer","TcHmi.Controls.Beckhoff",TcHmiThermometer,{injectInGlobalObject:!0});export{TcHmiThermometer as Control};
|
||||
Reference in New Issue
Block a user