state sync

This commit is contained in:
2025-11-23 14:59:17 -08:00
parent 537bdf1ad7
commit 39f4a8d3fc
812 changed files with 373062 additions and 84 deletions

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 bang<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 bowTieRect<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 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 { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function choice<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 { D3Selection } from '../../../types.js';
import type { MindmapOptions, Node, ShapeRenderOptions } from '../../types.js';
export declare function circle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, options?: MindmapOptions | ShapeRenderOptions): 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 classBox<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 curlyBraceLeft<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 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 curlyBraces<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 curvedTrapezoid<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<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) => string;
export declare const createOuterCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number) => string;
export declare const createInnerCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number) => string;
export declare function cylinder<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 defaultMindmapNode<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 dividedRectangle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<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) => string;
export declare const createOuterCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number) => string;
export declare const createInnerCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number) => string;
export declare function cylinder<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 doublecircle<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, RectOptions } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function drawRect<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, options: RectOptions): 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, ShapeRenderOptions } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function filledCircle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { 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 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 halfRoundedRectangle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,24 @@
import type { Node } from '../../types.js';
export declare const solidStateFill: (color: string) => {
fill: string;
hachureAngle: number;
hachureGap: number;
fillWeight: number;
roughness: number;
stroke: string;
seed: number | undefined;
};
export declare const compileStyles: (node: Node) => {
stylesMap: Map<string, string>;
stylesArray: [string, string][];
};
export declare const styles2Map: (styles: string[]) => Map<string, string>;
export declare const isLabelStyle: (key: string) => key is "font-family" | "font-size" | "font-weight" | "font-style" | "text-align" | "white-space" | "color" | "text-decoration" | "text-transform" | "line-height" | "letter-spacing" | "word-spacing" | "text-shadow" | "text-overflow" | "word-wrap" | "word-break" | "overflow-wrap" | "hyphens";
export declare const styles2String: (node: Node) => {
labelStyles: string;
nodeStyles: string;
stylesArray: [string, string][];
borderStyles: string[];
backgroundStyles: string[];
};
export declare const userNodeOverrides: (node: Node, options: any) => any;

View File

@@ -0,0 +1,4 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare const createHexagonPathD: (x: number, y: number, width: number, height: number, m: number) => string;
export declare function hexagon<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 hourglass<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 icon<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { themeVariables, flowchart } }: ShapeRenderOptions): 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 iconCircle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { themeVariables, flowchart } }: ShapeRenderOptions): 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 iconRounded<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { themeVariables, flowchart } }: ShapeRenderOptions): 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 iconSquare<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { themeVariables, flowchart } }: ShapeRenderOptions): 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 imageSquare<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { flowchart } }: ShapeRenderOptions): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,5 @@
import type { D3Selection } from '../../../types.js';
export declare function insertPolygonShape<T extends SVGGraphicsElement>(parent: D3Selection<T>, w: number, h: number, points: {
x: number;
y: number;
}[]): import("d3-selection").Selection<SVGPolygonElement, 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 inv_trapezoid<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, KanbanNode, ShapeRenderOptions } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function kanbanItem<T extends SVGGraphicsElement>(parent: D3Selection<T>, kanbanNode: Omit<Node, 'shape'> | Omit<KanbanNode, 'level' | 'shape'>, { config }: ShapeRenderOptions): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,4 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare function roundedRect<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;
export declare function labelRect<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 lean_left<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 lean_right<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 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 multiRect<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 multiWaveEdgedRectangle<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 note<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { themeVariables } }: ShapeRenderOptions): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,4 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare const createDecisionBoxPathD: (x: number, y: number, size: number) => string;
export declare function question<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 rect_left_inv_arrow<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 requirementBox<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, globalThis.Element | null, unknown>>;

View File

