This commit is contained in:
parent
4b35583782
commit
e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions
15
themes/blowfish/assets/lib/mermaid/diagrams/common/svgDrawCommon.d.ts
vendored
Normal file
15
themes/blowfish/assets/lib/mermaid/diagrams/common/svgDrawCommon.d.ts
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
import type { Group, SVG } from '../../diagram-api/types.js';
|
||||
import type { Bound, D3RectElement, D3TextElement, RectData, TextData, TextObject } from './commonTypes.js';
|
||||
export declare const drawRect: (element: SVG | Group, rectData: RectData) => D3RectElement;
|
||||
/**
|
||||
* Draws a background rectangle
|
||||
*
|
||||
* @param element - Diagram (reference for bounds)
|
||||
* @param bounds - Shape of the rectangle
|
||||
*/
|
||||
export declare const drawBackgroundRect: (element: SVG | Group, bounds: Bound) => void;
|
||||
export declare const drawText: (element: SVG | Group, textData: TextData) => D3TextElement;
|
||||
export declare const drawImage: (elem: SVG | Group, x: number, y: number, link: string) => void;
|
||||
export declare const drawEmbeddedImage: (element: SVG | Group, x: number, y: number, link: string) => void;
|
||||
export declare const getNoteRect: () => RectData;
|
||||
export declare const getTextObj: () => TextObject;
|
Loading…
Add table
Add a link
Reference in a new issue