@mindfusion/drawing 4.0.0 → 4.0.1
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/dist/cjs/drawing.js +1 -1
- package/dist/esm/drawing.js +1 -1
- package/dist/umd/drawing.js +1 -1
- package/drawing.d.ts +10 -9
- package/package.json +1 -2
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 {
|
|
724
|
+
* @param {Rect} rect The rectangle.
|
|
724
725
|
* @returns {Number} The minimum distance.
|
|
725
726
|
*/
|
|
726
|
-
static minDistToRect(point: Point, rect:
|
|
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:
|
|
1551
|
-
rect:
|
|
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" {
|
|
@@ -2166,9 +2169,6 @@ declare module "Drawing/Shadow" {
|
|
|
2166
2169
|
}
|
|
2167
2170
|
}
|
|
2168
2171
|
declare module "Drawing/Thickness" {
|
|
2169
|
-
/**
|
|
2170
|
-
* @namespace MindFusion.Drawing
|
|
2171
|
-
*/
|
|
2172
2172
|
/**
|
|
2173
2173
|
* @class Describes the thickness of a rectangular frame.
|
|
2174
2174
|
*/
|
|
@@ -2223,12 +2223,12 @@ declare module "Drawing/Thickness" {
|
|
|
2223
2223
|
* Applies the current thickness to the specified rectangle by deflating the rectangle.
|
|
2224
2224
|
* @param {Rect} rect The rectangle to deflate.
|
|
2225
2225
|
*/
|
|
2226
|
-
applyTo(rect:
|
|
2226
|
+
applyTo(rect: Rect): void;
|
|
2227
2227
|
/**
|
|
2228
2228
|
* Applies the current thickness to the specified rectangle by inflating the rectangle.
|
|
2229
2229
|
* @param {Rect} rect The rectangle to inflate.
|
|
2230
2230
|
*/
|
|
2231
|
-
addToRect(rect:
|
|
2231
|
+
addToRect(rect: Rect): void;
|
|
2232
2232
|
add(thickness: any): Thickness;
|
|
2233
2233
|
/**
|
|
2234
2234
|
* Converts the current thickness to absolute value relative to the specified size.
|
|
@@ -2256,6 +2256,7 @@ declare module "Drawing/Thickness" {
|
|
|
2256
2256
|
private height;
|
|
2257
2257
|
_isRelative: boolean;
|
|
2258
2258
|
}
|
|
2259
|
+
import { Rect } from "Drawing/Rect";
|
|
2259
2260
|
}
|
|
2260
2261
|
declare module "Drawing/Text" {
|
|
2261
2262
|
/**
|