@mindfusion/drawing 4.0.0 → 4.0.3

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
@@ -77,6 +77,7 @@ declare module "Drawing/Point" {
77
77
  * @private
78
78
  */
79
79
  private newWithOffset;
80
+ offset(x: any, y: any): void;
80
81
  /**
81
82
  * Specifies whether this Point contains the same coordinates as the specified point.
82
83
  * @param {Point} [point] The Point to test.
@@ -720,10 +721,10 @@ declare module "Drawing/DrawingUtils" {
720
721
  /**
721
722
  * Calculates the minimum distance between a given point and a given rectangle.
722
723
  * @param {Point} point The point.
723
- * @param {Rectabgle} rect The rectangle.
724
+ * @param {Rect} rect The rectangle.
724
725
  * @returns {Number} The minimum distance.
725
726
  */
726
- static minDistToRect(point: Point, rect: any): number;
727
+ static minDistToRect(point: Point, rect: Rect): number;
727
728
  /**
728
729
  * Returns the point that lies on the outline of a rectangle and is nearest to the given point.
729
730
  * @param {Point} point The point to consider.
@@ -1459,6 +1460,7 @@ declare module "Drawing/Rect" {
1459
1460
  setCenter(point: Point): void;
1460
1461
  inflate(halfIncrement: any): Rect;
1461
1462
  offset(x: any, y: any): void;
1463
+ scale(sx: any, sy: any): void;
1462
1464
  /**
1463
1465
  * For internal use only.
1464
1466
  * @private
@@ -1547,8 +1549,8 @@ declare module "Drawing/Border3D" {
1547
1549
  * @constructor
1548
1550
  * @param {Rect} rect A Rect instance containing the border coordinates.
1549
1551
  */
1550
- constructor(rect: any);
1551
- rect: any;
1552
+ constructor(rect: Rect);
1553
+ rect: Rect;
1552
1554
  transform: Matrix;
1553
1555
  type: any;
1554
1556
  /**
@@ -1563,6 +1565,7 @@ declare module "Drawing/Border3D" {
1563
1565
  private draw;
1564
1566
  createSvgElement(svgdoc: any): any;
1565
1567
  }
1568
+ import { Rect } from "Drawing/Rect";
1566
1569
  import { Matrix } from "Drawing/Matrix";
1567
1570
  }
1568
1571
  declare module "Drawing/Vector" {
@@ -2090,7 +2093,6 @@ declare module "Drawing/Image" {
2090
2093
  transform: Matrix;
2091
2094
  clipPath: Path;
2092
2095
  type: any;
2093
- svg: boolean;
2094
2096
  imageAlign: number;
2095
2097
  horizontalAlignment: number;
2096
2098
  verticalAlignment: number;
@@ -2166,9 +2168,6 @@ declare module "Drawing/Shadow" {
2166
2168
  }
2167
2169
  }
2168
2170
  declare module "Drawing/Thickness" {
2169
- /**
2170
- * @namespace MindFusion.Drawing
2171
- */
2172
2171
  /**
2173
2172
  * @class Describes the thickness of a rectangular frame.
2174
2173
  */
@@ -2223,12 +2222,12 @@ declare module "Drawing/Thickness" {
2223
2222
  * Applies the current thickness to the specified rectangle by deflating the rectangle.
2224
2223
  * @param {Rect} rect The rectangle to deflate.
2225
2224
  */
2226
- applyTo(rect: any): void;
2225
+ applyTo(rect: Rect): void;
2227
2226
  /**
2228
2227
  * Applies the current thickness to the specified rectangle by inflating the rectangle.
2229
2228
  * @param {Rect} rect The rectangle to inflate.
2230
2229
  */
2231
- addToRect(rect: any): void;
2230
+ addToRect(rect: Rect): void;
2232
2231
  add(thickness: any): Thickness;
2233
2232
  /**
2234
2233
  * Converts the current thickness to absolute value relative to the specified size.
@@ -2256,6 +2255,7 @@ declare module "Drawing/Thickness" {
2256
2255
  private height;
2257
2256
  _isRelative: boolean;
2258
2257
  }
2258
+ import { Rect } from "Drawing/Rect";
2259
2259
  }
2260
2260
  declare module "Drawing/Text" {
2261
2261
  /**
@@ -2348,9 +2348,11 @@ declare module "Drawing/Text" {
2348
2348
  * Sets a value indicating the bounding rectangle of the text container.
2349
2349
  * @param {Rect} bounds The bounding rectangle.
2350
2350
  * @param {Number} [angle] The rotation angle to be applied to the bounding rectangle.
2351
+ * @param {Point} [pivot] The center point of the rotation.
2351
2352
  */
2352
- setBounds(bounds: Rect, angle?: number): void;
2353
+ setBounds(bounds: Rect, angle?: number, pivot?: Point): void;
2353
2354
  _rotationAngle: number;
2355
+ _rotationPivot: Point;
2354
2356
  /**
2355
2357
  * Gets a value indicating the bounding rectangle of the text container.
2356
2358
  * @returns {Rect} The bounding rectangle.
@@ -2443,6 +2445,7 @@ declare module "Drawing/Text" {
2443
2445
  import { Path } from "Drawing/Path";
2444
2446
  import { Thickness } from "Drawing/Thickness";
2445
2447
  import { Font } from "Drawing/Font";
2448
+ import { Point } from "Drawing/Point";
2446
2449
  import { Matrix } from "Drawing/Matrix";
2447
2450
  import { Size } from "Drawing/Size";
2448
2451
  }
package/package.json CHANGED
@@ -4,8 +4,7 @@
4
4
  "email": "info@mindfusion.eu",
5
5
  "url": "https://mindfusion.eu"
6
6
  },
7
- "pivate": true,
8
- "version": "4.0.0",
7
+ "version": "4.0.3",
9
8
  "description": "Drawing library",
10
9
  "keywords": [
11
10
  "drawing library"