@record-evolution/widget-gauge 1.7.9 → 1.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "REWidget widget-gauge",
4
4
  "license": "MIT",
5
5
  "author": "widget-gauge",
6
- "version": "1.7.9",
6
+ "version": "1.7.10",
7
7
  "type": "module",
8
8
  "main": "dist/widget-gauge.js",
9
9
  "types": "dist/src/widget-gauge.d.ts",
@@ -263,7 +263,7 @@ export class WidgetGauge extends LitElement {
263
263
  this.boxes = Array.from(this?.shadowRoot?.querySelectorAll('.chart') as NodeListOf<HTMLDivElement>)
264
264
 
265
265
  this.boxes?.forEach((box) =>
266
- box.setAttribute('style', `width:${modifier * chartW}px; height:${modifier * (chartH - 25)}px`)
266
+ box.setAttribute('style', `width:${modifier * chartW}px; height:${modifier * (chartH - 27)}px`)
267
267
  )
268
268
 
269
269
  this.modifier = modifier
@@ -346,7 +346,7 @@ export class WidgetGauge extends LitElement {
346
346
 
347
347
  ga.data[0].value = ds.needleValue
348
348
  ga.data[0].name = ds.unit
349
- ga.title.fontSize = 25 * modifier
349
+ ga.title.fontSize = 20 * modifier
350
350
  ga.title.color = ds.valueColor ?? this.themeTitleColor
351
351
  ga.detail.color = ds.valueColor ?? this.themeTitleColor
352
352
  ga.detail.fontSize = 40 * modifier
@@ -405,7 +405,7 @@ export class WidgetGauge extends LitElement {
405
405
  if (titleElement) {
406
406
  titleElement.style.fontSize = String(20 * modifier) + 'px'
407
407
  titleElement.style.maxWidth = String(300 * modifier) + 'px'
408
- titleElement.style.height = String(25 * modifier) + 'px'
408
+ titleElement.style.height = String(27 * modifier) + 'px'
409
409
  titleElement.textContent = ds.label ?? ''
410
410
  }
411
411