UNPKG

@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.

60 lines (59 loc) 1.94 kB
import { DiagramElement } from '../elements/diagram-element'; import { Thickness } from '../appearance'; import { Size } from '../../primitives/size'; import { PointModel } from '../../primitives/point-model'; /** * Container module is used to group related objects */ export declare class GroupableView extends DiagramElement { /** * Gets/Sets the space between the container and its immediate children */ padding: Thickness; /** * Gets/Sets the collection of child elements */ children: DiagramElement[]; private desiredBounds; /** @private */ measureChildren: boolean; /** * returns whether the container has child elements or not */ hasChildren(): boolean; /** @private */ prevRotateAngle: number; /** * Measures the minimum space that the container requires * * @param {Size} availableSize * @param {string} id * @param {Function} callback */ measure(availableSize: Size, id?: string, callback?: Function): Size; /** * Arranges the container and its children * * @param {Size} desiredSize - provide the desiredSize value */ arrange(desiredSize: Size): Size; /** * Stretches the child elements based on the size of the container * * @param {Size} size - provide the size value */ protected stretchChildren(size: Size): void; /** * Considers the padding of the element when measuring its desired size * @param {Size} size - provide the size value */ protected applyPadding(size: Size): void; /** * Finds the offset of the child element with respect to the container * * @param {DiagramElement} child - provide the child value * @param {PointModel} center - provide the center value */ protected findChildOffsetFromCenter(child: DiagramElement, center: PointModel): void; private GetChildrenBounds; }