diagram-js
Version:
A toolbox for displaying and modifying diagrams on the web
45 lines (38 loc) • 947 B
TypeScript
/**
* Complex preview for shapes and connections.
*/
declare class ComplexPreview {
constructor(canvas: any, graphicsFactory: any, previewSupport: any);
/**
* Create complex preview.
*
* @param options
*/
create(options: CreateOptions): void;
cleanUp(): void;
show(): void;
hide(): void;
}
declare namespace ComplexPreview {
let $inject: string[];
}
export default ComplexPreview;
type Element = import("../../model/Types.js").Element;
type Shape = import("../../model/Types.js").Shape;
type Point = import("../../util/Types.js").Point;
type Rect = import("../../util/Types.js").Rect;
export type MovedOption = {
element: Element;
delta: Point;
};
export type ResizedOption = {
shape: Shape;
bounds: Rect;
};
export type CreateOptions = {
created?: Element[];
removed?: Element[];
moved?: MovedOption[];
resized?: ResizedOption[];
};
//# sourceMappingURL=ComplexPreview.d.ts.map