@syncfusion/ej2-documenteditor
Version:
Feature-rich document editor control with built-in support for context menu, options pane and dialogs.
134 lines (133 loc) • 3.95 kB
TypeScript
/**
* These utility methods help to process the data and to convert it to desired dimensions
*/
/**
* processPathData method \
*
* @returns {Object[]} processPathData method .\
* @param { string } data - provide the data value.
* @private
*/
export declare function processPathData(data: string): Object[];
/**
* getPathString method \
*
* @returns {string} getPathString method .\
* @param { Object[]} arrayCollection - provide the val value.
* @private
*/
export declare function getPathString(arrayCollection: Object[]): string;
/**
* getString method \
*
* @returns {string} getString method .\
* @param { PathSegment} arrayCollection - provide the val value.
* @private
*/
export declare function getString(obj: PathSegment): string;
/**
* parsePathData method \
*
* @returns {Object[]} parsePathData method .\
* @param { string } data - provide the data value.
* @private
*/
export declare function parsePathData(data: string): Object[];
/**
* splitArrayCollection method \
*
* @returns {Object[]} splitArrayCollection method .\
* @param { Object[]} arrayCollection - provide the val value.
* @private
*/
export declare function splitArrayCollection(arrayCollection: Object[]): Object[];
/**
* transformPath method \
*
* @returns {string} transformPath method .\
* @param { Object[]} arr - provide the collection value.
* @param { number} sX - provide the collection value.
* @param { number} sY - provide the collection value.
* @param { boolean} s - provide the collection value.
* @param {number} bX - provide the collection value.
* @param { number} bY - provide the collection value.
* @param { number} iX - provide the collection value.
* @param { number} iY - provide the collection value.
* @private
*/
export declare function transformPath(arr: Object[], sX: number, sY: number, s: boolean, bX: number, bY: number, iX: number, iY: number): string;
/**
* updatedSegment method \
*
* @returns {string} updatedSegment method .\
* @param { PathSegment} segment - provide the collection value.
* @param { PathSegment} char - provide the collection value.
* @param { number} obj - provide the collection value.
* @param { boolean} isScale - provide the collection value.
* @param {number} sX - provide the collection value.
* @param { number} sY - provide the collection value.
* @private
*/
export declare function updatedSegment(segment: PathSegment, char: string, obj: PathSegment, isScale: boolean, sX: number, sY: number): Object;
/**
* scalePathData method \
*
* @returns {string} scalePathData method .\
* @param { number} val - provide the val value.
* @param { number} scaleFactor - provide the scaleFactor value.
* @param { number} oldOffset - provide the oldOffset value.
* @param { number} newOffset - provide the newOffset value.
* @private
*/
export declare function scalePathData(val: number, scaleFactor: number, oldOffset: number, newOffset: number): number;
/**
* pathSegmentCollection method \
*
* @returns {string} pathSegmentCollection method .\
* @param { Object[]} collection - provide the collection value.
* @private
*/
export declare function pathSegmentCollection(collection: Object[]): Object[];
/**
* @private
*/
export interface PathSegment {
command?: string;
angle?: number;
largeArc?: boolean;
x2?: number;
sweep?: boolean;
x1?: number;
y1?: number;
y2?: number;
x0?: number;
y0?: number;
x?: number;
y?: number;
r1?: number;
r2?: number;
centp?: {
x?: number;
y?: number;
};
xAxisRotation?: number;
rx?: number;
ry?: number;
a1?: number;
ad?: number;
}
/**
* Interface for a class Point
*/
export interface PointModel {
/**
* Sets the x-coordinate of a position
* @default 0
*/
x?: number;
/**
* Sets the y-coordinate of a position
* @default 0
*/
y?: number;
}