Files
infineon_plc/Packages/Beckhoff.TwinCAT.HMI.Controls.14.4.1/runtimes/native1.12-tchmi/dist/TcHmiTextblock/TcHmiTextblock.esm.js
m.heisig 2d11c43579 Added minimal functionality for Robot teaching
- Added minimal HMI
- Added possibility to open and close all chamber doors
2026-01-17 09:20:39 +01:00

1 line
22 KiB
JavaScript

var __runInitializers=this&&this.__runInitializers||function(thisArg,initializers,value){for(var useValue=arguments.length>2,i=0;i<initializers.length;i++)value=useValue?initializers[i].call(thisArg,value):initializers[i].call(thisArg);return useValue?value:void 0},__esDecorate=this&&this.__esDecorate||function(ctor,descriptorIn,decorators,contextIn,initializers,extraInitializers){function accept(f){if(void 0!==f&&"function"!=typeof f)throw new TypeError("Function expected");return f}for(var _,kind=contextIn.kind,key="getter"===kind?"get":"setter"===kind?"set":"value",target=!descriptorIn&&ctor?contextIn.static?ctor:ctor.prototype:null,descriptor=descriptorIn||(target?Object.getOwnPropertyDescriptor(target,contextIn.name):{}),done=!1,i=decorators.length-1;i>=0;i--){var context={};for(var p in contextIn)context[p]="access"===p?{}:contextIn[p];for(var p in contextIn.access)context.access[p]=contextIn.access[p];context.addInitializer=function(f){if(done)throw new TypeError("Cannot add initializers after decoration has completed");extraInitializers.push(accept(f||null))};var result=(0,decorators[i])("accessor"===kind?{get:descriptor.get,set:descriptor.set}:descriptor[key],context);if("accessor"===kind){if(void 0===result)continue;if(null===result||"object"!=typeof result)throw new TypeError("Object expected");(_=accept(result.get))&&(descriptor.get=_),(_=accept(result.set))&&(descriptor.set=_),(_=accept(result.init))&&initializers.unshift(_)}else(_=accept(result))&&("field"===kind?initializers.unshift(_):descriptor[key]=_)}target&&Object.defineProperty(target,contextIn.name,descriptor),done=!0};import{TcHmiControl}from"Beckhoff.TwinCAT.HMI.Framework/index.esm.js";export var ScrollMode;!function(ScrollMode){ScrollMode[ScrollMode.Never=0]="Never",ScrollMode[ScrollMode.Always=1]="Always",ScrollMode[ScrollMode.Auto=2]="Auto"}(ScrollMode||(ScrollMode={}));let TcHmiTextblock=(()=>{var _a,_b;let ___onResolverForContentPaddingWatchCallback_decorators,___onResolverForTextColorWatchCallback_decorators,___onScroll_decorators,_classSuper=TcHmiControl.Control,_instanceExtraInitializers=[];return class TcHmiTextblock extends _classSuper{static{const _metadata="function"==typeof Symbol&&Symbol.metadata?Object.create(_classSuper[Symbol.metadata]??null):void 0;___onResolverForContentPaddingWatchCallback_decorators=[(_a=TcHmi).CallbackMethod.bind(_a)],___onResolverForTextColorWatchCallback_decorators=[(_b=TcHmi).CallbackMethod.bind(_b)],___onScroll_decorators=[TcHmi.EventHandler({checkIsEnabled:!0,checkAccess:"operate"})],__esDecorate(this,null,___onResolverForContentPaddingWatchCallback_decorators,{kind:"method",name:"__onResolverForContentPaddingWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForContentPaddingWatchCallback"in obj,get:obj=>obj.__onResolverForContentPaddingWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onResolverForTextColorWatchCallback_decorators,{kind:"method",name:"__onResolverForTextColorWatchCallback",static:!1,private:!1,access:{has:obj=>"__onResolverForTextColorWatchCallback"in obj,get:obj=>obj.__onResolverForTextColorWatchCallback},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,___onScroll_decorators,{kind:"method",name:"__onScroll",static:!1,private:!1,access:{has:obj=>"__onScroll"in obj,get:obj=>obj.__onScroll},metadata:_metadata},null,_instanceExtraInitializers),_metadata&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:_metadata})}static#tchmiFQN="TcHmi.Controls.Beckhoff."+this.name;constructor(element,pcElement,attrs){super(element,pcElement,attrs)}__elementTemplateRoot=__runInitializers(this,_instanceExtraInitializers);__elementTextContainer;__textHorizontalAlignment;__textVerticalAlignment;__textFontSize;__textFontSizeUnit;__textFontFamily;__textFontStyle;__textFontWeight;__textColor;__text;__ignoreEscapeSequences;__wordWrap;__horizontalScroll;__verticalScroll;__horizontalScrollPosition;__verticalScrollPosition;__scrollEventDestroyer=null;__contentPadding;__previnit(){if(this.__elementTemplateRoot=this.__element.find(".TcHmi_Controls_Beckhoff_TcHmiTextblock-template"),0===this.__elementTemplateRoot.length&&(this.__elementTemplateRoot=this.__element.find(".tchmi-textblock-template")),this.__elementTextContainer=this.__elementTemplateRoot.find(".TcHmi_Controls_Beckhoff_TcHmiTextblock-template-text-container"),0===this.__elementTextContainer.length&&(this.__elementTextContainer=this.__elementTemplateRoot.find(".tchmi-textblock-template-text-container")),0===this.__elementTemplateRoot.length||0===this.__elementTextContainer.length)throw new Error("Invalid Template.html");super.__previnit()}__init(){super.__init()}__attach(){super.__attach(),"Content"===this.getHeightMode()&&this.__processHeight(),this.__processHorizontalScrollPosition(),this.__processVerticalScrollPosition()}__detach(){super.__detach()}destroy(){this.__keepAlive||(super.destroy(),this.__scrollEventDestroyer?.(),this.__scrollEventDestroyer=null)}setWidthMode(valueNew){let convertedValue=TcHmi.ValueConverter.toSizeModeWithContent(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("WidthMode")),convertedValue!==this.__widthMode&&(this.__widthMode=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"WidthMode"}),this.__processWidthMode())}__processWidth(){"Content"===this.getWidthMode()&&(this.__element[0].style.width="auto"),super.__processWidth()}__getContentWidth(){if("Content"!==this.getWidthMode())return super.__getContentWidth();if(!this.__isAttached)return null;if(!this.__text)return null;let borderAndPadding=0;return this.__borderWidth&&(borderAndPadding+=this.__borderWidth.left??0,borderAndPadding+=this.__borderWidth.right??0),this.__contentPadding&&(borderAndPadding+="%"===this.__contentPadding.leftUnit?0:this.__contentPadding.left??0,borderAndPadding+="%"===this.__contentPadding.rightUnit?0:this.__contentPadding.right??0),this.__elementTextContainer[0].getBoundingClientRect().width+borderAndPadding}setHeightMode(valueNew){let convertedValue=TcHmi.ValueConverter.toSizeModeWithContent(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("HeightMode")),convertedValue!==this.__heightMode&&(this.__heightMode=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"HeightMode"}),this.__processHeightMode())}__processHeight(){"Content"===this.getHeightMode()&&(this.__intHeight="auto",this.__element[0].style.height="auto"),super.__processHeight()}__getContentHeight(){if("Content"!==this.getHeightMode())return super.__getContentHeight();if(!this.__isAttached)return null;if(!this.__text)return null;let borderAndPadding=0;return this.__borderWidth&&(borderAndPadding+=this.__borderWidth.top??0,borderAndPadding+=this.__borderWidth.bottom??0),this.__contentPadding&&(borderAndPadding+="%"===this.__contentPadding.topUnit?0:this.__contentPadding.top??0,borderAndPadding+="%"===this.__contentPadding.bottomUnit?0:this.__contentPadding.bottom??0),this.__elementTextContainer[0].getBoundingClientRect().height+borderAndPadding}setText(valueNew){let convertedValue=TcHmi.ValueConverter.toString(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("Text")),convertedValue!==this.__text&&(this.__text=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"Text"}),this.__processText())}getText(){return this.__text}__processText(){let text=this.__text??"";this.__ignoreEscapeSequences||(text=tchmi_decode_control_characters(text)),this.__elementTextContainer[0].textContent=text,"Content"===this.getWidthMode()&&this.__processWidth(),"Content"===this.getHeightMode()&&this.__processHeight()}setIgnoreEscapeSequences(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("IgnoreEscapeSequences")),convertedValue!==this.__ignoreEscapeSequences&&(this.__ignoreEscapeSequences=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"IgnoreEscapeSequences"}),this.__processText())}getIgnoreEscapeSequences(){return this.__ignoreEscapeSequences}setTextHorizontalAlignment(valueNew){let convertedValue=TcHmi.ValueConverter.toHorizontalAlignment(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextHorizontalAlignment")),convertedValue!==this.__textHorizontalAlignment&&(this.__textHorizontalAlignment=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextHorizontalAlignment"}),this.__processTextHorizontalAlignment())}getTextHorizontalAlignment(){return this.__textHorizontalAlignment}__processTextHorizontalAlignment(){switch(this.__textHorizontalAlignment){case"Center":this.__elementTextContainer[0].style.justifySelf="center",this.__elementTextContainer[0].style.textAlign="center",this.__elementTemplateRoot[0].style.justifyContent=this.__wordWrap||this.__horizontalScroll===ScrollMode.Always||this.__horizontalScroll===ScrollMode.Auto?"":"center";break;case"Right":this.__elementTextContainer[0].style.justifySelf="end",this.__elementTextContainer[0].style.textAlign="right",this.__elementTemplateRoot[0].style.justifyContent=this.__wordWrap||this.__horizontalScroll===ScrollMode.Always||this.__horizontalScroll===ScrollMode.Auto?"":"end";break;case"Left":this.__elementTextContainer[0].style.justifySelf="start",this.__elementTextContainer[0].style.textAlign="left",this.__elementTemplateRoot[0].style.justifyContent="";break;default:this.__elementTextContainer[0].style.justifySelf="",this.__elementTextContainer[0].style.textAlign="",this.__elementTemplateRoot[0].style.justifyContent=""}}setTextVerticalAlignment(valueNew){let convertedValue=TcHmi.ValueConverter.toVerticalAlignment(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextVerticalAlignment")),convertedValue!==this.__textVerticalAlignment&&(this.__textVerticalAlignment=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextVerticalAlignment"}),this.__processTextVerticalAlignment())}getTextVerticalAlignment(){return this.__textVerticalAlignment}__processTextVerticalAlignment(){switch(this.__textVerticalAlignment){case"Center":this.__elementTextContainer[0].style.alignSelf="center",this.__elementTemplateRoot[0].style.alignContent=this.__verticalScroll!==ScrollMode.Always&&this.__verticalScroll!==ScrollMode.Auto?"center":"";break;case"Bottom":this.__elementTextContainer[0].style.alignSelf="end",this.__elementTemplateRoot[0].style.alignContent=this.__verticalScroll!==ScrollMode.Always&&this.__verticalScroll!==ScrollMode.Auto?"end":"";break;case"Top":this.__elementTextContainer[0].style.alignSelf="start",this.__elementTemplateRoot[0].style.alignContent="";break;default:this.__elementTemplateRoot[0].style.alignContent="",this.__elementTextContainer[0].style.alignSelf=""}}setTextFontSize(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextFontSize")),convertedValue!==this.__textFontSize&&(this.__textFontSize=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextFontSize"}),this.__processTextFontSize())}getTextFontSize(){return this.__textFontSize}__processTextFontSize(){this.__textFontSize?this.__elementTemplateRoot[0].style.fontSize=this.__textFontSize+(this.__textFontSizeUnit??"px"):this.__elementTemplateRoot[0].style.fontSize="","Content"===this.getWidthMode()&&this.__processWidth(),"Content"===this.getHeightMode()&&this.__processHeight()}setTextFontSizeUnit(valueNew){let convertedValue=TcHmi.ValueConverter.toFontSizeUnit(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextFontSizeUnit")),convertedValue!==this.__textFontSizeUnit&&(this.__textFontSizeUnit=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextFontSizeUnit"}),this.__processTextFontSizeUnit())}getTextFontSizeUnit(){return this.__textFontSizeUnit}__processTextFontSizeUnit(){this.__processTextFontSize()}setTextFontFamily(valueNew){let convertedValue=TcHmi.ValueConverter.toFontFamily(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextFontFamily")),convertedValue!==this.__textFontFamily&&(this.__textFontFamily=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextFontFamily"}),this.__processTextFontFamily())}getTextFontFamily(){return this.__textFontFamily}__processTextFontFamily(){this.__elementTemplateRoot[0].style.fontFamily=this.__textFontFamily??"","Content"===this.getWidthMode()&&this.__processWidth(),"Content"===this.getHeightMode()&&this.__processHeight()}setTextFontStyle(valueNew){let convertedValue=TcHmi.ValueConverter.toFontStyle(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextFontStyle")),convertedValue!==this.__textFontStyle&&(this.__textFontStyle=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextFontStyle"}),this.__processTextFontStyle())}getTextFontStyle(){return this.__textFontStyle}__processTextFontStyle(){TcHmi.StyleProvider.processFontStyle(this.__elementTemplateRoot,this.__textFontStyle),"Content"===this.getWidthMode()&&this.__processWidth(),"Content"===this.getHeightMode()&&this.__processHeight()}setTextFontWeight(valueNew){let convertedValue=TcHmi.ValueConverter.toFontWeight(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextFontWeight")),convertedValue!==this.__textFontWeight&&(this.__textFontWeight=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextFontWeight"}),this.__processTextFontWeight())}getTextFontWeight(){return this.__textFontWeight}__processTextFontWeight(){TcHmi.StyleProvider.processFontWeight(this.__elementTemplateRoot,this.__textFontWeight),"Content"===this.getWidthMode()&&this.__processWidth(),"Content"===this.getHeightMode()&&this.__processHeight()}setContentPadding(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("ContentPadding"));let resolverInfo=this.__objectResolvers.get("contentPadding");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("ContentPadding")?.type});this.__objectResolvers.set("contentPadding",{resolver,watchCallback:this.__onResolverForContentPaddingWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForContentPaddingWatchCallback)})}__onResolverForContentPaddingWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("contentPadding"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__contentPadding)||(this.__contentPadding=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"ContentPadding"}),this.__processContentPadding()):TcHmi.Log.Controls.error(this,TcHmiTextblock.#tchmiFQN,{Attribute:"ContentPadding"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getContentPadding(){return this.__contentPadding}__processContentPadding(){TcHmi.StyleProvider.processContentPadding(this.__elementTemplateRoot,this.__contentPadding),"Content"===this.getWidthMode()&&this.__processWidth(),"Content"===this.getHeightMode()&&this.__processHeight()}setTextColor(valueNew){let convertedValue=TcHmi.ValueConverter.toObject(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("TextColor"));let resolverInfo=this.__objectResolvers.get("textColor");resolverInfo&&(resolverInfo.watchDestroyer&&resolverInfo.watchDestroyer(),resolverInfo.resolver.destroy());let resolver=new TcHmi.Symbol.ObjectResolver(convertedValue,{parentControl:this,type:this.getAttributeDescription("TextColor")?.type});this.__objectResolvers.set("textColor",{resolver,watchCallback:this.__onResolverForTextColorWatchCallback,watchDestroyer:resolver.watch(this.__onResolverForTextColorWatchCallback)})}__onResolverForTextColorWatchCallback(data){this.__isAttached||this.__suspendObjectResolver("textColor"),data.error===TcHmi.Errors.NONE?tchmi_equal(data.value,this.__textColor)||(this.__textColor=data.value,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"TextColor"}),this.__processTextColor()):TcHmi.Log.Controls.error(this,TcHmiTextblock.#tchmiFQN,{Attribute:"TextColor"},`Resolving symbols from object failed with error: ${TcHmi.Log.buildMessage(data.details)}`)}getTextColor(){return this.__textColor}__processTextColor(){TcHmi.StyleProvider.processTextColor(this.__elementTemplateRoot,this.__textColor)}setWordWrap(valueNew){let convertedValue=TcHmi.ValueConverter.toBoolean(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("WordWrap")),convertedValue!==this.__wordWrap&&(this.__wordWrap=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"WordWrap"}),this.__processWordWrap())}getWordWrap(){return this.__wordWrap}__processWordWrap(){this.__wordWrap?(this.__elementTextContainer[0].style.whiteSpace="pre-wrap",this.__horizontalScroll!==ScrollMode.Always&&this.__horizontalScroll!==ScrollMode.Auto?this.__elementTextContainer[0].style.wordBreak="break-word":this.__elementTextContainer[0].style.wordBreak=""):(this.__elementTextContainer[0].style.wordBreak="",this.__elementTextContainer[0].style.whiteSpace="pre"),this.__processTextHorizontalAlignment(),"Content"===this.getWidthMode()&&this.__processWidth(),"Content"===this.getHeightMode()&&this.__processHeight()}__onScroll(){this.setHorizontalScrollPosition(this.__elementTemplateRoot[0].scrollLeft),this.setVerticalScrollPosition(this.__elementTemplateRoot[0].scrollTop)}setHorizontalScroll(valueNew){let convertedValue=TcHmi.ValueConverter.toEnum(valueNew,ScrollMode)??TcHmi.ValueConverter.toEnum(this.getAttributeDefaultValueInternal("HorizontalScroll"),ScrollMode,ScrollMode.Never);convertedValue!==this.__horizontalScroll&&(this.__horizontalScroll=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"HorizontalScroll"}),this.__processHorizontalScroll())}getHorizontalScroll(){if(void 0!==this.__horizontalScroll)return ScrollMode[this.__horizontalScroll]}__processHorizontalScroll(){switch(this.__horizontalScroll){case ScrollMode.Always:this.__elementTemplateRoot[0].style.overflowX="scroll",this.__elementTemplateRoot[0].style.maxWidth="100%";break;case ScrollMode.Auto:this.__elementTemplateRoot[0].style.overflowX="auto",this.__elementTemplateRoot[0].style.maxWidth="100%";break;default:this.__elementTemplateRoot[0].style.overflowX="hidden",this.__elementTemplateRoot[0].style.maxWidth=""}this.__checkScrollEvent(),this.__processTextHorizontalAlignment()}setVerticalScroll(valueNew){let convertedValue=TcHmi.ValueConverter.toEnum(valueNew,ScrollMode)??TcHmi.ValueConverter.toEnum(this.getAttributeDefaultValueInternal("VerticalScroll"),ScrollMode,ScrollMode.Never);convertedValue!==this.__verticalScroll&&(this.__verticalScroll=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"VerticalScroll"}),this.__processVerticalScroll())}getVerticalScroll(){if(void 0!==this.__verticalScroll)return ScrollMode[this.__verticalScroll]}__processVerticalScroll(){switch(this.__verticalScroll){case ScrollMode.Always:this.__elementTemplateRoot[0].style.overflowY="scroll",this.__elementTemplateRoot[0].style.maxHeight="100%";break;case ScrollMode.Auto:this.__elementTemplateRoot[0].style.overflowY="auto",this.__elementTemplateRoot[0].style.maxHeight="100%";break;default:this.__elementTemplateRoot[0].style.overflowY="hidden",this.__elementTemplateRoot[0].style.maxHeight=""}this.__checkScrollEvent(),this.__processTextVerticalAlignment()}__checkScrollEvent(){[ScrollMode.Never,void 0].includes(this.__verticalScroll)&&[ScrollMode.Never,void 0].includes(this.__horizontalScroll)?(this.__scrollEventDestroyer?.(),this.__scrollEventDestroyer=null):null===this.__scrollEventDestroyer&&(this.__scrollEventDestroyer=TcHmi.EventProvider.registerDomEvent(this.__elementTemplateRoot,"scroll",this.__onScroll,{passive:!0}))}setHorizontalScrollPosition(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("HorizontalScrollPosition")),convertedValue<0&&(convertedValue=0),convertedValue!==this.__horizontalScrollPosition&&(this.__horizontalScrollPosition=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"HorizontalScrollPosition"}),this.__processHorizontalScrollPosition(),this.__processWordWrap())}getHorizontalScrollPosition(){if(void 0!==this.__horizontalScrollPosition)return this.__elementTemplateRoot[0].scrollWidth>this.__elementTemplateRoot[0].clientWidth?this.__horizontalScrollPosition:0}__processHorizontalScrollPosition(){this.__isAttached&&(this.__elementTemplateRoot[0].scrollLeft=this.__horizontalScrollPosition??0,this.__elementTemplateRoot[0].scrollLeft!==this.__horizontalScrollPosition&&this.setHorizontalScrollPosition(this.__elementTemplateRoot[0].scrollLeft))}setVerticalScrollPosition(valueNew){let convertedValue=TcHmi.ValueConverter.toNumber(valueNew);null===convertedValue&&(convertedValue=this.getAttributeDefaultValueInternal("VerticalScrollPosition")),convertedValue<0&&(convertedValue=0),convertedValue!==this.__verticalScrollPosition&&(this.__verticalScrollPosition=convertedValue,TcHmi.EventProvider.raise(this.__id+".onPropertyChanged",{propertyName:"VerticalScrollPosition"}),this.__processVerticalScrollPosition())}getVerticalScrollPosition(){if(void 0!==this.__verticalScrollPosition)return this.__elementTemplateRoot[0].scrollHeight>this.__elementTemplateRoot[0].clientHeight?this.__verticalScrollPosition:0}__processVerticalScrollPosition(){this.__isAttached&&(this.__elementTemplateRoot[0].scrollTop=this.__verticalScrollPosition??0,this.__elementTemplateRoot[0].scrollTop!==this.__verticalScrollPosition&&this.setVerticalScrollPosition(this.__elementTemplateRoot[0].scrollTop))}static ScrollMode=ScrollMode}})();TcHmi.Controls.registerEx("TcHmiTextblock","TcHmi.Controls.Beckhoff",TcHmiTextblock,{injectInGlobalObject:!0});export{TcHmiTextblock as Control};