@mindfusion/gauges 2.2.2 → 2.3.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/dist/cjs/gauges.js +1 -1
- package/dist/esm/gauges.js +1 -1
- package/dist/esm/gauges.mjs +1 -1
- package/dist/umd/gauges.js +1 -1
- package/gauges.d.ts +248 -14
- package/package.json +7 -19
- package/gauges.d.mts +0 -2207
package/gauges.d.ts
CHANGED
|
@@ -356,6 +356,13 @@ declare module "Gauges/VisualElement" {
|
|
|
356
356
|
* @summary The stroke of this element.
|
|
357
357
|
*/
|
|
358
358
|
get stroke(): any;
|
|
359
|
+
set strokeThickness(arg: number);
|
|
360
|
+
/**
|
|
361
|
+
* Gets or sets the stroke thickness of this element.
|
|
362
|
+
* @type {Number}
|
|
363
|
+
* @summary The stroke thickness of this element.
|
|
364
|
+
*/
|
|
365
|
+
get strokeThickness(): number;
|
|
359
366
|
offsetX: number;
|
|
360
367
|
offsetY: number;
|
|
361
368
|
eventHandlers: Map<any, any>;
|
|
@@ -458,11 +465,7 @@ declare module "Gauges/VisualElement" {
|
|
|
458
465
|
_renderSize: Size;
|
|
459
466
|
_desiredSize: any;
|
|
460
467
|
_transform: any;
|
|
461
|
-
|
|
462
|
-
* @private
|
|
463
|
-
*/
|
|
464
|
-
private set strokeThickness(arg);
|
|
465
|
-
_strokeThickness: any;
|
|
468
|
+
_strokeThickness: number;
|
|
466
469
|
/**
|
|
467
470
|
* Raised when the shape has changed.
|
|
468
471
|
* @event shapeChanged
|
|
@@ -883,18 +886,18 @@ declare module "Gauges/Pointer" {
|
|
|
883
886
|
/**
|
|
884
887
|
* Raised when the shape has changed.
|
|
885
888
|
* @event shapeChanged
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
+
* @type {EventDispatcher}
|
|
890
|
+
* @property {ShapeDesigner} sender
|
|
891
|
+
* @property {EventArgs} args
|
|
889
892
|
*/
|
|
890
893
|
get valueChanging(): EventDispatcher;
|
|
891
894
|
_valueChanging: EventDispatcher;
|
|
892
895
|
/**
|
|
893
896
|
* Raised when the shape has changed.
|
|
894
897
|
* @event shapeChanged
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
+
* @type {EventDispatcher}
|
|
899
|
+
* @property {ShapeDesigner} sender
|
|
900
|
+
* @property {EventArgs} args
|
|
898
901
|
*/
|
|
899
902
|
get valueChanged(): EventDispatcher;
|
|
900
903
|
_valueChanged: EventDispatcher;
|
|
@@ -1827,6 +1830,205 @@ declare module "Gauges/MouseInfo" {
|
|
|
1827
1830
|
_point: any;
|
|
1828
1831
|
}
|
|
1829
1832
|
}
|
|
1833
|
+
declare module "Gauges/Theme" {
|
|
1834
|
+
/**
|
|
1835
|
+
* @namespace MindFusion.Gauges
|
|
1836
|
+
*/
|
|
1837
|
+
/**
|
|
1838
|
+
* Copyright (c) 2015-2026, MindFusion LLC - Bulgaria.
|
|
1839
|
+
*
|
|
1840
|
+
* This source code is provided to you as part of the MindFusion software components
|
|
1841
|
+
* package you have purchased. You may use the source code to trace and/or fix
|
|
1842
|
+
* problems or customize the library as needed for your application. To get permission
|
|
1843
|
+
* to use the source code in any other way, please contact us at support@mindfusion.eu.
|
|
1844
|
+
*/
|
|
1845
|
+
import { EventDispatcher } from '@mindfusion/controls';
|
|
1846
|
+
import * as Drawing from '@mindfusion/drawing';
|
|
1847
|
+
/**
|
|
1848
|
+
* @class Represents a gauge's theme defining all appearance attributes of its elements.
|
|
1849
|
+
* @property {Drawing.Brush} gaugeBackground Gets or sets a Brush used to draw gauge backgrounds.
|
|
1850
|
+
* @property {Drawing.Brush} gaugeStroke Gets or sets a Brush used to stroke gauge borders.
|
|
1851
|
+
* @property {Number} gaugeStrokeThickness Gets or sets the thickness of gauge borders.
|
|
1852
|
+
* @property {Drawing.Brush} gaugeScaleBackground Gets or sets a Brush used to draw gauge scale backgrounds.
|
|
1853
|
+
* @property {Drawing.Brush} gaugeScaleStroke Gets or sets a Brush used to stroke gauge scale borders.
|
|
1854
|
+
* @property {Number} gaugeScaleStrokeThickness Gets or sets the thickness of gauge scale borders.
|
|
1855
|
+
* @property {Drawing.Brush} gaugePointerBackground Gets or sets a Brush used to draw gauge pointer backgrounds.
|
|
1856
|
+
* @property {Drawing.Brush} gaugePointerStroke Gets or sets a Brush used to stroke gauge pointer borders.
|
|
1857
|
+
* @property {Number} gaugePointerStrokeThickness Gets or sets the thickness of gauge pointer borders.
|
|
1858
|
+
* @property {Drawing.Brush} gaugeTickBackground Gets or sets a Brush used to draw gauge tick backgrounds.
|
|
1859
|
+
* @property {Drawing.Brush} gaugeTickStroke Gets or sets a Brush used to stroke gauge tick borders.
|
|
1860
|
+
* @property {Number} gaugeTickStrokeThickness Gets or sets the thickness of gauge tick borders.
|
|
1861
|
+
* @property {String} gaugeFontName Gets or sets the name of font used to draw text in gauges.
|
|
1862
|
+
* @property {Drawing.FontStyle} gaugeFontStyle Gets or sets the style of font used to draw text in gauges.
|
|
1863
|
+
* @property {Number} gaugeFontSize Gets or sets the size of font used to draw text in gauges.
|
|
1864
|
+
*/
|
|
1865
|
+
export class Theme {
|
|
1866
|
+
private static defaultBackColor;
|
|
1867
|
+
private static defaultGaugeStrokeColor;
|
|
1868
|
+
private static defaultGaugeElementColor;
|
|
1869
|
+
private static generalThemeColor1;
|
|
1870
|
+
private static generalThemeColor2;
|
|
1871
|
+
private static generalThemeColor3;
|
|
1872
|
+
private static generalThemeColor4;
|
|
1873
|
+
/**
|
|
1874
|
+
* Initializes a new instance of the Theme class.
|
|
1875
|
+
*/
|
|
1876
|
+
constructor();
|
|
1877
|
+
private initDefaults;
|
|
1878
|
+
resolveCssStyle(element: HTMLElement, prefix: string): void;
|
|
1879
|
+
private static _parseUnit;
|
|
1880
|
+
private static toKebabCase;
|
|
1881
|
+
private onPropertyChanged;
|
|
1882
|
+
private suppressEvent;
|
|
1883
|
+
/**
|
|
1884
|
+
* Occurs when a property value changes.
|
|
1885
|
+
* @event Theme.propertyChanged
|
|
1886
|
+
* @type {EventDispatcher}
|
|
1887
|
+
* @property {Theme} sender
|
|
1888
|
+
* @property {PropertyChangedEventArgs} args
|
|
1889
|
+
*/
|
|
1890
|
+
get propertyChanged(): EventDispatcher;
|
|
1891
|
+
private m_propertyChanged;
|
|
1892
|
+
private m_gaugeBackground;
|
|
1893
|
+
/**
|
|
1894
|
+
* Gets or sets a Brush used to draw gauge backgrounds.
|
|
1895
|
+
*/
|
|
1896
|
+
get gaugeBackground(): Drawing.Brush;
|
|
1897
|
+
/**
|
|
1898
|
+
* Gets or sets a Brush used to draw gauge backgrounds.
|
|
1899
|
+
*/
|
|
1900
|
+
set gaugeBackground(value: Drawing.Brush);
|
|
1901
|
+
private m_gaugeStroke;
|
|
1902
|
+
/**
|
|
1903
|
+
* Gets or sets a Brush used to stroke gauge borders.
|
|
1904
|
+
*/
|
|
1905
|
+
get gaugeStroke(): Drawing.Brush;
|
|
1906
|
+
/**
|
|
1907
|
+
* Gets or sets a Brush used to stroke gauge borders.
|
|
1908
|
+
*/
|
|
1909
|
+
set gaugeStroke(value: Drawing.Brush);
|
|
1910
|
+
private m_gaugeStrokeThickness;
|
|
1911
|
+
/**
|
|
1912
|
+
* Gets or sets the thickness of gauge borders.
|
|
1913
|
+
*/
|
|
1914
|
+
get gaugeStrokeThickness(): number;
|
|
1915
|
+
/**
|
|
1916
|
+
* Gets or sets the thickness of gauge borders.
|
|
1917
|
+
*/
|
|
1918
|
+
set gaugeStrokeThickness(value: number);
|
|
1919
|
+
private m_gaugeScaleBackground;
|
|
1920
|
+
/**
|
|
1921
|
+
* Gets or sets a Brush used to draw the background of gauge scales.
|
|
1922
|
+
*/
|
|
1923
|
+
get gaugeScaleBackground(): Drawing.Brush;
|
|
1924
|
+
/**
|
|
1925
|
+
* Gets or sets a Brush used to draw the background of gauge scales.
|
|
1926
|
+
*/
|
|
1927
|
+
set gaugeScaleBackground(value: Drawing.Brush);
|
|
1928
|
+
private m_gaugeScaleStroke;
|
|
1929
|
+
/**
|
|
1930
|
+
* Gets or sets a Brush used to stroke gauge scales.
|
|
1931
|
+
*/
|
|
1932
|
+
get gaugeScaleStroke(): Drawing.Brush;
|
|
1933
|
+
/**
|
|
1934
|
+
* Gets or sets a Brush used to stroke gauge scales.
|
|
1935
|
+
*/
|
|
1936
|
+
set gaugeScaleStroke(value: Drawing.Brush);
|
|
1937
|
+
private m_gaugeScaleStrokeThickness;
|
|
1938
|
+
/**
|
|
1939
|
+
* Gets or sets the thickness of gauge scale strokes.
|
|
1940
|
+
*/
|
|
1941
|
+
get gaugeScaleStrokeThickness(): number;
|
|
1942
|
+
/**
|
|
1943
|
+
* Gets or sets the thickness of gauge scale strokes.
|
|
1944
|
+
*/
|
|
1945
|
+
set gaugeScaleStrokeThickness(value: number);
|
|
1946
|
+
private m_gaugePointerBackground;
|
|
1947
|
+
/**
|
|
1948
|
+
* Gets or sets a Brush used to draw gauge pointer backgrounds.
|
|
1949
|
+
*/
|
|
1950
|
+
get gaugePointerBackground(): Drawing.Brush;
|
|
1951
|
+
/**
|
|
1952
|
+
* Gets or sets a Brush used to draw gauge pointer backgrounds.
|
|
1953
|
+
*/
|
|
1954
|
+
set gaugePointerBackground(value: Drawing.Brush);
|
|
1955
|
+
private m_gaugePointerStroke;
|
|
1956
|
+
/**
|
|
1957
|
+
* Gets or sets a Brush used to stroke gauge pointers.
|
|
1958
|
+
*/
|
|
1959
|
+
get gaugePointerStroke(): Drawing.Brush;
|
|
1960
|
+
/**
|
|
1961
|
+
* Gets or sets a Brush used to stroke gauge pointers.
|
|
1962
|
+
*/
|
|
1963
|
+
set gaugePointerStroke(value: Drawing.Brush);
|
|
1964
|
+
private m_gaugePointerStrokeThickness;
|
|
1965
|
+
/**
|
|
1966
|
+
* Gets or sets the thickness of gauge pointer strokes.
|
|
1967
|
+
*/
|
|
1968
|
+
get gaugePointerStrokeThickness(): number;
|
|
1969
|
+
/**
|
|
1970
|
+
* Gets or sets the thickness of gauge pointer strokes.
|
|
1971
|
+
*/
|
|
1972
|
+
set gaugePointerStrokeThickness(value: number);
|
|
1973
|
+
private m_gaugeTickBackground;
|
|
1974
|
+
/**
|
|
1975
|
+
* Gets or sets a Brush used to draw gauge tick backgrounds.
|
|
1976
|
+
*/
|
|
1977
|
+
get gaugeTickBackground(): Drawing.Brush;
|
|
1978
|
+
/**
|
|
1979
|
+
* Gets or sets a Brush used to draw gauge tick backgrounds.
|
|
1980
|
+
*/
|
|
1981
|
+
set gaugeTickBackground(value: Drawing.Brush);
|
|
1982
|
+
private m_gaugeTickStroke;
|
|
1983
|
+
/**
|
|
1984
|
+
* Gets or sets a Brush used to stroke gauge ticks.
|
|
1985
|
+
*/
|
|
1986
|
+
get gaugeTickStroke(): Drawing.Brush;
|
|
1987
|
+
/**
|
|
1988
|
+
* Gets or sets a Brush used to stroke gauge ticks.
|
|
1989
|
+
*/
|
|
1990
|
+
set gaugeTickStroke(value: Drawing.Brush);
|
|
1991
|
+
private m_gaugeTickStrokeThickness;
|
|
1992
|
+
/**
|
|
1993
|
+
* Gets or sets the thickness of gauge tick strokes.
|
|
1994
|
+
*/
|
|
1995
|
+
get gaugeTickStrokeThickness(): number;
|
|
1996
|
+
/**
|
|
1997
|
+
* Gets or sets the thickness of gauge tick strokes.
|
|
1998
|
+
*/
|
|
1999
|
+
set gaugeTickStrokeThickness(value: number);
|
|
2000
|
+
private m_gaugeFontName;
|
|
2001
|
+
/**
|
|
2002
|
+
* Gets or sets the name of font used to draw text in gauges.
|
|
2003
|
+
*/
|
|
2004
|
+
get gaugeFontName(): string;
|
|
2005
|
+
/**
|
|
2006
|
+
* Gets or sets the name of font used to draw text in gauges.
|
|
2007
|
+
*/
|
|
2008
|
+
set gaugeFontName(value: string);
|
|
2009
|
+
private m_gaugeFontStyle;
|
|
2010
|
+
/**
|
|
2011
|
+
* Gets or sets the style of font used to draw text in gauges.
|
|
2012
|
+
*/
|
|
2013
|
+
get gaugeFontStyle(): Drawing.FontStyle;
|
|
2014
|
+
/**
|
|
2015
|
+
* Gets or sets the style of font used to draw text in gauges.
|
|
2016
|
+
*/
|
|
2017
|
+
set gaugeFontStyle(value: Drawing.FontStyle);
|
|
2018
|
+
private m_gaugeFontSize;
|
|
2019
|
+
/**
|
|
2020
|
+
* Gets or sets the size of font used to draw text in gauges.
|
|
2021
|
+
*/
|
|
2022
|
+
get gaugeFontSize(): number;
|
|
2023
|
+
/**
|
|
2024
|
+
* Gets or sets the size of font used to draw text in gauges.
|
|
2025
|
+
*/
|
|
2026
|
+
set gaugeFontSize(value: number);
|
|
2027
|
+
fileVersion: number;
|
|
2028
|
+
fromJson(obj: any): void;
|
|
2029
|
+
toJson(): any;
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
1830
2032
|
declare module "Gauges/BaseGauge" {
|
|
1831
2033
|
/**
|
|
1832
2034
|
* @class Represents the base class of linear and oval gauges.
|
|
@@ -1845,6 +2047,7 @@ declare module "Gauges/BaseGauge" {
|
|
|
1845
2047
|
*/
|
|
1846
2048
|
constructor(element: any, ignoreMouseEvents?: boolean, componentType?: any);
|
|
1847
2049
|
stopRepaint: boolean;
|
|
2050
|
+
customDraw: boolean;
|
|
1848
2051
|
/**
|
|
1849
2052
|
* A list of scale objects.
|
|
1850
2053
|
* @type {Array<BaseScale>}
|
|
@@ -1858,6 +2061,11 @@ declare module "Gauges/BaseGauge" {
|
|
|
1858
2061
|
set height(arg: any);
|
|
1859
2062
|
get height(): any;
|
|
1860
2063
|
ignoreMouseEvents: boolean;
|
|
2064
|
+
set theme(arg: any);
|
|
2065
|
+
/**
|
|
2066
|
+
* Gets or sets a Theme specifying appearance of gauge elements.
|
|
2067
|
+
*/
|
|
2068
|
+
get theme(): any;
|
|
1861
2069
|
postDataField: HTMLElement;
|
|
1862
2070
|
mouseUpDelegate: (e: any) => void;
|
|
1863
2071
|
onPrepaintBackgroundDelegate: (sender: any, args: any) => void;
|
|
@@ -1934,6 +2142,16 @@ declare module "Gauges/BaseGauge" {
|
|
|
1934
2142
|
_width: any;
|
|
1935
2143
|
_height: any;
|
|
1936
2144
|
_autoPostBack: boolean;
|
|
2145
|
+
_theme: any;
|
|
2146
|
+
onThemePropertyChanged(): void;
|
|
2147
|
+
set cssTheme(arg: any);
|
|
2148
|
+
/**
|
|
2149
|
+
* Gets or sets a CSS theme specifying appearance of gauge elements.
|
|
2150
|
+
*/
|
|
2151
|
+
get cssTheme(): any;
|
|
2152
|
+
_cssTheme: any;
|
|
2153
|
+
themeChanged(oldTheme: any, newTheme: any): void;
|
|
2154
|
+
get cssClass(): string;
|
|
1937
2155
|
/**
|
|
1938
2156
|
* Raised when the shape has changed.
|
|
1939
2157
|
* @event shapeChanged
|
|
@@ -2101,7 +2319,15 @@ declare module "Gauges/LinearGauge" {
|
|
|
2101
2319
|
get orientation(): number;
|
|
2102
2320
|
verticalMargin: Thickness;
|
|
2103
2321
|
horizontalMargin: Thickness;
|
|
2322
|
+
draw(): void;
|
|
2104
2323
|
_orientation: number;
|
|
2324
|
+
set margin(arg: Thickness);
|
|
2325
|
+
/**
|
|
2326
|
+
* Gets or sets the margin between the border of the gauge and its contents.
|
|
2327
|
+
* @type {Thickness}
|
|
2328
|
+
* @summary An instance of the Thickness class representing the margin.
|
|
2329
|
+
*/
|
|
2330
|
+
get margin(): Thickness;
|
|
2105
2331
|
/**
|
|
2106
2332
|
* @private
|
|
2107
2333
|
*/
|
|
@@ -2154,18 +2380,26 @@ declare module "Gauges/OvalGauge" {
|
|
|
2154
2380
|
* @summary The visual style of the gauge.
|
|
2155
2381
|
*/
|
|
2156
2382
|
get style(): number;
|
|
2383
|
+
_margin: Thickness;
|
|
2384
|
+
draw(): void;
|
|
2157
2385
|
get scaleRelativeCenter(): Point;
|
|
2158
|
-
get scaleRelativeRadius(): 0.5 | 0.9;
|
|
2386
|
+
get scaleRelativeRadius(): 0.6 | 0.5 | 0.9;
|
|
2159
2387
|
get startAngle(): 0 | 180 | 120 | 90 | 270;
|
|
2160
2388
|
get endAngle(): 180 | 360 | 90 | 270 | 420 | 450;
|
|
2161
|
-
margin(
|
|
2389
|
+
set margin(arg: Thickness);
|
|
2390
|
+
/**
|
|
2391
|
+
* Gets or sets the margin between the border of the gauge and its contents.
|
|
2392
|
+
* @type {Thickness}
|
|
2393
|
+
* @summary An instance of the Thickness class representing the margin.
|
|
2394
|
+
*/
|
|
2395
|
+
get margin(): Thickness;
|
|
2162
2396
|
getOrientationMargin(): Thickness;
|
|
2163
2397
|
_style: number;
|
|
2164
2398
|
connectedCallback(): void;
|
|
2165
2399
|
}
|
|
2166
2400
|
import { BaseGauge } from "Gauges/BaseGauge";
|
|
2167
|
-
import { Point } from "@mindfusion/drawing";
|
|
2168
2401
|
import { Thickness } from "@mindfusion/drawing";
|
|
2402
|
+
import { Point } from "@mindfusion/drawing";
|
|
2169
2403
|
}
|
|
2170
2404
|
declare module "Gauges/WebComponents" {
|
|
2171
2405
|
/**
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"email": "info@mindfusion.eu",
|
|
5
5
|
"url": "https://mindfusion.dev"
|
|
6
6
|
},
|
|
7
|
-
"version": "2.
|
|
7
|
+
"version": "2.3.1",
|
|
8
8
|
"description": "Gauges library",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"gauges library"
|
|
@@ -14,27 +14,15 @@
|
|
|
14
14
|
"module": "./dist/esm/gauges.js",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
}
|
|
17
|
+
"types": "./gauges.d.ts",
|
|
18
|
+
"import": "./dist/esm/gauges.mjs",
|
|
19
|
+
"require": "./dist/cjs/gauges.js",
|
|
20
|
+
"default": "./dist/cjs/gauges.js"
|
|
33
21
|
}
|
|
34
|
-
},
|
|
22
|
+
},
|
|
35
23
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
36
24
|
"types": "gauges.d.ts",
|
|
37
25
|
"dependencies": {
|
|
38
|
-
"@mindfusion/controls": "^4.
|
|
26
|
+
"@mindfusion/controls": "^4.5.1"
|
|
39
27
|
}
|
|
40
28
|
}
|