All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.components.diagrams.buildPaths.d.ts Maven / Gradle / Ivy

import { Coordinates } from '../../interfaces/layout';
/**
 * Returns a path string for a straight path
 * @param {Coordinates} source - The source coordinates
 * @param {Coordinates} target - The target coordinates
 * @return {string} The path string
 */
declare const buildStraightPathString: (source: Coordinates, target: Coordinates) => string;
/**
 * Returns a path string for an elbow path with a bend point
 * @param {Coordinates} source - The source coordinates
 * @param {Coordinates} target - The target coordinates
 * @param {number} percent - Where the bend point should appear between the source and target
 * @return {string} The path string
 */
declare const buildElbowPathString: (source: Coordinates, target: Coordinates, percent?: number) => string;
/**
 * Returns a path string for a path with a custom bezier curve.
 * @param {Coordinates} source - The source coordinates.
 * @param {Coordinates} target - The target coordinates.
 * @param {number} cpx1 - X coordinate for the first control point.
 * @param {number} cpy1 - Y coordinate for the first control point.
 * @param {number} cpx2 - X coordinate for the second control point.
 * @param {number} cpy2 - Y coordinate for the second control point.
 * @returns {string} The path string.
 */
declare const buildBezierPathString: (source: Coordinates, target: Coordinates, cpx1: number, cpy1: number, cpx2: number, cpy2: number) => string;
export { buildStraightPathString, buildElbowPathString, buildBezierPathString };




© 2015 - 2024 Weber Informatics LLC | Privacy Policy