@mindfusion/drawing 4.0.8 → 4.1.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/dist/cjs/drawing.js +1 -1
- package/dist/esm/drawing.js +1 -1
- package/dist/esm/drawing.mjs +1 -0
- package/dist/umd/drawing.js +1 -1
- package/drawing.d.mts +2952 -0
- package/drawing.d.ts +6 -0
- package/package.json +20 -6
package/drawing.d.ts
CHANGED
|
@@ -793,6 +793,10 @@ declare module "Drawing/DrawingUtils" {
|
|
|
793
793
|
*/
|
|
794
794
|
static inflate(rect: Rect, x: number, y: number): Rect;
|
|
795
795
|
/**
|
|
796
|
+
* Calculates the shortest distance from the specified point to the specified line.
|
|
797
|
+
*/
|
|
798
|
+
static distToLine(point: any, p1: any, p2: any): number;
|
|
799
|
+
/**
|
|
796
800
|
* Calculates the shortest distance from the specified point to the specified polyline,
|
|
797
801
|
* also returning the index of the segment the point is closest to.
|
|
798
802
|
*/
|
|
@@ -1081,6 +1085,7 @@ declare module "Drawing/DrawingUtils" {
|
|
|
1081
1085
|
static getFitTextStep(currUnit: any): number;
|
|
1082
1086
|
static formatString(...args: any[]): any;
|
|
1083
1087
|
static colorStringToHex(string: any): string;
|
|
1088
|
+
static readHexColor(color: any): any;
|
|
1084
1089
|
static parseColor(value: any): {
|
|
1085
1090
|
red: number;
|
|
1086
1091
|
green: number;
|
|
@@ -1888,6 +1893,7 @@ declare module "Drawing/Path" {
|
|
|
1888
1893
|
* @param {Number} height The height of the ellipse.
|
|
1889
1894
|
*/
|
|
1890
1895
|
addEllipse(x: number, y: number, width: number, height: number): void;
|
|
1896
|
+
ellipse(x: any, y: any, width: any, height: any): void;
|
|
1891
1897
|
/**
|
|
1892
1898
|
* Closes the path.
|
|
1893
1899
|
*/
|
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
|
|
7
|
+
"version": "4.1.0",
|
|
8
8
|
"description": "Drawing library",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"drawing library"
|
|
@@ -13,11 +13,25 @@
|
|
|
13
13
|
"main": "./dist/cjs/drawing.js",
|
|
14
14
|
"module": "./dist/esm/drawing.js",
|
|
15
15
|
"exports": {
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
".": {
|
|
17
|
+
"import": {
|
|
18
|
+
"types": "./drawing.d.mts",
|
|
19
|
+
"default": "./dist/esm/drawing.mjs"
|
|
20
|
+
},
|
|
21
|
+
"require": {
|
|
22
|
+
"types": "./drawing.d.ts",
|
|
23
|
+
"default": "./dist/cjs/drawing.js"
|
|
24
|
+
},
|
|
25
|
+
"node": {
|
|
26
|
+
"types": "./drawing.d.mts",
|
|
27
|
+
"default": "./dist/esm/drawing.mjs"
|
|
28
|
+
},
|
|
29
|
+
"default": {
|
|
30
|
+
"types": "./drawing.d.ts",
|
|
31
|
+
"default": "./dist/cjs/drawing.js"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
21
35
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
22
36
|
"types": "drawing.d.ts"
|
|
23
37
|
}
|