@mindfusion/drawing 4.0.4 → 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
@@ -1114,114 +1276,12 @@ declare module "Drawing/Size" {
1114
1276
  };
1115
1277
  }
1116
1278
  }
1117
- declare module "Drawing/Enum" {
1118
- /**
1119
- * Specifies visibility for components.
1120
- */
1121
- export type Visibility = number;
1122
- export namespace Visibility {
1123
- const Hidden: number;
1124
- const Collapsed: number;
1125
- const Visible: number;
1126
- }
1127
- /**
1128
- * Specifies alignment of components.
1129
- */
1130
- export type LayoutAlignment = number;
1131
- export namespace LayoutAlignment {
1132
- const Near: number;
1133
- const Center: number;
1134
- const Far: number;
1135
- const Stretch: number;
1136
- }
1137
- /**
1138
- * Specifies the dash pattern of lines.
1139
- */
1140
- export type DashStyle = number;
1141
- export namespace DashStyle {
1142
- const Solid: number;
1143
- const Dash: number;
1144
- const Dot: number;
1145
- const DashDot: number;
1146
- const DashDotDot: number;
1147
- const Custom: number;
1148
- function apply(context: any, dashStyle: any): void;
1149
- }
1150
- /**
1151
- * Specifies the position and alignment of a picture in a node, or that of the background image.
1152
- */
1153
- export type ImageAlign = number;
1154
- export namespace ImageAlign {
1155
- const Center_1: number;
1156
- export { Center_1 as Center };
1157
- export const Fit: number;
1158
- const Stretch_1: number;
1159
- export { Stretch_1 as Stretch };
1160
- export const Tile: number;
1161
- export const TopLeft: number;
1162
- export const BottomLeft: number;
1163
- export const TopRight: number;
1164
- export const BottomRight: number;
1165
- export const TopCenter: number;
1166
- export const BottomCenter: number;
1167
- export const MiddleLeft: number;
1168
- export const MiddleRight: number;
1169
- export const FitLeft: number;
1170
- export const FitTop: number;
1171
- export const FitRight: number;
1172
- export const FitBottom: number;
1173
- }
1174
- /**
1175
- * Specifies font style attributes.
1176
- */
1177
- export type FontStyle = number;
1178
- export namespace FontStyle {
1179
- const Regular: number;
1180
- const Bold: number;
1181
- const Italic: number;
1182
- const Underline: number;
1183
- const Strikeout: number;
1184
- }
1185
- /**
1186
- * Specifies how to join consecutive line or curve segments in a figure.
1187
- */
1188
- export type LineJoin = number;
1189
- export namespace LineJoin {
1190
- const Miter: number;
1191
- const Bevel: number;
1192
- const Round: number;
1193
- }
1194
- /**
1195
- * Specifies the alignment of a text string relative to its layout rectangle.
1196
- */
1197
- export type StringAlignment = number;
1198
- export namespace StringAlignment {
1199
- const Near_1: number;
1200
- export { Near_1 as Near };
1201
- const Center_2: number;
1202
- export { Center_2 as Center };
1203
- const Far_1: number;
1204
- export { Far_1 as Far };
1205
- }
1206
- /**
1207
- * @class Encapsulates text layout information.
1208
- * @property {StringAlignment} alignment Gets or sets the horizontal alignment of the text.
1209
- * @property {StringAlignment} lineAlignment Gets or sets the vertical alignment of the text.
1210
- */
1211
- export class StringFormat {
1212
- set alignment(arg: any);
1213
- get alignment(): any;
1214
- _alignment: any;
1215
- set lineAlignment(arg: any);
1216
- get lineAlignment(): any;
1217
- _lineAlignment: any;
1218
- }
1219
- }
1220
1279
  declare module "Drawing/Rect" {
1221
1280
  /**
1222
1281
  * @class Represents a rectangle.
1282
+ * @augments ComponentBase
1223
1283
  */
1224
- export class Rect {
1284
+ export class Rect extends ComponentBase {
1225
1285
  /**
1226
1286
  * Creates a Rect object with the specified edge locations.
1227
1287
  * @param {Number} l The x-coordinate of the upper-left corner of this Rect.
@@ -1472,7 +1532,6 @@ declare module "Drawing/Rect" {
1472
1532
  */
1473
1533
  equals(rect: Rect): boolean;
1474
1534
  sameSize(rect: any): boolean;
1475
- toString(): string;
1476
1535
  getSize(): Size;
1477
1536
  createSvgElement(svgdoc: any): any;
1478
1537
  expandToInt(): void;
@@ -1480,6 +1539,7 @@ declare module "Drawing/Rect" {
1480
1539
  export namespace Rect {
1481
1540
  const empty: Rect;
1482
1541
  }
1542
+ import { ComponentBase } from "Drawing/ComponentBase";
1483
1543
  import { Size } from "Drawing/Size";
1484
1544
  import { Matrix } from "Drawing/Matrix";
1485
1545
  import { Point } from "Drawing/Point";
@@ -1644,21 +1704,6 @@ declare module "Drawing/Circle" {
1644
1704
  r: any;
1645
1705
  }
1646
1706
  }
1647
- declare module "Drawing/ComponentBase" {
1648
- /**
1649
- * @class A base class for components in CompositeNode visual tree.
1650
- */
1651
- export class ComponentBase {
1652
- _visibility: number;
1653
- set visibility(arg: number);
1654
- /**
1655
- * Gets or sets the visibility of this component.
1656
- * @type {Visibility}
1657
- * @summary A member of the Visibility enumeration.
1658
- */
1659
- get visibility(): number;
1660
- }
1661
- }
1662
1707
  declare module "Drawing/Component" {
1663
1708
  /**
1664
1709
  * @class Represents components in CompositeNode visual tree.
@@ -1687,8 +1732,9 @@ declare module "Drawing/PathParser" {
1687
1732
  declare module "Drawing/Path" {
1688
1733
  /**
1689
1734
  * @class Represents a path.
1735
+ * @augments ComponentBase
1690
1736
  */
1691
- export class Path {
1737
+ export class Path extends ComponentBase {
1692
1738
  static fromPoints(points: any): Path;
1693
1739
  /**
1694
1740
  * Initializes a new instance of the Path class.
@@ -1866,6 +1912,7 @@ declare module "Drawing/Path" {
1866
1912
  updatePathDefinition(): void;
1867
1913
  createSvgElement(svgdoc: any): any;
1868
1914
  }
1915
+ import { ComponentBase } from "Drawing/ComponentBase";
1869
1916
  import { Matrix } from "Drawing/Matrix";
1870
1917
  import { Rect } from "Drawing/Rect";
1871
1918
  }
@@ -1890,8 +1937,9 @@ declare module "Drawing/Container" {
1890
1937
  declare module "Drawing/Ellipse" {
1891
1938
  /**
1892
1939
  * @class Represents an Ellipse.
1940
+ * @augments ComponentBase
1893
1941
  */
1894
- export class Ellipse {
1942
+ export class Ellipse extends ComponentBase {
1895
1943
  /**
1896
1944
  * Initializes a new instance of the Ellipse class.
1897
1945
  * @constructor
@@ -1957,9 +2005,9 @@ declare module "Drawing/Ellipse" {
1957
2005
  * @private
1958
2006
  */
1959
2007
  private getBounds;
1960
- toString(): string;
1961
2008
  createSvgElement(svgdoc: any): any;
1962
2009
  }
2010
+ import { ComponentBase } from "Drawing/ComponentBase";
1963
2011
  import { Matrix } from "Drawing/Matrix";
1964
2012
  }
1965
2013
  declare module "Drawing/Font" {
@@ -2067,6 +2115,7 @@ declare module "Drawing/Gradient" {
2067
2115
  declare module "Drawing/Image" {
2068
2116
  /**
2069
2117
  * @class Represents an image.
2118
+ * @augments ComponentBase
2070
2119
  */
2071
2120
  export class Image extends ComponentBase {
2072
2121
  /**
@@ -2088,8 +2137,6 @@ declare module "Drawing/Image" {
2088
2137
  clipPath: Path;
2089
2138
  type: any;
2090
2139
  imageAlign: number;
2091
- horizontalAlignment: number;
2092
- verticalAlignment: number;
2093
2140
  /**
2094
2141
  * For internal use only.
2095
2142
  * @private
@@ -2253,7 +2300,8 @@ declare module "Drawing/Thickness" {
2253
2300
  }
2254
2301
  declare module "Drawing/Text" {
2255
2302
  /**
2256
- * @class Represents a text container.
2303
+ * @class Represents a text container.
2304
+ * @augments ComponentBase
2257
2305
  */
2258
2306
  export class Text extends ComponentBase {
2259
2307
  /**
@@ -2291,8 +2339,20 @@ declare module "Drawing/Text" {
2291
2339
  width: number;
2292
2340
  height: number;
2293
2341
  clipPath: Path;
2294
- textAlignment: number;
2295
- 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;
2296
2356
  baseline: string;
2297
2357
  padding: Thickness;
2298
2358
  type: any;
@@ -2422,6 +2482,8 @@ declare module "Drawing/Text" {
2422
2482
  applyFormat(context: any, sequence: any): void;
2423
2483
  measurePlainText(context: any, maxWidth: any): Size;
2424
2484
  measureStyledText(context: any, maxWidth: any): Size;
2485
+ _textAlignment: any;
2486
+ _lineAlignment: any;
2425
2487
  set defaultProperty(arg: string);
2426
2488
  get defaultProperty(): string;
2427
2489
  get defaultValue(): string;
@@ -2447,8 +2509,9 @@ declare module "Drawing/Text" {
2447
2509
  declare module "Drawing/Video" {
2448
2510
  /**
2449
2511
  * @class A component that displays video stream.
2512
+ * @augments ComponentBase
2450
2513
  */
2451
- export class Video {
2514
+ export class Video extends ComponentBase {
2452
2515
  /**
2453
2516
  * Initializes a new instance of the Video class.
2454
2517
  * @constructor
@@ -2512,6 +2575,7 @@ declare module "Drawing/Video" {
2512
2575
  invalidate(force: any): void;
2513
2576
  removedFromDiagram(): void;
2514
2577
  }
2578
+ import { ComponentBase } from "Drawing/ComponentBase";
2515
2579
  import { Rect } from "Drawing/Rect";
2516
2580
  import { Matrix } from "Drawing/Matrix";
2517
2581
  }
@@ -2520,7 +2584,7 @@ declare module "Drawing/Pen" {
2520
2584
  * @namespace MindFusion.Drawing
2521
2585
  */
2522
2586
  /**
2523
- * Copyright (c) 2015-2021, MindFusion LLC - Bulgaria.
2587
+ * Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
2524
2588
  *
2525
2589
  * This source code is provided to you as part of the MindFusion software components
2526
2590
  * package you have purchased. You may use the source code to trace and/or fix
@@ -2617,7 +2681,7 @@ declare module "Drawing/Graphics" {
2617
2681
  * @namespace MindFusion.Drawing
2618
2682
  */
2619
2683
  /**
2620
- * Copyright (c) 2015-2021, MindFusion LLC - Bulgaria.
2684
+ * Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
2621
2685
  *
2622
2686
  * This source code is provided to you as part of the MindFusion software components
2623
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.4",
7
+ "version": "4.0.5",
8
8
  "description": "Drawing library",
9
9
  "keywords": [
10
10
  "drawing library"