diagram-js
Version:
A toolbox for displaying and modifying diagrams on the web
26 lines (24 loc) • 737 B
TypeScript
/**
* A handler that attaches a label to a given target shape.
*
*/
export default class CreateLabelHandler extends CreateShapeHandler {
/**
* Append label to element.
*
* @param context
*/
execute(context: {
parent: Parent;
position: Point;
shape: Shape;
target: Element;
}): any;
}
type Canvas = import("../../../core/Canvas.js").default;
type Element = import("../../../model/Types.js").Element;
type Parent = import("../../../model/Types.js").Parent;
type Shape = import("../../../model/Types.js").Shape;
type Point = import("../../../util/Types.js").Point;
import CreateShapeHandler from './CreateShapeHandler.js';
//# sourceMappingURL=CreateLabelHandler.d.ts.map