UNPKG

885 BTypeScriptView Raw
1import type { Group, SVG } from '../../diagram-api/types.js';
2import type { Bound, D3RectElement, D3TextElement, RectData, TextData, TextObject } from './commonTypes.js';
3export declare const drawRect: (element: SVG | Group, rectData: RectData) => D3RectElement;
4/**
5 * Draws a background rectangle
6 *
7 * @param element - Diagram (reference for bounds)
8 * @param bounds - Shape of the rectangle
9 */
10export declare const drawBackgroundRect: (element: SVG | Group, bounds: Bound) => void;
11export declare const drawText: (element: SVG | Group, textData: TextData) => D3TextElement;
12export declare const drawImage: (elem: SVG | Group, x: number, y: number, link: string) => void;
13export declare const drawEmbeddedImage: (element: SVG | Group, x: number, y: number, link: string) => void;
14export declare const getNoteRect: () => RectData;
15export declare const getTextObj: () => TextObject;