@hpcc-js/chart 3.3.9 → 3.4.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/chart",
3
- "version": "3.3.9",
3
+ "version": "3.4.0",
4
4
  "description": "hpcc-js - Viz Chart",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.cjs",
@@ -37,12 +37,12 @@
37
37
  "update-major": "npx --yes npm-check-updates -u"
38
38
  },
39
39
  "dependencies": {
40
- "@hpcc-js/api": "^3.3.9",
41
- "@hpcc-js/common": "^3.3.9",
42
- "@hpcc-js/util": "^3.3.9"
40
+ "@hpcc-js/api": "^3.3.10",
41
+ "@hpcc-js/common": "^3.4.0",
42
+ "@hpcc-js/util": "^3.3.10"
43
43
  },
44
44
  "devDependencies": {
45
- "@hpcc-js/esbuild-plugins": "^1.4.9",
45
+ "@hpcc-js/esbuild-plugins": "^1.5.0",
46
46
  "@types/d3-shape": "1.3.12",
47
47
  "@types/d3-transition": "1.3.6",
48
48
  "d3-array": "^1",
@@ -76,5 +76,5 @@
76
76
  "url": "https://github.com/hpcc-systems/Visualization/issues"
77
77
  },
78
78
  "homepage": "https://github.com/hpcc-systems/Visualization",
79
- "gitHead": "92489547b0e57f479a691236b1a47e977b43cf2e"
79
+ "gitHead": "e0dd2c2201ba3d9bd92665026ef38e3220065a9c"
80
80
  }
package/src/Gauge.ts CHANGED
@@ -290,7 +290,7 @@ export class Gauge extends SVGWidget {
290
290
  ;
291
291
 
292
292
  this._bottomText
293
- .style("fill", this.click !== Gauge.prototype.click ? "blue" : "black")
293
+ .style("fill", this.click !== Gauge.prototype.click ? this.titleClickColor() : this.titleColor())
294
294
  .style("text-decoration", this.click !== Gauge.prototype.click ? "underline" : null)
295
295
  .text(this.title())
296
296
  ;
@@ -319,6 +319,11 @@ export interface Gauge {
319
319
  title(_: string): this;
320
320
  titleDescription(): string;
321
321
  titleDescription(_: string): this;
322
+ titleColor(): string;
323
+ titleColor(_: string): this;
324
+ titleClickColor(): string;
325
+ titleClickColor(_: string): this;
326
+
322
327
  maxDiameter(): number;
323
328
  maxDiameter(_: number): this;
324
329
  value(): number;
@@ -346,6 +351,9 @@ export interface Gauge {
346
351
 
347
352
  Gauge.prototype.publish("title", "", "string", "Title");
348
353
  Gauge.prototype.publish("titleDescription", "", "string", "Title Description");
354
+ Gauge.prototype.publish("titleColor", "black", "html-color", "Color of the title text");
355
+ Gauge.prototype.publish("titleClickColor", "blue", "html-color", "Color of the title text when clickable");
356
+
349
357
  Gauge.prototype.publish("maxDiameter", 128, "number", "Max Diameter");
350
358
  Gauge.prototype.publish("value", 0, "number", "Value");
351
359
  Gauge.prototype.publish("valueDescription", "", "string", "Value Description");
package/types/Gauge.d.ts CHANGED
@@ -30,6 +30,10 @@ export interface Gauge {
30
30
  title(_: string): this;
31
31
  titleDescription(): string;
32
32
  titleDescription(_: string): this;
33
+ titleColor(): string;
34
+ titleColor(_: string): this;
35
+ titleClickColor(): string;
36
+ titleClickColor(_: string): this;
33
37
  maxDiameter(): number;
34
38
  maxDiameter(_: number): this;
35
39
  value(): number;