@mindfusion/diagramming-controls 1.5.3 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +64 -0
- package/diagramming-controls.d.ts +6 -0
- package/dist/cjs/diagramming-controls.js +1 -1
- package/dist/esm/diagramming-controls.js +1 -1
- package/dist/esm/diagramming-controls.mjs +1 -1
- package/dist/umd/diagramming-controls.js +1 -1
- package/package.json +9 -21
- package/diagramming-controls.d.mts +0 -1022
|
@@ -1,1022 +0,0 @@
|
|
|
1
|
-
/// <reference types="../../@mindfusion/controls" />
|
|
2
|
-
/// <reference types="../../@mindfusion/diagramming" />
|
|
3
|
-
/// <reference types="../../@mindfusion/common-ui" />
|
|
4
|
-
/// <reference types="../../@mindfusion/common-collections" />
|
|
5
|
-
/// <reference types="../../@mindfusion/drawing" />
|
|
6
|
-
declare module "Diagramming.Controls/Enum" {
|
|
7
|
-
/**
|
|
8
|
-
* Specifies the alignment of a tab strip relative to its container control.
|
|
9
|
-
*/
|
|
10
|
-
export type TabAlignment = number;
|
|
11
|
-
export namespace TabAlignment {
|
|
12
|
-
const None: number;
|
|
13
|
-
const Top: number;
|
|
14
|
-
const Bottom: number;
|
|
15
|
-
}
|
|
16
|
-
export namespace AnchorType {
|
|
17
|
-
const In: number;
|
|
18
|
-
const Out: number;
|
|
19
|
-
const BothWays: number;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
declare module "Diagramming.Controls/Events" {
|
|
23
|
-
/**
|
|
24
|
-
* @namespace MindFusion.Diagramming.Controls
|
|
25
|
-
*/
|
|
26
|
-
/**
|
|
27
|
-
* @class Defines all events raised by the controls in the MindFusion.Diagrammming.Controls namespace.
|
|
28
|
-
*/
|
|
29
|
-
export class Events {
|
|
30
|
-
/**
|
|
31
|
-
* Raised before the selected page in a TabbedDiagramView control is changed.
|
|
32
|
-
* @type {String}
|
|
33
|
-
* @summary A string containing the event name.
|
|
34
|
-
*/
|
|
35
|
-
static get pageChanging(): string;
|
|
36
|
-
/**
|
|
37
|
-
* Raised when the selected page in a TabbedDiagramView control has changed.
|
|
38
|
-
* @type {String}
|
|
39
|
-
* @summary A string containing the event name.
|
|
40
|
-
*/
|
|
41
|
-
static get pageChanged(): string;
|
|
42
|
-
/**
|
|
43
|
-
* Raised before a page is added to a TabbedDiagramView control.
|
|
44
|
-
* @type {String}
|
|
45
|
-
* @summary A string containing the event name.
|
|
46
|
-
*/
|
|
47
|
-
static get pageAdding(): string;
|
|
48
|
-
/**
|
|
49
|
-
* Raised when a page has been added to a TabbedDiagramView control.
|
|
50
|
-
* @type {String}
|
|
51
|
-
* @summary A string containing the event name.
|
|
52
|
-
*/
|
|
53
|
-
static get pageAdded(): string;
|
|
54
|
-
/**
|
|
55
|
-
* Raised before a page is removed from a TabbedDiagramView control.
|
|
56
|
-
* @type {String}
|
|
57
|
-
* @summary A string containing the event name.
|
|
58
|
-
*/
|
|
59
|
-
static get pageRemoving(): string;
|
|
60
|
-
/**
|
|
61
|
-
* Raised when a page has been removed from a TabbedDiagramView control.
|
|
62
|
-
* @type {String}
|
|
63
|
-
* @summary A string containing the event name.
|
|
64
|
-
*/
|
|
65
|
-
static get pageRemoved(): string;
|
|
66
|
-
/**
|
|
67
|
-
* Raised when the shape drawing changes in a ShapeDesigner control.
|
|
68
|
-
* @type {String}
|
|
69
|
-
* @summary A string containing the event name.
|
|
70
|
-
*/
|
|
71
|
-
static get shapeChanged(): string;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
declare module "Diagramming.Controls/EventArgs" {
|
|
75
|
-
/**
|
|
76
|
-
* @class Contains the arguments passed to handlers of page-related events in a TabbedDiagramView.
|
|
77
|
-
* @augments CancelEventArgs
|
|
78
|
-
*/
|
|
79
|
-
export class PageEventArgs extends CancelEventArgs {
|
|
80
|
-
/**
|
|
81
|
-
* Initializes a new instance of the PageEventArgs class.
|
|
82
|
-
* @constructor
|
|
83
|
-
* @param {Object} args
|
|
84
|
-
*/
|
|
85
|
-
constructor(args: any);
|
|
86
|
-
sender: any;
|
|
87
|
-
_page: any;
|
|
88
|
-
_oldPage: any;
|
|
89
|
-
/**
|
|
90
|
-
* Gets the page for which the event is raised.
|
|
91
|
-
* @type {DiagramPage}
|
|
92
|
-
* @summary A DiagramPage instance.
|
|
93
|
-
*/
|
|
94
|
-
get page(): any;
|
|
95
|
-
/**
|
|
96
|
-
* Gets the page before the event.
|
|
97
|
-
* @type {DiagramPage}
|
|
98
|
-
* @summary A DiagramPage instance.
|
|
99
|
-
*/
|
|
100
|
-
get oldPage(): any;
|
|
101
|
-
}
|
|
102
|
-
import { CancelEventArgs } from "@mindfusion/controls";
|
|
103
|
-
}
|
|
104
|
-
declare module "Diagramming.Controls/TabbedDiagramView" {
|
|
105
|
-
/**
|
|
106
|
-
* @class Represents a DiagramView that can display DiagramDocument objects.
|
|
107
|
-
* The individual diagram pages can be activated through the tabs in the
|
|
108
|
-
* tray located at one of the view sides.
|
|
109
|
-
* @augments DiagramView
|
|
110
|
-
*/
|
|
111
|
-
export class TabbedDiagramView extends DiagramView {
|
|
112
|
-
/**
|
|
113
|
-
* Creates and initializes a new TabbedDiagramView from the specified element.
|
|
114
|
-
* This method is static and can be called without creating an instance of the class.
|
|
115
|
-
* @param {HTMLCanvasElement} element The DOM element that the DiagramView should be attached to.
|
|
116
|
-
* @param {DiagramDocument} [document] The DiagramDocument instance this control is associated with.
|
|
117
|
-
* @returns {TabbedDiagramView} The newly created TabbedDiagramView object.
|
|
118
|
-
*/
|
|
119
|
-
static create(element: HTMLCanvasElement, document?: DiagramDocument): TabbedDiagramView;
|
|
120
|
-
/**
|
|
121
|
-
* Returns the specified TabbedDiagramView object. This member is static and can be
|
|
122
|
-
* invoked without creating an instance of the class.
|
|
123
|
-
* @param {String} id The id of the TabbedDiagramView's element.
|
|
124
|
-
* @returns {TabbedDiagramView} A TabbedDiagramView object with the specified id, if found; otherwise, null.
|
|
125
|
-
*/
|
|
126
|
-
static find(id: string): TabbedDiagramView;
|
|
127
|
-
/**
|
|
128
|
-
* Initializes a new instance of the TabbedDiagramView class.
|
|
129
|
-
* @constructor
|
|
130
|
-
* @param {HTMLCanvasElement} element The Canvas DOM Element this TabbedDiagramView is associated with.
|
|
131
|
-
* @param {DiagramDocument} [document] The DiagramDocument instance this control is associated with.
|
|
132
|
-
*/
|
|
133
|
-
constructor(element: HTMLCanvasElement, document?: DiagramDocument);
|
|
134
|
-
_tabAlignment: number;
|
|
135
|
-
tabStrip: TabStrip;
|
|
136
|
-
pageRenameStartHandler: (sender: any, args: any) => void;
|
|
137
|
-
pageRenameEndHandler: (sender: any, args: any) => void;
|
|
138
|
-
set tabsSize(arg: number);
|
|
139
|
-
/**
|
|
140
|
-
* Gets or sets the height of the tab strip.
|
|
141
|
-
* @type {Number}
|
|
142
|
-
* @summary The height.
|
|
143
|
-
*/
|
|
144
|
-
get tabsSize(): number;
|
|
145
|
-
_showTabCloseButtons: boolean;
|
|
146
|
-
_showNavigationButtons: boolean;
|
|
147
|
-
_allowRenamePages: boolean;
|
|
148
|
-
documentChangedDelegate: (sender: any, args: any) => void;
|
|
149
|
-
set document(arg: DiagramDocument);
|
|
150
|
-
/**
|
|
151
|
-
* Gets or sets the diagram document displayed by this view.
|
|
152
|
-
* @type {DiagramDocument}
|
|
153
|
-
* @summary The DiagramDocument instance displayed by this view.
|
|
154
|
-
*/
|
|
155
|
-
get document(): DiagramDocument;
|
|
156
|
-
_lastIndex: number;
|
|
157
|
-
items: List<any>;
|
|
158
|
-
_tabMouseDownHandler: (sender: any, args: any) => void;
|
|
159
|
-
_tabDropHandler: (sender: any, args: any) => void;
|
|
160
|
-
set selectedPage(arg: DiagramPage);
|
|
161
|
-
/**
|
|
162
|
-
* Gets or sets the currently selected tab page.
|
|
163
|
-
* @type {DiagramPage}
|
|
164
|
-
* @summary The selected diagram page.
|
|
165
|
-
*/
|
|
166
|
-
get selectedPage(): DiagramPage;
|
|
167
|
-
set tabAlignment(arg: number);
|
|
168
|
-
/**
|
|
169
|
-
* Gets or sets the tab alignment.
|
|
170
|
-
* @type {TabAlignment}
|
|
171
|
-
* @summary A member of the TabAlignment enumeration.
|
|
172
|
-
*/
|
|
173
|
-
get tabAlignment(): number;
|
|
174
|
-
set showNavigationButtons(arg: boolean);
|
|
175
|
-
/**
|
|
176
|
-
* Gets or sets a value indicating whether to show tab navigation buttons.
|
|
177
|
-
* @type {Boolean}
|
|
178
|
-
* @summary true if the tab navigation buttons are visible, or false otherwise.
|
|
179
|
-
* The default value is false.
|
|
180
|
-
*/
|
|
181
|
-
get showNavigationButtons(): boolean;
|
|
182
|
-
set showAddButton(arg: boolean);
|
|
183
|
-
/**
|
|
184
|
-
* Gets or sets a value indicating whether to display the 'Add Tab' button.
|
|
185
|
-
* @type {Boolean}
|
|
186
|
-
* @summary true if the 'Add Tab' button is visible, or false otherwise.
|
|
187
|
-
* The default value is false.
|
|
188
|
-
*/
|
|
189
|
-
get showAddButton(): boolean;
|
|
190
|
-
set showTabCloseButtons(arg: boolean);
|
|
191
|
-
/**
|
|
192
|
-
* Gets or sets a value indicating whether to display a close button for each tab.
|
|
193
|
-
* @type {Boolean}
|
|
194
|
-
* @summary true if the tabs close buttons are visible, or false otherwise.
|
|
195
|
-
* The default value is false.
|
|
196
|
-
*/
|
|
197
|
-
get showTabCloseButtons(): boolean;
|
|
198
|
-
set allowReorder(arg: boolean);
|
|
199
|
-
/**
|
|
200
|
-
* Gets or sets a value indicating whether tabs can be rearranged interactively.
|
|
201
|
-
* @type {Boolean}
|
|
202
|
-
* @summary true if tabs can be rearranged interactively, or false otherwise. The default value is false.
|
|
203
|
-
*/
|
|
204
|
-
get allowReorder(): boolean;
|
|
205
|
-
set allowRenamePages(arg: boolean);
|
|
206
|
-
/**
|
|
207
|
-
* Gets or sets a value indicating whether DiagramPage titles can be renamed interactively.
|
|
208
|
-
* @type {Boolean}
|
|
209
|
-
* @summary true if tabs can be renamed interactively, or false otherwise. The default value is false.
|
|
210
|
-
*/
|
|
211
|
-
get allowRenamePages(): boolean;
|
|
212
|
-
set theme(arg: Theme);
|
|
213
|
-
/**
|
|
214
|
-
* Gets or sets the theme of the control.
|
|
215
|
-
* @type {Theme}
|
|
216
|
-
* @summary An instance of the Theme class.
|
|
217
|
-
*/
|
|
218
|
-
get theme(): Theme;
|
|
219
|
-
set selectedIndex(arg: number);
|
|
220
|
-
/**
|
|
221
|
-
* Gets or sets the index of the currently selected diagram page.
|
|
222
|
-
* @type {Number}
|
|
223
|
-
* @summary The index of the selected diagram page.
|
|
224
|
-
*/
|
|
225
|
-
get selectedIndex(): number;
|
|
226
|
-
resetTabAlignment(): void;
|
|
227
|
-
resetTabs(): void;
|
|
228
|
-
addPage(page: any): void;
|
|
229
|
-
removePage(page: any): void;
|
|
230
|
-
savePageState(page: any): void;
|
|
231
|
-
restorePageState(page: any): void;
|
|
232
|
-
onTabMouseDown(sender: any, args: any): void;
|
|
233
|
-
onTabDrop(sender: any, args: any): void;
|
|
234
|
-
_selectedPage: DiagramPage;
|
|
235
|
-
/**
|
|
236
|
-
* @private
|
|
237
|
-
*/
|
|
238
|
-
private getItemByHeader;
|
|
239
|
-
_document: any;
|
|
240
|
-
_theme: any;
|
|
241
|
-
set themesPath(arg: string);
|
|
242
|
-
/**
|
|
243
|
-
* Gets or sets the path to the control's css themes.
|
|
244
|
-
* @type {String}
|
|
245
|
-
* @summary A string specifying the path.
|
|
246
|
-
* @remarks Only applies to web components.
|
|
247
|
-
*/
|
|
248
|
-
get themesPath(): string;
|
|
249
|
-
_themesPath: any;
|
|
250
|
-
/**
|
|
251
|
-
* Sets the current theme of the control and its pages.
|
|
252
|
-
* @param {Theme} theme The theme.
|
|
253
|
-
* @param {Boolean} [setToPages] true to set pages' themes, otherwise false.
|
|
254
|
-
*/
|
|
255
|
-
setTheme(theme: Theme, setToPages?: boolean): void;
|
|
256
|
-
onDocumentChanged(sender: any, args: any): void;
|
|
257
|
-
onPageValidateAction(event: any, page: any, oldPage: any): boolean;
|
|
258
|
-
onPageRenameStart(sender: any, args: any): void;
|
|
259
|
-
inplaceController: any;
|
|
260
|
-
inplaceHandler: () => void;
|
|
261
|
-
onPageRenameEnd(sender: any, args: any): void;
|
|
262
|
-
/**
|
|
263
|
-
* Raised before the selected page is changed.
|
|
264
|
-
* @event pageChanging
|
|
265
|
-
* @type {EventDispatcher}
|
|
266
|
-
* @property {TabbedDiagramView} sender
|
|
267
|
-
* @property {PageEventArgs} args
|
|
268
|
-
*/
|
|
269
|
-
get pageChanging(): EventDispatcher;
|
|
270
|
-
_pageChanging: EventDispatcher;
|
|
271
|
-
/**
|
|
272
|
-
* Raised when the selected page is changed.
|
|
273
|
-
* @event pageChanged
|
|
274
|
-
* @type {EventDispatcher}
|
|
275
|
-
* @property {TabbedDiagramView} sender
|
|
276
|
-
* @property {PageEventArgs} args
|
|
277
|
-
*/
|
|
278
|
-
get pageChanged(): EventDispatcher;
|
|
279
|
-
_pageChanged: EventDispatcher;
|
|
280
|
-
/**
|
|
281
|
-
* Raised before a page is added.
|
|
282
|
-
* @event pageAdding
|
|
283
|
-
* @type {EventDispatcher}
|
|
284
|
-
* @property {TabbedDiagramView} sender
|
|
285
|
-
* @property {PageEventArgs} args
|
|
286
|
-
*/
|
|
287
|
-
get pageAdding(): EventDispatcher;
|
|
288
|
-
_pageAdding: EventDispatcher;
|
|
289
|
-
/**
|
|
290
|
-
* Raised when a page has been added.
|
|
291
|
-
* @event pageAdded
|
|
292
|
-
* @type {EventDispatcher}
|
|
293
|
-
* @property {TabbedDiagramView} sender
|
|
294
|
-
* @property {PageEventArgs} args
|
|
295
|
-
*/
|
|
296
|
-
get pageAdded(): EventDispatcher;
|
|
297
|
-
_pageAdded: EventDispatcher;
|
|
298
|
-
/**
|
|
299
|
-
* Raised before a page is removed.
|
|
300
|
-
* @event pageRemoving
|
|
301
|
-
* @type {EventDispatcher}
|
|
302
|
-
* @property {TabbedDiagramView} sender
|
|
303
|
-
* @property {PageEventArgs} args
|
|
304
|
-
*/
|
|
305
|
-
get pageRemoving(): EventDispatcher;
|
|
306
|
-
_pageRemoving: EventDispatcher;
|
|
307
|
-
/**
|
|
308
|
-
* Raised when a page has been removed.
|
|
309
|
-
* @event pageRemoved
|
|
310
|
-
* @type {EventDispatcher}
|
|
311
|
-
* @property {TabbedDiagramView} sender
|
|
312
|
-
* @property {PageEventArgs} args
|
|
313
|
-
*/
|
|
314
|
-
get pageRemoved(): EventDispatcher;
|
|
315
|
-
_pageRemoved: EventDispatcher;
|
|
316
|
-
}
|
|
317
|
-
import { DiagramView } from "@mindfusion/diagramming";
|
|
318
|
-
import { TabStrip } from "@mindfusion/common-ui";
|
|
319
|
-
import { DiagramDocument } from "@mindfusion/diagramming";
|
|
320
|
-
import { List } from "@mindfusion/common-collections";
|
|
321
|
-
import { DiagramPage } from "@mindfusion/diagramming";
|
|
322
|
-
import { Theme } from "@mindfusion/diagramming";
|
|
323
|
-
import { EventDispatcher } from "@mindfusion/controls";
|
|
324
|
-
}
|
|
325
|
-
declare module "Diagramming.Controls/WebComponents" {
|
|
326
|
-
/**
|
|
327
|
-
* @class Implements registration of web components.
|
|
328
|
-
*/
|
|
329
|
-
export class WebComponents {
|
|
330
|
-
/**
|
|
331
|
-
* Registers the controls in the package as web components.
|
|
332
|
-
*/
|
|
333
|
-
static register(): void;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
declare module "Diagramming.Controls/ShapeElements" {
|
|
337
|
-
export class InteractiveElement {
|
|
338
|
-
static get defaultSize(): Size;
|
|
339
|
-
drawControlPoint(context: any, size: any, location: any, brush: any): void;
|
|
340
|
-
get firstHandle(): number;
|
|
341
|
-
get lastHandle(): number;
|
|
342
|
-
saveState(): {
|
|
343
|
-
strokeColor: any;
|
|
344
|
-
strokeThickness: any;
|
|
345
|
-
strokeDashStyle: any;
|
|
346
|
-
};
|
|
347
|
-
loadState(state: any): void;
|
|
348
|
-
strokeColor: any;
|
|
349
|
-
strokeThickness: any;
|
|
350
|
-
strokeDashStyle: any;
|
|
351
|
-
isDummy(): boolean;
|
|
352
|
-
}
|
|
353
|
-
export class LineBuilder extends InteractiveElement {
|
|
354
|
-
static fromCenter(point: any): LineBuilder;
|
|
355
|
-
static default(): LineBuilder;
|
|
356
|
-
constructor(p1: any, p2: any);
|
|
357
|
-
startPoint: any;
|
|
358
|
-
endPoint: any;
|
|
359
|
-
clone(): LineBuilder;
|
|
360
|
-
get center(): any;
|
|
361
|
-
distance(point: any): number;
|
|
362
|
-
offset(point: any): void;
|
|
363
|
-
orientate(from: any, to: any): void;
|
|
364
|
-
scale(scale: any, center: any): void;
|
|
365
|
-
toShape(): Shape;
|
|
366
|
-
addToContext(context: any, startPath: any): void;
|
|
367
|
-
draw(context: any, pen: any): void;
|
|
368
|
-
drawControlPoints(context: any, size: any, brush: any): void;
|
|
369
|
-
hitTestHandle(point: any, maxDist: any): 1 | 0 | -1;
|
|
370
|
-
updateFromHandle(handle: any, point: any): void;
|
|
371
|
-
exportElement(startPath: any): string;
|
|
372
|
-
exportShapeElement(): any[];
|
|
373
|
-
}
|
|
374
|
-
export class BezierBuilder extends InteractiveElement {
|
|
375
|
-
static fromPoints(points: any): BezierBuilder;
|
|
376
|
-
static fromCenter(point: any): BezierBuilder;
|
|
377
|
-
static default(): BezierBuilder;
|
|
378
|
-
constructor(x1: any, y1: any, x2: any, y2: any, x3: any, y3: any, x4: any, y4: any);
|
|
379
|
-
points: Point[];
|
|
380
|
-
clone(): BezierBuilder;
|
|
381
|
-
get startPoint(): Point;
|
|
382
|
-
get endPoint(): Point;
|
|
383
|
-
get center(): Point;
|
|
384
|
-
distance(point: any): number;
|
|
385
|
-
offset(point: any): void;
|
|
386
|
-
orientate(from: any, to: any): void;
|
|
387
|
-
scale(scale: any, center: any): void;
|
|
388
|
-
addToContext(context: any, startPath: any): void;
|
|
389
|
-
draw(context: any, pen: any): void;
|
|
390
|
-
drawControlPoints(context: any, size: any, brush: any): void;
|
|
391
|
-
hitTestHandle(point: any, maxDist: any): number;
|
|
392
|
-
updateFromHandle(handle: any, point: any): void;
|
|
393
|
-
toShape(): Shape;
|
|
394
|
-
exportElement(startPath: any): string;
|
|
395
|
-
exportShapeElement(): any[];
|
|
396
|
-
}
|
|
397
|
-
export class ArcBuilder extends InteractiveElement {
|
|
398
|
-
static fromPoints(p1: any, p2: any, p3: any): ArcBuilder;
|
|
399
|
-
static fromCenter(point: any): ArcBuilder;
|
|
400
|
-
static default(): ArcBuilder;
|
|
401
|
-
constructor(x: any, y: any, radius: any, startAngle: any, endAngle: any, anticlockwise: any);
|
|
402
|
-
startPoint: any;
|
|
403
|
-
endPoint: any;
|
|
404
|
-
controlPoint: any;
|
|
405
|
-
clone(): ArcBuilder;
|
|
406
|
-
get center(): Point;
|
|
407
|
-
distance(point: any): any;
|
|
408
|
-
offset(point: any): void;
|
|
409
|
-
orientate(from: any, to: any): void;
|
|
410
|
-
scale(scale: any, center: any): void;
|
|
411
|
-
addToContext(context: any): void;
|
|
412
|
-
draw(context: any, pen: any): void;
|
|
413
|
-
drawControlPoints(context: any, size: any, brush: any): void;
|
|
414
|
-
hitTestHandle(point: any, maxDist: any): 1 | 0 | 2 | -1;
|
|
415
|
-
calcCenter(): Point;
|
|
416
|
-
updateFromHandle(handle: any, point: any): void;
|
|
417
|
-
toShape(): Shape;
|
|
418
|
-
exportElement(): string;
|
|
419
|
-
exportShapeElement(): any[];
|
|
420
|
-
}
|
|
421
|
-
export class RoundRectBuilder extends InteractiveElement {
|
|
422
|
-
static fromPoints(p1: any, p2: any): RoundRectBuilder;
|
|
423
|
-
static fromCenter(point: any): RoundRectBuilder;
|
|
424
|
-
static fromBounds(bounds: any): RoundRectBuilder;
|
|
425
|
-
static default(): RoundRectBuilder;
|
|
426
|
-
constructor(x1: any, y1: any, x2: any, y2: any, cornerRadius: any);
|
|
427
|
-
topLeft: Point;
|
|
428
|
-
bottomRight: Point;
|
|
429
|
-
cornerRadius: any;
|
|
430
|
-
clone(): RoundRectBuilder;
|
|
431
|
-
get startPoint(): Point;
|
|
432
|
-
get endPoint(): Point;
|
|
433
|
-
get center(): any;
|
|
434
|
-
distance(point: any): number;
|
|
435
|
-
offset(point: any): void;
|
|
436
|
-
orientate(from: any, to: any): void;
|
|
437
|
-
scale(scale: any, center: any): void;
|
|
438
|
-
draw(context: any, pen: any): void;
|
|
439
|
-
drawControlPoints(context: any, size: any, brush: any): void;
|
|
440
|
-
hitTestHandle(point: any, maxDist: any): 1 | 0 | -1;
|
|
441
|
-
updateFromHandle(handle: any, point: any): void;
|
|
442
|
-
toShape(): Shape;
|
|
443
|
-
exportElement(startPath: any): string;
|
|
444
|
-
exportShapeElement(): any[];
|
|
445
|
-
}
|
|
446
|
-
export class Composite {
|
|
447
|
-
static fromCenter(point: any, type: any): Composite;
|
|
448
|
-
static fromBounds(bounds: any, type: any): Composite;
|
|
449
|
-
constructor(type: any, bounds: any);
|
|
450
|
-
type: any;
|
|
451
|
-
bounds: any;
|
|
452
|
-
clone(): Composite;
|
|
453
|
-
getElements(bounds: any): LineBuilder[] | ArcBuilder[];
|
|
454
|
-
}
|
|
455
|
-
export class Command {
|
|
456
|
-
constructor(type: any, dropLocation: any, hitElement: any, element: any, elementIndex: any, outline: any, filledDecoration: any);
|
|
457
|
-
type: any;
|
|
458
|
-
states: Map<any, any>;
|
|
459
|
-
newStates: Map<any, any>;
|
|
460
|
-
dropLocation: any;
|
|
461
|
-
hitElement: any;
|
|
462
|
-
element: any;
|
|
463
|
-
elementIndex: any;
|
|
464
|
-
outline: any;
|
|
465
|
-
filledDecoration: any;
|
|
466
|
-
registerElement(element: any): void;
|
|
467
|
-
execute(canvas: any): void;
|
|
468
|
-
newDecoration: FilledDecorationBuilder;
|
|
469
|
-
oldOutline: any;
|
|
470
|
-
newOutline: any;
|
|
471
|
-
nextState: any;
|
|
472
|
-
prevState: any;
|
|
473
|
-
target: any;
|
|
474
|
-
drawHighlight(context: any): void;
|
|
475
|
-
undo(canvas: any): void;
|
|
476
|
-
redo(canvas: any): void;
|
|
477
|
-
removeElements(array: any, elements: any): void;
|
|
478
|
-
}
|
|
479
|
-
export class FilledDecorationBuilder extends InteractiveElement {
|
|
480
|
-
constructor(outline: any);
|
|
481
|
-
outline: any;
|
|
482
|
-
fillColor: string;
|
|
483
|
-
set bounds(arg: any);
|
|
484
|
-
get bounds(): any;
|
|
485
|
-
_bounds: any;
|
|
486
|
-
draw(context: any): void;
|
|
487
|
-
drawControlPoints(context: any, size: any, brush: any): void;
|
|
488
|
-
distance(point: any): any;
|
|
489
|
-
hitTestHandle(point: any, maxDist: any): 1 | 0 | -1;
|
|
490
|
-
get center(): Point;
|
|
491
|
-
exportElement(): {
|
|
492
|
-
path: string;
|
|
493
|
-
};
|
|
494
|
-
exportShapeElement(): any;
|
|
495
|
-
getElements(bounds: any): any[];
|
|
496
|
-
}
|
|
497
|
-
export class AnchorPointBuilder extends InteractiveElement {
|
|
498
|
-
static fromPoint(point: any): AnchorPointBuilder;
|
|
499
|
-
static default(type: any): AnchorPointBuilder;
|
|
500
|
-
constructor(x: any, y: any, type: any, style: any, size: any, color: any);
|
|
501
|
-
center: Point;
|
|
502
|
-
style: any;
|
|
503
|
-
size: any;
|
|
504
|
-
anchorSize: number;
|
|
505
|
-
anchorType: any;
|
|
506
|
-
clone(): AnchorPointBuilder;
|
|
507
|
-
distance(point: any): any;
|
|
508
|
-
offset(point: any): void;
|
|
509
|
-
setCenter(point: any): void;
|
|
510
|
-
toShape(): Shape;
|
|
511
|
-
draw(context: any, pen: any): void;
|
|
512
|
-
drawControlPoints(context: any, size: any, brush: any): void;
|
|
513
|
-
hitTestHandle(point: any, maxDist: any): 0 | -1;
|
|
514
|
-
updateFromHandle(handle: any, point: any): void;
|
|
515
|
-
exportElement(startPath: any): string;
|
|
516
|
-
}
|
|
517
|
-
export class TextAreaBuilder extends InteractiveElement {
|
|
518
|
-
static default(): TextAreaBuilder;
|
|
519
|
-
constructor(outline: any);
|
|
520
|
-
outline: any;
|
|
521
|
-
set bounds(arg: any);
|
|
522
|
-
get bounds(): any;
|
|
523
|
-
_bounds: any;
|
|
524
|
-
draw(context: any): void;
|
|
525
|
-
drawControlPoints(context: any, size: any, brush: any): void;
|
|
526
|
-
distance(point: any): any;
|
|
527
|
-
hitTestHandle(point: any, maxDist: any): 1 | 0 | -1;
|
|
528
|
-
get center(): Point;
|
|
529
|
-
exportElement(): {
|
|
530
|
-
path: string;
|
|
531
|
-
};
|
|
532
|
-
exportShapeElement(): any;
|
|
533
|
-
getElements(bounds: any): any[];
|
|
534
|
-
}
|
|
535
|
-
import { Size } from "@mindfusion/drawing";
|
|
536
|
-
import { Shape } from "@mindfusion/diagramming";
|
|
537
|
-
import { Point } from "@mindfusion/drawing";
|
|
538
|
-
}
|
|
539
|
-
declare module "Diagramming.Controls/ShapeBuilder" {
|
|
540
|
-
export class ShapeBuilder {
|
|
541
|
-
constructor(shape: any, offset: any);
|
|
542
|
-
outline: any[];
|
|
543
|
-
decorations: any[];
|
|
544
|
-
filledDecorations: any[];
|
|
545
|
-
anchorPoints: any[];
|
|
546
|
-
shape: any;
|
|
547
|
-
offset: any;
|
|
548
|
-
draw(context: any): void;
|
|
549
|
-
parseShape(): void;
|
|
550
|
-
textArea: TextAreaBuilder;
|
|
551
|
-
createBuilders(commands: any): any[];
|
|
552
|
-
lastPoint: any;
|
|
553
|
-
createBuilder(command: any): any;
|
|
554
|
-
exportShape(shapeId: any): Shape;
|
|
555
|
-
exportElements(elementBuilders: any, merge: any, array: any): string | any[];
|
|
556
|
-
exportShapeElements(elementBuilders: any, array: any): any[];
|
|
557
|
-
useTextArea(): any;
|
|
558
|
-
allElements(): any[];
|
|
559
|
-
nearestElement(point: any, maxDist: any, elements: any): any;
|
|
560
|
-
hitTestDropTarget(point: any, newElement: any): Command;
|
|
561
|
-
hitTestOutlineTarget(outline: any, point: any, newElement: any): Command;
|
|
562
|
-
hitTest(point: any, activeElement: any): ElementController;
|
|
563
|
-
hitTestOutline(outline: any, child: any, point: any, filledDecoration: any): ElementController;
|
|
564
|
-
}
|
|
565
|
-
import { TextAreaBuilder } from "Diagramming.Controls/ShapeElements";
|
|
566
|
-
import { Shape } from "@mindfusion/diagramming";
|
|
567
|
-
import { Command } from "Diagramming.Controls/ShapeElements";
|
|
568
|
-
class ElementController {
|
|
569
|
-
constructor(type: any, element: any, handle: any, filledDecoration: any, adjacent: any, adjacentHandle: any);
|
|
570
|
-
type: any;
|
|
571
|
-
element: any;
|
|
572
|
-
handle: any;
|
|
573
|
-
filledDecoration: any;
|
|
574
|
-
adjacent: any;
|
|
575
|
-
adjacentHandle: any;
|
|
576
|
-
changeCommand: Command;
|
|
577
|
-
center: any;
|
|
578
|
-
currentScale: number;
|
|
579
|
-
onMouseDown(point: any): void;
|
|
580
|
-
hasMoved: boolean;
|
|
581
|
-
previousPosition: any;
|
|
582
|
-
initialDistance: any;
|
|
583
|
-
onMouseMove(point: any): void;
|
|
584
|
-
onMouseUp(point: any): void;
|
|
585
|
-
}
|
|
586
|
-
export {};
|
|
587
|
-
}
|
|
588
|
-
declare module "Diagramming.Controls/ShapeCanvas" {
|
|
589
|
-
export class ShapeCanvas extends Diagram {
|
|
590
|
-
shapeSize: number;
|
|
591
|
-
selectedHandlesBrush: string;
|
|
592
|
-
pointedHandlesBrush: string;
|
|
593
|
-
clearOutline(filledDecoration: any): any;
|
|
594
|
-
removeFromOutline(outline: any, element: any): {
|
|
595
|
-
index: number;
|
|
596
|
-
prevState?: undefined;
|
|
597
|
-
nextState?: undefined;
|
|
598
|
-
} | {
|
|
599
|
-
index: any;
|
|
600
|
-
prevState: any;
|
|
601
|
-
nextState: any;
|
|
602
|
-
};
|
|
603
|
-
set selectedElement(arg: any);
|
|
604
|
-
get selectedElement(): any;
|
|
605
|
-
_selectedElement: any;
|
|
606
|
-
pointedElement: any;
|
|
607
|
-
set shapeBuilder(arg: any);
|
|
608
|
-
get shapeBuilder(): any;
|
|
609
|
-
_shapeBuilder: any;
|
|
610
|
-
get handlesSize(): number;
|
|
611
|
-
}
|
|
612
|
-
import { Diagram } from "@mindfusion/diagramming";
|
|
613
|
-
}
|
|
614
|
-
declare module "Diagramming.Controls/ShapeView" {
|
|
615
|
-
export class ShapeView extends DiagramView {
|
|
616
|
-
/**
|
|
617
|
-
* Creates and initializes a new ShapeDesigner from the specified element.
|
|
618
|
-
* This method is static and can be called without creating an instance of the class.
|
|
619
|
-
* @param {HTMLCanvasElement} element The DOM element that the DiagramView should be attached to.
|
|
620
|
-
* @param {DiagramDocument} [document] The DiagramDocument instance this control is associated with.
|
|
621
|
-
* @returns {ShapeDesigner} The newly created ShapeDesigner object.
|
|
622
|
-
*/
|
|
623
|
-
static create(element: HTMLCanvasElement, document?: DiagramDocument): any;
|
|
624
|
-
constructor(element: any);
|
|
625
|
-
undoHistory: any[];
|
|
626
|
-
currentCommand: number;
|
|
627
|
-
offset: Point;
|
|
628
|
-
onElementDrag(element: any, position: any): void;
|
|
629
|
-
onElementDrop(element: any): void;
|
|
630
|
-
onPointerDown(position: any, button: any, id: any): void;
|
|
631
|
-
controller: any;
|
|
632
|
-
onPointerMove(position: any, id: any): Promise<void>;
|
|
633
|
-
set pointedElement(arg: any);
|
|
634
|
-
get pointedElement(): any;
|
|
635
|
-
onPointerUp(position: any, button: any, id: any): Promise<void>;
|
|
636
|
-
set selectedElement(arg: any);
|
|
637
|
-
get selectedElement(): any;
|
|
638
|
-
onKeyUp(target: any, keyCode: any, recorded: any, value: any): Promise<void>;
|
|
639
|
-
removeElement(element: any): void;
|
|
640
|
-
saveCommand(command: any): void;
|
|
641
|
-
undo(): void;
|
|
642
|
-
fromCommand: boolean;
|
|
643
|
-
redo(): void;
|
|
644
|
-
importShape(shape: any): void;
|
|
645
|
-
alignPointToGrid(point: any): Point;
|
|
646
|
-
}
|
|
647
|
-
import { DiagramView } from "@mindfusion/diagramming";
|
|
648
|
-
import { Point } from "@mindfusion/drawing";
|
|
649
|
-
import { DiagramDocument } from "@mindfusion/diagramming";
|
|
650
|
-
}
|
|
651
|
-
declare module "Diagramming.Controls/ShapePalette" {
|
|
652
|
-
export class ShapePalette extends NodeListView {
|
|
653
|
-
static create(element: any): any;
|
|
654
|
-
constructor(element: any);
|
|
655
|
-
templatesLabel: string;
|
|
656
|
-
primitivesLabel: string;
|
|
657
|
-
anchorPointsLabel: string;
|
|
658
|
-
labelBrush: string;
|
|
659
|
-
fillShapes(): void;
|
|
660
|
-
_draggedNode: any;
|
|
661
|
-
}
|
|
662
|
-
import { NodeListView } from "@mindfusion/diagramming";
|
|
663
|
-
}
|
|
664
|
-
declare module "Diagramming.Controls/ShapeDesigner" {
|
|
665
|
-
/**
|
|
666
|
-
* @class Represents an interactive vector-drawing control that can be used to design node shapes.
|
|
667
|
-
*/
|
|
668
|
-
export class ShapeDesigner extends Control {
|
|
669
|
-
/**
|
|
670
|
-
* Creates and initializes a new ShapeDesigner from the specified element.
|
|
671
|
-
* This method is static and can be called without creating an instance of the class.
|
|
672
|
-
* @param {HTMLDivElement} element The DOM element that the ShapeDesigner should be attached to.
|
|
673
|
-
* @returns {ShapeDesigner} The newly created ShapeDesigner object.
|
|
674
|
-
*/
|
|
675
|
-
static create(element: HTMLDivElement): ShapeDesigner;
|
|
676
|
-
/**
|
|
677
|
-
* Initializes a new instance of the ShapeDesigner class.
|
|
678
|
-
* @constructor
|
|
679
|
-
* @param {HTMLDivElement} element The DOM Element this ShapeDesigner is associated with.
|
|
680
|
-
*/
|
|
681
|
-
constructor(element: HTMLDivElement);
|
|
682
|
-
view: any;
|
|
683
|
-
palette: any;
|
|
684
|
-
propertyPanel: Window;
|
|
685
|
-
set showShapeProperties(arg: boolean);
|
|
686
|
-
/**
|
|
687
|
-
* Gets or sets a value indicating whether to display the property panel.
|
|
688
|
-
* @type {Boolean}
|
|
689
|
-
* @summary true to display the property panel, or false otherwise.
|
|
690
|
-
* The default value is true.
|
|
691
|
-
*/
|
|
692
|
-
get showShapeProperties(): boolean;
|
|
693
|
-
getContent(): HTMLElement;
|
|
694
|
-
generatePropertyPanelTemplate(): string;
|
|
695
|
-
rebindPropertyPanel(element: any): void;
|
|
696
|
-
setProp(e: any): void;
|
|
697
|
-
/**
|
|
698
|
-
* Imports a Shape into the designer's drawing canvas.
|
|
699
|
-
* @param {Shape} shape A Shape instance.
|
|
700
|
-
*/
|
|
701
|
-
importShape(shape: any): void;
|
|
702
|
-
set selectedElement(arg: InteractiveElement);
|
|
703
|
-
/**
|
|
704
|
-
* Gets or sets the selected element in the shape designer.
|
|
705
|
-
* @type {InteractiveElement}
|
|
706
|
-
* @summary An InteractiveElement instance.
|
|
707
|
-
*/
|
|
708
|
-
get selectedElement(): InteractiveElement;
|
|
709
|
-
/**
|
|
710
|
-
* Creates a new Shape from the current content of the design canvas.
|
|
711
|
-
* @param {String} shapeId The shape's string identifier.
|
|
712
|
-
*/
|
|
713
|
-
exportShape(shapeId: string): any;
|
|
714
|
-
/**
|
|
715
|
-
* Undoes the most recent user action.
|
|
716
|
-
*/
|
|
717
|
-
undo(): void;
|
|
718
|
-
/**
|
|
719
|
-
* Executes again the most recently undone user action.
|
|
720
|
-
*/
|
|
721
|
-
redo(): void;
|
|
722
|
-
removeElement(element: any): void;
|
|
723
|
-
/**
|
|
724
|
-
* Copies the currently selected element to the clipboard.
|
|
725
|
-
*/
|
|
726
|
-
copyToClipboard(): void;
|
|
727
|
-
/**
|
|
728
|
-
* Pastes a previously copied element from the clipboard.
|
|
729
|
-
*/
|
|
730
|
-
pasteFromClipboard(offsetX: any, offsetY: any): void;
|
|
731
|
-
refresh(): void;
|
|
732
|
-
_showShapeProperties: any;
|
|
733
|
-
set showTextArea(arg: boolean);
|
|
734
|
-
/**
|
|
735
|
-
* Gets or sets a value indicating whether to display the shape's text area.
|
|
736
|
-
* @type {Boolean}
|
|
737
|
-
* @summary true to display the text area, or false otherwise.
|
|
738
|
-
* The default value is false.
|
|
739
|
-
*/
|
|
740
|
-
get showTextArea(): boolean;
|
|
741
|
-
set templatesLabel(arg: string);
|
|
742
|
-
/**
|
|
743
|
-
* Gets or sets a string specifying the label of outline templates category in shape designer toolbox.
|
|
744
|
-
* @type {String}
|
|
745
|
-
* @summary The label of outline templates category.
|
|
746
|
-
*/
|
|
747
|
-
get templatesLabel(): string;
|
|
748
|
-
set primitivesLabel(arg: string);
|
|
749
|
-
/**
|
|
750
|
-
* Gets or sets a string specifying the label of graphic primitives category in shape designer toolbox.
|
|
751
|
-
* @type {String}
|
|
752
|
-
* @summary The label of graphic primitives category.
|
|
753
|
-
*/
|
|
754
|
-
get primitivesLabel(): string;
|
|
755
|
-
set anchorPointsLabel(arg: string);
|
|
756
|
-
/**
|
|
757
|
-
* Gets or sets a string specifying the label of graphic AnchorPoints category in shape designer toolbox.
|
|
758
|
-
* @type {String}
|
|
759
|
-
* @summary The label of graphic AnchorPoints category.
|
|
760
|
-
*/
|
|
761
|
-
get anchorPointsLabel(): string;
|
|
762
|
-
set showGrid(arg: boolean);
|
|
763
|
-
/**
|
|
764
|
-
* Gets or sets a value indicating whether the alignment grid is visible.
|
|
765
|
-
* @type {Boolean}
|
|
766
|
-
* @summary true if the alignment grid is visible, or false otherwise.
|
|
767
|
-
*/
|
|
768
|
-
get showGrid(): boolean;
|
|
769
|
-
set alignToGrid(arg: boolean);
|
|
770
|
-
/**
|
|
771
|
-
* Gets or sets a value indicating whether the diagram items should be aligned to a grid.
|
|
772
|
-
* @type {Boolean}
|
|
773
|
-
* @summary true if the diagram items should be aligned to a grid, or false otherwise.
|
|
774
|
-
*/
|
|
775
|
-
get alignToGrid(): boolean;
|
|
776
|
-
set gridSizeX(arg: number);
|
|
777
|
-
/**
|
|
778
|
-
* Gets or sets the horizontal distance between adjacent grid points.
|
|
779
|
-
* @type {Number}
|
|
780
|
-
* @summary The horizontal distance between adjacent grid points.
|
|
781
|
-
*/
|
|
782
|
-
get gridSizeX(): number;
|
|
783
|
-
set gridSizeY(arg: number);
|
|
784
|
-
/**
|
|
785
|
-
* Gets or sets the vertical distance between adjacent grid points.
|
|
786
|
-
* @type {Number}
|
|
787
|
-
* @summary The vertical distance between adjacent grid points.
|
|
788
|
-
*/
|
|
789
|
-
get gridSizeY(): number;
|
|
790
|
-
set theme(arg: Theme);
|
|
791
|
-
/**
|
|
792
|
-
* Gets or sets the theme of the control.
|
|
793
|
-
* @type {Theme}
|
|
794
|
-
* @summary An instance of the Theme class.
|
|
795
|
-
*/
|
|
796
|
-
get theme(): Theme;
|
|
797
|
-
_theme: any;
|
|
798
|
-
set themesPath(arg: string);
|
|
799
|
-
/**
|
|
800
|
-
* Gets or sets the path to the control's css themes.
|
|
801
|
-
* @type {String}
|
|
802
|
-
* @summary A string specifying the path.
|
|
803
|
-
* @remarks Only applies to web components.
|
|
804
|
-
*/
|
|
805
|
-
get themesPath(): string;
|
|
806
|
-
_themesPath: any;
|
|
807
|
-
/**
|
|
808
|
-
* Raised when the shape has changed.
|
|
809
|
-
* @event shapeChanged
|
|
810
|
-
* @type {EventDispatcher}
|
|
811
|
-
* @property {ShapeDesigner} sender
|
|
812
|
-
* @property {EventArgs} args
|
|
813
|
-
*/
|
|
814
|
-
get shapeChanged(): EventDispatcher;
|
|
815
|
-
_shapeChanged: EventDispatcher;
|
|
816
|
-
connectedCallback(): void;
|
|
817
|
-
}
|
|
818
|
-
import { Control } from "@mindfusion/controls";
|
|
819
|
-
import { Window } from "@mindfusion/common-ui";
|
|
820
|
-
import { InteractiveElement } from "Diagramming.Controls/ShapeElements";
|
|
821
|
-
import { Theme } from "@mindfusion/diagramming";
|
|
822
|
-
import { EventDispatcher } from "@mindfusion/controls";
|
|
823
|
-
}
|
|
824
|
-
declare module "Diagramming.Controls/Palette" {
|
|
825
|
-
/**
|
|
826
|
-
* @class Represents a tool palette control that displays DiagramItem objects grouped
|
|
827
|
-
* into categories. Items from the palette can be added to a diagram by drag-and-drop.
|
|
828
|
-
* @augments Accordion
|
|
829
|
-
*/
|
|
830
|
-
export class Palette extends Accordion {
|
|
831
|
-
/**
|
|
832
|
-
* Creates and initializes a new Palette from the specified element.
|
|
833
|
-
* This method is static and can be called without creating an instance of the class.
|
|
834
|
-
* @param {HTMLDivElement} element The DOM element that the Palette should be attached to.
|
|
835
|
-
* @returns {Palette} The newly created Palette object.
|
|
836
|
-
*/
|
|
837
|
-
static create(element: HTMLDivElement): Palette;
|
|
838
|
-
/**
|
|
839
|
-
* Returns the specified Palette object. This member is static and can be
|
|
840
|
-
* invoked without creating an instance of the class.
|
|
841
|
-
* @param {String} id The id of the Palette's element.
|
|
842
|
-
* @returns {Palette} A Palette object with the specified id, if found; otherwise, null.
|
|
843
|
-
*/
|
|
844
|
-
static find(id: string): Palette;
|
|
845
|
-
/**
|
|
846
|
-
* Initializes a new instance of the Palette class.
|
|
847
|
-
* @constructor
|
|
848
|
-
* @param {HTMLDivElement} element The DOM Element this Palette is associated with.
|
|
849
|
-
*/
|
|
850
|
-
constructor(element: HTMLDivElement);
|
|
851
|
-
_measureUnit: number;
|
|
852
|
-
_columns: number;
|
|
853
|
-
_labelPosition: number;
|
|
854
|
-
_padding: number;
|
|
855
|
-
_iconSize: Size;
|
|
856
|
-
_newInstanceSize: Size;
|
|
857
|
-
_textColor: string;
|
|
858
|
-
_captionFont: Font;
|
|
859
|
-
_controls: Map<any, any>;
|
|
860
|
-
req: () => boolean;
|
|
861
|
-
itemSelectedDelegate: (sender: any, args: any) => void;
|
|
862
|
-
updateSizeDelegate: (sender: any, args: any) => void;
|
|
863
|
-
set columns(arg: number);
|
|
864
|
-
/**
|
|
865
|
-
* Gets or sets the number of columns in palette's layout.
|
|
866
|
-
* @type {Number}
|
|
867
|
-
* @summary An integer value specifying the number of columns.
|
|
868
|
-
*/
|
|
869
|
-
get columns(): number;
|
|
870
|
-
set labelPosition(arg: number);
|
|
871
|
-
/**
|
|
872
|
-
* Gets or sets a value indicating the position of labels relative to item icons.
|
|
873
|
-
* @type {LabelPosition}
|
|
874
|
-
* @summary A member of the LabelPosition enumeration.
|
|
875
|
-
*/
|
|
876
|
-
get labelPosition(): number;
|
|
877
|
-
set iconSize(arg: Size);
|
|
878
|
-
/**
|
|
879
|
-
* Gets or sets the size of items displayed in the palette.
|
|
880
|
-
* @type {Size}
|
|
881
|
-
* @summary An instance of the Size class specifying item size.
|
|
882
|
-
*/
|
|
883
|
-
get iconSize(): Size;
|
|
884
|
-
set newInstanceSize(arg: Size);
|
|
885
|
-
/**
|
|
886
|
-
* Gets or sets the default size of items created by drag-and-drop from this palette.
|
|
887
|
-
* @type {Size}
|
|
888
|
-
* @summary An instance of the Size class specifying item size.
|
|
889
|
-
*/
|
|
890
|
-
get newInstanceSize(): Size;
|
|
891
|
-
set padding(arg: number);
|
|
892
|
-
/**
|
|
893
|
-
* Gets or sets the padding space between item's slot bounds and its contents.
|
|
894
|
-
* @type {Number}
|
|
895
|
-
* @summary A number that specifies the padding space size.
|
|
896
|
-
*/
|
|
897
|
-
get padding(): number;
|
|
898
|
-
set measureUnit(arg: GraphicsUnit);
|
|
899
|
-
/**
|
|
900
|
-
* Gets or sets the unit of measure used to specify item sizes.
|
|
901
|
-
* @type {GraphicsUnit}
|
|
902
|
-
* @summary A GraphicsUnit instance.
|
|
903
|
-
*/
|
|
904
|
-
get measureUnit(): GraphicsUnit;
|
|
905
|
-
set backColor(arg: string);
|
|
906
|
-
/**
|
|
907
|
-
* Gets or sets the background color of the control.
|
|
908
|
-
* @type {String}
|
|
909
|
-
* @summary A string specifying the color name or hexadecimal value.
|
|
910
|
-
*/
|
|
911
|
-
get backColor(): string;
|
|
912
|
-
set textColor(arg: string);
|
|
913
|
-
/**
|
|
914
|
-
* Gets or sets the color used to paint item captions.
|
|
915
|
-
* @type {String}
|
|
916
|
-
* @summary A string specifying the color name or hexadecimal value.
|
|
917
|
-
*/
|
|
918
|
-
get textColor(): string;
|
|
919
|
-
set captionFont(arg: Font);
|
|
920
|
-
/**
|
|
921
|
-
* Gets or sets the font used for item captions.
|
|
922
|
-
* @type {Font}
|
|
923
|
-
* @summary An instance of the Font class.
|
|
924
|
-
*/
|
|
925
|
-
get captionFont(): Font;
|
|
926
|
-
set minVisibleFontSize(arg: number);
|
|
927
|
-
/**
|
|
928
|
-
* Gets or sets a threshold value that hides text if scaled font sizes become smaller.
|
|
929
|
-
* @type {Number}
|
|
930
|
-
* @summary A value specifying the smallest visible font size.
|
|
931
|
-
*/
|
|
932
|
-
get minVisibleFontSize(): number;
|
|
933
|
-
onUpdateSize(control: any): void;
|
|
934
|
-
/**
|
|
935
|
-
* Adds a new category to the palette.
|
|
936
|
-
* @param {String} title The title text of the category.
|
|
937
|
-
* @param {String} [image] The URL of an image to be displayed in the category header.
|
|
938
|
-
*/
|
|
939
|
-
addCategory(title: string, image?: string): AccordionItem;
|
|
940
|
-
/**
|
|
941
|
-
* Removes a category from the control.
|
|
942
|
-
* @param {String} title The title of the category to remove.
|
|
943
|
-
*/
|
|
944
|
-
removeCategory(title: string): void;
|
|
945
|
-
/**
|
|
946
|
-
* Adds an item to the control.
|
|
947
|
-
* @param {DiagramItem} item The item to add.
|
|
948
|
-
* @param {String} category The category of the item.
|
|
949
|
-
* @param {String} [caption] The caption to display for the item.
|
|
950
|
-
*/
|
|
951
|
-
addItem(item: any, category: string, caption?: string): void;
|
|
952
|
-
/**
|
|
953
|
-
* Removes an item from the control.
|
|
954
|
-
* @param {DiagramItem} item The item to remove.
|
|
955
|
-
*/
|
|
956
|
-
removeItem(item: any): void;
|
|
957
|
-
/**
|
|
958
|
-
* Removes all items from the palette.
|
|
959
|
-
*/
|
|
960
|
-
clearAll(): void;
|
|
961
|
-
/**
|
|
962
|
-
* Expands the specified category.
|
|
963
|
-
* @param {String} title The title of the category to expand.
|
|
964
|
-
*/
|
|
965
|
-
expandCategory(title: string): void;
|
|
966
|
-
/**
|
|
967
|
-
* Collapses the specified category.
|
|
968
|
-
* @param {String} title The title of the category to collapse.
|
|
969
|
-
*/
|
|
970
|
-
collapseCategory(title: string): void;
|
|
971
|
-
/**
|
|
972
|
-
* Toggles the expanded state of the specified category.
|
|
973
|
-
* @param {String} title The title of the category to toggle.
|
|
974
|
-
* @param {Boolean} [expand]
|
|
975
|
-
*/
|
|
976
|
-
toggleCategory(title: string, expand?: boolean): void;
|
|
977
|
-
set shapeLibraryLocation(arg: string);
|
|
978
|
-
/**
|
|
979
|
-
* Gets the location of a shape library file containing custom shape definitions.
|
|
980
|
-
* @type {String}
|
|
981
|
-
* @summary URL of a shape library file containing custom shape definitions.
|
|
982
|
-
*/
|
|
983
|
-
get shapeLibraryLocation(): string;
|
|
984
|
-
_shapeLibraryLocation: any;
|
|
985
|
-
_backColor: any;
|
|
986
|
-
_minVisibleFontSize: any;
|
|
987
|
-
/**
|
|
988
|
-
* Raised when a node is selected, either programmatically or by the user.
|
|
989
|
-
* @event nodeSelected
|
|
990
|
-
* @type {EventDispatcher}
|
|
991
|
-
* @property {Palette} sender
|
|
992
|
-
* @property {NodeEventArgs} args
|
|
993
|
-
*/
|
|
994
|
-
get nodeSelected(): EventDispatcher;
|
|
995
|
-
_nodeSelected: EventDispatcher;
|
|
996
|
-
/**
|
|
997
|
-
* Raised when a link is selected, either programmatically or by the user.
|
|
998
|
-
* @event linkSelected
|
|
999
|
-
* @type {EventDispatcher}
|
|
1000
|
-
* @property {Palette} sender
|
|
1001
|
-
* @property {LinkEventArgs} args
|
|
1002
|
-
*/
|
|
1003
|
-
get linkSelected(): EventDispatcher;
|
|
1004
|
-
_linkSelected: EventDispatcher;
|
|
1005
|
-
onItemSelected(sender: any, args: any): void;
|
|
1006
|
-
}
|
|
1007
|
-
import { Accordion } from "@mindfusion/common-ui";
|
|
1008
|
-
import { Size } from "@mindfusion/drawing";
|
|
1009
|
-
import { Font } from "@mindfusion/drawing";
|
|
1010
|
-
import { GraphicsUnit } from "@mindfusion/drawing";
|
|
1011
|
-
import { AccordionItem } from "@mindfusion/common-ui";
|
|
1012
|
-
import { EventDispatcher } from "@mindfusion/controls";
|
|
1013
|
-
}
|
|
1014
|
-
declare module "@mindfusion/diagramming-controls" {
|
|
1015
|
-
export { TabAlignment } from "Diagramming.Controls/Enum";
|
|
1016
|
-
export { Events } from "Diagramming.Controls/Events";
|
|
1017
|
-
export { PageEventArgs } from "Diagramming.Controls/EventArgs";
|
|
1018
|
-
export { TabbedDiagramView } from "Diagramming.Controls/TabbedDiagramView";
|
|
1019
|
-
export { WebComponents } from "Diagramming.Controls/WebComponents";
|
|
1020
|
-
export { ShapeDesigner } from "Diagramming.Controls/ShapeDesigner";
|
|
1021
|
-
export { Palette } from "Diagramming.Controls/Palette";
|
|
1022
|
-
}
|