@record-evolution/widget-gauge 1.7.20 → 1.7.22

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.20",
6
+ "version": "1.7.22",
7
7
  "type": "module",
8
8
  "main": "dist/widget-gauge.js",
9
9
  "types": "dist/src/widget-gauge.d.ts",
@@ -1,18 +1,5 @@
1
1
  {
2
2
  "dataseries": [
3
- {
4
- "label": "Temperature",
5
- "unit": "°C",
6
- "precision": 1,
7
- "value": 83,
8
- "sections": {
9
- "sectionLimits": [],
10
- "backgroundColors": []
11
- },
12
- "advanced": {
13
- "averageLatest": 1
14
- }
15
- },
16
3
  {
17
4
  "label": "Temperature",
18
5
  "unit": "°C",
@@ -413,7 +413,7 @@ export class WidgetGauge extends LitElement {
413
413
  const titleElement = this.canvasList.get(ds.label)?.title
414
414
  if (titleElement) {
415
415
  titleElement.style.fontSize = String(36 * modifier) + 'px'
416
- titleElement.style.maxWidth = String(300 * modifier) + 'px'
416
+ titleElement.style.maxWidth = String(550 * modifier) + 'px'
417
417
  titleElement.style.height = String(this.textContainerHeight * modifier) + 'px'
418
418
  titleElement.textContent = ds.label ?? ''
419
419
  }
@@ -510,11 +510,14 @@ export class WidgetGauge extends LitElement {
510
510
  }
511
511
  h3 {
512
512
  margin: 0;
513
- max-width: 300px;
514
513
  overflow: hidden;
515
514
  text-overflow: ellipsis;
516
515
  white-space: nowrap;
517
- line-height: 1;
516
+ line-height: 0.8;
517
+ }
518
+
519
+ .title {
520
+ line-height: 1.5;
518
521
  }
519
522
  p {
520
523
  margin: 10px 0 0 0;
@@ -544,7 +547,7 @@ export class WidgetGauge extends LitElement {
544
547
  style="background-color: ${this.themeBgColor}; color: ${this.themeTitleColor}"
545
548
  >
546
549
  <header class="paging" ?active=${this.inputData?.title || this.inputData?.subTitle}>
547
- <h3 class="paging" ?active=${this.inputData?.title}>${this.inputData?.title}</h3>
550
+ <h3 class="paging title" ?active=${this.inputData?.title}>${this.inputData?.title}</h3>
548
551
  <p
549
552
  class="paging"
550
553
  ?active=${this.inputData?.subTitle}