@mindfusion/drawing 4.0.3 → 4.0.5

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/drawing.d.ts CHANGED
@@ -96,6 +96,168 @@ declare module "Drawing/Point" {
96
96
  manhDistance(p: any): number;
97
97
  }
98
98
  }
99
+ declare module "Drawing/Enum" {
100
+ /**
101
+ * Specifies visibility for components.
102
+ */
103
+ export type Visibility = number;
104
+ export namespace Visibility {
105
+ const Hidden: number;
106
+ const Collapsed: number;
107
+ const Visible: number;
108
+ }
109
+ /**
110
+ * Specifies alignment of components.
111
+ */
112
+ export type LayoutAlignment = number;
113
+ export namespace LayoutAlignment {
114
+ const Near: number;
115
+ const Center: number;
116
+ const Far: number;
117
+ const Stretch: number;
118
+ }
119
+ /**
120
+ * Specifies the dash pattern of lines.
121
+ */
122
+ export type DashStyle = number;
123
+ export namespace DashStyle {
124
+ const Solid: number;
125
+ const Dash: number;
126
+ const Dot: number;
127
+ const DashDot: number;
128
+ const DashDotDot: number;
129
+ const Custom: number;
130
+ function apply(context: any, dashStyle: any): void;
131
+ }
132
+ /**
133
+ * Specifies the position and alignment of a picture in a node, or that of the background image.
134
+ */
135
+ export type ImageAlign = number;
136
+ export namespace ImageAlign {
137
+ const Center_1: number;
138
+ export { Center_1 as Center };
139
+ export const Fit: number;
140
+ const Stretch_1: number;
141
+ export { Stretch_1 as Stretch };
142
+ export const Tile: number;
143
+ export const TopLeft: number;
144
+ export const BottomLeft: number;
145
+ export const TopRight: number;
146
+ export const BottomRight: number;
147
+ export const TopCenter: number;
148
+ export const BottomCenter: number;
149
+ export const MiddleLeft: number;
150
+ export const MiddleRight: number;
151
+ export const FitLeft: number;
152
+ export const FitTop: number;
153
+ export const FitRight: number;
154
+ export const FitBottom: number;
155
+ }
156
+ /**
157
+ * Specifies font style attributes.
158
+ */
159
+ export type FontStyle = number;
160
+ export namespace FontStyle {
161
+ const Regular: number;
162
+ const Bold: number;
163
+ const Italic: number;
164
+ const Underline: number;
165
+ const Strikeout: number;
166
+ }
167
+ /**
168
+ * Specifies how to join consecutive line or curve segments in a figure.
169
+ */
170
+ export type LineJoin = number;
171
+ export namespace LineJoin {
172
+ const Miter: number;
173
+ const Bevel: number;
174
+ const Round: number;
175
+ }
176
+ /**
177
+ * Specifies the alignment of a text string relative to its layout rectangle.
178
+ */
179
+ export type StringAlignment = number;
180
+ export namespace StringAlignment {
181
+ const Near_1: number;
182
+ export { Near_1 as Near };
183
+ const Center_2: number;
184
+ export { Center_2 as Center };
185
+ const Far_1: number;
186
+ export { Far_1 as Far };
187
+ }
188
+ /**
189
+ * Specifies the alignment of a graphics element relative to its layout rectangle.
190
+ */
191
+ export type Alignment = number;
192
+ export namespace Alignment {
193
+ const Near_2: number;
194
+ export { Near_2 as Near };
195
+ const Center_3: number;
196
+ export { Center_3 as Center };
197
+ const Far_2: number;
198
+ export { Far_2 as Far };
199
+ }
200
+ /**
201
+ * @class Encapsulates text layout information.
202
+ * @property {StringAlignment} alignment Gets or sets the horizontal alignment of the text.
203
+ * @property {StringAlignment} lineAlignment Gets or sets the vertical alignment of the text.
204
+ */
205
+ export class StringFormat {
206
+ set alignment(arg: any);
207
+ get alignment(): any;
208
+ _alignment: any;
209
+ set lineAlignment(arg: any);
210
+ get lineAlignment(): any;
211
+ _lineAlignment: any;
212
+ }
213
+ }
214
+ declare module "Drawing/ComponentBase" {
215
+ /**
216
+ * @class A base class for components in CompositeNode visual tree.
217
+ */
218
+ export class ComponentBase {
219
+ _visibility: number;
220
+ set visibility(arg: number);
221
+ /**
222
+ * Gets or sets the visibility of this component.
223
+ * @type {Visibility}
224
+ * @summary A member of the Visibility enumeration.
225
+ */
226
+ get visibility(): number;
227
+ set gridRow(arg: number);
228
+ /**
229
+ * Gets or sets the index of the grid row this component is contained in.
230
+ * @type {Number}
231
+ * @summary The grid row index.
232
+ */
233
+ get gridRow(): number;
234
+ _gridRow: any;
235
+ set gridColumn(arg: number);
236
+ /**
237
+ * Gets or sets the index of the grid column this component is contained in.
238
+ * @type {Number}
239
+ * @summary The grid column index.
240
+ */
241
+ get gridColumn(): number;
242
+ _gridColumn: any;
243
+ set horizontalAlignment(arg: number);
244
+ /**
245
+ * Gets or sets the component's horizontal alignment.
246
+ * @type {LayoutAlignment}
247
+ * @summary A member of the LayoutAlignment enumeration.
248
+ */
249
+ get horizontalAlignment(): number;
250
+ _horizontalAlignment: any;
251
+ set verticalAlignment(arg: number);
252
+ /**
253
+ * Gets or sets the component's vertical alignment.
254
+ * @type {LayoutAlignment}
255
+ * @summary A member of the LayoutAlignment enumeration.
256
+ */
257
+ get verticalAlignment(): number;
258
+ _verticalAlignment: any;
259
+ }
260
+ }
99
261
  declare module "Drawing/Matrix" {
100
262
  export class Matrix {
101
263
  static fromValues(values: any): Matrix;
@@ -459,7 +621,7 @@ declare module "Drawing/Brush" {
459
621
  * @namespace MindFusion.Drawing
460
622
  */
461
623
  /**
462
- * Copyright (c) 2015-2021, MindFusion LLC - Bulgaria.
624
+ * Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
463
625
  *
464
626
  * This source code is provided to you as part of the MindFusion software components
465
627
  * package you have purchased. You may use the source code to trace and/or fix
@@ -896,12 +1058,6 @@ declare module "Drawing/DrawingUtils" {
896
1058
  * For internal use only.
897
1059
  * @private
898
1060
  */
899
- private static isNumber;
900
- static isFloat(number: any): boolean;
901
- /**
902
- * For internal use only.
903
- * @private
904
- */
905
1061
  private static sign;
906
1062
  static getFitTextStep(currUnit: any): number;
907
1063
  static formatString(...args: any[]): any;
@@ -1120,114 +1276,12 @@ declare module "Drawing/Size" {
1120
1276
  };
1121
1277
  }
1122
1278
  }
1123
- declare module "Drawing/Enum" {
1124
- /**
1125
- * Specifies visibility for components.
1126
- */
1127
- export type Visibility = number;
1128
- export namespace Visibility {
1129
- const Hidden: number;
1130
- const Collapsed: number;
1131
- const Visible: number;
1132
- }
1133
- /**
1134
- * Specifies alignment of components.
1135
- */
1136
- export type LayoutAlignment = number;
1137
- export namespace LayoutAlignment {
1138
- const Near: number;
1139
- const Center: number;
1140
- const Far: number;
1141
- const Stretch: number;
1142
- }
1143
- /**
1144
- * Specifies the dash pattern of lines.
1145
- */
1146
- export type DashStyle = number;
1147
- export namespace DashStyle {
1148
- const Solid: number;
1149
- const Dash: number;
1150
- const Dot: number;
1151
- const DashDot: number;
1152
- const DashDotDot: number;
1153
- const Custom: number;
1154
- function apply(context: any, dashStyle: any): void;
1155
- }
1156
- /**
1157
- * Specifies the position and alignment of a picture in a node, or that of the background image.
1158
- */
1159
- export type ImageAlign = number;
1160
- export namespace ImageAlign {
1161
- const Center_1: number;
1162
- export { Center_1 as Center };
1163
- export const Fit: number;
1164
- const Stretch_1: number;
1165
- export { Stretch_1 as Stretch };
1166
- export const Tile: number;
1167
- export const TopLeft: number;
1168
- export const BottomLeft: number;
1169
- export const TopRight: number;
1170
- export const BottomRight: number;
1171
- export const TopCenter: number;
1172
- export const BottomCenter: number;
1173
- export const MiddleLeft: number;
1174
- export const MiddleRight: number;
1175
- export const FitLeft: number;
1176
- export const FitTop: number;
1177
- export const FitRight: number;
1178
- export const FitBottom: number;
1179
- }
1180
- /**
1181
- * Specifies font style attributes.
1182
- */
1183
- export type FontStyle = number;
1184
- export namespace FontStyle {
1185
- const Regular: number;
1186
- const Bold: number;
1187
- const Italic: number;
1188
- const Underline: number;
1189
- const Strikeout: number;
1190
- }
1191
- /**
1192
- * Specifies how to join consecutive line or curve segments in a figure.
1193
- */
1194
- export type LineJoin = number;
1195
- export namespace LineJoin {
1196
- const Miter: number;
1197
- const Bevel: number;
1198
- const Round: number;
1199
- }
1200
- /**
1201
- * Specifies the alignment of a text string relative to its layout rectangle.
1202
- */
1203
- export type StringAlignment = number;
1204
- export namespace StringAlignment {
1205
- const Near_1: number;
1206
- export { Near_1 as Near };
1207
- const Center_2: number;
1208
- export { Center_2 as Center };
1209
- const Far_1: number;
1210
- export { Far_1 as Far };
1211
- }
1212
- /**
1213
- * @class Encapsulates text layout information.
1214
- * @property {StringAlignment} alignment Gets or sets the horizontal alignment of the text.
1215
- * @property {StringAlignment} lineAlignment Gets or sets the vertical alignment of the text.
1216
- */
1217
- export class StringFormat {
1218
- set alignment(arg: any);
1219
- get alignment(): any;
1220
- _alignment: any;
1221
- set lineAlignment(arg: any);
1222
- get lineAlignment(): any;
1223
- _lineAlignment: any;
1224
- }
1225
- }
1226
1279
  declare module "Drawing/Rect" {
1227
1280
  /**
1228
1281
  * @class Represents a rectangle.
1282
+ * @augments ComponentBase
1229
1283
  */
1230
- export class Rect {
1284
+ export class Rect extends ComponentBase {
1231
1285
  /**
1232
1286
  * Creates a Rect object with the specified edge locations.
1233
1287
  * @param {Number} l The x-coordinate of the upper-left corner of this Rect.
@@ -1478,7 +1532,6 @@ declare module "Drawing/Rect" {
1478
1532
  */
1479
1533
  equals(rect: Rect): boolean;
1480
1534
  sameSize(rect: any): boolean;
1481
- toString(): string;
1482
1535
  getSize(): Size;
1483
1536
  createSvgElement(svgdoc: any): any;
1484
1537
  expandToInt(): void;
@@ -1486,6 +1539,7 @@ declare module "Drawing/Rect" {
1486
1539
  export namespace Rect {
1487
1540
  const empty: Rect;
1488
1541
  }
1542
+ import { ComponentBase } from "Drawing/ComponentBase";
1489
1543
  import { Size } from "Drawing/Size";
1490
1544
  import { Matrix } from "Drawing/Matrix";
1491
1545
  import { Point } from "Drawing/Point";
@@ -1650,21 +1704,6 @@ declare module "Drawing/Circle" {
1650
1704
  r: any;
1651
1705
  }
1652
1706
  }
1653
- declare module "Drawing/ComponentBase" {
1654
- /**
1655
- * @class A base class for components in CompositeNode visual tree.
1656
- */
1657
- export class ComponentBase {
1658
- _visibility: number;
1659
- set visibility(arg: number);
1660
- /**
1661
- * Gets or sets the visibility of this component.
1662
- * @type {Visibility}
1663
- * @summary A member of the Visibility enumeration.
1664
- */
1665
- get visibility(): number;
1666
- }
1667
- }
1668
1707
  declare module "Drawing/Component" {
1669
1708
  /**
1670
1709
  * @class Represents components in CompositeNode visual tree.
@@ -1693,8 +1732,9 @@ declare module "Drawing/PathParser" {
1693
1732
  declare module "Drawing/Path" {
1694
1733
  /**
1695
1734
  * @class Represents a path.
1735
+ * @augments ComponentBase
1696
1736
  */
1697
- export class Path {
1737
+ export class Path extends ComponentBase {
1698
1738
  static fromPoints(points: any): Path;
1699
1739
  /**
1700
1740
  * Initializes a new instance of the Path class.
@@ -1872,6 +1912,7 @@ declare module "Drawing/Path" {
1872
1912
  updatePathDefinition(): void;
1873
1913
  createSvgElement(svgdoc: any): any;
1874
1914
  }
1915
+ import { ComponentBase } from "Drawing/ComponentBase";
1875
1916
  import { Matrix } from "Drawing/Matrix";
1876
1917
  import { Rect } from "Drawing/Rect";
1877
1918
  }
@@ -1896,8 +1937,9 @@ declare module "Drawing/Container" {
1896
1937
  declare module "Drawing/Ellipse" {
1897
1938
  /**
1898
1939
  * @class Represents an Ellipse.
1940
+ * @augments ComponentBase
1899
1941
  */
1900
- export class Ellipse {
1942
+ export class Ellipse extends ComponentBase {
1901
1943
  /**
1902
1944
  * Initializes a new instance of the Ellipse class.
1903
1945
  * @constructor
@@ -1963,9 +2005,9 @@ declare module "Drawing/Ellipse" {
1963
2005
  * @private
1964
2006
  */
1965
2007
  private getBounds;
1966
- toString(): string;
1967
2008
  createSvgElement(svgdoc: any): any;
1968
2009
  }
2010
+ import { ComponentBase } from "Drawing/ComponentBase";
1969
2011
  import { Matrix } from "Drawing/Matrix";
1970
2012
  }
1971
2013
  declare module "Drawing/Font" {
@@ -2073,6 +2115,7 @@ declare module "Drawing/Gradient" {
2073
2115
  declare module "Drawing/Image" {
2074
2116
  /**
2075
2117
  * @class Represents an image.
2118
+ * @augments ComponentBase
2076
2119
  */
2077
2120
  export class Image extends ComponentBase {
2078
2121
  /**
@@ -2094,8 +2137,6 @@ declare module "Drawing/Image" {
2094
2137
  clipPath: Path;
2095
2138
  type: any;
2096
2139
  imageAlign: number;
2097
- horizontalAlignment: number;
2098
- verticalAlignment: number;
2099
2140
  /**
2100
2141
  * For internal use only.
2101
2142
  * @private
@@ -2259,7 +2300,8 @@ declare module "Drawing/Thickness" {
2259
2300
  }
2260
2301
  declare module "Drawing/Text" {
2261
2302
  /**
2262
- * @class Represents a text container.
2303
+ * @class Represents a text container.
2304
+ * @augments ComponentBase
2263
2305
  */
2264
2306
  export class Text extends ComponentBase {
2265
2307
  /**
@@ -2297,8 +2339,20 @@ declare module "Drawing/Text" {
2297
2339
  width: number;
2298
2340
  height: number;
2299
2341
  clipPath: Path;
2300
- textAlignment: number;
2301
- lineAlignment: number;
2342
+ set textAlignment(arg: number);
2343
+ /**
2344
+ * Gets or sets the horizontal alignment of this text.
2345
+ * @type {Alignment}
2346
+ * @summary A member of the Alignment enumeration.
2347
+ */
2348
+ get textAlignment(): number;
2349
+ set lineAlignment(arg: number);
2350
+ /**
2351
+ * Gets or sets the vertical alignment of this text.
2352
+ * @type {Alignment}
2353
+ * @summary A member of the Alignment enumeration.
2354
+ */
2355
+ get lineAlignment(): number;
2302
2356
  baseline: string;
2303
2357
  padding: Thickness;
2304
2358
  type: any;
@@ -2380,6 +2434,7 @@ declare module "Drawing/Text" {
2380
2434
  scriptOffset: any;
2381
2435
  link: any;
2382
2436
  color: any;
2437
+ size: any;
2383
2438
  };
2384
2439
  addToFormat(specifier: any, format: any): void;
2385
2440
  removeFromFormat(specifier: any, format: any): void;
@@ -2427,6 +2482,8 @@ declare module "Drawing/Text" {
2427
2482
  applyFormat(context: any, sequence: any): void;
2428
2483
  measurePlainText(context: any, maxWidth: any): Size;
2429
2484
  measureStyledText(context: any, maxWidth: any): Size;
2485
+ _textAlignment: any;
2486
+ _lineAlignment: any;
2430
2487
  set defaultProperty(arg: string);
2431
2488
  get defaultProperty(): string;
2432
2489
  get defaultValue(): string;
@@ -2452,8 +2509,9 @@ declare module "Drawing/Text" {
2452
2509
  declare module "Drawing/Video" {
2453
2510
  /**
2454
2511
  * @class A component that displays video stream.
2512
+ * @augments ComponentBase
2455
2513
  */
2456
- export class Video {
2514
+ export class Video extends ComponentBase {
2457
2515
  /**
2458
2516
  * Initializes a new instance of the Video class.
2459
2517
  * @constructor
@@ -2517,6 +2575,7 @@ declare module "Drawing/Video" {
2517
2575
  invalidate(force: any): void;
2518
2576
  removedFromDiagram(): void;
2519
2577
  }
2578
+ import { ComponentBase } from "Drawing/ComponentBase";
2520
2579
  import { Rect } from "Drawing/Rect";
2521
2580
  import { Matrix } from "Drawing/Matrix";
2522
2581
  }
@@ -2525,7 +2584,7 @@ declare module "Drawing/Pen" {
2525
2584
  * @namespace MindFusion.Drawing
2526
2585
  */
2527
2586
  /**
2528
- * Copyright (c) 2015-2021, MindFusion LLC - Bulgaria.
2587
+ * Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
2529
2588
  *
2530
2589
  * This source code is provided to you as part of the MindFusion software components
2531
2590
  * package you have purchased. You may use the source code to trace and/or fix
@@ -2622,7 +2681,7 @@ declare module "Drawing/Graphics" {
2622
2681
  * @namespace MindFusion.Drawing
2623
2682
  */
2624
2683
  /**
2625
- * Copyright (c) 2015-2021, MindFusion LLC - Bulgaria.
2684
+ * Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
2626
2685
  *
2627
2686
  * This source code is provided to you as part of the MindFusion software components
2628
2687
  * package you have purchased. You may use the source code to trace and/or fix
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "email": "info@mindfusion.eu",
5
5
  "url": "https://mindfusion.eu"
6
6
  },
7
- "version": "4.0.3",
7
+ "version": "4.0.5",
8
8
  "description": "Drawing library",
9
9
  "keywords": [
10
10
  "drawing library"