@mindfusion/gauges 2.1.2 → 2.2.1

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/gauges.d.ts CHANGED
@@ -202,7 +202,6 @@ declare module "Gauges/Utils" {
202
202
  static getBrush(context: any, brush: any, bounds: any, isPen: any): any;
203
203
  }
204
204
  export namespace Utils {
205
- const tm: number[];
206
205
  const tm10: number[];
207
206
  const tm11: number[];
208
207
  }
@@ -464,11 +463,30 @@ declare module "Gauges/VisualElement" {
464
463
  */
465
464
  private set strokeThickness(arg);
466
465
  _strokeThickness: any;
466
+ /**
467
+ * Raised when the shape has changed.
468
+ * @event shapeChanged
469
+ * @type {EventDispatcher}
470
+ * @property {ShapeDesigner} sender
471
+ * @property {EventArgs} args
472
+ */
473
+ get prepaint(): EventDispatcher;
474
+ _prepaint: EventDispatcher;
475
+ /**
476
+ * Raised when the shape has changed.
477
+ * @event shapeChanged
478
+ * @type {EventDispatcher}
479
+ * @property {ShapeDesigner} sender
480
+ * @property {EventArgs} args
481
+ */
482
+ get paint(): EventDispatcher;
483
+ _paint: EventDispatcher;
467
484
  }
468
485
  import { Thickness } from "@mindfusion/drawing";
469
486
  import { Point } from "@mindfusion/drawing";
470
487
  import { Rect } from "@mindfusion/drawing";
471
488
  import { Size } from "@mindfusion/drawing";
489
+ import { EventDispatcher } from "@mindfusion/controls";
472
490
  }
473
491
  declare module "Gauges/VisualElementContainer" {
474
492
  /**
@@ -862,9 +880,28 @@ declare module "Gauges/Pointer" {
862
880
  _isDiscrete: boolean;
863
881
  _shape: number;
864
882
  customshape: string;
883
+ /**
884
+ * Raised when the shape has changed.
885
+ * @event shapeChanged
886
+ * @type {EventDispatcher}
887
+ * @property {ShapeDesigner} sender
888
+ * @property {EventArgs} args
889
+ */
890
+ get valueChanging(): EventDispatcher;
891
+ _valueChanging: EventDispatcher;
892
+ /**
893
+ * Raised when the shape has changed.
894
+ * @event shapeChanged
895
+ * @type {EventDispatcher}
896
+ * @property {ShapeDesigner} sender
897
+ * @property {EventArgs} args
898
+ */
899
+ get valueChanged(): EventDispatcher;
900
+ _valueChanged: EventDispatcher;
865
901
  }
866
902
  import { VisualElementContainer } from "Gauges/LoadOrder";
867
903
  import { Length } from "Gauges/Length";
904
+ import { EventDispatcher } from "@mindfusion/controls";
868
905
  }
