@mindfusion/drawing 4.3.0 → 4.4.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/README.md +11 -11
- package/dist/cjs/drawing.js +1 -1
- package/dist/esm/drawing.js +1 -1
- package/dist/esm/drawing.mjs +1 -1
- package/dist/umd/drawing.js +1 -1
- package/drawing.d.ts +50 -1
- package/package.json +8 -20
- package/drawing.d.mts +0 -2955
package/drawing.d.ts
CHANGED
|
@@ -1348,6 +1348,7 @@ declare module "Drawing/Rect" {
|
|
|
1348
1348
|
* @private
|
|
1349
1349
|
*/
|
|
1350
1350
|
private static boundingRect;
|
|
1351
|
+
static fromJson(obj: any): Rect;
|
|
1351
1352
|
/**
|
|
1352
1353
|
* Initializes a new instance of the Rect class.
|
|
1353
1354
|
* @constructor
|
|
@@ -2385,6 +2386,8 @@ declare module "Drawing/Text" {
|
|
|
2385
2386
|
baseline: string;
|
|
2386
2387
|
padding: Thickness;
|
|
2387
2388
|
type: any;
|
|
2389
|
+
polygonalTextLayout: boolean;
|
|
2390
|
+
outlinePoints: any;
|
|
2388
2391
|
pen: string;
|
|
2389
2392
|
lines: any;
|
|
2390
2393
|
set font(arg: Font);
|
|
@@ -2417,6 +2420,46 @@ declare module "Drawing/Text" {
|
|
|
2417
2420
|
scale: any;
|
|
2418
2421
|
lineHeight: number;
|
|
2419
2422
|
layoutRect: Rect;
|
|
2423
|
+
getIntersectRanges(y1: any, y2: any, points: any): {
|
|
2424
|
+
x1: number;
|
|
2425
|
+
x2: number;
|
|
2426
|
+
}[];
|
|
2427
|
+
/**
|
|
2428
|
+
* For internal use only.
|
|
2429
|
+
* @private
|
|
2430
|
+
*/
|
|
2431
|
+
private getRunStats;
|
|
2432
|
+
/**
|
|
2433
|
+
* For internal use only.
|
|
2434
|
+
* @private
|
|
2435
|
+
*/
|
|
2436
|
+
private getPolygonalRuns;
|
|
2437
|
+
/**
|
|
2438
|
+
* For internal use only.
|
|
2439
|
+
* @private
|
|
2440
|
+
*/
|
|
2441
|
+
private calculateRuns;
|
|
2442
|
+
/**
|
|
2443
|
+
* For internal use only.
|
|
2444
|
+
* @private
|
|
2445
|
+
*/
|
|
2446
|
+
private calculateRunsRev;
|
|
2447
|
+
drawPolygonalRuns(context: any, runs: any): void;
|
|
2448
|
+
/**
|
|
2449
|
+
* For internal use only.
|
|
2450
|
+
* @private
|
|
2451
|
+
*/
|
|
2452
|
+
private getPolygonalStyledLines;
|
|
2453
|
+
/**
|
|
2454
|
+
* For internal use only.
|
|
2455
|
+
* @private
|
|
2456
|
+
*/
|
|
2457
|
+
private calculateStyledLines;
|
|
2458
|
+
/**
|
|
2459
|
+
* For internal use only.
|
|
2460
|
+
* @private
|
|
2461
|
+
*/
|
|
2462
|
+
private drawPolygonalStyledLines;
|
|
2420
2463
|
/**
|
|
2421
2464
|
* For internal use only.
|
|
2422
2465
|
* @private
|
|
@@ -2474,12 +2517,14 @@ declare module "Drawing/Text" {
|
|
|
2474
2517
|
text: any;
|
|
2475
2518
|
dx: any;
|
|
2476
2519
|
dy: any;
|
|
2520
|
+
skipped: any;
|
|
2477
2521
|
} | {
|
|
2478
2522
|
remaining: string;
|
|
2479
2523
|
advance: any;
|
|
2480
2524
|
text: any;
|
|
2481
2525
|
dx: any;
|
|
2482
2526
|
dy: any;
|
|
2527
|
+
skipped: any;
|
|
2483
2528
|
})[][];
|
|
2484
2529
|
findWhitespace(text: any, start: any): any;
|
|
2485
2530
|
fitInLine(context: any, text: any, x: any, y: any, maxX: any, lineStart: any): {
|
|
@@ -2488,25 +2533,29 @@ declare module "Drawing/Text" {
|
|
|
2488
2533
|
text: any;
|
|
2489
2534
|
dx: any;
|
|
2490
2535
|
dy: any;
|
|
2536
|
+
skipped: any;
|
|
2491
2537
|
} | {
|
|
2492
2538
|
remaining: string;
|
|
2493
2539
|
advance: any;
|
|
2494
2540
|
text: any;
|
|
2495
2541
|
dx: any;
|
|
2496
2542
|
dy: any;
|
|
2543
|
+
skipped: any;
|
|
2497
2544
|
};
|
|
2498
|
-
fitInLineWrapByChar(context: any, text: any, x: any, y: any, maxX: any, lineStart: any): {
|
|
2545
|
+
fitInLineWrapByChar(context: any, text: any, x: any, y: any, maxX: any, lineStart: any, skipped: any): {
|
|
2499
2546
|
remaining: any;
|
|
2500
2547
|
advance: number;
|
|
2501
2548
|
text: any;
|
|
2502
2549
|
dx: any;
|
|
2503
2550
|
dy: any;
|
|
2551
|
+
skipped: any;
|
|
2504
2552
|
} | {
|
|
2505
2553
|
remaining: string;
|
|
2506
2554
|
advance: any;
|
|
2507
2555
|
text: any;
|
|
2508
2556
|
dx: any;
|
|
2509
2557
|
dy: any;
|
|
2558
|
+
skipped: any;
|
|
2510
2559
|
};
|
|
2511
2560
|
applyFormat(context: any, sequence: any): void;
|
|
2512
2561
|
measurePlainText(context: any, maxWidth: any): Size;
|
package/package.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"author": {
|
|
3
3
|
"name": "MindFusion LLC",
|
|
4
4
|
"email": "info@mindfusion.eu",
|
|
5
|
-
"url": "https://mindfusion.
|
|
5
|
+
"url": "https://mindfusion.dev"
|
|
6
6
|
},
|
|
7
|
-
"version": "4.
|
|
7
|
+
"version": "4.4.0",
|
|
8
8
|
"description": "Drawing library",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"drawing library"
|
|
@@ -14,24 +14,12 @@
|
|
|
14
14
|
"module": "./dist/esm/drawing.js",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
}
|
|
17
|
+
"types": "./drawing.d.ts",
|
|
18
|
+
"import": "./dist/esm/drawing.mjs",
|
|
19
|
+
"require": "./dist/cjs/drawing.js",
|
|
20
|
+
"default": "./dist/cjs/drawing.js"
|
|
33
21
|
}
|
|
34
|
-
},
|
|
22
|
+
},
|
|
35
23
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
36
24
|
"types": "drawing.d.ts"
|
|
37
|
-
}
|
|
25
|
+
}
|