@mindfusion/drawing 4.0.6 → 4.0.8

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
@@ -429,6 +429,7 @@ declare module "Drawing/Color" {
429
429
  * @param {String} value A string representation of the color.
430
430
  */
431
431
  constructor(value: string);
432
+ toString(): any;
432
433
  /**
433
434
  * Creates a Color instance from alpha, red, green and blue values.
434
435
  * @param {Number} alpha The alpha value.
@@ -796,6 +797,12 @@ declare module "Drawing/DrawingUtils" {
796
797
  * also returning the index of the segment the point is closest to.
797
798
  */
798
799
  static distToPolyline(point: any, ppoints: any, npoints: any, refSegment: any): number;
800
+ static distToBezier(pt: any, bezier: any, refSegment: any): number;
801
+ static calcBezierCoef(a0: any, a1: any, a2: any, a3: any, b0: any, b1: any, b2: any, b3: any, u: any, s: any, z: any, x4: any, y4: any): any[];
802
+ /**
803
+ * Returns the middle point of the segment defined by the specified points.
804
+ */
805
+ static midPoint(pt1: any, pt2: any): Point;
799
806
  /**
800
807
  * Determines whether the specified line segments intersect.
801
808
  * @param {Point} p1 The start of the first line segment.
@@ -862,6 +869,13 @@ declare module "Drawing/DrawingUtils" {
862
869
  * @private
863
870
  */
864
871
  private static getClosestSegmentPoint;
872
+ static pointAlongLengthPos(lengthPos: any, segments: any): any;
873
+ static pointAlongLength(lengthFactor: any, segments: any): any;
874
+ /**
875
+ * For internal use only.
876
+ * @private
877
+ */
878
+ private static getLength;
865
879
  /**
866
880
  * For internal use only.
867
881
  * @private
@@ -1012,6 +1026,11 @@ declare module "Drawing/DrawingUtils" {
1012
1026
  */
1013
1027
  private static getBrushColor;
1014
1028
  static opacityBrush(brush: any, opacity: any): any;
1029
+ static nearestPointBezierParam(bezier: any, target: any, steps: any): number;
1030
+ static bezierPoint(points: any, t: any): Point;
1031
+ static symmetricPt(pt: any, ptCenter: any): Point;
1032
+ static splitBezier(bezier: any, t: any): any[][];
1033
+ static subBezier(p1: any, p2: any, p3: any, p4: any, t: any): any[];
1015
1034
  static getBezierPt(points: any, segment: any, t: any): Point;
1016
1035
  /**
1017
1036
  * Approximates a Bezier curve with the given quality and by a series of line segments.
@@ -1515,6 +1534,7 @@ declare module "Drawing/Rect" {
1515
1534
  inflate(halfIncrement: any): Rect;
1516
1535
  offset(x: any, y: any): void;
1517
1536
  scale(sx: any, sy: any): void;
1537
+ scaleCentered(sx: any, sy: any): void;
1518
1538
  /**
1519
1539
  * For internal use only.
1520
1540
  * @private
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.6",
7
+ "version": "4.0.8",
8
8
  "description": "Drawing library",
9
9
  "keywords": [
10
10
  "drawing library"