869
906
  declare module "Gauges/CustomInterval" {
870
907
  /**
@@ -1795,34 +1832,32 @@ declare module "Gauges/BaseGauge" {
1795
1832
  * @class Represents the base class of linear and oval gauges.
1796
1833
  */
1797
1834
  export class BaseGauge extends Control {
1835
+ static get tm(): number[];
1836
+ static get ns(): string;
1837
+ static get pk(): string;
1798
1838
  /**
1799
1839
  * Creates an instance of BaseGauge.
1800
1840
  * @constructor
1801
1841
  * @param {Object} element The Div DOM element this gauge is associated with.
1842
+ * @param {Boolean} [ignoreMouseEvents] Optional.
1843
+ * @param {Type} [componentType] The type of the component.
1802
1844
  * @class Represents the base class of linear and oval gauges.
1803
1845
  */
1804
- constructor(element: any, ignoreMouseEvents: any);
1846
+ constructor(element: any, ignoreMouseEvents?: boolean, componentType?: any);
1805
1847
  stopRepaint: boolean;
1806
- set licenseLocation(arg: string);
1807
- /**
1808
- * Gets or sets the URL of the gauge's license file.
1809
- * @type {String}
1810
- * @summary A valid URL string that specifies the location of the license key.
1811
- */
1812
- get licenseLocation(): string;
1813
1848
  /**
1814
1849
  * A list of scale objects.
1815
1850
  * @type {Array<BaseScale>}
1816
1851
  */
1817
1852
  _scales: Array<BaseScale>;
1818
1853
  _size: Size;
1819
- bounds: Rect;
1820
1854
  repaintDelegate: () => void;
1821
- ignoreMouseEvents: any;
1855
+ bounds: Rect;
1822
1856
  set width(arg: any);
1823
1857
  get width(): any;
1824
1858
  set height(arg: any);
1825
1859
  get height(): any;
1860
+ ignoreMouseEvents: boolean;
1826
1861
  postDataField: HTMLElement;
1827
1862
  mouseUpDelegate: (e: any) => void;
1828
1863
  onPrepaintBackgroundDelegate: (sender: any, args: any) => void;
@@ -1899,17 +1934,103 @@ declare module "Gauges/BaseGauge" {
1899
1934
  _width: any;
1900
1935
  _height: any;
1901
1936
  _autoPostBack: boolean;
1902
- set licenseKey(arg: any);
1903
- _licenseLocation: any;
1904
- }
1905
- export namespace BaseGauge {
1906
- const ns: string;
1937
+ /**
1938
+ * Raised when the shape has changed.
1939
+ * @event shapeChanged
1940
+ * @type {EventDispatcher}
1941
+ * @property {ShapeDesigner} sender
1942
+ * @property {EventArgs} args
1943
+ */
1944
+ get prepaintBackground(): EventDispatcher;
1945
+ _prepaintBackground: EventDispatcher;
1946
+ /**
1947
+ * Raised when the shape has changed.
1948
+ * @event shapeChanged
1949
+ * @type {EventDispatcher}
1950
+ * @property {ShapeDesigner} sender
1951
+ * @property {EventArgs} args
1952
+ */
1953
+ get prepaintForeground(): EventDispatcher;
1954
+ _prepaintForeground: EventDispatcher;
1955
+ /**
1956
+ * Raised when the shape has changed.
1957
+ * @event shapeChanged
1958
+ * @type {EventDispatcher}
1959
+ * @property {ShapeDesigner} sender
1960
+ * @property {EventArgs} args
1961
+ */
1962
+ get prepaintScale(): EventDispatcher;
1963
+ _prepaintScale: EventDispatcher;
1964
+ /**
1965
+ * Raised when the shape has changed.
1966
+ * @event shapeChanged
1967
+ * @type {EventDispatcher}
1968
+ * @property {ShapeDesigner} sender
1969
+ * @property {EventArgs} args
1970
+ */
1971
+ get prepaintTick(): EventDispatcher;
1972
+ _prepaintTick: EventDispatcher;
1973
+ /**
1974
+ * Raised when the shape has changed.
1975
+ * @event shapeChanged
1976
+ * @type {EventDispatcher}
1977
+ * @property {ShapeDesigner} sender
1978
+ * @property {EventArgs} args
1979
+ */
1980
+ get prepaintPointer(): EventDispatcher;
1981
+ _prepaintPointer: EventDispatcher;
1982
+ /**
1983
+ * Raised when the shape has changed.
1984
+ * @event shapeChanged
1985
+ * @type {EventDispatcher}
1986
+ * @property {ShapeDesigner} sender
1987
+ * @property {EventArgs} args
1988
+ */
1989
+ get paintBackground(): EventDispatcher;
1990
+ _paintBackground: EventDispatcher;
1991
+ /**
1992
+ * Raised when the shape has changed.
1993
+ * @event shapeChanged
1994
+ * @type {EventDispatcher}
1995
+ * @property {ShapeDesigner} sender
1996
+ * @property {EventArgs} args
1997
+ */
1998
+ get paintForeground(): EventDispatcher;
1999
+ _paintForeground: EventDispatcher;
2000
+ /**
2001
+ * Raised when the shape has changed.
2002
+ * @event shapeChanged
2003
+ * @type {EventDispatcher}
2004
+ * @property {ShapeDesigner} sender
2005
+ * @property {EventArgs} args
2006
+ */
2007
+ get paintScale(): EventDispatcher;
2008
+ _paintScale: EventDispatcher;
2009
+ /**
2010
+ * Raised when the shape has changed.
2011
+ * @event shapeChanged
2012
+ * @type {EventDispatcher}
2013
+ * @property {ShapeDesigner} sender
2014
+ * @property {EventArgs} args
2015
+ */
2016
+ get paintTick(): EventDispatcher;
2017
+ _paintTick: EventDispatcher;
2018
+ /**
2019
+ * Raised when the shape has changed.
2020
+ * @event shapeChanged
2021
+ * @type {EventDispatcher}
2022
+ * @property {ShapeDesigner} sender
2023
+ * @property {EventArgs} args
2024
+ */
2025
+ get paintPointer(): EventDispatcher;
2026
+ _paintPointer: EventDispatcher;
1907
2027
  }
1908
2028
  import { Control } from "@mindfusion/controls";
1909
2029
  import { BaseScale } from "Gauges/LoadOrder";
1910
2030
  import { Size } from "@mindfusion/drawing";
1911
2031
  import { Rect } from "@mindfusion/drawing";
1912
2032
  import { VisualElementContainer } from "Gauges/LoadOrder";
2033
+ import { EventDispatcher } from "@mindfusion/controls";
1913
2034
  }
1914
2035
  declare module "Gauges/Ellipse" {
1915
2036
  /**
@@ -1948,12 +2069,12 @@ declare module "Gauges/LinearGauge" {
1948
2069
  /**
1949
2070
  * Creates and initializes a new LinearGauge from the specified element.
1950
2071
  * This method is static and can be called without creating an instance of the class.
1951
- * @param {Object} element The DOM element that the LinearGauge should be attached to.
2072
+ * @param {HTMLCanvasElement} element The DOM element that the LinearGauge should be attached to.
1952
2073
  * @param {Boolean} [ignoreMouseEvents] Optional.
1953
2074
  * @returns {LinearGauge} A LinearGauge object that represents
1954
2075
  * the newly created gauge.
1955
2076
  */
1956
- static create(element: any, ignoreMouseEvents?: boolean): LinearGauge;
2077
+ static create(element: HTMLCanvasElement, ignoreMouseEvents?: boolean): LinearGauge;
1957
2078
  /**
1958
2079
  * Returns the specified LinearGauge object. This member is static and can be
1959
2080
  * invoked without creating an instance of the class.
@@ -1962,6 +2083,12 @@ declare module "Gauges/LinearGauge" {
1962
2083
  * the gauge requested by id, if found; otherwise, null.
1963
2084
  */
1964
2085
  static find(id: string): LinearGauge;
2086
+ /**
2087
+ * Creates an instance of LinearGauge.
2088
+ * @constructor
2089
+ * @param {Object} element The Div DOM Element this LinearGauge is associated with.
2090
+ */
2091
+ constructor(element: any, ignoreMouseEvents: any);
1965
2092
  type: string;
1966
2093
  shortOffset: number;
1967
2094
  longOffset: number;
@@ -1987,6 +2114,7 @@ declare module "Gauges/LinearGauge" {
1987
2114
  * @private
1988
2115
  */
1989
2116
  private get top();
2117
+ connectedCallback(): void;
1990
2118
  }
1991
2119
  import { BaseGauge } from "Gauges/BaseGauge";
1992
2120
  import { Thickness } from "@mindfusion/drawing";
@@ -1999,12 +2127,12 @@ declare module "Gauges/OvalGauge" {
1999
2127
  /**
2000
2128
  * Creates and initializes a new OvalGauge from the specified element.
2001
2129
  * This method is static and can be called without creating an instance of the class.
2002
- * @param {Object} element The DOM element that the OvalGauge should be attached to.
2130
+ * @param {HTMLCanvasElement} element The DOM element that the OvalGauge should be attached to.
2003
2131
  * @param {Boolean} [ignoreMouseEvents] Optional.
2004
2132
  * @returns {OvalGauge} A OvalGauge object that represents
2005
2133
  * the newly created gauge.
2006
2134
  */
2007
- static create(element: any, ignoreMouseEvents?: boolean): OvalGauge;
2135
+ static create(element: HTMLCanvasElement, ignoreMouseEvents?: boolean): OvalGauge;
2008
2136
  /**
2009
2137
  * Returns the specified OvalGauge object. This member is static and can be
2010
2138
  * invoked without creating an instance of the class.
@@ -2013,6 +2141,12 @@ declare module "Gauges/OvalGauge" {
2013
2141
  * the gauge requested by id, if found; otherwise, null.
2014
2142
  */
2015
2143
  static find(id: string): OvalGauge;
2144
+ /**
2145
+ * Creates an instance of OvalGauge.
2146
+ * @constructor
2147
+ * @param {Object} element The Div DOM Element this OvalGauge is associated with.
2148
+ */
2149
+ constructor(element: any, ignoreMouseEvents: any);
2016
2150
  set style(arg: number);
2017
2151
  /**
2018
2152
  * Gets or sets the visual style of the gauge.
@@ -2027,11 +2161,23 @@ declare module "Gauges/OvalGauge" {
2027
2161
  margin(): Thickness;
2028
2162
  getOrientationMargin(): Thickness;
2029
2163
  _style: number;
2164
+ connectedCallback(): void;
2030
2165
  }
2031
2166
  import { BaseGauge } from "Gauges/BaseGauge";
2032
2167
  import { Point } from "@mindfusion/drawing";
2033
2168
  import { Thickness } from "@mindfusion/drawing";
2034
2169
  }
2170
+ declare module "Gauges/WebComponents" {
2171
+ /**
2172
+ * @class Implements registration of web components.
2173
+ */
2174
+ export class WebComponents {
2175
+ /**
2176
+ * Registers the controls in the package as web components.
2177
+ */
2178
+ static register(): void;
2179
+ }
2180
+ }
2035
2181
  declare module "@mindfusion/gauges" {
2036
2182
  export { ArcArea } from "Gauges/ArcArea";
2037
2183
  export { BaseGauge } from "Gauges/BaseGauge";
@@ -2057,4 +2203,5 @@ declare module "@mindfusion/gauges" {
2057
2203
  export { TickLabel } from "Gauges/TickLabel";
2058
2204
  export { TickSettings } from "Gauges/TickSettings";
2059
2205
  export { Utils } from "Gauges/Utils";
2206
+ export { WebComponents } from "Gauges/WebComponents";
2060
2207
  }
package/package.json CHANGED
@@ -4,24 +4,37 @@
4
4
  "email": "info@mindfusion.eu",
5
5
  "url": "https://mindfusion.eu"
6
6
  },
7
- "version": "2.1.2",
7
+ "version": "2.2.1",
8
8
  "description": "Gauges library",
9
9
  "keywords": [
10
10
  "gauges library"
11
11
  ],
12
12
  "name": "@mindfusion/gauges",
13
- "main": "./dist/umd/gauges.js",
13
+ "main": "./dist/cjs/gauges.js",
14
+ "module": "./dist/esm/gauges.js",
14
15
  "exports": {
15
16
  ".": {
16
- "import": "./dist/esm/gauges.js",
17
- "require": "./dist/umd/gauges.js",
18
- "node": "./dist/esm/gauges.js",
19
- "default": "./dist/cjs/gauges.js"
17
+ "import": {
18
+ "types": "./gauges.d.mts",
19
+ "default": "./dist/esm/gauges.mjs"
20
+ },
21
+ "require": {
22
+ "types": "./gauges.d.ts",
23
+ "default": "./dist/cjs/gauges.js"
24
+ },
25
+ "node": {
26
+ "types": "./gauges.d.mts",
27
+ "default": "./dist/esm/gauges.mjs"
28
+ },
29
+ "default": {
30
+ "types": "./gauges.d.ts",
31
+ "default": "./dist/cjs/gauges.js"
32
+ }
20
33
  }
21
- },
34
+ },
22
35
  "license": "SEE LICENSE IN LICENSE.txt",
23
36
  "types": "gauges.d.ts",
24
37
  "dependencies": {
25
- "@mindfusion/controls": "^4.0.0"
38
+ "@mindfusion/controls": "^4.4.0"
26
39
  }
27
40
  }