@mindfusion/gauges 2.2.0 → 2.2.2
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/README.md +7 -7
- package/dist/cjs/gauges.js +1 -1
- package/dist/esm/gauges.js +1 -1
- package/dist/esm/gauges.mjs +1 -0
- package/dist/umd/gauges.js +1 -1
- package/gauges.d.mts +2207 -0
- package/gauges.d.ts +134 -15
- package/package.json +22 -9
package/gauges.d.mts
ADDED
|
@@ -0,0 +1,2207 @@
|
|
|
1
|
+
/// <reference types="../../@mindfusion/drawing" />
|
|
2
|
+
/// <reference types="../../@mindfusion/controls" />
|
|
3
|
+
declare module "Gauges/Segment" {
|
|
4
|
+
/**
|
|
5
|
+
* @class Represents a segment of a PathFigure object.
|
|
6
|
+
*/
|
|
7
|
+
export class Segment {
|
|
8
|
+
set isStroked(arg: boolean);
|
|
9
|
+
/**
|
|
10
|
+
* Gets or sets a value that indicates whether the segment is stroked.
|
|
11
|
+
* @type {Boolean}
|
|
12
|
+
* @summary True if the segment is stroked, otherwise false.
|
|
13
|
+
*/
|
|
14
|
+
get isStroked(): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Adds the segment to the specified graphics path.
|
|
17
|
+
*/
|
|
18
|
+
addTo(path: any, startPoint: any, isOutline: any): void;
|
|
19
|
+
_isStroked: boolean;
|
|
20
|
+
}
|
|
21
|
+
export class LineSegment extends Segment {
|
|
22
|
+
/**
|
|
23
|
+
* Creates an instance of LineSegment class.
|
|
24
|
+
* @constructor
|
|
25
|
+
* @class Represents a line between two points.
|
|
26
|
+
*/
|
|
27
|
+
constructor(point: any, isStroked: any);
|
|
28
|
+
set point(arg: Point);
|
|
29
|
+
/**
|
|
30
|
+
* Gets or sets the end point of the line segment.
|
|
31
|
+
* @type {Point}
|
|
32
|
+
* @summary The end point of the line segment.
|
|
33
|
+
*/
|
|
34
|
+
get point(): Point;
|
|
35
|
+
_point: Point;
|
|
36
|
+
}
|
|
37
|
+
export class ArcSegment extends Segment {
|
|
38
|
+
/**
|
|
39
|
+
* Creates an instance of ArcSegment class.
|
|
40
|
+
* @constructor
|
|
41
|
+
* @class Represents an elliptical arc between two points.
|
|
42
|
+
*/
|
|
43
|
+
constructor(point: any, size: any, rotationAngle: any, isLargeArc: any, isCounterclockwise: any, isStroked: any);
|
|
44
|
+
set point(arg: Point);
|
|
45
|
+
/**
|
|
46
|
+
* Gets or sets the endpoint of the elliptical arc.
|
|
47
|
+
* @type {Point}
|
|
48
|
+
* @summary The endpoint of the elliptical arc.
|
|
49
|
+
*/
|
|
50
|
+
get point(): Point;
|
|
51
|
+
set size(arg: any);
|
|
52
|
+
/**
|
|
53
|
+
* Gets or sets the x- and y-radius of the arc as a Size structure.
|
|
54
|
+
* @type {Size}
|
|
55
|
+
* @summary The x- and y-radius of the arc as a Size structure.
|
|
56
|
+
*/
|
|
57
|
+
get size(): any;
|
|
58
|
+
set rotationAngle(arg: number);
|
|
59
|
+
/**
|
|
60
|
+
* Gets or sets the amount (in degrees) by which the ellipse is rotated about the x-axis.
|
|
61
|
+
* @type {Number}
|
|
62
|
+
* @summary The amount (in degrees) by which the ellipse is rotated about the x-axis.
|
|
63
|
+
*/
|
|
64
|
+
get rotationAngle(): number;
|
|
65
|
+
set isLargeArc(arg: boolean);
|
|
66
|
+
/**
|
|
67
|
+
* Gets or sets a value that indicates whether the arc should be greater than 180 degrees.
|
|
68
|
+
* @type {Boolean}
|
|
69
|
+
* @summary True if the arc should be greater than 180 degrees, otherwise false.
|
|
70
|
+
*/
|
|
71
|
+
get isLargeArc(): boolean;
|
|
72
|
+
set isCounterclockwise(arg: boolean);
|
|
73
|
+
/**
|
|
74
|
+
* Gets or sets a value that indicates whether the arc is drawn in counterclockwise or clockwise direction.
|
|
75
|
+
* @type {Boolean}
|
|
76
|
+
* @summary True if the arc is drawn in counterclockwise, otherwise false.
|
|
77
|
+
*/
|
|
78
|
+
get isCounterclockwise(): boolean;
|
|
79
|
+
getArcParams(pt1: any, pt2: any, isLargeArc: any, isCounterclockwise: any, radiusX: any, radiusY: any, angleRotation: any): (number | Point)[];
|
|
80
|
+
_point: Point;
|
|
81
|
+
_size: any;
|
|
82
|
+
_rotationAngle: number;
|
|
83
|
+
_isLargeArc: boolean;
|
|
84
|
+
_isCounterclockwise: boolean;
|
|
85
|
+
}
|
|
86
|
+
import { Point } from "@mindfusion/drawing";
|
|
87
|
+
}
|
|
88
|
+
declare module "Gauges/EventArgs" {
|
|
89
|
+
/**
|
|
90
|
+
* @class Provides data for the various custom painting event.
|
|
91
|
+
*/
|
|
92
|
+
export class PaintEventArgs extends EventArgs {
|
|
93
|
+
/**
|
|
94
|
+
* Creates an instance of PaintEventArgs class.
|
|
95
|
+
* @constructor
|
|
96
|
+
*/
|
|
97
|
+
constructor(args: any);
|
|
98
|
+
_context: any;
|
|
99
|
+
_element: any;
|
|
100
|
+
/**
|
|
101
|
+
* Paints the specified visual element to the underlying canvas.
|
|
102
|
+
* @param {VisualElement} element The VisualElement to paint.
|
|
103
|
+
* @param {Size} constraint The available size.
|
|
104
|
+
*/
|
|
105
|
+
paintVisualElement(element: VisualElement, constraint: any): void;
|
|
106
|
+
set element(arg: VisualElement);
|
|
107
|
+
/**
|
|
108
|
+
* Gets or sets the element being custom drawn.
|
|
109
|
+
* @type {VisualElement}
|
|
110
|
+
* @summary A VisualElement instance.
|
|
111
|
+
*/
|
|
112
|
+
get element(): VisualElement;
|
|
113
|
+
/**
|
|
114
|
+
* Gets the canvas rendering context.
|
|
115
|
+
* @type {CanvasRenderingContext2D}
|
|
116
|
+
* @summary A rendering context used to draw on the Canvas element.
|
|
117
|
+
*/
|
|
118
|
+
get context(): CanvasRenderingContext2D;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @class Provides data for various pre-paint events.
|
|
122
|
+
*/
|
|
123
|
+
export class PrepaintEventArgs extends PaintEventArgs {
|
|
124
|
+
set cancelDefaultPainting(arg: boolean);
|
|
125
|
+
/**
|
|
126
|
+
* Gets or sets a value indicating whether the default painting of this element should be performed.
|
|
127
|
+
* @type {Boolean}
|
|
128
|
+
* @summary true if the default painting of this element should be performed; otherwise, false.
|
|
129
|
+
*/
|
|
130
|
+
get cancelDefaultPainting(): boolean;
|
|
131
|
+
_cancelDefaultPainting: boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @class Contains the arguments passed to value changing notification handlers.
|
|
135
|
+
*/
|
|
136
|
+
export class ValueChangingEventArgs extends CancelEventArgs {
|
|
137
|
+
/**
|
|
138
|
+
* Creates an instance of ValueChangingEventArgs class.
|
|
139
|
+
* @constructor
|
|
140
|
+
*/
|
|
141
|
+
constructor(oldValue: any, newValue: any);
|
|
142
|
+
_oldValue: any;
|
|
143
|
+
_newValue: any;
|
|
144
|
+
/**
|
|
145
|
+
* Gets the previous value of the changing property.
|
|
146
|
+
* @type {Object}
|
|
147
|
+
* @summary The previous value of the changing property.
|
|
148
|
+
*/
|
|
149
|
+
get oldValue(): any;
|
|
150
|
+
/**
|
|
151
|
+
* Gets the new value of the changing property.
|
|
152
|
+
* @type {Object}
|
|
153
|
+
* @summary The new value of the changing property.
|
|
154
|
+
*/
|
|
155
|
+
get newValue(): any;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @class Contains the arguments passed to value changed notification handlers.
|
|
159
|
+
*/
|
|
160
|
+
export class ValueChangedEventArgs extends EventArgs {
|
|
161
|
+
/**
|
|
162
|
+
* Creates an instance of ValueChangedEventArgs class.
|
|
163
|
+
* @constructor
|
|
164
|
+
*/
|
|
165
|
+
constructor(oldValue: any, newValue: any);
|
|
166
|
+
_oldValue: any;
|
|
167
|
+
_newValue: any;
|
|
168
|
+
/**
|
|
169
|
+
* Gets the previous value of the changed property.
|
|
170
|
+
* @type {Object}
|
|
171
|
+
* @summary The previous value of the changed property.
|
|
172
|
+
*/
|
|
173
|
+
get oldValue(): any;
|
|
174
|
+
/**
|
|
175
|
+
* Gets the new value of the changed property.
|
|
176
|
+
* @type {Object}
|
|
177
|
+
* @summary The new value of the changed property.
|
|
178
|
+
*/
|
|
179
|
+
get newValue(): any;
|
|
180
|
+
}
|
|
181
|
+
import { EventArgs } from "@mindfusion/controls";
|
|
182
|
+
import { VisualElement } from "Gauges/LoadOrder";
|
|
183
|
+
import { CancelEventArgs } from "@mindfusion/controls";
|
|
184
|
+
}
|
|
185
|
+
declare module "Gauges/Utils" {
|
|
186
|
+
/**
|
|
187
|
+
* @class Contains helper functions.
|
|
188
|
+
*/
|
|
189
|
+
export class Utils {
|
|
190
|
+
/**
|
|
191
|
+
* Creates a linear gradient brush with the specified data.
|
|
192
|
+
* @returns {Object} The brush.
|
|
193
|
+
*/
|
|
194
|
+
static createLinearGradient(angle: any, params: any): any;
|
|
195
|
+
/**
|
|
196
|
+
* Creates a radial gradient brush with the specified data.
|
|
197
|
+
* @returns {Object} The brush.
|
|
198
|
+
*/
|
|
199
|
+
static createRadialGradient(center: any, radius: any, params: any, center2: any, radius2: any): any;
|
|
200
|
+
static offset(p: any, x: any, y: any): Point;
|
|
201
|
+
static log10(value: any): number;
|
|
202
|
+
static getBrush(context: any, brush: any, bounds: any, isPen: any): any;
|
|
203
|
+
}
|
|
204
|
+
export namespace Utils {
|
|
205
|
+
const tm10: number[];
|
|
206
|
+
const tm11: number[];
|
|
207
|
+
}
|
|
208
|
+
import { Point } from "@mindfusion/drawing";
|
|
209
|
+
}
|
|
210
|
+
declare module "Gauges/Events" {
|
|
211
|
+
/**
|
|
212
|
+
* @namespace MindFusion.Gauges
|
|
213
|
+
*/
|
|
214
|
+
/**
|
|
215
|
+
* @class Defines all events raised by the Gauge component.
|
|
216
|
+
*/
|
|
217
|
+
export class Events {
|
|
218
|
+
static get prepaint(): string;
|
|
219
|
+
/**
|
|
220
|
+
* Raised before the gauge background is painted.
|
|
221
|
+
* @type {String}
|
|
222
|
+
* @summary A string containing the event name.
|
|
223
|
+
*/
|
|
224
|
+
static get prepaintBackground(): string;
|
|
225
|
+
/**
|
|
226
|
+
* Raised before the gauge foreground is painted.
|
|
227
|
+
* @type {String}
|
|
228
|
+
* @summary A string containing the event name.
|
|
229
|
+
*/
|
|
230
|
+
static get prepaintForeground(): string;
|
|
231
|
+
/**
|
|
232
|
+
* Raised before a gauge scale is painted.
|
|
233
|
+
* @type {String}
|
|
234
|
+
* @summary A string containing the event name.
|
|
235
|
+
*/
|
|
236
|
+
static get prepaintScale(): string;
|
|
237
|
+
/**
|
|
238
|
+
* Raised before a gauge tick is painted.
|
|
239
|
+
* @type {String}
|
|
240
|
+
* @summary A string containing the event name.
|
|
241
|
+
*/
|
|
242
|
+
static get prepaintTick(): string;
|
|
243
|
+
/**
|
|
244
|
+
* Raised before a gauge pointer is painted.
|
|
245
|
+
* @type {String}
|
|
246
|
+
* @summary A string containing the event name.
|
|
247
|
+
*/
|
|
248
|
+
static get prepaintPointer(): string;
|
|
249
|
+
static get paint(): string;
|
|
250
|
+
/**
|
|
251
|
+
* Raised when the gauge background is being painted.
|
|
252
|
+
* @type {String}
|
|
253
|
+
* @summary A string containing the event name.
|
|
254
|
+
*/
|
|
255
|
+
static get paintBackground(): string;
|
|
256
|
+
/**
|
|
257
|
+
* Raised when the gauge foreground is being painted.
|
|
258
|
+
* @type {String}
|
|
259
|
+
* @summary A string containing the event name.
|
|
260
|
+
*/
|
|
261
|
+
static get paintForeground(): string;
|
|
262
|
+
/**
|
|
263
|
+
* Raised when a gauge scale is being painted.
|
|
264
|
+
* @type {String}
|
|
265
|
+
* @summary A string containing the event name.
|
|
266
|
+
*/
|
|
267
|
+
static get paintScale(): string;
|
|
268
|
+
/**
|
|
269
|
+
* Raised when a gauge tick is being painted.
|
|
270
|
+
* @type {String}
|
|
271
|
+
* @summary A string containing the event name.
|
|
272
|
+
*/
|
|
273
|
+
static get paintTick(): string;
|
|
274
|
+
/**
|
|
275
|
+
* Raised when a gauge pointer is being painted.
|
|
276
|
+
* @type {String}
|
|
277
|
+
* @summary A string containing the event name.
|
|
278
|
+
*/
|
|
279
|
+
static get paintPointer(): string;
|
|
280
|
+
/**
|
|
281
|
+
* Raised when the value of a pointer has changed interactively.
|
|
282
|
+
* @type {String}
|
|
283
|
+
* @summary A string containing the event name.
|
|
284
|
+
*/
|
|
285
|
+
static get valueChanging(): string;
|
|
286
|
+
/**
|
|
287
|
+
* Raised when the value of a pointer is being changed interactively.
|
|
288
|
+
* @type {String}
|
|
289
|
+
* @summary A string containing the event name.
|
|
290
|
+
*/
|
|
291
|
+
static get valueChanged(): string;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
declare module "Gauges/VisualElement" {
|
|
295
|
+
export default VisualElement;
|
|
296
|
+
/**
|
|
297
|
+
* @class Represents an object with outline and fill, which can render itself to a canvas.
|
|
298
|
+
*/
|
|
299
|
+
class VisualElement {
|
|
300
|
+
type: string;
|
|
301
|
+
/**
|
|
302
|
+
* @private
|
|
303
|
+
*/
|
|
304
|
+
private set width(arg);
|
|
305
|
+
/**
|
|
306
|
+
* @private
|
|
307
|
+
*/
|
|
308
|
+
private get width();
|
|
309
|
+
/**
|
|
310
|
+
* @private
|
|
311
|
+
*/
|
|
312
|
+
private set height(arg);
|
|
313
|
+
/**
|
|
314
|
+
* @private
|
|
315
|
+
*/
|
|
316
|
+
private get height();
|
|
317
|
+
set x(arg: number);
|
|
318
|
+
/**
|
|
319
|
+
* Gets or sets the normalized x position of this element, relative to its parent.
|
|
320
|
+
* @type {Number}
|
|
321
|
+
* @summary The normalized x position of this element, relative to its parent.
|
|
322
|
+
*/
|
|
323
|
+
get x(): number;
|
|
324
|
+
set y(arg: number);
|
|
325
|
+
/**
|
|
326
|
+
* Gets or sets the normalized y position of this element, relative to its parent.
|
|
327
|
+
* @type {Number}
|
|
328
|
+
* @summary The normalized y position of this element, relative to its parent.
|
|
329
|
+
*/
|
|
330
|
+
get y(): number;
|
|
331
|
+
set isVisible(arg: boolean);
|
|
332
|
+
/**
|
|
333
|
+
* Gets or sets a value indicating whether this element is visible.
|
|
334
|
+
* @type {Boolean}
|
|
335
|
+
* @summary True if the element is visible, otherwise false.
|
|
336
|
+
*/
|
|
337
|
+
get isVisible(): boolean;
|
|
338
|
+
set relativeCoordinates(arg: boolean);
|
|
339
|
+
/**
|
|
340
|
+
* Gets or sets a value indicating whether the metrics of this element are expressed as relative or absolute quantities.
|
|
341
|
+
* @type {Boolean}
|
|
342
|
+
* @summary True if the metrics are relative, otherwise false.
|
|
343
|
+
*/
|
|
344
|
+
get relativeCoordinates(): boolean;
|
|
345
|
+
set fill(arg: any);
|
|
346
|
+
/**
|
|
347
|
+
* Gets or sets the fill of this element.
|
|
348
|
+
* @type {Object}
|
|
349
|
+
* @summary The fill of this element.
|
|
350
|
+
*/
|
|
351
|
+
get fill(): any;
|
|
352
|
+
set stroke(arg: any);
|
|
353
|
+
/**
|
|
354
|
+
* Gets or sets the stroke of this element.
|
|
355
|
+
* @type {Object}
|
|
356
|
+
* @summary The stroke of this element.
|
|
357
|
+
*/
|
|
358
|
+
get stroke(): any;
|
|
359
|
+
offsetX: number;
|
|
360
|
+
offsetY: number;
|
|
361
|
+
eventHandlers: Map<any, any>;
|
|
362
|
+
getType(): any;
|
|
363
|
+
fromJson(obj: any): void;
|
|
364
|
+
set name(arg: string);
|
|
365
|
+
/**
|
|
366
|
+
* Gets or sets the name of this element.
|
|
367
|
+
* @type {String}
|
|
368
|
+
* @summary The name of this element.
|
|
369
|
+
* @remarks The name can be used to obtain a reference to the element through a call to the getElementByName method.
|
|
370
|
+
*/
|
|
371
|
+
get name(): string;
|
|
372
|
+
set margin(arg: Thickness);
|
|
373
|
+
/**
|
|
374
|
+
* Gets or sets the margin of this element.
|
|
375
|
+
* @type {Thickness}
|
|
376
|
+
* @summary The margin of this element.
|
|
377
|
+
*/
|
|
378
|
+
get margin(): Thickness;
|
|
379
|
+
toJson(): {
|
|
380
|
+
__type: any;
|
|
381
|
+
fill: any;
|
|
382
|
+
stroke: any;
|
|
383
|
+
name: string;
|
|
384
|
+
x: number;
|
|
385
|
+
y: number;
|
|
386
|
+
width: any;
|
|
387
|
+
height: any;
|
|
388
|
+
margin: Thickness;
|
|
389
|
+
relativeCoordinates: boolean;
|
|
390
|
+
};
|
|
391
|
+
repaint(context: any): void;
|
|
392
|
+
set outline(arg: any);
|
|
393
|
+
get outline(): any;
|
|
394
|
+
raisePrepaint(context: any): boolean;
|
|
395
|
+
raisePostpaint(context: any): void;
|
|
396
|
+
measure(size: any): void;
|
|
397
|
+
measureOverride(size: any): any;
|
|
398
|
+
/**
|
|
399
|
+
* @private
|
|
400
|
+
*/
|
|
401
|
+
private set desiredSize(arg);
|
|
402
|
+
/**
|
|
403
|
+
* @private
|
|
404
|
+
*/
|
|
405
|
+
private get desiredSize();
|
|
406
|
+
arrange(): void;
|
|
407
|
+
/**
|
|
408
|
+
* @private
|
|
409
|
+
*/
|
|
410
|
+
private set transform(arg);
|
|
411
|
+
/**
|
|
412
|
+
* @private
|
|
413
|
+
*/
|
|
414
|
+
private get transform();
|
|
415
|
+
arrangeOverride(): void;
|
|
416
|
+
createPath(): any;
|
|
417
|
+
applyTransform(context: any, applyRelativeScale: any): any;
|
|
418
|
+
toLocal(parentCoordinates: any): Point;
|
|
419
|
+
getElementByName(name: any): VisualElement;
|
|
420
|
+
handleMouse(info: any, point: any): void;
|
|
421
|
+
containsPoint(point: any): void;
|
|
422
|
+
raiseEvent(eventName: any, args: any): void;
|
|
423
|
+
_name: string;
|
|
424
|
+
_outline: any;
|
|
425
|
+
_fill: any;
|
|
426
|
+
/**
|
|
427
|
+
* @private
|
|
428
|
+
*/
|
|
429
|
+
private get defaultFill();
|
|
430
|
+
_stroke: any;
|
|
431
|
+
get defaultStroke(): any;
|
|
432
|
+
_isVisible: boolean;
|
|
433
|
+
_margin: Thickness;
|
|
434
|
+
_x: number;
|
|
435
|
+
_y: number;
|
|
436
|
+
set bounds(arg: Rect);
|
|
437
|
+
/**
|
|
438
|
+
* Gets or sets the bounding rectangle of this element.
|
|
439
|
+
* @type {Rect}
|
|
440
|
+
* @summary The bounding rectangle of this element.
|
|
441
|
+
*/
|
|
442
|
+
get bounds(): Rect;
|
|
443
|
+
/**
|
|
444
|
+
* Gets the size of this element.
|
|
445
|
+
* @returns {Size} The size of this element.
|
|
446
|
+
*/
|
|
447
|
+
getSize(): Size;
|
|
448
|
+
_width: any;
|
|
449
|
+
_height: any;
|
|
450
|
+
_relativeCoordinates: boolean;
|
|
451
|
+
set renderSize(arg: Size);
|
|
452
|
+
/**
|
|
453
|
+
* Gets or sets the rendering size of the element.
|
|
454
|
+
* @type {Size}
|
|
455
|
+
* @summary The rendering size of the element.
|
|
456
|
+
*/
|
|
457
|
+
get renderSize(): Size;
|
|
458
|
+
_renderSize: Size;
|
|
459
|
+
_desiredSize: any;
|
|
460
|
+
_transform: any;
|
|
461
|
+
/**
|
|
462
|
+
* @private
|
|
463
|
+
*/
|
|
464
|
+
private set strokeThickness(arg);
|
|
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;
|
|
484
|
+
}
|
|
485
|
+
import { Thickness } from "@mindfusion/drawing";
|
|
486
|
+
import { Point } from "@mindfusion/drawing";
|
|
487
|
+
import { Rect } from "@mindfusion/drawing";
|
|
488
|
+
import { Size } from "@mindfusion/drawing";
|
|
489
|
+
import { EventDispatcher } from "@mindfusion/controls";
|
|
490
|
+
}
|
|
491
|
+
declare module "Gauges/VisualElementContainer" {
|
|
492
|
+
/**
|
|
493
|
+
* @private
|
|
494
|
+
*/
|
|
495
|
+
export class PointerContainer extends VisualElementContainer {
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @class Represents a container which centers its children and makes them with square size.
|
|
499
|
+
*/
|
|
500
|
+
export class CenterPanel extends VisualElementContainer {
|
|
501
|
+
size: number;
|
|
502
|
+
measureSize: any;
|
|
503
|
+
}
|
|
504
|
+
export default VisualElementContainer;
|
|
505
|
+
/**
|
|
506
|
+
* @class Represents a visual element which contains other visual elements.
|
|
507
|
+
*/
|
|
508
|
+
class VisualElementContainer extends VisualElement {
|
|
509
|
+
static arrangeChild(element: any, size: any): Rect;
|
|
510
|
+
children: any[];
|
|
511
|
+
set isHitTestVisible(arg: any);
|
|
512
|
+
get isHitTestVisible(): any;
|
|
513
|
+
_isHitTestVisible: any;
|
|
514
|
+
}
|
|
515
|
+
import { VisualElement } from "Gauges/LoadOrder";
|
|
516
|
+
import { Rect } from "@mindfusion/drawing";
|
|
517
|
+
}
|
|
518
|
+
declare module "Gauges/Enum" {
|
|
519
|
+
/**
|
|
520
|
+
* Specifies the orientation of elements.
|
|
521
|
+
*/
|
|
522
|
+
export type Orientation = number;
|
|
523
|
+
export namespace Orientation {
|
|
524
|
+
const Horizontal: number;
|
|
525
|
+
const Vertical: number;
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Indicates an alignment of an object relative to the scale. In the descriptions
|
|
529
|
+
* below 'outbound' refers to an element's outer outline, 'inbound' refers to an
|
|
530
|
+
* element's inner outline and 'center' refers to en element's center, that is,
|
|
531
|
+
* the middle of the inbound and outbound.
|
|
532
|
+
*/
|
|
533
|
+
export type Alignment = number;
|
|
534
|
+
export namespace Alignment {
|
|
535
|
+
const InnerInside: number;
|
|
536
|
+
const InnerCenter: number;
|
|
537
|
+
const InnerOutside: number;
|
|
538
|
+
const OuterInside: number;
|
|
539
|
+
const OuterCenter: number;
|
|
540
|
+
const OuterOutside: number;
|
|
541
|
+
const CenterInside: number;
|
|
542
|
+
const TrueCenter: number;
|
|
543
|
+
const CenterOutside: number;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Indicates the type of the units of a Length object.
|
|
547
|
+
*/
|
|
548
|
+
export type LengthType = number;
|
|
549
|
+
export namespace LengthType {
|
|
550
|
+
const Absolute: number;
|
|
551
|
+
const Relative: number;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Specifies a display condition.
|
|
555
|
+
*/
|
|
556
|
+
export type DisplayType = number;
|
|
557
|
+
export namespace DisplayType {
|
|
558
|
+
const Auto: number;
|
|
559
|
+
const Always: number;
|
|
560
|
+
const Never: number;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Indicates the type of a scale tick.
|
|
564
|
+
*/
|
|
565
|
+
export type TickType = number;
|
|
566
|
+
export namespace TickType {
|
|
567
|
+
const None: number;
|
|
568
|
+
const Major: number;
|
|
569
|
+
const Middle: number;
|
|
570
|
+
const Minor: number;
|
|
571
|
+
}
|
|
572
|
+
/**
|
|
573
|
+
* Indicates the shape of a scale tick.
|
|
574
|
+
*/
|
|
575
|
+
export type TickShape = number;
|
|
576
|
+
export namespace TickShape {
|
|
577
|
+
const None_1: number;
|
|
578
|
+
export { None_1 as None };
|
|
579
|
+
export const Custom: number;
|
|
580
|
+
export const Ellipse: number;
|
|
581
|
+
export const Rectangle: number;
|
|
582
|
+
export const RoundRect: number;
|
|
583
|
+
export const Rhombus: number;
|
|
584
|
+
export const Line: number;
|
|
585
|
+
export const Triangle: number;
|
|
586
|
+
export const Arrow1: number;
|
|
587
|
+
export const Arrow2: number;
|
|
588
|
+
export const Arrow3: number;
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Indicates the type of function that will be used to distribute values along the gauge scale.
|
|
592
|
+
*/
|
|
593
|
+
export type FunctionType = number;
|
|
594
|
+
export namespace FunctionType {
|
|
595
|
+
export const Linear: number;
|
|
596
|
+
export const Logarithmic: number;
|
|
597
|
+
const Custom_1: number;
|
|
598
|
+
export { Custom_1 as Custom };
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Indicates the rotation of a label within a scale.
|
|
602
|
+
*/
|
|
603
|
+
export type LabelRotation = number;
|
|
604
|
+
export namespace LabelRotation {
|
|
605
|
+
const None_2: number;
|
|
606
|
+
export { None_2 as None };
|
|
607
|
+
const Auto_1: number;
|
|
608
|
+
export { Auto_1 as Auto };
|
|
609
|
+
export const BaselineToCenter: number;
|
|
610
|
+
export const BaselineAwayFromCenter: number;
|
|
611
|
+
export const Sideways: number;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* Indicates the shape of a pointer.
|
|
615
|
+
*/
|
|
616
|
+
export type PointerShape = number;
|
|
617
|
+
export namespace PointerShape {
|
|
618
|
+
const None_3: number;
|
|
619
|
+
export { None_3 as None };
|
|
620
|
+
const Custom_2: number;
|
|
621
|
+
export { Custom_2 as Custom };
|
|
622
|
+
export const Needle: number;
|
|
623
|
+
export const Needle2: number;
|
|
624
|
+
const Ellipse_1: number;
|
|
625
|
+
export { Ellipse_1 as Ellipse };
|
|
626
|
+
const Rectangle_1: number;
|
|
627
|
+
export { Rectangle_1 as Rectangle };
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Specifies an action performed with the mouse.
|
|
631
|
+
*/
|
|
632
|
+
export type MouseAction = number;
|
|
633
|
+
export namespace MouseAction {
|
|
634
|
+
const Up: number;
|
|
635
|
+
const Down: number;
|
|
636
|
+
const Move: number;
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Specifies the appearance of an oval gauge.
|
|
640
|
+
*/
|
|
641
|
+
export type OvalGaugeStyle = number;
|
|
642
|
+
export namespace OvalGaugeStyle {
|
|
643
|
+
const Circular: number;
|
|
644
|
+
const QuadraticNE: number;
|
|
645
|
+
const QuadraticNW: number;
|
|
646
|
+
const QuadraticSE: number;
|
|
647
|
+
const QuadraticSW: number;
|
|
648
|
+
const SemicircleN: number;
|
|
649
|
+
const SemicircleE: number;
|
|
650
|
+
const SemicircleS: number;
|
|
651
|
+
const SemicircleW: number;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
declare module "Gauges/Length" {
|
|
655
|
+
/**
|
|
656
|
+
* @class Specifies distance expressed either absolutely, through pixels, or relatively, through a percentage of the container's size.
|
|
657
|
+
*/
|
|
658
|
+
export class Length {
|
|
659
|
+
/**
|
|
660
|
+
* Creates an instance of Length class.
|
|
661
|
+
* @constructor
|
|
662
|
+
* @param {Number} value A number specifying the initial length value.
|
|
663
|
+
* @param {LengthType} [type] A member of the LengthType enumeration specifying the length type.
|
|
664
|
+
*/
|
|
665
|
+
constructor(value: number, type?: LengthType);
|
|
666
|
+
set value(arg: number);
|
|
667
|
+
/**
|
|
668
|
+
* Gets or sets the value representing this length.
|
|
669
|
+
* @type {Number}
|
|
670
|
+
* @summary The value representing this length.
|
|
671
|
+
*/
|
|
672
|
+
get value(): number;
|
|
673
|
+
set type(arg: number);
|
|
674
|
+
/**
|
|
675
|
+
* Gets or sets the type of this length.
|
|
676
|
+
* @type {LengthType}
|
|
677
|
+
* @summary The type of this length.
|
|
678
|
+
*/
|
|
679
|
+
get type(): number;
|
|
680
|
+
/**
|
|
681
|
+
* Calculates the absolute length corresponding to the specified argument, relative to the the specified area.
|
|
682
|
+
*/
|
|
683
|
+
getAbsoluteLength(space: any): number;
|
|
684
|
+
_value: number;
|
|
685
|
+
_type: number;
|
|
686
|
+
}
|
|
687
|
+
import { LengthType } from "Gauges/Enum";
|
|
688
|
+
}
|
|
689
|
+
declare module "Gauges/Tick" {
|
|
690
|
+
/**
|
|
691
|
+
* @class Represents a tick mark within a gauge scale.
|
|
692
|
+
*/
|
|
693
|
+
export class Tick extends VisualElementContainer {
|
|
694
|
+
/**
|
|
695
|
+
* Creates an instance of Tick class.
|
|
696
|
+
* @constructor
|
|
697
|
+
* @param {TickSettings} settings The TickSettings object associated with this tick.
|
|
698
|
+
*/
|
|
699
|
+
constructor(settings: any);
|
|
700
|
+
/**
|
|
701
|
+
* @privatefg
|
|
702
|
+
*/
|
|
703
|
+
set settings(arg: any);
|
|
704
|
+
/**
|
|
705
|
+
* Gets the TickSettings object associated with this tick.
|
|
706
|
+
* @type {TickSettings}
|
|
707
|
+
* @summary The TickSettings object associated with this tick.
|
|
708
|
+
*/
|
|
709
|
+
get settings(): any;
|
|
710
|
+
createVisuals(): void;
|
|
711
|
+
/**
|
|
712
|
+
* @private
|
|
713
|
+
*/
|
|
714
|
+
set value(arg: number);
|
|
715
|
+
/**
|
|
716
|
+
* Gets the value associated with this tick.
|
|
717
|
+
* @type {Number}
|
|
718
|
+
* @summary The value associated with this tick.
|
|
719
|
+
*/
|
|
720
|
+
get value(): number;
|
|
721
|
+
_value: number;
|
|
722
|
+
/**
|
|
723
|
+
* @private
|
|
724
|
+
*/
|
|
725
|
+
set rawValue(arg: number);
|
|
726
|
+
/**
|
|
727
|
+
* Gets the value associated with this tick before it was processed by any value distribution functions.
|
|
728
|
+
* @type {Number}
|
|
729
|
+
* @summary The value associated with this tick before it was processed by any value distribution functions.
|
|
730
|
+
*/
|
|
731
|
+
get rawValue(): number;
|
|
732
|
+
_rawValue: number;
|
|
733
|
+
_settings: any;
|
|
734
|
+
}
|
|
735
|
+
import { VisualElementContainer } from "Gauges/LoadOrder";
|
|
736
|
+
}
|
|
737
|
+
declare module "Gauges/TickLabel" {
|
|
738
|
+
/**
|
|
739
|
+
* @class Represents a tick label within a gauge scale.
|
|
740
|
+
*/
|
|
741
|
+
export class TickLabel extends VisualElementContainer {
|
|
742
|
+
/**
|
|
743
|
+
* Creates an instance of TickLabel class.
|
|
744
|
+
* @constructor
|
|
745
|
+
* @param {TickSettings} settings The TickSettings object associated with this label.
|
|
746
|
+
*/
|
|
747
|
+
constructor(settings: any);
|
|
748
|
+
/**
|
|
749
|
+
* @private
|
|
750
|
+
*/
|
|
751
|
+
set settings(arg: any);
|
|
752
|
+
/**
|
|
753
|
+
* Gets the TickSettings object associated with this label.
|
|
754
|
+
* @type {TickSettings}
|
|
755
|
+
* @summary The TickSettings object associated with this label.
|
|
756
|
+
*/
|
|
757
|
+
get settings(): any;
|
|
758
|
+
fontSize: any;
|
|
759
|
+
font: Font;
|
|
760
|
+
getValueAsString(): string;
|
|
761
|
+
/**
|
|
762
|
+
* @private
|
|
763
|
+
*/
|
|
764
|
+
set value(arg: number);
|
|
765
|
+
/**
|
|
766
|
+
* Gets the value associated with this label.
|
|
767
|
+
* @type {Number}
|
|
768
|
+
* @summary The value associated with this label.
|
|
769
|
+
*/
|
|
770
|
+
get value(): number;
|
|
771
|
+
_value: number;
|
|
772
|
+
/**
|
|
773
|
+
* @private
|
|
774
|
+
*/
|
|
775
|
+
set rawValue(arg: number);
|
|
776
|
+
/**
|
|
777
|
+
* Gets the value associated with this tick before it was processed by any value distribution functions.
|
|
778
|
+
* @type {Number}
|
|
779
|
+
* @summary The value associated with this tick before it was processed by any value distribution functions.
|
|
780
|
+
*/
|
|
781
|
+
get rawValue(): number;
|
|
782
|
+
_rawValue: number;
|
|
783
|
+
/**
|
|
784
|
+
* @private
|
|
785
|
+
*/
|
|
786
|
+
set foreground(arg: any);
|
|
787
|
+
/**
|
|
788
|
+
* Gets the foreground color of this label.
|
|
789
|
+
* @type {Color}
|
|
790
|
+
* @summary The foreground color of this label.
|
|
791
|
+
*/
|
|
792
|
+
get foreground(): any;
|
|
793
|
+
_foreground: any;
|
|
794
|
+
_settings: any;
|
|
795
|
+
}
|
|
796
|
+
import { VisualElementContainer } from "Gauges/LoadOrder";
|
|
797
|
+
import { Font } from "@mindfusion/drawing";
|
|
798
|
+
}
|
|
799
|
+
declare module "Gauges/Pointer" {
|
|
800
|
+
/**
|
|
801
|
+
* @class Represents a needle (or arrow) within a gauge scale.
|
|
802
|
+
*/
|
|
803
|
+
export class Pointer extends VisualElementContainer {
|
|
804
|
+
set alignment(arg: number);
|
|
805
|
+
/**
|
|
806
|
+
* Gets or sets the alignment of the pointer relative to the scale.
|
|
807
|
+
* @type {Alignment}
|
|
808
|
+
* @summary The alignment of the pointer relative to the scale.
|
|
809
|
+
* @remarks This property is ignored in oval gauges where the pointer is always pinned to the center of the gauge.
|
|
810
|
+
*/
|
|
811
|
+
get alignment(): number;
|
|
812
|
+
set shape(arg: number);
|
|
813
|
+
/**
|
|
814
|
+
* Gets or sets the shape of the pointer.
|
|
815
|
+
* @type {PointerShape}
|
|
816
|
+
* @summary The shape of the pointer.
|
|
817
|
+
*/
|
|
818
|
+
get shape(): number;
|
|
819
|
+
set isInteractive(arg: boolean);
|
|
820
|
+
/**
|
|
821
|
+
* Gets or sets a value indicating whether the pointer position should be affected by user interactions.
|
|
822
|
+
* @type {Boolean}
|
|
823
|
+
* @summary True if the pointer is interactive, otherwise false.
|
|
824
|
+
*/
|
|
825
|
+
get isInteractive(): boolean;
|
|
826
|
+
set isDiscrete(arg: boolean);
|
|
827
|
+
/**
|
|
828
|
+
* Gets or sets a value indicating whether the pointer value can be changed only discretely(the pointer Value can be only integer).
|
|
829
|
+
* @type {Boolean}
|
|
830
|
+
* @summary True if the pointer is discrete, otherwise false.
|
|
831
|
+
*/
|
|
832
|
+
get isDiscrete(): boolean;
|
|
833
|
+
set pointerOffset(arg: Length);
|
|
834
|
+
/**
|
|
835
|
+
* Gets or sets the offset of the pointer along the direction it points to.
|
|
836
|
+
* @type {Length}
|
|
837
|
+
* @summary The offset of the pointer along the direction it points to.
|
|
838
|
+
*/
|
|
839
|
+
get pointerOffset(): Length;
|
|
840
|
+
set value(arg: number);
|
|
841
|
+
/**
|
|
842
|
+
* Gets or sets the value this pointer points to.
|
|
843
|
+
* @type {Number}
|
|
844
|
+
* @summary The value this pointer points to.
|
|
845
|
+
*/
|
|
846
|
+
get value(): number;
|
|
847
|
+
set pointerWidth(arg: Length);
|
|
848
|
+
/**
|
|
849
|
+
* Gets or sets the width of the pointer.
|
|
850
|
+
* @type {Length}
|
|
851
|
+
* @summary The width of the pointer.
|
|
852
|
+
*/
|
|
853
|
+
get pointerWidth(): Length;
|
|
854
|
+
set pointerHeight(arg: Length);
|
|
855
|
+
/**
|
|
856
|
+
* Gets or sets the height of the pointer.
|
|
857
|
+
* @type {Length}
|
|
858
|
+
* @summary The height of the pointer.
|
|
859
|
+
*/
|
|
860
|
+
get pointerHeight(): Length;
|
|
861
|
+
set customShape(arg: string);
|
|
862
|
+
/**
|
|
863
|
+
* Gets or sets the definition of the pointer shape when Shape is set to Custom.
|
|
864
|
+
* @type {String}
|
|
865
|
+
* @summary The definition of the pointer shape when Shape is set to Custom.
|
|
866
|
+
*/
|
|
867
|
+
get customShape(): string;
|
|
868
|
+
createVisuals(): void;
|
|
869
|
+
discretizeValue(): void;
|
|
870
|
+
processValueChanged(oldValue: any, newValue: any): void;
|
|
871
|
+
discretizingValue: boolean;
|
|
872
|
+
raiseValueChanging(oldValue: any, newValue: any): any;
|
|
873
|
+
raiseValueChanged(oldValue: any, newValue: any): void;
|
|
874
|
+
_value: number;
|
|
875
|
+
_isInteractive: boolean;
|
|
876
|
+
_pointerWidth: Length;
|
|
877
|
+
_pointerHeight: Length;
|
|
878
|
+
_pointerOffset: Length;
|
|
879
|
+
_alignment: number;
|
|
880
|
+
_isDiscrete: boolean;
|
|
881
|
+
_shape: number;
|
|
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;
|
|
901
|
+
}
|
|
902
|
+
import { VisualElementContainer } from "Gauges/LoadOrder";
|
|
903
|
+
import { Length } from "Gauges/Length";
|
|
904
|
+
import { EventDispatcher } from "@mindfusion/controls";
|
|
905
|
+
}
|
|
906
|
+
declare module "Gauges/CustomInterval" {
|
|
907
|
+
/**
|
|
908
|
+
* @namespace MindFusion.Gauges
|
|
909
|
+
*/
|
|
910
|
+
/**
|
|
911
|
+
* @class Represents an interval with associated custom values for fill and stroke.
|
|
912
|
+
*/
|
|
913
|
+
export class CustomInterval {
|
|
914
|
+
set minValue(arg: number);
|
|
915
|
+
/**
|
|
916
|
+
* Gets or sets the start of this custom interval.
|
|
917
|
+
* @type {Number}
|
|
918
|
+
* @summary The start of this custom interval.
|
|
919
|
+
*/
|
|
920
|
+
get minValue(): number;
|
|
921
|
+
set maxValue(arg: number);
|
|
922
|
+
/**
|
|
923
|
+
* Gets or sets the end of this custom interval.
|
|
924
|
+
* @type {Number}
|
|
925
|
+
* @summary The end of this custom interval.
|
|
926
|
+
*/
|
|
927
|
+
get maxValue(): number;
|
|
928
|
+
/**
|
|
929
|
+
* Checks whether the specified value falls within this interval.
|
|
930
|
+
*/
|
|
931
|
+
contains(value: any): boolean;
|
|
932
|
+
fromJson(obj: any): void;
|
|
933
|
+
set fill(arg: any);
|
|
934
|
+
/**
|
|
935
|
+
* Gets or sets the brush to apply as a background of the elements within the custom interval.
|
|
936
|
+
* @type {Object}
|
|
937
|
+
* @summary The brush to apply as a background of the elements within the custom interval.
|
|
938
|
+
*/
|
|
939
|
+
get fill(): any;
|
|
940
|
+
set stroke(arg: any);
|
|
941
|
+
/**
|
|
942
|
+
* Gets or sets the brush to apply as an outline of the elements within the custom interval.
|
|
943
|
+
* @type {Object}
|
|
944
|
+
* @summary The brush to apply as an outline of the elements within the custom interval.
|
|
945
|
+
*/
|
|
946
|
+
get stroke(): any;
|
|
947
|
+
toJson(): {
|
|
948
|
+
minValue: number;
|
|
949
|
+
maxValue: number;
|
|
950
|
+
fill: any;
|
|
951
|
+
stroke: any;
|
|
952
|
+
foreground: any;
|
|
953
|
+
};
|
|
954
|
+
_minValue: number;
|
|
955
|
+
_maxValue: number;
|
|
956
|
+
_fill: any;
|
|
957
|
+
_stroke: any;
|
|
958
|
+
set foreground(arg: any);
|
|
959
|
+
/**
|
|
960
|
+
* Gets or sets the color to apply as a foreground to the elements within this custom interval.
|
|
961
|
+
* @type {Object}
|
|
962
|
+
* @summary The color to apply as a foreground to the elements within this custom interval.
|
|
963
|
+
*/
|
|
964
|
+
get foreground(): any;
|
|
965
|
+
_foreground: any;
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
declare module "Gauges/TickSettings" {
|
|
969
|
+
/**
|
|
970
|
+
* @class Provides settings for the ticks and labels in a gauge scale.
|
|
971
|
+
*/
|
|
972
|
+
export class TickSettings {
|
|
973
|
+
/**
|
|
974
|
+
* Creates an instance of TickSettings class.
|
|
975
|
+
* @constructor
|
|
976
|
+
* @param {BaseScale} parent The scale these settings belong to.
|
|
977
|
+
*/
|
|
978
|
+
constructor(parent: any);
|
|
979
|
+
parent: any;
|
|
980
|
+
_count: any;
|
|
981
|
+
_step: any;
|
|
982
|
+
_tickWidth: any;
|
|
983
|
+
_tickHeight: any;
|
|
984
|
+
_fill: any;
|
|
985
|
+
_stroke: string;
|
|
986
|
+
_showTicks: any;
|
|
987
|
+
_showLabels: any;
|
|
988
|
+
_labelOffset: Length;
|
|
989
|
+
_tickOffset: Length;
|
|
990
|
+
_labelRotation: number;
|
|
991
|
+
_fontFamily: string;
|
|
992
|
+
_fontSize: any;
|
|
993
|
+
_fontStyle: any;
|
|
994
|
+
_labelForeground: string;
|
|
995
|
+
_tickAlignment: number;
|
|
996
|
+
_labelAlignment: number;
|
|
997
|
+
_tickShape: any;
|
|
998
|
+
_showMaxValueTick: number;
|
|
999
|
+
_numberPrecision: number;
|
|
1000
|
+
_customIntervals: any[];
|
|
1001
|
+
fromJson(obj: any): void;
|
|
1002
|
+
set count(arg: number);
|
|
1003
|
+
/**
|
|
1004
|
+
* Gets or sets the number of ticks and labels.
|
|
1005
|
+
* @type {Number}
|
|
1006
|
+
* @summary The number of ticks and labels.
|
|
1007
|
+
* @remarks This property is mutually exclusive with the Step property. If both are specified the Step property will take precedence.
|
|
1008
|
+
*/
|
|
1009
|
+
get count(): number;
|
|
1010
|
+
set step(arg: number);
|
|
1011
|
+
/**
|
|
1012
|
+
* Gets or sets the value between adjacent ticks and labels.
|
|
1013
|
+
* @type {Number}
|
|
1014
|
+
* @summary The value between adjacent ticks and labels.
|
|
1015
|
+
* @remarks This property is mutually exclusive with the Count property. If both are specified the Step property will take precedence.
|
|
1016
|
+
*/
|
|
1017
|
+
get step(): number;
|
|
1018
|
+
set tickWidth(arg: Length);
|
|
1019
|
+
/**
|
|
1020
|
+
* Gets or sets the width of a tick.
|
|
1021
|
+
* @type {Length}
|
|
1022
|
+
* @summary The width of a tick.
|
|
1023
|
+
*/
|
|
1024
|
+
get tickWidth(): Length;
|
|
1025
|
+
set tickHeight(arg: Length);
|
|
1026
|
+
/**
|
|
1027
|
+
* Gets or sets the height of a tick.
|
|
1028
|
+
* @type {Length}
|
|
1029
|
+
* @summary The height of a tick.
|
|
1030
|
+
*/
|
|
1031
|
+
get tickHeight(): Length;
|
|
1032
|
+
set fill(arg: any);
|
|
1033
|
+
/**
|
|
1034
|
+
* Gets or sets the fill brush of the ticks.
|
|
1035
|
+
* @type {Object}
|
|
1036
|
+
* @summary The fill brush of the ticks.
|
|
1037
|
+
*/
|
|
1038
|
+
get fill(): any;
|
|
1039
|
+
set stroke(arg: any);
|
|
1040
|
+
/**
|
|
1041
|
+
* Gets or sets the stroke brush of the ticks.
|
|
1042
|
+
* @type {Object}
|
|
1043
|
+
* @summary The stroke brush of the ticks.
|
|
1044
|
+
*/
|
|
1045
|
+
get stroke(): any;
|
|
1046
|
+
set showTicks(arg: boolean);
|
|
1047
|
+
/**
|
|
1048
|
+
* Gets or sets a value indicating whether the ticks are visible.
|
|
1049
|
+
* @type {Boolean}
|
|
1050
|
+
* @summary True if ticks are visible, otherwise false.
|
|
1051
|
+
*/
|
|
1052
|
+
get showTicks(): boolean;
|
|
1053
|
+
set showLabels(arg: boolean);
|
|
1054
|
+
/**
|
|
1055
|
+
* Gets or sets a value indicating whether the labels are visible.
|
|
1056
|
+
* @type {Boolean}
|
|
1057
|
+
* @summary True if labels are visible, otherwise false.
|
|
1058
|
+
*/
|
|
1059
|
+
get showLabels(): boolean;
|
|
1060
|
+
set labelOffset(arg: Length);
|
|
1061
|
+
/**
|
|
1062
|
+
* Gets or sets the offset of the labels relative to their calculated position.
|
|
1063
|
+
* @type {Length}
|
|
1064
|
+
* @summary The offset of the labels relative to their calculated position.
|
|
1065
|
+
*/
|
|
1066
|
+
get labelOffset(): Length;
|
|
1067
|
+
set tickOffset(arg: Length);
|
|
1068
|
+
/**
|
|
1069
|
+
* Gets or sets the offset of the ticks relative to their calculated position.
|
|
1070
|
+
* @type {Length}
|
|
1071
|
+
* @summary The offset of the ticks relative to their calculated position.
|
|
1072
|
+
*/
|
|
1073
|
+
get tickOffset(): Length;
|
|
1074
|
+
set labelRotation(arg: number);
|
|
1075
|
+
/**
|
|
1076
|
+
* Gets or sets the rotation mode of the labels.
|
|
1077
|
+
* @type {LabelRotation}
|
|
1078
|
+
* @summary The rotation mode of the labels.
|
|
1079
|
+
*/
|
|
1080
|
+
get labelRotation(): number;
|
|
1081
|
+
set fontFamily(arg: string);
|
|
1082
|
+
/**
|
|
1083
|
+
* Gets or sets the font family of the labels.
|
|
1084
|
+
* @type {String}
|
|
1085
|
+
* @summary The font family of the labels.
|
|
1086
|
+
*/
|
|
1087
|
+
get fontFamily(): string;
|
|
1088
|
+
set fontSize(arg: Length);
|
|
1089
|
+
/**
|
|
1090
|
+
* Gets or sets the font size of the labels.
|
|
1091
|
+
* @type {Length}
|
|
1092
|
+
* @summary The font size of the labels.
|
|
1093
|
+
*/
|
|
1094
|
+
get fontSize(): Length;
|
|
1095
|
+
set fontStyle(arg: string);
|
|
1096
|
+
/**
|
|
1097
|
+
* Gets or sets the font style of the labels.
|
|
1098
|
+
* @type {String}
|
|
1099
|
+
* @summary The font style of the labels.
|
|
1100
|
+
*/
|
|
1101
|
+
get fontStyle(): string;
|
|
1102
|
+
set labelForeground(arg: any);
|
|
1103
|
+
/**
|
|
1104
|
+
* Gets or sets the brush used to paint label texts.
|
|
1105
|
+
* @type {Object}
|
|
1106
|
+
* @summary The brush used to paint label texts.
|
|
1107
|
+
*/
|
|
1108
|
+
get labelForeground(): any;
|
|
1109
|
+
set labelAlignment(arg: number);
|
|
1110
|
+
/**
|
|
1111
|
+
* Gets or sets the alignment of the labels relative to the scale.
|
|
1112
|
+
* @type {Alignment}
|
|
1113
|
+
* @summary The alignment of the labels relative to the scale.
|
|
1114
|
+
*/
|
|
1115
|
+
get labelAlignment(): number;
|
|
1116
|
+
set tickAlignment(arg: number);
|
|
1117
|
+
/**
|
|
1118
|
+
* Gets or sets the alignment of the ticks relative to the scale.
|
|
1119
|
+
* @type {Alignment}
|
|
1120
|
+
* @summary The alignment of the ticks relative to the scale.
|
|
1121
|
+
*/
|
|
1122
|
+
get tickAlignment(): number;
|
|
1123
|
+
set tickShape(arg: number);
|
|
1124
|
+
/**
|
|
1125
|
+
* Gets or sets the shape of the ticks.
|
|
1126
|
+
* @type {TickShape}
|
|
1127
|
+
* @summary The shape of the ticks.
|
|
1128
|
+
*/
|
|
1129
|
+
get tickShape(): number;
|
|
1130
|
+
set showMaxValueTick(arg: boolean);
|
|
1131
|
+
/**
|
|
1132
|
+
* Gets or sets a value indicating whether to display a tick for the maxValue of the scale.
|
|
1133
|
+
* @type {Boolean}
|
|
1134
|
+
* @summary True to display a tick for the maxValue, otherwise false.
|
|
1135
|
+
*/
|
|
1136
|
+
get showMaxValueTick(): boolean;
|
|
1137
|
+
toJson(): {
|
|
1138
|
+
count: number;
|
|
1139
|
+
tickWidth: Length;
|
|
1140
|
+
tickHeight: Length;
|
|
1141
|
+
fill: any;
|
|
1142
|
+
stroke: any;
|
|
1143
|
+
showTicks: boolean;
|
|
1144
|
+
showLabels: boolean;
|
|
1145
|
+
labelOffset: Length;
|
|
1146
|
+
tickOffset: Length;
|
|
1147
|
+
labelRotation: number;
|
|
1148
|
+
fontFamily: string;
|
|
1149
|
+
fontSize: Length;
|
|
1150
|
+
fontStyle: string;
|
|
1151
|
+
labelForeground: any;
|
|
1152
|
+
labelAlignment: number;
|
|
1153
|
+
tickAlignment: number;
|
|
1154
|
+
tickShape: number;
|
|
1155
|
+
showMaxValueTick: boolean;
|
|
1156
|
+
};
|
|
1157
|
+
set numberPrecision(arg: number);
|
|
1158
|
+
/**
|
|
1159
|
+
* Gets or sets the number recision of the labels.
|
|
1160
|
+
* @type {Number}
|
|
1161
|
+
* @summary The number recision of the labels.
|
|
1162
|
+
*/
|
|
1163
|
+
get numberPrecision(): number;
|
|
1164
|
+
/**
|
|
1165
|
+
* Gets an array of CustomInterval objects, which can be used to customize the appearance of the ticks in a particular interval.
|
|
1166
|
+
* @type {Array}
|
|
1167
|
+
* @summary An array of CustomInterval objects, which can be used to customize the appearance of the ticks in a particular interval.
|
|
1168
|
+
*/
|
|
1169
|
+
get customIntervals(): any[];
|
|
1170
|
+
/**
|
|
1171
|
+
* Adds a CustomInterval object to these settings' customIntervals collection.
|
|
1172
|
+
* @param {CustomInterval} interval The interval to add.
|
|
1173
|
+
*/
|
|
1174
|
+
addCustomInterval(interval: CustomInterval): void;
|
|
1175
|
+
/**
|
|
1176
|
+
* Removes a CustomInterval object from these settings' customIntervals collection.
|
|
1177
|
+
* @param {CustomInterval} interval The interval to remove.
|
|
1178
|
+
*/
|
|
1179
|
+
removeCustomInterval(interval: CustomInterval): void;
|
|
1180
|
+
get defaultStep(): any;
|
|
1181
|
+
get defaultFill(): any;
|
|
1182
|
+
get defaultStroke(): string;
|
|
1183
|
+
get defaultTickOffset(): Length;
|
|
1184
|
+
get defaultTickAlignment(): number;
|
|
1185
|
+
get defaultLabelFormat(): string;
|
|
1186
|
+
get defaultLabelOffset(): Length;
|
|
1187
|
+
get defaultLabelAlignment(): number;
|
|
1188
|
+
get defaultLabelRotation(): number;
|
|
1189
|
+
get defaultFontFamily(): string;
|
|
1190
|
+
get defaultLabelForeground(): string;
|
|
1191
|
+
get defaultShowMaxValueTick(): number;
|
|
1192
|
+
get defaultNumberPrecision(): number;
|
|
1193
|
+
}
|
|
1194
|
+
/**
|
|
1195
|
+
* @class Provides settings for the major ticks and labels in a gauge scale.
|
|
1196
|
+
*/
|
|
1197
|
+
export class MajorTickSettings extends TickSettings {
|
|
1198
|
+
tickType: number;
|
|
1199
|
+
get defaultCount(): number;
|
|
1200
|
+
get defaultTickWidth(): Length;
|
|
1201
|
+
get defaultTickHeight(): Length;
|
|
1202
|
+
get defaultShowTicks(): boolean;
|
|
1203
|
+
get defaultShowLabels(): boolean;
|
|
1204
|
+
get defaultFontSize(): Length;
|
|
1205
|
+
get defaultFontStyle(): string;
|
|
1206
|
+
get defaultTickShape(): number;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* @class Provides settings for the middle ticks and labels in a gauge scale.
|
|
1210
|
+
*/
|
|
1211
|
+
export class MiddleTickSettings extends TickSettings {
|
|
1212
|
+
tickType: number;
|
|
1213
|
+
get defaultCount(): number;
|
|
1214
|
+
get defaultTickWidth(): Length;
|
|
1215
|
+
get defaultTickHeight(): Length;
|
|
1216
|
+
get defaultShowTicks(): boolean;
|
|
1217
|
+
get defaultShowLabels(): boolean;
|
|
1218
|
+
get defaultFontSize(): Length;
|
|
1219
|
+
get defaultFontStyle(): string;
|
|
1220
|
+
get defaultTickShape(): number;
|
|
1221
|
+
}
|
|
1222
|
+
/**
|
|
1223
|
+
* @class Provides settings for the minor ticks and labels in a gauge scale.
|
|
1224
|
+
*/
|
|
1225
|
+
export class MinorTickSettings extends TickSettings {
|
|
1226
|
+
tickType: number;
|
|
1227
|
+
get defaultCount(): number;
|
|
1228
|
+
get defaultTickWidth(): Length;
|
|
1229
|
+
get defaultTickHeight(): Length;
|
|
1230
|
+
get defaultShowTicks(): boolean;
|
|
1231
|
+
get defaultShowLabels(): boolean;
|
|
1232
|
+
get defaultFontSize(): Length;
|
|
1233
|
+
get defaultFontStyle(): string;
|
|
1234
|
+
get defaultTickShape(): number;
|
|
1235
|
+
}
|
|
1236
|
+
import { Length } from "Gauges/Length";
|
|
1237
|
+
import { CustomInterval } from "Gauges/CustomInterval";
|
|
1238
|
+
}
|
|
1239
|
+
declare module "Gauges/Range" {
|
|
1240
|
+
/**
|
|
1241
|
+
* @class Represents a range within a gauge scale.
|
|
1242
|
+
*/
|
|
1243
|
+
export class Range extends VisualElementContainer {
|
|
1244
|
+
set startWidth(arg: Length);
|
|
1245
|
+
/**
|
|
1246
|
+
* Gets or sets the width of this range at its start.
|
|
1247
|
+
* @type {Length}
|
|
1248
|
+
* @summary The width of this range at its start.
|
|
1249
|
+
*/
|
|
1250
|
+
get startWidth(): Length;
|
|
1251
|
+
set endWidth(arg: Length);
|
|
1252
|
+
/**
|
|
1253
|
+
* Gets or sets the width of this range at its end.
|
|
1254
|
+
* @type {Length}
|
|
1255
|
+
* @summary The width of this range at its end.
|
|
1256
|
+
*/
|
|
1257
|
+
get endWidth(): Length;
|
|
1258
|
+
set strokeInside(arg: boolean);
|
|
1259
|
+
/**
|
|
1260
|
+
* Gets or sets a value indicating whether to draw a stroke at the inside of this range.
|
|
1261
|
+
* @type {Boolean}
|
|
1262
|
+
* @summary True if there should be a stroke at the inside of this range, otherwise false.
|
|
1263
|
+
*/
|
|
1264
|
+
get strokeInside(): boolean;
|
|
1265
|
+
set strokeOutside(arg: boolean);
|
|
1266
|
+
/**
|
|
1267
|
+
* Gets or sets a value indicating whether to draw a stroke at the outside of this range.
|
|
1268
|
+
* @type {Boolean}
|
|
1269
|
+
* @summary True if there should be a stroke at the outside of this range, otherwise false.
|
|
1270
|
+
*/
|
|
1271
|
+
get strokeOutside(): boolean;
|
|
1272
|
+
set capStart(arg: boolean);
|
|
1273
|
+
/**
|
|
1274
|
+
* Gets or sets a value indicating whether to draw a stroke in the beginning of this range.
|
|
1275
|
+
* @type {Boolean}
|
|
1276
|
+
* @summary True if there should be a stroke in the beginning of this range, otherwise false.
|
|
1277
|
+
*/
|
|
1278
|
+
get capStart(): boolean;
|
|
1279
|
+
set capEnd(arg: boolean);
|
|
1280
|
+
/**
|
|
1281
|
+
* Gets or sets a value indicating whether to draw a stroke in the end of this range.
|
|
1282
|
+
* @type {Boolean}
|
|
1283
|
+
* @summary True if there should be a stroke in the end of this range, otherwise false.
|
|
1284
|
+
*/
|
|
1285
|
+
get capEnd(): boolean;
|
|
1286
|
+
set offset(arg: Length);
|
|
1287
|
+
/**
|
|
1288
|
+
* Gets or sets the offset of the range from the position calculated according to its alignment.
|
|
1289
|
+
* @type {Length}
|
|
1290
|
+
* @summary The offset of the range from the position calculated according to its alignment.
|
|
1291
|
+
*/
|
|
1292
|
+
get offset(): Length;
|
|
1293
|
+
set alignment(arg: number);
|
|
1294
|
+
/**
|
|
1295
|
+
* Gets or sets the alignment of this range relative to the scale it is associated with.
|
|
1296
|
+
* @type {Alignment}
|
|
1297
|
+
* @summary The alignment of this range relative to the scale it is associated with.
|
|
1298
|
+
*/
|
|
1299
|
+
get alignment(): number;
|
|
1300
|
+
set minValue(arg: number);
|
|
1301
|
+
/**
|
|
1302
|
+
* Gets or sets the start value of this range.
|
|
1303
|
+
* @type {Number}
|
|
1304
|
+
* @summary The start value of this range.
|
|
1305
|
+
*/
|
|
1306
|
+
get minValue(): number;
|
|
1307
|
+
set maxValue(arg: number);
|
|
1308
|
+
/**
|
|
1309
|
+
* Gets or sets the end value of this range.
|
|
1310
|
+
* @type {Number}
|
|
1311
|
+
* @summary The end value of this range.
|
|
1312
|
+
*/
|
|
1313
|
+
get maxValue(): number;
|
|
1314
|
+
set autoSize(arg: boolean);
|
|
1315
|
+
/**
|
|
1316
|
+
* Gets or sets a value indicating whether the start and end width of the range will be automatically adjusted to match the width of the scale.
|
|
1317
|
+
* @type {Boolean}
|
|
1318
|
+
* @summary True if the range is autosized, otherwise false.
|
|
1319
|
+
* @remarks If this property is set to true the values of startWidth and endWidth properties are ignored.
|
|
1320
|
+
*/
|
|
1321
|
+
get autoSize(): boolean;
|
|
1322
|
+
_minValue: number;
|
|
1323
|
+
_maxValue: number;
|
|
1324
|
+
_alignment: number;
|
|
1325
|
+
_startWidth: Length;
|
|
1326
|
+
_endWidth: Length;
|
|
1327
|
+
_offset: Length;
|
|
1328
|
+
_capStart: boolean;
|
|
1329
|
+
_capEnd: boolean;
|
|
1330
|
+
_strokeInside: boolean;
|
|
1331
|
+
_strokeOutside: boolean;
|
|
1332
|
+
_autoSize: boolean;
|
|
1333
|
+
}
|
|
1334
|
+
import { VisualElementContainer } from "Gauges/LoadOrder";
|
|
1335
|
+
import { Length } from "Gauges/Length";
|
|
1336
|
+
}
|
|
1337
|
+
declare module "Gauges/BaseScale" {
|
|
1338
|
+
export default BaseScale;
|
|
1339
|
+
class BaseScale extends VisualElementContainer {
|
|
1340
|
+
/**
|
|
1341
|
+
* Creates an instance of BaseScale.
|
|
1342
|
+
* @constructor
|
|
1343
|
+
* @param {BaseGauge} parent The gauge control this scale belongs to.
|
|
1344
|
+
* @class Represents a scale within a gauge control.
|
|
1345
|
+
*/
|
|
1346
|
+
constructor(parent: any);
|
|
1347
|
+
parent: any;
|
|
1348
|
+
root: void;
|
|
1349
|
+
/**
|
|
1350
|
+
* A list of pointer objects.
|
|
1351
|
+
* @type {Array<Pointer>}
|
|
1352
|
+
*/
|
|
1353
|
+
_pointers: Array<Pointer>;
|
|
1354
|
+
/**
|
|
1355
|
+
* A list of range objects.
|
|
1356
|
+
* @type {Range}
|
|
1357
|
+
*/
|
|
1358
|
+
_ranges: Range;
|
|
1359
|
+
_minValue: number;
|
|
1360
|
+
_maxValue: number;
|
|
1361
|
+
scaleCenter: Point;
|
|
1362
|
+
scaleRadius: number;
|
|
1363
|
+
absoluteSize: Size;
|
|
1364
|
+
set startWidth(arg: Length);
|
|
1365
|
+
/**
|
|
1366
|
+
* Gets or sets the width of the scale at its beginning.
|
|
1367
|
+
* @type {Length}
|
|
1368
|
+
* @summary The width of the scale at its beginning.
|
|
1369
|
+
*/
|
|
1370
|
+
get startWidth(): Length;
|
|
1371
|
+
set endWidth(arg: Length);
|
|
1372
|
+
/**
|
|
1373
|
+
* Gets or sets the width of the scale at its end.
|
|
1374
|
+
* @type {Length}
|
|
1375
|
+
* @summaryThe width of the scale at its end.
|
|
1376
|
+
*/
|
|
1377
|
+
get endWidth(): Length;
|
|
1378
|
+
_logarithmBase: number;
|
|
1379
|
+
_functionType: number;
|
|
1380
|
+
_functionArgument: number;
|
|
1381
|
+
_majorTickSettings: MajorTickSettings;
|
|
1382
|
+
_middleTickSettings: MiddleTickSettings;
|
|
1383
|
+
_minorTickSettings: MinorTickSettings;
|
|
1384
|
+
pointerEvents: any[];
|
|
1385
|
+
set minValue(arg: number);
|
|
1386
|
+
/**
|
|
1387
|
+
* Gets or sets the minimal value displayed by the scale.
|
|
1388
|
+
* @type {Number}
|
|
1389
|
+
* @summary The minimal value displayed by the scale.
|
|
1390
|
+
*/
|
|
1391
|
+
get minValue(): number;
|
|
1392
|
+
set maxValue(arg: number);
|
|
1393
|
+
/**
|
|
1394
|
+
* Gets or sets the maximal value displayed by the scale.
|
|
1395
|
+
* @type {Number}
|
|
1396
|
+
* @summary The maximal value displayed by the scale.
|
|
1397
|
+
*/
|
|
1398
|
+
get maxValue(): number;
|
|
1399
|
+
set logarithmBase(arg: number);
|
|
1400
|
+
/**
|
|
1401
|
+
* Gets or sets the logarithm base when FunctionType is set to Logarithmic.
|
|
1402
|
+
* @type {Number}
|
|
1403
|
+
* @summary The logarithm base when functionType is set to Logarithmic.
|
|
1404
|
+
*/
|
|
1405
|
+
get logarithmBase(): number;
|
|
1406
|
+
set functionType(arg: number);
|
|
1407
|
+
/**
|
|
1408
|
+
* Gets or sets the type of the function used to calculate the distribution of values along the scale.
|
|
1409
|
+
* @type {FunctionType}
|
|
1410
|
+
* @summary The type of the function used to calculate the distribution of values along the scale.
|
|
1411
|
+
*/
|
|
1412
|
+
get functionType(): number;
|
|
1413
|
+
set functionArgument(arg: number);
|
|
1414
|
+
/**
|
|
1415
|
+
* Gets or sets the argument passed to custom functions.
|
|
1416
|
+
* @type {Number}
|
|
1417
|
+
* @summary The argument passed to custom functions.
|
|
1418
|
+
*/
|
|
1419
|
+
get functionArgument(): number;
|
|
1420
|
+
set customFunction(arg: any);
|
|
1421
|
+
/**
|
|
1422
|
+
* Gets or sets the function to be used for distribution of values along the scale when functionType is set to Custom.
|
|
1423
|
+
* @type {FunctionDelegate}
|
|
1424
|
+
* @summary The function to be used for distribution of values along the scale when functionType is set to Custom.
|
|
1425
|
+
*/
|
|
1426
|
+
get customFunction(): any;
|
|
1427
|
+
/**
|
|
1428
|
+
* Sets the reversed version of the function specified through customFunction.
|
|
1429
|
+
* @param {FunctionDelegate} value The reversed version of the function specified through CustomFunction.
|
|
1430
|
+
*/
|
|
1431
|
+
set reversedCustomFunction(arg: any);
|
|
1432
|
+
/**
|
|
1433
|
+
* Gets or sets the reversed version of the function specified through customFunction.
|
|
1434
|
+
* @type {FunctionDelegate}
|
|
1435
|
+
* @summary The reversed version of the function specified through CustomFunction.
|
|
1436
|
+
*/
|
|
1437
|
+
get reversedCustomFunction(): any;
|
|
1438
|
+
/**
|
|
1439
|
+
* Gets the settings for the major ticks and their associated labels.
|
|
1440
|
+
* @type {MajorTickSettings}
|
|
1441
|
+
* @summary The settings for the major ticks and their associated labels.
|
|
1442
|
+
*/
|
|
1443
|
+
get majorTickSettings(): MajorTickSettings;
|
|
1444
|
+
/**
|
|
1445
|
+
* Gets the settings for the middle ticks and their associated labels.
|
|
1446
|
+
* @type {MiddleTickSettings}
|
|
1447
|
+
* @summary The settings for the middle ticks and their associated labels.
|
|
1448
|
+
*/
|
|
1449
|
+
get middleTickSettings(): MiddleTickSettings;
|
|
1450
|
+
/**
|
|
1451
|
+
* Gets the settings for the minor ticks and their associated labels.
|
|
1452
|
+
* @type {MinorTickSettings}
|
|
1453
|
+
* @summary The settings for the minor ticks and their associated labels.
|
|
1454
|
+
*/
|
|
1455
|
+
get minorTickSettings(): MinorTickSettings;
|
|
1456
|
+
createVisuals(): void;
|
|
1457
|
+
geometryContainer: VisualElementContainer;
|
|
1458
|
+
tickContainer: PointerContainer;
|
|
1459
|
+
rangeContainer: VisualElementContainer;
|
|
1460
|
+
labelContainer: VisualElementContainer;
|
|
1461
|
+
childrenContainer: VisualElementContainer;
|
|
1462
|
+
pointerContainer: PointerContainer;
|
|
1463
|
+
invalidate(): void;
|
|
1464
|
+
updateScaleGeometry(): void;
|
|
1465
|
+
geometry: any;
|
|
1466
|
+
updateTicksAndLabels(): void;
|
|
1467
|
+
renderTicksAndLabels(settingsQueue: any, intervalStart: any, intervalEnd: any, endRestriction: any, includeStart: any, includeEnd: any): void;
|
|
1468
|
+
addTickAndLabel(value: any, settings: any): void;
|
|
1469
|
+
getLabelValue(calculatedLabelValue: any, settings: any): any;
|
|
1470
|
+
convertValue(input: any): any;
|
|
1471
|
+
/**
|
|
1472
|
+
* Adds a Pointer object to the pointers collection.
|
|
1473
|
+
* @param {Pointer} pointer The pointer to add.
|
|
1474
|
+
*/
|
|
1475
|
+
addPointer(pointer: Pointer): void;
|
|
1476
|
+
/**
|
|
1477
|
+
* Removes a Pointer object from the pointers collection.
|
|
1478
|
+
* @param {Pointer} pointer The pointer to remove.
|
|
1479
|
+
*/
|
|
1480
|
+
removePointer(pointer: Pointer): void;
|
|
1481
|
+
updateInteractivePointers(point: any, started: any, finished: any): void;
|
|
1482
|
+
pointerStartValue: any;
|
|
1483
|
+
/**
|
|
1484
|
+
* Adds a Range object to the ranges collection.
|
|
1485
|
+
* @param {Range} range The ranges to add.
|
|
1486
|
+
*/
|
|
1487
|
+
addRange(range: Range): void;
|
|
1488
|
+
/**
|
|
1489
|
+
* Removes a Range object from the ranges collection.
|
|
1490
|
+
* @param {Range} range The ranges to remove.
|
|
1491
|
+
*/
|
|
1492
|
+
removeRange(range: Range): void;
|
|
1493
|
+
measureString(text: any, font: any, bounds: any): Size;
|
|
1494
|
+
convertValueBack(input: any): any;
|
|
1495
|
+
getTickStep(settings: any, span: any): any;
|
|
1496
|
+
/**
|
|
1497
|
+
* Returns the array of all pointers in this scale.
|
|
1498
|
+
* @type {Array}
|
|
1499
|
+
* @summary Array of all Pointer instances in the scale.
|
|
1500
|
+
*/
|
|
1501
|
+
get pointers(): any[];
|
|
1502
|
+
/**
|
|
1503
|
+
* Returns the array of all ranges in this scale.
|
|
1504
|
+
* @type {Array}
|
|
1505
|
+
* @summary Array of all Range instances in the scale.
|
|
1506
|
+
*/
|
|
1507
|
+
get ranges(): any[];
|
|
1508
|
+
_startWidth: Length;
|
|
1509
|
+
_endWidth: Length;
|
|
1510
|
+
_customFunction: any;
|
|
1511
|
+
_reversedCustomFunction: any;
|
|
1512
|
+
}
|
|
1513
|
+
import { VisualElementContainer } from "Gauges/LoadOrder";
|
|
1514
|
+
import { Pointer } from "Gauges/Pointer";
|
|
1515
|
+
import { Range } from "Gauges/Range";
|
|
1516
|
+
import { Point } from "@mindfusion/drawing";
|
|
1517
|
+
import { Size } from "@mindfusion/drawing";
|
|
1518
|
+
import { Length } from "Gauges/Length";
|
|
1519
|
+
import { MajorTickSettings } from "Gauges/TickSettings";
|
|
1520
|
+
import { MiddleTickSettings } from "Gauges/TickSettings";
|
|
1521
|
+
import { MinorTickSettings } from "Gauges/TickSettings";
|
|
1522
|
+
import { PointerContainer } from "Gauges/VisualElementContainer";
|
|
1523
|
+
}
|
|
1524
|
+
declare module "Gauges/GeometryFactory" {
|
|
1525
|
+
/**
|
|
1526
|
+
* @class A factory class for various geometry objects.
|
|
1527
|
+
*/
|
|
1528
|
+
export class GeometryFactory {
|
|
1529
|
+
/**
|
|
1530
|
+
* Generates a linear bar geometry with the specified parameters.
|
|
1531
|
+
* @param {Number} centerX The x-coordinate of the generated geometry.
|
|
1532
|
+
* @param {Number} centerY The y-coordinate of the generated geometry.
|
|
1533
|
+
* @param {Number} startInnerOffset The start inner offset of the generated geometry relative to the specified center.
|
|
1534
|
+
* @param {Number} startOuterOffset The start outer offset of the generated geometry relative to the specified center.
|
|
1535
|
+
* @param {Number} endInnerOffset The end inner offset of the generated geometry relative to the specified center.
|
|
1536
|
+
* @param {Number} endOuterOffset The end outer offset of the generated geometry relative to the specified center.
|
|
1537
|
+
* @param {Number} length The length of the generated geometry.
|
|
1538
|
+
* @param {Boolean} isVertical A flag indicating whether the generated geometry is vertical.
|
|
1539
|
+
* @param {Boolean} capStart A flag indicating whether to draw a stroke at the start of the bar.
|
|
1540
|
+
* @param {Boolean} capEnd A flag indicating whether to draw a stroke at the end of the bar.
|
|
1541
|
+
* @param {Boolean} strokeInner A flag indicating whether to draw a stroke at the inner side of the bar.
|
|
1542
|
+
* @param {Boolean} strokeOuter A flag indicating whether to draw a stroke at the outer side of the bar.
|
|
1543
|
+
* @returns {PathFigure} A PathFigure representing a linear bar with the specified parameters.
|
|
1544
|
+
* @remarks The generated geometry is a trapezium.
|
|
1545
|
+
* For example, a vertical linear geometry with centerX = 10, centerY = 10,
|
|
1546
|
+
* startInnerOffset = 0, startOuterOffset = 5, endInnerOffset = 0, endOuerOffset = 10,
|
|
1547
|
+
* length = 100; will be a trapezium with points (10, 110), (15, 110), (20, 10), (10, 10).
|
|
1548
|
+
* A horizontal lienar geometry with the above parameters will be a trapezium
|
|
1549
|
+
* with points (10, 10), (10, 15), (110, 20), (110, 10).
|
|
1550
|
+
*/
|
|
1551
|
+
static createLinearGeometry(centerX: number, centerY: number, startInnerOffset: number, startOuterOffset: number, endInnerOffset: number, endOuterOffset: number, length: number, isVertical: boolean, capStart: boolean, capEnd: boolean, strokeInner: boolean, strokeOuter: boolean): PathFigure;
|
|
1552
|
+
/**
|
|
1553
|
+
* Generates a radial bar geometry with the specified parameters.
|
|
1554
|
+
* @param {Number} centerX The x-coordinate of the generated geometry.
|
|
1555
|
+
* @param {Number} centerY The y-coordinate of the generated geometry.
|
|
1556
|
+
* @param {Number} startInnerRadius The radius of the start point of the inner outline of the bar.
|
|
1557
|
+
* @param {Number} startOuterRadius The radius of the start point of the outer outline of the bar.
|
|
1558
|
+
* @param {Number} endInnerRadius The radius of the end point of the inner outline of the bar.
|
|
1559
|
+
* @param {Number} endOuterRadius The radius of the end point of the outer outline of the bar.
|
|
1560
|
+
* @param {Number} startAngle The start angle of the radial bar.
|
|
1561
|
+
* @param {Number} endAngle The end angle of the radial bar.
|
|
1562
|
+
* @param {Boolean} capStart A flag indicating whether to draw a stroke at the start of the bar.
|
|
1563
|
+
* @param {Boolean} capEnd A flag indicating whether to draw a stroke at the end of the bar.
|
|
1564
|
+
* @param {Boolean} strokeInner A flag indicating whether to draw a stroke at the inner curve of the bar.
|
|
1565
|
+
* @param {Boolean} strokeOuter A flag indicating whether to draw a stroke at the outer curve of the bar.
|
|
1566
|
+
* @returns {PathFigure} A PathFigure representing a radial bar with the specified parameters.
|
|
1567
|
+
*/
|
|
1568
|
+
static createRadialGeometry(centerX: number, centerY: number, startInnerRadius: number, startOuterRadius: number, endInnerRadius: number, endOuterRadius: number, startAngle: number, endAngle: number, capStart: boolean, capEnd: boolean, strokeInner: boolean, strokeOuter: boolean): PathFigure;
|
|
1569
|
+
static getOutlineRadius(startRadius: any, endRadius: any, startAngle: any, endAngle: any, angle: any): any;
|
|
1570
|
+
}
|
|
1571
|
+
import { PathFigure } from "Gauges/PathFigure";
|
|
1572
|
+
}
|
|
1573
|
+
declare module "Gauges/LinearScale" {
|
|
1574
|
+
export default LinearScale;
|
|
1575
|
+
/**
|
|
1576
|
+
* @class Represents a linear scale.
|
|
1577
|
+
*/
|
|
1578
|
+
class LinearScale extends BaseScale {
|
|
1579
|
+
set scaleLength(arg: Length);
|
|
1580
|
+
/**
|
|
1581
|
+
* Gets or sets the length of the scale.
|
|
1582
|
+
* @type {Length}
|
|
1583
|
+
* @summary The length of the scale.
|
|
1584
|
+
*/
|
|
1585
|
+
get scaleLength(): Length;
|
|
1586
|
+
set orientation(arg: number);
|
|
1587
|
+
/**
|
|
1588
|
+
* Gets or sets the orientation of the scale.
|
|
1589
|
+
* @type {Orientation}
|
|
1590
|
+
* @summary The orientation of the scale.
|
|
1591
|
+
*/
|
|
1592
|
+
get orientation(): number;
|
|
1593
|
+
set scaleAlignment(arg: number);
|
|
1594
|
+
/**
|
|
1595
|
+
* Gets or sets the alignment of the scale.
|
|
1596
|
+
* @type {Alignment}
|
|
1597
|
+
* @summary The alignment of the scale.
|
|
1598
|
+
* @remarks All Inner* values align a vertical scale to the left side and a horizontal
|
|
1599
|
+
* scale to the top side of the control. All Outer* values align a vertical
|
|
1600
|
+
* scale to the right side and a horizontal scale to the bottom side of the
|
|
1601
|
+
* control. All Center* values center the scale along its length.
|
|
1602
|
+
*/
|
|
1603
|
+
get scaleAlignment(): number;
|
|
1604
|
+
createScaleGeometry(): import("Gauges/PathFigure").PathFigure;
|
|
1605
|
+
measureTick(tick: any, constraint: any): Size;
|
|
1606
|
+
arrangeTick(tick: any): void;
|
|
1607
|
+
measurePointer(pointer: any, constraint: any): Size;
|
|
1608
|
+
arrangePointer(pointer: any): void;
|
|
1609
|
+
alignBasePoint(offset: any, alignment: any, value: any, size: any): Point;
|
|
1610
|
+
getOutlineOffset(value: any): number;
|
|
1611
|
+
arrangeLabel(label: any): void;
|
|
1612
|
+
measureRange(range: any, constraint: any): Size;
|
|
1613
|
+
createRangeGeometry(range: any): import("Gauges/PathFigure").PathFigure;
|
|
1614
|
+
isLeftAlignment(alignment: any, offset: any): boolean;
|
|
1615
|
+
calculateAbsoluteLength(length: any): any;
|
|
1616
|
+
/**
|
|
1617
|
+
* BaseScale.getValueFromPoint override.
|
|
1618
|
+
* @param {Point} point The point to test.
|
|
1619
|
+
* @returns {Number} The value from the scale, corresponding to the point, possibly MinValue or
|
|
1620
|
+
* MaxValue if the specified point cannot be associated with a value.
|
|
1621
|
+
*/
|
|
1622
|
+
getValueFromPoint(point: Point): number;
|
|
1623
|
+
getDistanceFromPoint(point: any): number;
|
|
1624
|
+
getValueFromDistance(distance: any): number;
|
|
1625
|
+
getDistanceFromValue(value: any): number;
|
|
1626
|
+
_scaleLength: Length;
|
|
1627
|
+
_scaleAlignment: number;
|
|
1628
|
+
_orientation: number;
|
|
1629
|
+
set left(arg: Length);
|
|
1630
|
+
/**
|
|
1631
|
+
* Gets or sets the distance between the left of this scale and the left of its container.
|
|
1632
|
+
* @type {Length}
|
|
1633
|
+
* @summary The distance between the left of this scale and the left of its container.
|
|
1634
|
+
*/
|
|
1635
|
+
get left(): Length;
|
|
1636
|
+
_left: Length;
|
|
1637
|
+
set top(arg: Length);
|
|
1638
|
+
/**
|
|
1639
|
+
* Gets or sets the distance between the top of this scale and the top of its container.
|
|
1640
|
+
* @type {Length}
|
|
1641
|
+
* @summary The distance between the top of this scale and the top of its container.
|
|
1642
|
+
*/
|
|
1643
|
+
get top(): Length;
|
|
1644
|
+
_top: Length;
|
|
1645
|
+
getBasePoint(): Point;
|
|
1646
|
+
getIsVertical(): boolean;
|
|
1647
|
+
getAbsoluteWidth(): number;
|
|
1648
|
+
getAbsoluteLength(): number;
|
|
1649
|
+
getAbsoluteStartWidth(): number;
|
|
1650
|
+
getAbsoluteEndWidth(): number;
|
|
1651
|
+
getAbsoluteLeft(): number;
|
|
1652
|
+
getAbsoluteTop(): number;
|
|
1653
|
+
getAbsoluteShortDim(): number;
|
|
1654
|
+
getAbsoluteLongDim(): number;
|
|
1655
|
+
getAbsoluteSize(): Size;
|
|
1656
|
+
}
|
|
1657
|
+
import { BaseScale } from "Gauges/LoadOrder";
|
|
1658
|
+
import { Length } from "Gauges/Length";
|
|
1659
|
+
import { Size } from "@mindfusion/drawing";
|
|
1660
|
+
import { Point } from "@mindfusion/drawing";
|
|
1661
|
+
}
|
|
1662
|
+
declare module "Gauges/OvalScale" {
|
|
1663
|
+
export default OvalScale;
|
|
1664
|
+
/**
|
|
1665
|
+
* @class Represents a radial scale.
|
|
1666
|
+
*/
|
|
1667
|
+
class OvalScale extends BaseScale {
|
|
1668
|
+
set scaleRelativeCenter(arg: Point);
|
|
1669
|
+
/**
|
|
1670
|
+
* Gets or sets the center of the scale relative to the scale bounds.
|
|
1671
|
+
* @type {Point}
|
|
1672
|
+
* @summary The center of the scale relative to the scale bounds.
|
|
1673
|
+
* @remarks A value of (0.5, 0.5) indicates the center of the bounds, a value of (0, 0) indicates the top-left corner.
|
|
1674
|
+
*/
|
|
1675
|
+
get scaleRelativeCenter(): Point;
|
|
1676
|
+
set scaleRelativeRadius(arg: number);
|
|
1677
|
+
/**
|
|
1678
|
+
* Gets or sets the radius of the scale relative to the scale bounds.
|
|
1679
|
+
* @type {Number}
|
|
1680
|
+
* @summary The radius of the scale relative to the scale bounds.
|
|
1681
|
+
* @remarks A value of 0.5 indicates that the radius is half the size of the scale.
|
|
1682
|
+
*/
|
|
1683
|
+
get scaleRelativeRadius(): number;
|
|
1684
|
+
set startAngle(arg: number);
|
|
1685
|
+
/**
|
|
1686
|
+
* Gets or sets the start angle of the scale.
|
|
1687
|
+
* @type {Number}
|
|
1688
|
+
* @summary The start angle of the scale.
|
|
1689
|
+
*/
|
|
1690
|
+
get startAngle(): number;
|
|
1691
|
+
set endAngle(arg: number);
|
|
1692
|
+
/**
|
|
1693
|
+
* Gets or sets the end angle of the scale.
|
|
1694
|
+
* @type {Number}
|
|
1695
|
+
* @summary The end angle of the scale.
|
|
1696
|
+
*/
|
|
1697
|
+
get endAngle(): number;
|
|
1698
|
+
scaleHalfSize: number;
|
|
1699
|
+
scaleSize: Size;
|
|
1700
|
+
createScaleGeometry(): PathFigure;
|
|
1701
|
+
measureTick(tick: any, constraint: any): Size;
|
|
1702
|
+
arrangeTick(tick: any): void;
|
|
1703
|
+
measurePointer(pointer: any, constraint: any): Size;
|
|
1704
|
+
arrangePointer(pointer: any): void;
|
|
1705
|
+
alignBasePoint(offset: any, alignment: any, value: any, size: any): Point;
|
|
1706
|
+
getOutlineOffset(value: any): any;
|
|
1707
|
+
arrangeLabel(label: any): void;
|
|
1708
|
+
calculateAbsoluteLength(length: any): any;
|
|
1709
|
+
/**
|
|
1710
|
+
* BaseScale.getValueFromPoint override.
|
|
1711
|
+
* @param {Point} point The point to test.
|
|
1712
|
+
* @returns {Number} The value from the scale, corresponding to the point, possibly MinValue or
|
|
1713
|
+
* MaxValue if the specified point cannot be associated with a value.
|
|
1714
|
+
*/
|
|
1715
|
+
getValueFromPoint(point: Point): number;
|
|
1716
|
+
getValueFromAngle(angle: any): number;
|
|
1717
|
+
getAngleFromValue(value: any): number;
|
|
1718
|
+
getAngleFromPoint(point: any): number;
|
|
1719
|
+
measureRange(range: any, constraint: any): Size;
|
|
1720
|
+
createRangeGeometry(range: any): PathFigure;
|
|
1721
|
+
distanceFromCenter(point: any): number;
|
|
1722
|
+
_scaleRelativeCenter: Point;
|
|
1723
|
+
_scaleRelativeRadius: number;
|
|
1724
|
+
_startAngle: number;
|
|
1725
|
+
_endAngle: number;
|
|
1726
|
+
getBasePoint(): Point;
|
|
1727
|
+
getAbsoluteLength(length: any): any;
|
|
1728
|
+
}
|
|
1729
|
+
import { BaseScale } from "Gauges/LoadOrder";
|
|
1730
|
+
import { Point } from "@mindfusion/drawing";
|
|
1731
|
+
import { Size } from "@mindfusion/drawing";
|
|
1732
|
+
import { PathFigure } from "Gauges/PathFigure";
|
|
1733
|
+
}
|
|
1734
|
+
declare module "Gauges/LoadOrder" {
|
|
1735
|
+
import VisualElement from "Gauges/VisualElement";
|
|
1736
|
+
import VisualElementContainer from "Gauges/VisualElementContainer";
|
|
1737
|
+
import BaseScale from "Gauges/BaseScale";
|
|
1738
|
+
import LinearScale from "Gauges/LinearScale";
|
|
1739
|
+
import OvalScale from "Gauges/OvalScale";
|
|
1740
|
+
export { VisualElement, VisualElementContainer, BaseScale, LinearScale, OvalScale };
|
|
1741
|
+
}
|
|
1742
|
+
declare module "Gauges/PathFigure" {
|
|
1743
|
+
/**
|
|
1744
|
+
* @class Represents a connected series of geometric segments.
|
|
1745
|
+
*/
|
|
1746
|
+
export class PathFigure extends VisualElement {
|
|
1747
|
+
/**
|
|
1748
|
+
* Creates an instance of PathFigure class.
|
|
1749
|
+
* @constructor
|
|
1750
|
+
* @param {String} data The path data string.
|
|
1751
|
+
*/
|
|
1752
|
+
constructor(data: string);
|
|
1753
|
+
segments: any[];
|
|
1754
|
+
parsePathData(data: any): void;
|
|
1755
|
+
path: Path;
|
|
1756
|
+
getIsClosed(): any;
|
|
1757
|
+
setIsClosed(value: any): void;
|
|
1758
|
+
isClosed: any;
|
|
1759
|
+
getStartPoint(): any;
|
|
1760
|
+
setStartPoint(value: any): void;
|
|
1761
|
+
startPoint: any;
|
|
1762
|
+
}
|
|
1763
|
+
import { VisualElement } from "Gauges/LoadOrder";
|
|
1764
|
+
import { Path } from "@mindfusion/drawing";
|
|
1765
|
+
}
|
|
1766
|
+
declare module "Gauges/ArcArea" {
|
|
1767
|
+
/**
|
|
1768
|
+
* @class Represents an ellipse visual.
|
|
1769
|
+
*/
|
|
1770
|
+
export class ArcArea extends PathFigure {
|
|
1771
|
+
/**
|
|
1772
|
+
* Creates an instance of ArcArea class.
|
|
1773
|
+
* @constructor
|
|
1774
|
+
*/
|
|
1775
|
+
constructor();
|
|
1776
|
+
createGeometry(size: any): void;
|
|
1777
|
+
arcPoint(ex: any, ey: any, ewidth: any, eheight: any, angle: any): Point;
|
|
1778
|
+
set startAngle(arg: number);
|
|
1779
|
+
/**
|
|
1780
|
+
* Gets or sets the start angle of the arc.
|
|
1781
|
+
* @type {Number}
|
|
1782
|
+
* @summary The start angle of the arc.
|
|
1783
|
+
*/
|
|
1784
|
+
get startAngle(): number;
|
|
1785
|
+
_startAngle: number;
|
|
1786
|
+
set endAngle(arg: number);
|
|
1787
|
+
/**
|
|
1788
|
+
* Gets or sets the end angle of the arc.
|
|
1789
|
+
* @type {Number}
|
|
1790
|
+
* @summary The end angle of the arc.
|
|
1791
|
+
*/
|
|
1792
|
+
get endAngle(): number;
|
|
1793
|
+
_endAngle: number;
|
|
1794
|
+
}
|
|
1795
|
+
import { PathFigure } from "Gauges/PathFigure";
|
|
1796
|
+
import { Point } from "@mindfusion/drawing";
|
|
1797
|
+
}
|
|
1798
|
+
declare module "Gauges/MouseInfo" {
|
|
1799
|
+
/**
|
|
1800
|
+
* @namespace MindFusion.Gauges
|
|
1801
|
+
*/
|
|
1802
|
+
/**
|
|
1803
|
+
* @class Provides mouse information when processing mouse events in the visual element hierarchy.
|
|
1804
|
+
*/
|
|
1805
|
+
export class MouseInfo {
|
|
1806
|
+
/**
|
|
1807
|
+
* @private
|
|
1808
|
+
*/
|
|
1809
|
+
set action(arg: any);
|
|
1810
|
+
/**
|
|
1811
|
+
* Gets the action that was performed.
|
|
1812
|
+
* @type {MouseAction}
|
|
1813
|
+
* @summary The action that was performed.
|
|
1814
|
+
*/
|
|
1815
|
+
get action(): any;
|
|
1816
|
+
_action: any;
|
|
1817
|
+
/**
|
|
1818
|
+
* @private
|
|
1819
|
+
*/
|
|
1820
|
+
set point(arg: any);
|
|
1821
|
+
/**
|
|
1822
|
+
* Gets the mouse location.
|
|
1823
|
+
* @type {Point}
|
|
1824
|
+
* @summary The mouse location.
|
|
1825
|
+
*/
|
|
1826
|
+
get point(): any;
|
|
1827
|
+
_point: any;
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
declare module "Gauges/BaseGauge" {
|
|
1831
|
+
/**
|
|
1832
|
+
* @class Represents the base class of linear and oval gauges.
|
|
1833
|
+
*/
|
|
1834
|
+
export class BaseGauge extends Control {
|
|
1835
|
+
static get tm(): number[];
|
|
1836
|
+
static get ns(): string;
|
|
1837
|
+
static get pk(): string;
|
|
1838
|
+
/**
|
|
1839
|
+
* Creates an instance of BaseGauge.
|
|
1840
|
+
* @constructor
|
|
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.
|
|
1844
|
+
* @class Represents the base class of linear and oval gauges.
|
|
1845
|
+
*/
|
|
1846
|
+
constructor(element: any, ignoreMouseEvents?: boolean, componentType?: any);
|
|
1847
|
+
stopRepaint: boolean;
|
|
1848
|
+
/**
|
|
1849
|
+
* A list of scale objects.
|
|
1850
|
+
* @type {Array<BaseScale>}
|
|
1851
|
+
*/
|
|
1852
|
+
_scales: Array<BaseScale>;
|
|
1853
|
+
_size: Size;
|
|
1854
|
+
repaintDelegate: () => void;
|
|
1855
|
+
bounds: Rect;
|
|
1856
|
+
set width(arg: any);
|
|
1857
|
+
get width(): any;
|
|
1858
|
+
set height(arg: any);
|
|
1859
|
+
get height(): any;
|
|
1860
|
+
ignoreMouseEvents: boolean;
|
|
1861
|
+
postDataField: HTMLElement;
|
|
1862
|
+
mouseUpDelegate: (e: any) => void;
|
|
1863
|
+
onPrepaintBackgroundDelegate: (sender: any, args: any) => void;
|
|
1864
|
+
onPrepaintForegroundDelegate: (sender: any, args: any) => void;
|
|
1865
|
+
onPrepaintElementDelegate: (sender: any, args: any) => void;
|
|
1866
|
+
onPaintBackgroundDelegate: (sender: any, args: any) => void;
|
|
1867
|
+
onPaintForegroundDelegate: (sender: any, args: any) => void;
|
|
1868
|
+
onPaintElementDelegate: (sender: any, args: any) => void;
|
|
1869
|
+
scaleContainer: VisualElementContainer;
|
|
1870
|
+
context: any;
|
|
1871
|
+
/**
|
|
1872
|
+
* Deserializes the gauge from a JSON string.
|
|
1873
|
+
* @param {String} json A string created by the toJson method.
|
|
1874
|
+
*/
|
|
1875
|
+
fromJson(json: string): void;
|
|
1876
|
+
set autoPostBack(arg: boolean);
|
|
1877
|
+
/**
|
|
1878
|
+
* Gets or sets a value indicating whether the control will post back to the server when a pointer's value has changed.
|
|
1879
|
+
* @type {Boolean}
|
|
1880
|
+
* @summary true if the control should post back, otherwise, false.
|
|
1881
|
+
*/
|
|
1882
|
+
get autoPostBack(): boolean;
|
|
1883
|
+
/**
|
|
1884
|
+
* Serializes the gauge into a JSON string.
|
|
1885
|
+
* @returns {String} A string containing the view's JSON representation.
|
|
1886
|
+
*/
|
|
1887
|
+
toJson(): string;
|
|
1888
|
+
createVisuals(): VisualElementContainer;
|
|
1889
|
+
background: VisualElementContainer;
|
|
1890
|
+
foreground: VisualElementContainer;
|
|
1891
|
+
repaint(): void;
|
|
1892
|
+
root: VisualElementContainer;
|
|
1893
|
+
repaintId: number;
|
|
1894
|
+
invalidate(): void;
|
|
1895
|
+
clear(): void;
|
|
1896
|
+
/**
|
|
1897
|
+
* Adds a scale to the gauge.
|
|
1898
|
+
* @param {BaseScale} scale The scale to add.
|
|
1899
|
+
*/
|
|
1900
|
+
addScale(scale: BaseScale): void;
|
|
1901
|
+
/**
|
|
1902
|
+
* Removes a scale from the gauge.
|
|
1903
|
+
* @param {BaseScale} scale The scale to remove.
|
|
1904
|
+
*/
|
|
1905
|
+
removeScale(scale: BaseScale): void;
|
|
1906
|
+
onPrepaintBackground(sender: any, args: any): void;
|
|
1907
|
+
onPrepaintForeground(sender: any, args: any): void;
|
|
1908
|
+
onPrepaintElement(sender: any, args: any): void;
|
|
1909
|
+
onPaintBackground(sender: any, args: any): void;
|
|
1910
|
+
onPaintForeground(sender: any, args: any): void;
|
|
1911
|
+
onPaintElement(sender: any, args: any): void;
|
|
1912
|
+
onPointerValueChanging(sender: any, args: any): boolean;
|
|
1913
|
+
onPointerValueChanged(sender: any, args: any): void;
|
|
1914
|
+
postback(): void;
|
|
1915
|
+
/**
|
|
1916
|
+
* Returns the VisualElement object corresponding to the specified name.
|
|
1917
|
+
* @param {String} name The name of the object to find.
|
|
1918
|
+
*/
|
|
1919
|
+
getElementByName(name: string): VisualElementContainer;
|
|
1920
|
+
onMouseDown(e: any): void;
|
|
1921
|
+
capture: boolean;
|
|
1922
|
+
onMouseMove(e: any): void;
|
|
1923
|
+
onMouseUp(e: any): void;
|
|
1924
|
+
handleMouse(action: any, point: any): void;
|
|
1925
|
+
onContextMenu(e: any): void;
|
|
1926
|
+
/**
|
|
1927
|
+
* Returns the array of all scales in this gauge.
|
|
1928
|
+
* @type {Array}
|
|
1929
|
+
* @summary Array of all BaseScale instances in the gauge.
|
|
1930
|
+
*/
|
|
1931
|
+
get scales(): any[];
|
|
1932
|
+
set size(arg: Size);
|
|
1933
|
+
get size(): Size;
|
|
1934
|
+
_width: any;
|
|
1935
|
+
_height: any;
|
|
1936
|
+
_autoPostBack: boolean;
|
|
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;
|
|
2027
|
+
}
|
|
2028
|
+
import { Control } from "@mindfusion/controls";
|
|
2029
|
+
import { BaseScale } from "Gauges/LoadOrder";
|
|
2030
|
+
import { Size } from "@mindfusion/drawing";
|
|
2031
|
+
import { Rect } from "@mindfusion/drawing";
|
|
2032
|
+
import { VisualElementContainer } from "Gauges/LoadOrder";
|
|
2033
|
+
import { EventDispatcher } from "@mindfusion/controls";
|
|
2034
|
+
}
|
|
2035
|
+
declare module "Gauges/Ellipse" {
|
|
2036
|
+
/**
|
|
2037
|
+
* @class Represents an ellipse visual.
|
|
2038
|
+
*/
|
|
2039
|
+
export class Ellipse extends PathFigure {
|
|
2040
|
+
/**
|
|
2041
|
+
* Creates an instance of Ellipse class.
|
|
2042
|
+
* @constructor
|
|
2043
|
+
*/
|
|
2044
|
+
constructor();
|
|
2045
|
+
}
|
|
2046
|
+
import { PathFigure } from "Gauges/PathFigure";
|
|
2047
|
+
}
|
|
2048
|
+
declare module "Gauges/RoundRectangle" {
|
|
2049
|
+
/**
|
|
2050
|
+
* @class Represents a rounded rectangle.
|
|
2051
|
+
*/
|
|
2052
|
+
export class RoundRectangle extends VisualElement {
|
|
2053
|
+
set roundness(arg: number);
|
|
2054
|
+
/**
|
|
2055
|
+
* Gets or sets the relative roundness of this rectangle's corners.
|
|
2056
|
+
* @type {Number}
|
|
2057
|
+
* @summary The relative roundness of this rectangle's corners.
|
|
2058
|
+
*/
|
|
2059
|
+
get roundness(): number;
|
|
2060
|
+
_roundness: number;
|
|
2061
|
+
}
|
|
2062
|
+
import { VisualElement } from "Gauges/LoadOrder";
|
|
2063
|
+
}
|
|
2064
|
+
declare module "Gauges/LinearGauge" {
|
|
2065
|
+
/**
|
|
2066
|
+
* @class Represents a linear gauge control.
|
|
2067
|
+
*/
|
|
2068
|
+
export class LinearGauge extends BaseGauge {
|
|
2069
|
+
/**
|
|
2070
|
+
* Creates and initializes a new LinearGauge from the specified element.
|
|
2071
|
+
* This method is static and can be called without creating an instance of the class.
|
|
2072
|
+
* @param {HTMLCanvasElement} element The DOM element that the LinearGauge should be attached to.
|
|
2073
|
+
* @param {Boolean} [ignoreMouseEvents] Optional.
|
|
2074
|
+
* @returns {LinearGauge} A LinearGauge object that represents
|
|
2075
|
+
* the newly created gauge.
|
|
2076
|
+
*/
|
|
2077
|
+
static create(element: HTMLCanvasElement, ignoreMouseEvents?: boolean): LinearGauge;
|
|
2078
|
+
/**
|
|
2079
|
+
* Returns the specified LinearGauge object. This member is static and can be
|
|
2080
|
+
* invoked without creating an instance of the class.
|
|
2081
|
+
* @param {String} id A string that contains the ID of the LinearGauge to find.
|
|
2082
|
+
* @returns {LinearGauge} A LinearGauge object that contains
|
|
2083
|
+
* the gauge requested by id, if found; otherwise, null.
|
|
2084
|
+
*/
|
|
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);
|
|
2092
|
+
type: string;
|
|
2093
|
+
shortOffset: number;
|
|
2094
|
+
longOffset: number;
|
|
2095
|
+
set orientation(arg: number);
|
|
2096
|
+
/**
|
|
2097
|
+
* Gets or sets the orientation of the gauge.
|
|
2098
|
+
* @type {Orientation}
|
|
2099
|
+
* @summary The orientation of the gauge.
|
|
2100
|
+
*/
|
|
2101
|
+
get orientation(): number;
|
|
2102
|
+
verticalMargin: Thickness;
|
|
2103
|
+
horizontalMargin: Thickness;
|
|
2104
|
+
_orientation: number;
|
|
2105
|
+
/**
|
|
2106
|
+
* @private
|
|
2107
|
+
*/
|
|
2108
|
+
private getOrientationMargin;
|
|
2109
|
+
/**
|
|
2110
|
+
* @private
|
|
2111
|
+
*/
|
|
2112
|
+
private get left();
|
|
2113
|
+
/**
|
|
2114
|
+
* @private
|
|
2115
|
+
*/
|
|
2116
|
+
private get top();
|
|
2117
|
+
connectedCallback(): void;
|
|
2118
|
+
}
|
|
2119
|
+
import { BaseGauge } from "Gauges/BaseGauge";
|
|
2120
|
+
import { Thickness } from "@mindfusion/drawing";
|
|
2121
|
+
}
|
|
2122
|
+
declare module "Gauges/OvalGauge" {
|
|
2123
|
+
/**
|
|
2124
|
+
* @class Represents a circular gauge control.
|
|
2125
|
+
*/
|
|
2126
|
+
export class OvalGauge extends BaseGauge {
|
|
2127
|
+
/**
|
|
2128
|
+
* Creates and initializes a new OvalGauge from the specified element.
|
|
2129
|
+
* This method is static and can be called without creating an instance of the class.
|
|
2130
|
+
* @param {HTMLCanvasElement} element The DOM element that the OvalGauge should be attached to.
|
|
2131
|
+
* @param {Boolean} [ignoreMouseEvents] Optional.
|
|
2132
|
+
* @returns {OvalGauge} A OvalGauge object that represents
|
|
2133
|
+
* the newly created gauge.
|
|
2134
|
+
*/
|
|
2135
|
+
static create(element: HTMLCanvasElement, ignoreMouseEvents?: boolean): OvalGauge;
|
|
2136
|
+
/**
|
|
2137
|
+
* Returns the specified OvalGauge object. This member is static and can be
|
|
2138
|
+
* invoked without creating an instance of the class.
|
|
2139
|
+
* @param {String} id A string that contains the ID of the OvalGauge to find.
|
|
2140
|
+
* @returns {OvalGauge} A OvalGauge object that contains
|
|
2141
|
+
* the gauge requested by id, if found; otherwise, null.
|
|
2142
|
+
*/
|
|
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);
|
|
2150
|
+
set style(arg: number);
|
|
2151
|
+
/**
|
|
2152
|
+
* Gets or sets the visual style of the gauge.
|
|
2153
|
+
* @type {OvalGaugeStyle}
|
|
2154
|
+
* @summary The visual style of the gauge.
|
|
2155
|
+
*/
|
|
2156
|
+
get style(): number;
|
|
2157
|
+
get scaleRelativeCenter(): Point;
|
|
2158
|
+
get scaleRelativeRadius(): 0.5 | 0.9;
|
|
2159
|
+
get startAngle(): 0 | 180 | 120 | 90 | 270;
|
|
2160
|
+
get endAngle(): 180 | 360 | 90 | 270 | 420 | 450;
|
|
2161
|
+
margin(): Thickness;
|
|
2162
|
+
getOrientationMargin(): Thickness;
|
|
2163
|
+
_style: number;
|
|
2164
|
+
connectedCallback(): void;
|
|
2165
|
+
}
|
|
2166
|
+
import { BaseGauge } from "Gauges/BaseGauge";
|
|
2167
|
+
import { Point } from "@mindfusion/drawing";
|
|
2168
|
+
import { Thickness } from "@mindfusion/drawing";
|
|
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
|
+
}
|
|
2181
|
+
declare module "@mindfusion/gauges" {
|
|
2182
|
+
export { ArcArea } from "Gauges/ArcArea";
|
|
2183
|
+
export { BaseGauge } from "Gauges/BaseGauge";
|
|
2184
|
+
export { CustomInterval } from "Gauges/CustomInterval";
|
|
2185
|
+
export { Ellipse } from "Gauges/Ellipse";
|
|
2186
|
+
import { Orientation, Alignment, DisplayType, FunctionType, LabelRotation, LengthType, MouseAction, OvalGaugeStyle, PointerShape, TickShape, TickType } from "Gauges/Enum";
|
|
2187
|
+
export { Orientation, Alignment, DisplayType, FunctionType, LabelRotation, LengthType, MouseAction, OvalGaugeStyle, PointerShape, TickShape, TickType };
|
|
2188
|
+
import { PaintEventArgs, ValueChangedEventArgs, PrepaintEventArgs, ValueChangingEventArgs } from "Gauges/EventArgs";
|
|
2189
|
+
export { PaintEventArgs, ValueChangedEventArgs, PrepaintEventArgs, ValueChangingEventArgs };
|
|
2190
|
+
export { Events } from "Gauges/Events";
|
|
2191
|
+
export { GeometryFactory } from "Gauges/GeometryFactory";
|
|
2192
|
+
export { Length } from "Gauges/Length";
|
|
2193
|
+
export { LinearGauge } from "Gauges/LinearGauge";
|
|
2194
|
+
export { VisualElement, VisualElementContainer, BaseScale, LinearScale, OvalScale } from "Gauges/LoadOrder";
|
|
2195
|
+
export { MouseInfo } from "Gauges/MouseInfo";
|
|
2196
|
+
export { OvalGauge } from "Gauges/OvalGauge";
|
|
2197
|
+
export { PathFigure } from "Gauges/PathFigure";
|
|
2198
|
+
export { Pointer } from "Gauges/Pointer";
|
|
2199
|
+
export { Range } from "Gauges/Range";
|
|
2200
|
+
export { RoundRectangle } from "Gauges/RoundRectangle";
|
|
2201
|
+
export { Segment } from "Gauges/Segment";
|
|
2202
|
+
export { Tick } from "Gauges/Tick";
|
|
2203
|
+
export { TickLabel } from "Gauges/TickLabel";
|
|
2204
|
+
export { TickSettings } from "Gauges/TickSettings";
|
|
2205
|
+
export { Utils } from "Gauges/Utils";
|
|
2206
|
+
export { WebComponents } from "Gauges/WebComponents";
|
|
2207
|
+
}
|