@@ -0,0 +1,21 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
/**
* Generates evenly spaced points along an elliptical arc connecting two points.
*
* @param x1 - x-coordinate of the start point of the arc
* @param y1 - y-coordinate of the start point of the arc
* @param x2 - x-coordinate of the end point of the arc
* @param y2 - y-coordinate of the end point of the arc
* @param rx - horizontal radius of the ellipse
* @param ry - vertical radius of the ellipse
* @param clockwise - direction of the arc; true for clockwise, false for counterclockwise
* @returns Array of points `{ x, y }` along the elliptical arc
*
* @throws Error if the given radii are too small to draw an arc between the points
*/
export declare function generateArcPoints(x1: number, y1: number, x2: number, y2: number, rx: number, ry: number, clockwise: boolean): {
x: number;
y: number;
}[];
export declare function roundedRect<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1 @@
export declare const createRoundedRectPathD: (x: number, y: number, totalWidth: number, totalHeight: number, radius: number) => string;

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 squareRect<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>>;

View File

@@ -0,0 +1,4 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare const createStadiumPathD: (x: number, y: number, totalWidth: number, totalHeight: number) => string;
export declare function stadium<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 state<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 stateEnd<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { themeVariables } }: ShapeRenderOptions): 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 stateStart<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, { config: { themeVariables } }: ShapeRenderOptions): import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;

View File

@@ -0,0 +1,4 @@
import type { Node } from '../../types.js';
import type { D3Selection } from '../../../types.js';
export declare const createSubroutinePathD: (x: number, y: number, width: number, height: number) => string;
export declare function subroutine<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 taggedRect<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 taggedWaveEdgedRectangle<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 text<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node): Promise<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) => string;
export declare const createOuterCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number) => string;
export declare const createInnerCylinderPathD: (x: number, y: number, width: number, height: number, rx: number, ry: number) => string;
export declare function tiltedCylinder<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 trapezoid<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>>;

View File

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

View File

@@ -0,0 +1,49 @@
import type { Node } from '../../types.js';
import type { D3Selection, Point } from '../../../types.js';
export declare const labelHelper: <T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node, _classes?: string) => Promise<{
shapeSvg: import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;
bbox: any;
halfPadding: number;
label: import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;
}>;
export declare const insertLabel: <T extends SVGGraphicsElement>(parent: D3Selection<T>, label: string, options: {
labelStyle?: string | undefined;
icon?: boolean | undefined;
img?: string | undefined;
useHtmlLabels?: boolean | undefined;
padding: number;
width?: number | undefined;
centerLabel?: boolean | undefined;
addSvgBackground?: boolean | undefined;
}) => Promise<{
shapeSvg: D3Selection<T>;
bbox: any;
halfPadding: number;
label: import("d3-selection").Selection<SVGGElement, unknown, Element | null, unknown>;
}>;
export declare const updateNodeBounds: <T extends SVGGraphicsElement>(node: Node, element: D3Selection<SVGGElement> | D3Selection<T>) => void;
/**
* @param parent - Parent element to append the polygon to
* @param w - Width of the polygon
* @param h - Height of the polygon
* @param points - Array of points to create the polygon
*/
export declare function insertPolygonShape(parent: D3Selection<SVGGElement>, w: number, h: number, points: Point[]): import("d3-selection").Selection<SVGPolygonElement, unknown, Element | null, unknown>;
export declare const getNodeClasses: (node: Node, extra?: string) => string;
export declare function createPathFromPoints(points: Point[]): string;
export declare function generateFullSineWavePoints(x1: number, y1: number, x2: number, y2: number, amplitude: number, numCycles: number): {
x: number;
y: number;
}[];
/**
* @param centerX - x-coordinate of center of circle
* @param centerY - y-coordinate of center of circle
* @param radius - radius of circle
* @param numPoints - total points required
* @param startAngle - angle where arc will start
* @param endAngle - angle where arc will end
*/
export declare function generateCirclePoints(centerX: number, centerY: number, radius: number, numPoints: number, startAngle: number, endAngle: number): {
x: number;
y: number;
}[];

View File

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