This commit is contained in:
parent
4b35583782
commit
e77051ccc4
1987 changed files with 1147290 additions and 5648 deletions
3
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/detector.d.ts
vendored
Normal file
3
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/detector.d.ts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
import type { ExternalDiagramDefinition } from '../../diagram-api/types.js';
|
||||
declare const plugin: ExternalDiagramDefinition;
|
||||
export default plugin;
|
2
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmap-definition.d.ts
vendored
Normal file
2
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmap-definition.d.ts
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
import type { DiagramDefinition } from '../../diagram-api/types.js';
|
||||
export declare const diagram: DiagramDefinition;
|
1
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmap.spec.d.ts
vendored
Normal file
1
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmap.spec.d.ts
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
export {};
|
30
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts
vendored
Normal file
30
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapDb.d.ts
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
import type { D3Element } from '../../mermaidAPI.js';
|
||||
import type { MindmapNode } from './mindmapTypes.js';
|
||||
declare const db: {
|
||||
readonly clear: () => void;
|
||||
readonly addNode: (level: number, id: string, descr: string, type: number) => void;
|
||||
readonly getMindmap: () => MindmapNode | null;
|
||||
readonly nodeType: {
|
||||
DEFAULT: number;
|
||||
NO_BORDER: number;
|
||||
ROUNDED_RECT: number;
|
||||
RECT: number;
|
||||
CIRCLE: number;
|
||||
CLOUD: number;
|
||||
BANG: number;
|
||||
HEXAGON: number;
|
||||
};
|
||||
readonly getType: (startStr: string, endStr: string) => number;
|
||||
readonly setElementForId: (id: number, element: D3Element) => void;
|
||||
readonly decorateNode: (decoration?: {
|
||||
class?: string;
|
||||
icon?: string;
|
||||
}) => void;
|
||||
readonly type2Str: (type: number) => "rect" | "circle" | "no-border" | "rounded-rect" | "cloud" | "bang" | "hexgon";
|
||||
readonly getLogger: () => Record<import("../../logger.js").LogLevel, {
|
||||
(...data: any[]): void;
|
||||
(message?: any, ...optionalParams: any[]): void;
|
||||
}>;
|
||||
readonly getElementById: (id: number) => any;
|
||||
};
|
||||
export default db;
|
21
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapRenderer.d.ts
vendored
Normal file
21
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapRenderer.d.ts
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
import type { DrawDefinition } from '../../diagram-api/types.js';
|
||||
declare module 'cytoscape' {
|
||||
interface EdgeSingular {
|
||||
_private: {
|
||||
bodyBounds: unknown;
|
||||
rscratch: {
|
||||
startX: number;
|
||||
startY: number;
|
||||
midX: number;
|
||||
midY: number;
|
||||
endX: number;
|
||||
endY: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
export declare const draw: DrawDefinition;
|
||||
declare const _default: {
|
||||
draw: DrawDefinition;
|
||||
};
|
||||
export default _default;
|
20
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapTypes.d.ts
vendored
Normal file
20
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/mindmapTypes.d.ts
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
import type { RequiredDeep } from 'type-fest';
|
||||
import type mindmapDb from './mindmapDb.js';
|
||||
export interface MindmapNode {
|
||||
id: number;
|
||||
nodeId: string;
|
||||
level: number;
|
||||
descr: string;
|
||||
type: number;
|
||||
children: MindmapNode[];
|
||||
width: number;
|
||||
padding: number;
|
||||
section?: number;
|
||||
height?: number;
|
||||
class?: string;
|
||||
icon?: string;
|
||||
x?: number;
|
||||
y?: number;
|
||||
}
|
||||
export type FilledMindMapNode = RequiredDeep<MindmapNode>;
|
||||
export type MindmapDB = typeof mindmapDb;
|
3
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/styles.d.ts
vendored
Normal file
3
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/styles.d.ts
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
import type { DiagramStylesProvider } from '../../diagram-api/types.js';
|
||||
declare const getStyles: DiagramStylesProvider;
|
||||
export default getStyles;
|
13
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/svgDraw.d.ts
vendored
Normal file
13
themes/blowfish/assets/lib/mermaid/diagrams/mindmap/svgDraw.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
import type { D3Element } from '../../mermaidAPI.js';
|
||||
import type { FilledMindMapNode, MindmapDB } from './mindmapTypes.js';
|
||||
import type { MermaidConfig } from '../../config.type.js';
|
||||
/**
|
||||
* @param db - The database
|
||||
* @param elem - The D3 dom element in which the node is to be added
|
||||
* @param node - The node to be added
|
||||
* @param fullSection - ?
|
||||
* @param conf - The configuration object
|
||||
* @returns The height nodes dom element
|
||||
*/
|
||||
export declare const drawNode: (db: MindmapDB, elem: D3Element, node: FilledMindMapNode, fullSection: number, conf: MermaidConfig) => number;
|
||||
export declare const positionNode: (db: MindmapDB, node: FilledMindMapNode) => void;
|
Loading…
Add table
Add a link
Reference in a new issue