@mindfusion/gauges 2.1.1 → 2.2.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/gauges.d.ts CHANGED
@@ -1799,9 +1799,11 @@ declare module "Gauges/BaseGauge" {
1799
1799
  * Creates an instance of BaseGauge.
1800
1800
  * @constructor
1801
1801
  * @param {Object} element The Div DOM element this gauge is associated with.
1802
+ * @param {Boolean} [ignoreMouseEvents] Optional.
1803
+ * @param {Type} [componentType] The type of the component.
1802
1804
  * @class Represents the base class of linear and oval gauges.
1803
1805
  */
1804
- constructor(element: any, ignoreMouseEvents: any);
1806
+ constructor(element: any, ignoreMouseEvents?: boolean, componentType?: any);
1805
1807
  stopRepaint: boolean;
1806
1808
  set licenseLocation(arg: string);
1807
1809
  /**
@@ -1816,13 +1818,13 @@ declare module "Gauges/BaseGauge" {
1816
1818
  */
1817
1819
  _scales: Array<BaseScale>;
1818
1820
  _size: Size;
1819
- bounds: Rect;
1820
1821
  repaintDelegate: () => void;
1821
- ignoreMouseEvents: any;
1822
+ bounds: Rect;
1822
1823
  set width(arg: any);
1823
1824
  get width(): any;
1824
1825
  set height(arg: any);
1825
1826
  get height(): any;
1827
+ ignoreMouseEvents: boolean;
1826
1828
  postDataField: HTMLElement;
1827
1829
  mouseUpDelegate: (e: any) => void;
1828
1830
  onPrepaintBackgroundDelegate: (sender: any, args: any) => void;
@@ -1948,12 +1950,12 @@ declare module "Gauges/LinearGauge" {
1948
1950
  /**
1949
1951
  * Creates and initializes a new LinearGauge from the specified element.
1950
1952
  * 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.
1953
+ * @param {HTMLCanvasElement} element The DOM element that the LinearGauge should be attached to.
1952
1954
  * @param {Boolean} [ignoreMouseEvents] Optional.
1953
1955
  * @returns {LinearGauge} A LinearGauge object that represents
1954
1956
  * the newly created gauge.
1955
1957
  */
1956
- static create(element: any, ignoreMouseEvents?: boolean): LinearGauge;
1958
+ static create(element: HTMLCanvasElement, ignoreMouseEvents?: boolean): LinearGauge;
1957
1959
  /**
1958
1960
  * Returns the specified LinearGauge object. This member is static and can be
1959
1961
  * invoked without creating an instance of the class.
@@ -1962,6 +1964,12 @@ declare module "Gauges/LinearGauge" {
1962
1964
  * the gauge requested by id, if found; otherwise, null.
1963
1965
  */
1964
1966
  static find(id: string): LinearGauge;
1967
+ /**
1968
+ * Creates an instance of LinearGauge.
1969
+ * @constructor
1970
+ * @param {Object} element The Div DOM Element this LinearGauge is associated with.
1971
+ */
1972
+ constructor(element: any, ignoreMouseEvents: any);
1965
1973
  type: string;
1966
1974
  shortOffset: number;
1967
1975
  longOffset: number;
@@ -1987,6 +1995,7 @@ declare module "Gauges/LinearGauge" {
1987
1995
  * @private
1988
1996
  */
1989
1997
  private get top();
1998
+ connectedCallback(): void;
1990
1999
  }
1991
2000
  import { BaseGauge } from "Gauges/BaseGauge";
1992
2001
  import { Thickness } from "@mindfusion/drawing";
@@ -1999,12 +2008,12 @@ declare module "Gauges/OvalGauge" {
1999
2008
  /**
2000
2009
  * Creates and initializes a new OvalGauge from the specified element.
2001
2010
  * 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.
2011
+ * @param {HTMLCanvasElement} element The DOM element that the OvalGauge should be attached to.
2003
2012
  * @param {Boolean} [ignoreMouseEvents] Optional.
2004
2013
  * @returns {OvalGauge} A OvalGauge object that represents
2005
2014
  * the newly created gauge.
2006
2015
  */
2007
- static create(element: any, ignoreMouseEvents?: boolean): OvalGauge;
2016
+ static create(element: HTMLCanvasElement, ignoreMouseEvents?: boolean): OvalGauge;
2008
2017
  /**
2009
2018
  * Returns the specified OvalGauge object. This member is static and can be
2010
2019
  * invoked without creating an instance of the class.
@@ -2013,6 +2022,12 @@ declare module "Gauges/OvalGauge" {
2013
2022
  * the gauge requested by id, if found; otherwise, null.
2014
2023
  */
2015
2024
  static find(id: string): OvalGauge;
2025
+ /**
2026
+ * Creates an instance of OvalGauge.
2027
+ * @constructor
2028
+ * @param {Object} element The Div DOM Element this OvalGauge is associated with.
2029
+ */
2030
+ constructor(element: any, ignoreMouseEvents: any);
2016
2031
  set style(arg: number);
2017
2032
  /**
2018
2033
  * Gets or sets the visual style of the gauge.
@@ -2027,11 +2042,23 @@ declare module "Gauges/OvalGauge" {
2027
2042
  margin(): Thickness;
2028
2043
  getOrientationMargin(): Thickness;
2029
2044
  _style: number;
2045
+ connectedCallback(): void;
2030
2046
  }
2031
2047
  import { BaseGauge } from "Gauges/BaseGauge";
2032
2048
  import { Point } from "@mindfusion/drawing";
2033
2049
  import { Thickness } from "@mindfusion/drawing";
2034
2050
  }
2051
+ declare module "Gauges/WebComponents" {
2052
+ /**
2053
+ * @class Contains web components-related functions.
2054
+ */
2055
+ export class WebComponents {
2056
+ /**
2057
+ * @class Registers the controls in the package as web components.
2058
+ */
2059
+ static register(): void;
2060
+ }
2061
+ }
2035
2062
  declare module "@mindfusion/gauges" {
2036
2063
  export { ArcArea } from "Gauges/ArcArea";
2037
2064
  export { BaseGauge } from "Gauges/BaseGauge";
@@ -2057,4 +2084,5 @@ declare module "@mindfusion/gauges" {
2057
2084
  export { TickLabel } from "Gauges/TickLabel";
2058
2085
  export { TickSettings } from "Gauges/TickSettings";
2059
2086
  export { Utils } from "Gauges/Utils";
2087
+ export { WebComponents } from "Gauges/WebComponents";
2060
2088
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "email": "info@mindfusion.eu",
5
5
  "url": "https://mindfusion.eu"
6
6
  },
7
- "version": "2.1.1",
7
+ "version": "2.2.0",
8
8
  "description": "Gauges library",
9
9
  "keywords": [
10
10
  "gauges library"
@@ -22,6 +22,6 @@
22
22
  "license": "SEE LICENSE IN LICENSE.txt",
23
23
  "types": "gauges.d.ts",
24
24
  "dependencies": {
25
- "@mindfusion/controls": "^4.0.0"
25
+ "@mindfusion/controls": "^4.1.0"
26
26
  }
27
27
  }