完成世界书、骰子、apiconfig页面处理

This commit is contained in:
2026-04-30 01:35:10 +08:00
parent a3e3711b2b
commit ba9b925c32
4602 changed files with 785225 additions and 23 deletions

View File

@@ -0,0 +1,42 @@
export function insertCluster(elem: any, node: import("../types.js").ClusterNode): Promise<any>;
export function getClusterTitleWidth(elem: any, node: any): any;
export function clear(): void;
export function positionCluster(node: any): void;
export type ClusterShapeID = keyof typeof shapes;
declare namespace shapes {
export { rect };
export { squareRect };
export { roundedWithTitle };
export { noteGroup };
export { divider };
export { kanbanSection };
}
declare function rect(parent: any, node: any): Promise<{
cluster: any;
labelBBox: any;
}>;
declare function squareRect(parent: any, node: any): Promise<{
cluster: any;
labelBBox: any;
}>;
declare function roundedWithTitle(parent: any, node: any): Promise<{
cluster: any;
labelBBox: any;
}>;
/**
* Non visible cluster where the note is group with its
*
* @param {any} parent
* @param {any} node
* @returns {any} ShapeSvg
*/
declare function noteGroup(parent: any, node: any): any;
declare function divider(parent: any, node: any): {
cluster: any;
labelBBox: {};
};
declare function kanbanSection(parent: any, node: any): Promise<{
cluster: any;
labelBBox: any;
}>;
export {};

View File

@@ -0,0 +1 @@
export {};

View File

@@ -0,0 +1,5 @@
export default intersectCircle;
declare function intersectCircle(node: any, rx: any, point: any): {
x: any;
y: any;
};

View File

@@ -0,0 +1,5 @@
export default intersectRect;
declare function intersectRect(node: any, point: any): {
x: any;
y: any;
};

View File

@@ -0,0 +1,12 @@
import { shapes } from './shapes.js';
import type { Node, NonClusterNode, ShapeRenderOptions } from '../types.js';
import type { SVGGroup } from '../../mermaid.js';
import type { D3Selection } from '../../types.js';
import type { graphlib } from 'dagre-d3-es';
type ShapeHandler = (typeof shapes)[keyof typeof shapes];
type NodeElement = D3Selection<SVGAElement> | Awaited<ReturnType<ShapeHandler>>;
export declare function insertNode(elem: SVGGroup, node: NonClusterNode, renderOptions: ShapeRenderOptions): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown> | D3Selection<SVGAElement>>;
export declare const setNodeElem: (elem: NodeElement, node: Pick<Node, "id">) => void;
export declare const clear: () => void;
export declare const positionNode: (node: ReturnType<graphlib.Graph["node"]>) => any;
export {};

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function anchor<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function card<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { D3Selection } from '../../../types.js';
import type { Node } from '../../types.js';
export declare function cloud<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function crossedCircle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function curlyBraceRight<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function erBox<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function flippedTriangle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node, ShapeRenderOptions } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function forkJoin<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { dir, config: { state, themeVariables } }: ShapeRenderOptions): import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function lightningBolt<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;

View File

@@ -0,0 +1,6 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare const createCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number, outerOffset: number) => string;
export declare const createOuterCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number, outerOffset: number) => string;
export declare const createInnerCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number) => string;
export declare function linedCylinder<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function linedWaveEdgedRect<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function mindmapCircle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function rectWithTitle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function shadedProcess<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function slopedRect<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,3 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function trapezoidalPentagon<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;