UI: Class/Models optimizations
This commit is contained in:
parent
ed56f041f8
commit
8766902d45
@ -30,6 +30,7 @@ import RadialGauge = CanvasGauges.RadialGauge;
|
||||
|
||||
const analogueCompassSettingsSchemaValue = analogueCompassSettingsSchema;
|
||||
|
||||
// @dynamic
|
||||
export class TbAnalogueCompass extends TbBaseGauge<AnalogueCompassSettings, RadialGaugeOptions> {
|
||||
|
||||
static get settingsSchema(): JsonSettingsSchema {
|
||||
|
||||
@ -32,6 +32,7 @@ const tinycolor = tinycolor_;
|
||||
|
||||
const analogueLinearGaugeSettingsSchemaValue = getAnalogueLinearGaugeSettingsSchema();
|
||||
|
||||
// @dynamic
|
||||
export class TbAnalogueLinearGauge extends TbAnalogueGauge<AnalogueLinearGaugeSettings, LinearGaugeOptions>{
|
||||
|
||||
static get settingsSchema(): JsonSettingsSchema {
|
||||
|
||||
@ -28,6 +28,7 @@ import BaseGauge = CanvasGauges.BaseGauge;
|
||||
|
||||
const analogueRadialGaugeSettingsSchemaValue = getAnalogueRadialGaugeSettingsSchema();
|
||||
|
||||
// @dynamic
|
||||
export class TbAnalogueRadialGauge extends TbAnalogueGauge<AnalogueRadialGaugeSettings, RadialGaugeOptions>{
|
||||
|
||||
static get settingsSchema(): JsonSettingsSchema {
|
||||
|
||||
@ -46,6 +46,7 @@ const tinycolor = tinycolor_;
|
||||
|
||||
const digitalGaugeSettingsSchemaValue = digitalGaugeSettingsSchema;
|
||||
|
||||
// @dynamic
|
||||
export class TbCanvasDigitalGauge {
|
||||
|
||||
static get settingsSchema(): JsonSettingsSchema {
|
||||
|
||||
@ -58,7 +58,7 @@ function loadCssBeautify(): Observable<any> {
|
||||
}
|
||||
}
|
||||
|
||||
export function beautifyJs(source: string, options?: JSBeautifyOptions): Observable<string> {
|
||||
export function beautifyJs(source: string, options?: any): Observable<string> {
|
||||
return loadJsBeautify().pipe(
|
||||
map((mod) => {
|
||||
return mod.js_beautify(source, options);
|
||||
@ -66,13 +66,13 @@ export function beautifyJs(source: string, options?: JSBeautifyOptions): Observa
|
||||
);
|
||||
}
|
||||
|
||||
export function beautifyCss(source: string, options?: CSSBeautifyOptions): Observable<string> {
|
||||
export function beautifyCss(source: string, options?: any): Observable<string> {
|
||||
return loadCssBeautify().pipe(
|
||||
map((mod) => mod.css_beautify(source, options))
|
||||
);
|
||||
}
|
||||
|
||||
export function beautifyHtml(source: string, options?: HTMLBeautifyOptions): Observable<string> {
|
||||
export function beautifyHtml(source: string, options?: any): Observable<string> {
|
||||
return loadHtmlBeautify().pipe(
|
||||
map((mod) => mod.html_beautify(source, options))
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user