/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ /** * @hidden * * Render the svg element. * * @param points (array) Represents the points coordinates as an array of tuples. * @param command (function) The command that is used (bezierCommand, lineCommand). * @param point (array) [x,y] Represents the current point coordinates. * @param i (integer) Represents the index of 'point' in the array 'a'. * @param a (array) Represents the complete array of points coordinates. * @output (string) a svg path command. * @output (string) a Svg element */ export declare const svgPath: (points: number[][], command: Function) => string; /** * @hidden * * Returns the properties of a line. * * @param pointA (array) [x,y] Represents the start point coordinates. * @param pointB (array) [x,y] Represents the end point coordinates. * @output (object) { length: (integer), angle: (integer) } */ export declare const line: (pointA: number[], pointB: number[]) => { length: number; angle: number; }; /** * @hidden * * Create a function to calculate the position of the control point. * * @param lineCalc (function) Represents the line function. * @param pointA (array) [x,y] Represents the start point coordinates. * @param pointB (array) [x,y] Represents the end point coordinates. * @output (object) { length: (integer), angle: (integer) } * @output (function) closure. * @param current (array) [x, y] Represents the current point coordinates. * @param previous (array) [x, y] Represents the previous point coordinates. * @param next (array) [x, y] ]Represents the next point coordinates. * @param reverse (boolean, optional) Sets the direction. * @output (array) [x, y] coordinates of a control point. */ export declare const controlPoint: (lineCalc: Function) => (current: number[], previous: number[], next: number[], reverse?: boolean) => number[]; /** * @hidden * * Create a function to calculate a bezier curve command. * * @param controlPointCalc (function) Represents the controlPoint function. * @param current (array) [x, y] Represents the current point coordinates. * @param previous (array) [x, y] Represents the previous point coordinates. * @param next (array) [x, y] ]Represents the next point coordinates. * @param reverse (boolean, optional) Sets the direction. * @output (array) [x, y] coordinates of a control point. * @output (function) closure. * @param point (array) [x,y] Represents the current point coordinates. * @param i (integer) Represents the index of 'point' in the array 'a'. * @param a (array) Represents the complete array of points coordinates. * @output (string) 'C x2,y2 x1,y1 x,y' Cubic bezier command. */ export declare const bezierCommand: (controlPointCalc: Function) => (point: number[], i: number, a: number[]) => string;