@mindfusion/drawing 4.3.1 → 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/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 +56 -7
- package/package.json +7 -19
- package/drawing.d.mts +0 -2955
package/drawing.d.ts
CHANGED
|
@@ -622,12 +622,12 @@ declare module "Drawing/Brush" {
|
|
|
622
622
|
* @namespace MindFusion.Drawing
|
|
623
623
|
*/
|
|
624
624
|
/**
|
|
625
|
-
* Copyright (c) 2015-
|
|
625
|
+
* Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
|
|
626
626
|
*
|
|
627
627
|
* This source code is provided to you as part of the MindFusion software components
|
|
628
628
|
* package you have purchased. You may use the source code to trace and/or fix
|
|
629
629
|
* problems or customize the library as needed for your application. To get permission
|
|
630
|
-
* to use the source code in any other way, please contact us at support@mindfusion.
|
|
630
|
+
* to use the source code in any other way, please contact us at support@mindfusion.eu.
|
|
631
631
|
*/
|
|
632
632
|
import { Rect } from "Drawing/Rect";
|
|
633
633
|
import { Color } from "Drawing/Color";
|
|
@@ -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;
|
|
@@ -2613,12 +2662,12 @@ declare module "Drawing/Pen" {
|
|
|
2613
2662
|
* @namespace MindFusion.Drawing
|
|
2614
2663
|
*/
|
|
2615
2664
|
/**
|
|
2616
|
-
* Copyright (c) 2015-
|
|
2665
|
+
* Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
|
|
2617
2666
|
*
|
|
2618
2667
|
* This source code is provided to you as part of the MindFusion software components
|
|
2619
2668
|
* package you have purchased. You may use the source code to trace and/or fix
|
|
2620
2669
|
* problems or customize the library as needed for your application. To get permission
|
|
2621
|
-
* to use the source code in any other way, please contact us at support@mindfusion.
|
|
2670
|
+
* to use the source code in any other way, please contact us at support@mindfusion.eu.
|
|
2622
2671
|
*/
|
|
2623
2672
|
import { Color } from "Drawing/Color";
|
|
2624
2673
|
import { Brush } from "Drawing/Brush";
|
|
@@ -2710,12 +2759,12 @@ declare module "Drawing/Graphics" {
|
|
|
2710
2759
|
* @namespace MindFusion.Drawing
|
|
2711
2760
|
*/
|
|
2712
2761
|
/**
|
|
2713
|
-
* Copyright (c) 2015-
|
|
2762
|
+
* Copyright (c) 2015-2022, MindFusion LLC - Bulgaria.
|
|
2714
2763
|
*
|
|
2715
2764
|
* This source code is provided to you as part of the MindFusion software components
|
|
2716
2765
|
* package you have purchased. You may use the source code to trace and/or fix
|
|
2717
2766
|
* problems or customize the library as needed for your application. To get permission
|
|
2718
|
-
* to use the source code in any other way, please contact us at support@mindfusion.
|
|
2767
|
+
* to use the source code in any other way, please contact us at support@mindfusion.eu.
|
|
2719
2768
|
*/
|
|
2720
2769
|
import { Rect } from "Drawing/Rect";
|
|
2721
2770
|
import { Point } from "Drawing/Point";
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"email": "info@mindfusion.eu",
|
|
5
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
|
+
}
|