36 lines
1.6 KiB
TypeScript
36 lines
1.6 KiB
TypeScript
// Compatibility file for non-module typescript compiles without adjustments.
|
|
// Use the following line for modern code (needs adjustments to tsconfig.json#configOptions/paths)
|
|
// import { TcHmiControl } from "Beckhoff.TwinCAT.HMI.Framework/index.esm.js";
|
|
// ***************************************************************************
|
|
export declare class TcHmiSevenSegmentElement extends HTMLElement {
|
|
/** The displayed value */
|
|
protected __value: TcHmiSevenSegmentElement.Value | null | undefined;
|
|
/** The svg of a single seven segment element. Each segment can be targeted via CSS */
|
|
private __sevenSegmentSvg;
|
|
/** The svg for a decimal point */
|
|
private __decimalPointSvg;
|
|
private __resizeObserver;
|
|
constructor();
|
|
/** Called when the element is conneted to the DOM */
|
|
connectedCallback(): void;
|
|
/** Called when the element is removed fromt the DOM */
|
|
disconnectedCallback(): void;
|
|
setValue(newValue: TcHmiSevenSegmentElement.Value | null): void;
|
|
protected __processValue(): void;
|
|
protected __updateDimensions(): void;
|
|
protected __updateSVG(): void;
|
|
}
|
|
export declare namespace TcHmiSevenSegmentElement {
|
|
type Value = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | '-' | '.';
|
|
}
|
|
import _TcHmiSevenSegmentElement = TcHmiSevenSegmentElement;
|
|
declare global {
|
|
namespace TcHmi.Controls.Helpers {
|
|
let TcHmiSevenSegmentElement: typeof _TcHmiSevenSegmentElement;
|
|
type TcHmiSevenSegmentElement = _TcHmiSevenSegmentElement;
|
|
namespace TcHmiSevenSegmentElement {
|
|
type Value = _TcHmiSevenSegmentElement.Value;
|
|
}
|
|
}
|
|
}
|