@syncfusion/ej2-diagrams
Version:
Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.
31 lines (30 loc) • 955 B
TypeScript
import { GroupableView } from './container';
import { Size } from '../../primitives/size';
/**
* Canvas module is used to define a plane(canvas) and to arrange the children based on margin
*/
export declare class Canvas extends GroupableView {
/**
* Not applicable for canvas
*
* @private
*/
measureChildren: boolean;
/**
* Measures the minimum space that the canvas requires \
*
* @returns { Size } Measures the minimum space that the canvas requires .\
* @param {string} id - provide the id value.
* @param {Function} callback - provide the Connector value.
*
* @private
*/
measure(availableSize: Size, id?: string, callback?: Function): Size;
/**
* Arranges the child elements of the canvas
*/
arrange(desiredSize: Size, isStack?: boolean): Size;
private setParentTransform;
private alignChildBasedOnParent;
private alignChildBasedOnaPoint;
}