schematex 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +379 -0
- package/dist/chunk-2MQWZ2XY.cjs +453 -0
- package/dist/chunk-2MQWZ2XY.cjs.map +1 -0
- package/dist/chunk-2UKC6ZCY.cjs +1803 -0
- package/dist/chunk-2UKC6ZCY.cjs.map +1 -0
- package/dist/chunk-34X3ZJ6E.cjs +783 -0
- package/dist/chunk-34X3ZJ6E.cjs.map +1 -0
- package/dist/chunk-3FTUWAXK.cjs +1220 -0
- package/dist/chunk-3FTUWAXK.cjs.map +1 -0
- package/dist/chunk-3J7TFUOC.js +745 -0
- package/dist/chunk-3J7TFUOC.js.map +1 -0
- package/dist/chunk-47ZC6EMJ.js +1009 -0
- package/dist/chunk-47ZC6EMJ.js.map +1 -0
- package/dist/chunk-4DBRNOPA.cjs +750 -0
- package/dist/chunk-4DBRNOPA.cjs.map +1 -0
- package/dist/chunk-4G7ZIBHN.js +778 -0
- package/dist/chunk-4G7ZIBHN.js.map +1 -0
- package/dist/chunk-5C7DPDHQ.js +1321 -0
- package/dist/chunk-5C7DPDHQ.js.map +1 -0
- package/dist/chunk-ADOXGKAK.js +1251 -0
- package/dist/chunk-ADOXGKAK.js.map +1 -0
- package/dist/chunk-BE5HNDA5.cjs +874 -0
- package/dist/chunk-BE5HNDA5.cjs.map +1 -0
- package/dist/chunk-CZRM7LT7.js +889 -0
- package/dist/chunk-CZRM7LT7.js.map +1 -0
- package/dist/chunk-D4JTSPOL.js +1795 -0
- package/dist/chunk-D4JTSPOL.js.map +1 -0
- package/dist/chunk-DS47NTWZ.cjs +1034 -0
- package/dist/chunk-DS47NTWZ.cjs.map +1 -0
- package/dist/chunk-FDLZEKEB.js +449 -0
- package/dist/chunk-FDLZEKEB.js.map +1 -0
- package/dist/chunk-FGPTCDUT.cjs +1851 -0
- package/dist/chunk-FGPTCDUT.cjs.map +1 -0
- package/dist/chunk-HDKDQAEQ.cjs +86 -0
- package/dist/chunk-HDKDQAEQ.cjs.map +1 -0
- package/dist/chunk-IX554O5K.js +346 -0
- package/dist/chunk-IX554O5K.js.map +1 -0
- package/dist/chunk-KLJEK547.js +71 -0
- package/dist/chunk-KLJEK547.js.map +1 -0
- package/dist/chunk-LMFSHK45.js +1028 -0
- package/dist/chunk-LMFSHK45.js.map +1 -0
- package/dist/chunk-MDICUK6F.cjs +1258 -0
- package/dist/chunk-MDICUK6F.cjs.map +1 -0
- package/dist/chunk-N7KOXOMX.cjs +363 -0
- package/dist/chunk-N7KOXOMX.cjs.map +1 -0
- package/dist/chunk-NYCIK4SU.cjs +775 -0
- package/dist/chunk-NYCIK4SU.cjs.map +1 -0
- package/dist/chunk-PDPHRZZT.js +770 -0
- package/dist/chunk-PDPHRZZT.js.map +1 -0
- package/dist/chunk-ROFLJ74T.js +1212 -0
- package/dist/chunk-ROFLJ74T.js.map +1 -0
- package/dist/chunk-S6BK5DB6.cjs +845 -0
- package/dist/chunk-S6BK5DB6.cjs.map +1 -0
- package/dist/chunk-U4I37IBN.js +874 -0
- package/dist/chunk-U4I37IBN.js.map +1 -0
- package/dist/chunk-U5GGE6PJ.js +839 -0
- package/dist/chunk-U5GGE6PJ.js.map +1 -0
- package/dist/chunk-UHLYS3W5.cjs +1015 -0
- package/dist/chunk-UHLYS3W5.cjs.map +1 -0
- package/dist/chunk-URSKIHSY.cjs +881 -0
- package/dist/chunk-URSKIHSY.cjs.map +1 -0
- package/dist/chunk-V6WO7RK7.cjs +1056 -0
- package/dist/chunk-V6WO7RK7.cjs.map +1 -0
- package/dist/chunk-VFQCTXOX.js +869 -0
- package/dist/chunk-VFQCTXOX.js.map +1 -0
- package/dist/chunk-XQ52ICHU.cjs +895 -0
- package/dist/chunk-XQ52ICHU.cjs.map +1 -0
- package/dist/chunk-XX4BKS7Y.js +1051 -0
- package/dist/chunk-XX4BKS7Y.js.map +1 -0
- package/dist/chunk-XXU36667.js +1844 -0
- package/dist/chunk-XXU36667.js.map +1 -0
- package/dist/chunk-ZX7QKZK2.cjs +1326 -0
- package/dist/chunk-ZX7QKZK2.cjs.map +1 -0
- package/dist/diagrams/blockdiagram/index.cjs +25 -0
- package/dist/diagrams/blockdiagram/index.cjs.map +1 -0
- package/dist/diagrams/blockdiagram/index.d.cts +67 -0
- package/dist/diagrams/blockdiagram/index.d.ts +67 -0
- package/dist/diagrams/blockdiagram/index.js +4 -0
- package/dist/diagrams/blockdiagram/index.js.map +1 -0
- package/dist/diagrams/circuit/index.cjs +34 -0
- package/dist/diagrams/circuit/index.cjs.map +1 -0
- package/dist/diagrams/circuit/index.d.cts +138 -0
- package/dist/diagrams/circuit/index.d.ts +138 -0
- package/dist/diagrams/circuit/index.js +5 -0
- package/dist/diagrams/circuit/index.js.map +1 -0
- package/dist/diagrams/ecomap/index.cjs +30 -0
- package/dist/diagrams/ecomap/index.cjs.map +1 -0
- package/dist/diagrams/ecomap/index.d.cts +15 -0
- package/dist/diagrams/ecomap/index.d.ts +15 -0
- package/dist/diagrams/ecomap/index.js +5 -0
- package/dist/diagrams/ecomap/index.js.map +1 -0
- package/dist/diagrams/entity/index.cjs +26 -0
- package/dist/diagrams/entity/index.cjs.map +1 -0
- package/dist/diagrams/entity/index.d.cts +54 -0
- package/dist/diagrams/entity/index.d.ts +54 -0
- package/dist/diagrams/entity/index.js +5 -0
- package/dist/diagrams/entity/index.js.map +1 -0
- package/dist/diagrams/fishbone/index.cjs +34 -0
- package/dist/diagrams/fishbone/index.cjs.map +1 -0
- package/dist/diagrams/fishbone/index.d.cts +185 -0
- package/dist/diagrams/fishbone/index.d.ts +185 -0
- package/dist/diagrams/fishbone/index.js +5 -0
- package/dist/diagrams/fishbone/index.js.map +1 -0
- package/dist/diagrams/flowchart/index.cjs +34 -0
- package/dist/diagrams/flowchart/index.cjs.map +1 -0
- package/dist/diagrams/flowchart/index.d.cts +2 -0
- package/dist/diagrams/flowchart/index.d.ts +2 -0
- package/dist/diagrams/flowchart/index.js +5 -0
- package/dist/diagrams/flowchart/index.js.map +1 -0
- package/dist/diagrams/genogram/index.cjs +38 -0
- package/dist/diagrams/genogram/index.cjs.map +1 -0
- package/dist/diagrams/genogram/index.d.cts +20 -0
- package/dist/diagrams/genogram/index.d.ts +20 -0
- package/dist/diagrams/genogram/index.js +5 -0
- package/dist/diagrams/genogram/index.js.map +1 -0
- package/dist/diagrams/ladder/index.cjs +26 -0
- package/dist/diagrams/ladder/index.cjs.map +1 -0
- package/dist/diagrams/ladder/index.d.cts +49 -0
- package/dist/diagrams/ladder/index.d.ts +49 -0
- package/dist/diagrams/ladder/index.js +5 -0
- package/dist/diagrams/ladder/index.js.map +1 -0
- package/dist/diagrams/logic/index.cjs +26 -0
- package/dist/diagrams/logic/index.cjs.map +1 -0
- package/dist/diagrams/logic/index.d.cts +73 -0
- package/dist/diagrams/logic/index.d.ts +73 -0
- package/dist/diagrams/logic/index.js +5 -0
- package/dist/diagrams/logic/index.js.map +1 -0
- package/dist/diagrams/orgchart/index.cjs +30 -0
- package/dist/diagrams/orgchart/index.cjs.map +1 -0
- package/dist/diagrams/orgchart/index.d.cts +100 -0
- package/dist/diagrams/orgchart/index.d.ts +100 -0
- package/dist/diagrams/orgchart/index.js +5 -0
- package/dist/diagrams/orgchart/index.js.map +1 -0
- package/dist/diagrams/pedigree/index.cjs +30 -0
- package/dist/diagrams/pedigree/index.cjs.map +1 -0
- package/dist/diagrams/pedigree/index.d.cts +15 -0
- package/dist/diagrams/pedigree/index.d.ts +15 -0
- package/dist/diagrams/pedigree/index.js +5 -0
- package/dist/diagrams/pedigree/index.js.map +1 -0
- package/dist/diagrams/phylo/index.cjs +30 -0
- package/dist/diagrams/phylo/index.cjs.map +1 -0
- package/dist/diagrams/phylo/index.d.cts +32 -0
- package/dist/diagrams/phylo/index.d.ts +32 -0
- package/dist/diagrams/phylo/index.js +5 -0
- package/dist/diagrams/phylo/index.js.map +1 -0
- package/dist/diagrams/sld/index.cjs +26 -0
- package/dist/diagrams/sld/index.cjs.map +1 -0
- package/dist/diagrams/sld/index.d.cts +58 -0
- package/dist/diagrams/sld/index.d.ts +58 -0
- package/dist/diagrams/sld/index.js +5 -0
- package/dist/diagrams/sld/index.js.map +1 -0
- package/dist/diagrams/sociogram/index.cjs +26 -0
- package/dist/diagrams/sociogram/index.cjs.map +1 -0
- package/dist/diagrams/sociogram/index.d.cts +76 -0
- package/dist/diagrams/sociogram/index.d.ts +76 -0
- package/dist/diagrams/sociogram/index.js +5 -0
- package/dist/diagrams/sociogram/index.js.map +1 -0
- package/dist/diagrams/timing/index.cjs +21 -0
- package/dist/diagrams/timing/index.cjs.map +1 -0
- package/dist/diagrams/timing/index.d.cts +9 -0
- package/dist/diagrams/timing/index.d.ts +9 -0
- package/dist/diagrams/timing/index.js +4 -0
- package/dist/diagrams/timing/index.js.map +1 -0
- package/dist/diagrams/venn/index.cjs +38 -0
- package/dist/diagrams/venn/index.cjs.map +1 -0
- package/dist/diagrams/venn/index.d.cts +69 -0
- package/dist/diagrams/venn/index.d.ts +69 -0
- package/dist/diagrams/venn/index.js +5 -0
- package/dist/diagrams/venn/index.js.map +1 -0
- package/dist/index-BSlza1YY.d.ts +150 -0
- package/dist/index-BXefHVce.d.cts +150 -0
- package/dist/index.cjs +2033 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1944 -0
- package/dist/index.js.map +1 -0
- package/dist/types-DqfcYkcY.d.cts +741 -0
- package/dist/types-DqfcYkcY.d.ts +741 -0
- package/package.json +163 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUHLYS3W5_cjs = require('../../chunk-UHLYS3W5.cjs');
|
|
4
|
+
require('../../chunk-N7KOXOMX.cjs');
|
|
5
|
+
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "OrgchartParseError", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkUHLYS3W5_cjs.OrgchartParseError; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "layoutOrgchart", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkUHLYS3W5_cjs.layoutOrgchart; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "orgchart", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkUHLYS3W5_cjs.orgchart; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "parseOrgchart", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkUHLYS3W5_cjs.parseOrgchart; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "renderOrgchart", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkUHLYS3W5_cjs.renderOrgchart; }
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.cjs.map
|
|
30
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { R as RenderConfig, b as DiagramPlugin } from '../../types-DqfcYkcY.cjs';
|
|
2
|
+
|
|
3
|
+
type OrgchartDirection = "TD" | "LR";
|
|
4
|
+
type OrgchartLayoutMode = "tree" | "list";
|
|
5
|
+
type OrgchartRoleIcon = "CEO" | "CTO" | "CFO" | "COO" | "CMO" | "CPO" | "VP" | "Engineer" | "Designer" | "Sales" | "HR" | "Legal" | "Ops" | "Marketing" | "Product" | "Data" | "Advisor" | "Intern" | "Vacant";
|
|
6
|
+
type OrgchartNodeKind = "person" | "role" | "draft" | "advisor";
|
|
7
|
+
interface OrgchartNode {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
department?: string;
|
|
12
|
+
/** Secondary info line: email, phone, location, short note */
|
|
13
|
+
info?: string;
|
|
14
|
+
kind: OrgchartNodeKind;
|
|
15
|
+
/** Parent id determined by hierarchy / reports property */
|
|
16
|
+
parent?: string;
|
|
17
|
+
/** Assistant-of another node id */
|
|
18
|
+
assistantOf?: string;
|
|
19
|
+
/** Matrix (dotted) report targets */
|
|
20
|
+
matrix: string[];
|
|
21
|
+
/** Built-in role icon keyword */
|
|
22
|
+
role?: OrgchartRoleIcon;
|
|
23
|
+
/** Gender silhouette (shown when no role icon set) */
|
|
24
|
+
gender?: "male" | "female";
|
|
25
|
+
/** Vacant / open position */
|
|
26
|
+
open?: boolean;
|
|
27
|
+
/** Draft / planned but not actively recruited */
|
|
28
|
+
draft?: boolean;
|
|
29
|
+
/** External advisor / contractor */
|
|
30
|
+
external?: boolean;
|
|
31
|
+
/** Explicit avatar color override (hex) */
|
|
32
|
+
avatarColor?: string;
|
|
33
|
+
/** Status pill: NEW / HIRING / LEAVING */
|
|
34
|
+
status?: "new" | "leaving" | "on-leave";
|
|
35
|
+
}
|
|
36
|
+
interface OrgchartEdge {
|
|
37
|
+
from: string;
|
|
38
|
+
to: string;
|
|
39
|
+
kind: "report" | "matrix";
|
|
40
|
+
label?: string;
|
|
41
|
+
}
|
|
42
|
+
interface OrgchartAST {
|
|
43
|
+
type: "orgchart";
|
|
44
|
+
title?: string;
|
|
45
|
+
direction: OrgchartDirection;
|
|
46
|
+
layout: OrgchartLayoutMode;
|
|
47
|
+
nodes: OrgchartNode[];
|
|
48
|
+
edges: OrgchartEdge[];
|
|
49
|
+
metadata?: Record<string, string>;
|
|
50
|
+
}
|
|
51
|
+
interface OrgchartLayoutNode {
|
|
52
|
+
node: OrgchartNode;
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
/** Department color (resolved from palette) */
|
|
58
|
+
deptColor?: string;
|
|
59
|
+
/** Avatar background color (soft tint) */
|
|
60
|
+
avatarBg: string;
|
|
61
|
+
/** Avatar foreground color (darker, for initials / role glyph) */
|
|
62
|
+
avatarFg: string;
|
|
63
|
+
/** Avatar display initials (2 chars or 1 CJK glyph) */
|
|
64
|
+
initials: string;
|
|
65
|
+
/** Indent depth from root (list mode only). 0 for root. */
|
|
66
|
+
depth?: number;
|
|
67
|
+
/** Subtree size excluding self (list mode only). */
|
|
68
|
+
subtreeSize?: number;
|
|
69
|
+
/** True if this node has children (list mode only). */
|
|
70
|
+
hasChildren?: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface OrgchartLayoutEdge {
|
|
73
|
+
edge: OrgchartEdge;
|
|
74
|
+
path: string;
|
|
75
|
+
labelX?: number;
|
|
76
|
+
labelY?: number;
|
|
77
|
+
}
|
|
78
|
+
interface OrgchartLayoutResult {
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
nodes: OrgchartLayoutNode[];
|
|
82
|
+
edges: OrgchartLayoutEdge[];
|
|
83
|
+
title?: string;
|
|
84
|
+
mode: OrgchartLayoutMode;
|
|
85
|
+
/** List-mode guide lines (vertical trunks + horizontal ticks). */
|
|
86
|
+
guides?: string[];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare class OrgchartParseError extends Error {
|
|
90
|
+
constructor(message: string);
|
|
91
|
+
}
|
|
92
|
+
declare function parseOrgchart(text: string): OrgchartAST;
|
|
93
|
+
|
|
94
|
+
declare function renderOrgchart(ast: OrgchartAST, config?: RenderConfig): string;
|
|
95
|
+
|
|
96
|
+
declare function layoutOrgchart(ast: OrgchartAST, palette: readonly string[]): OrgchartLayoutResult;
|
|
97
|
+
|
|
98
|
+
declare const orgchart: DiagramPlugin;
|
|
99
|
+
|
|
100
|
+
export { type OrgchartAST, type OrgchartDirection, type OrgchartEdge, type OrgchartLayoutEdge, type OrgchartLayoutMode, type OrgchartLayoutNode, type OrgchartLayoutResult, type OrgchartNode, type OrgchartNodeKind, OrgchartParseError, type OrgchartRoleIcon, layoutOrgchart, orgchart, parseOrgchart, renderOrgchart };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { R as RenderConfig, b as DiagramPlugin } from '../../types-DqfcYkcY.js';
|
|
2
|
+
|
|
3
|
+
type OrgchartDirection = "TD" | "LR";
|
|
4
|
+
type OrgchartLayoutMode = "tree" | "list";
|
|
5
|
+
type OrgchartRoleIcon = "CEO" | "CTO" | "CFO" | "COO" | "CMO" | "CPO" | "VP" | "Engineer" | "Designer" | "Sales" | "HR" | "Legal" | "Ops" | "Marketing" | "Product" | "Data" | "Advisor" | "Intern" | "Vacant";
|
|
6
|
+
type OrgchartNodeKind = "person" | "role" | "draft" | "advisor";
|
|
7
|
+
interface OrgchartNode {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
department?: string;
|
|
12
|
+
/** Secondary info line: email, phone, location, short note */
|
|
13
|
+
info?: string;
|
|
14
|
+
kind: OrgchartNodeKind;
|
|
15
|
+
/** Parent id determined by hierarchy / reports property */
|
|
16
|
+
parent?: string;
|
|
17
|
+
/** Assistant-of another node id */
|
|
18
|
+
assistantOf?: string;
|
|
19
|
+
/** Matrix (dotted) report targets */
|
|
20
|
+
matrix: string[];
|
|
21
|
+
/** Built-in role icon keyword */
|
|
22
|
+
role?: OrgchartRoleIcon;
|
|
23
|
+
/** Gender silhouette (shown when no role icon set) */
|
|
24
|
+
gender?: "male" | "female";
|
|
25
|
+
/** Vacant / open position */
|
|
26
|
+
open?: boolean;
|
|
27
|
+
/** Draft / planned but not actively recruited */
|
|
28
|
+
draft?: boolean;
|
|
29
|
+
/** External advisor / contractor */
|
|
30
|
+
external?: boolean;
|
|
31
|
+
/** Explicit avatar color override (hex) */
|
|
32
|
+
avatarColor?: string;
|
|
33
|
+
/** Status pill: NEW / HIRING / LEAVING */
|
|
34
|
+
status?: "new" | "leaving" | "on-leave";
|
|
35
|
+
}
|
|
36
|
+
interface OrgchartEdge {
|
|
37
|
+
from: string;
|
|
38
|
+
to: string;
|
|
39
|
+
kind: "report" | "matrix";
|
|
40
|
+
label?: string;
|
|
41
|
+
}
|
|
42
|
+
interface OrgchartAST {
|
|
43
|
+
type: "orgchart";
|
|
44
|
+
title?: string;
|
|
45
|
+
direction: OrgchartDirection;
|
|
46
|
+
layout: OrgchartLayoutMode;
|
|
47
|
+
nodes: OrgchartNode[];
|
|
48
|
+
edges: OrgchartEdge[];
|
|
49
|
+
metadata?: Record<string, string>;
|
|
50
|
+
}
|
|
51
|
+
interface OrgchartLayoutNode {
|
|
52
|
+
node: OrgchartNode;
|
|
53
|
+
x: number;
|
|
54
|
+
y: number;
|
|
55
|
+
width: number;
|
|
56
|
+
height: number;
|
|
57
|
+
/** Department color (resolved from palette) */
|
|
58
|
+
deptColor?: string;
|
|
59
|
+
/** Avatar background color (soft tint) */
|
|
60
|
+
avatarBg: string;
|
|
61
|
+
/** Avatar foreground color (darker, for initials / role glyph) */
|
|
62
|
+
avatarFg: string;
|
|
63
|
+
/** Avatar display initials (2 chars or 1 CJK glyph) */
|
|
64
|
+
initials: string;
|
|
65
|
+
/** Indent depth from root (list mode only). 0 for root. */
|
|
66
|
+
depth?: number;
|
|
67
|
+
/** Subtree size excluding self (list mode only). */
|
|
68
|
+
subtreeSize?: number;
|
|
69
|
+
/** True if this node has children (list mode only). */
|
|
70
|
+
hasChildren?: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface OrgchartLayoutEdge {
|
|
73
|
+
edge: OrgchartEdge;
|
|
74
|
+
path: string;
|
|
75
|
+
labelX?: number;
|
|
76
|
+
labelY?: number;
|
|
77
|
+
}
|
|
78
|
+
interface OrgchartLayoutResult {
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
nodes: OrgchartLayoutNode[];
|
|
82
|
+
edges: OrgchartLayoutEdge[];
|
|
83
|
+
title?: string;
|
|
84
|
+
mode: OrgchartLayoutMode;
|
|
85
|
+
/** List-mode guide lines (vertical trunks + horizontal ticks). */
|
|
86
|
+
guides?: string[];
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
declare class OrgchartParseError extends Error {
|
|
90
|
+
constructor(message: string);
|
|
91
|
+
}
|
|
92
|
+
declare function parseOrgchart(text: string): OrgchartAST;
|
|
93
|
+
|
|
94
|
+
declare function renderOrgchart(ast: OrgchartAST, config?: RenderConfig): string;
|
|
95
|
+
|
|
96
|
+
declare function layoutOrgchart(ast: OrgchartAST, palette: readonly string[]): OrgchartLayoutResult;
|
|
97
|
+
|
|
98
|
+
declare const orgchart: DiagramPlugin;
|
|
99
|
+
|
|
100
|
+
export { type OrgchartAST, type OrgchartDirection, type OrgchartEdge, type OrgchartLayoutEdge, type OrgchartLayoutMode, type OrgchartLayoutNode, type OrgchartLayoutResult, type OrgchartNode, type OrgchartNodeKind, OrgchartParseError, type OrgchartRoleIcon, layoutOrgchart, orgchart, parseOrgchart, renderOrgchart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDS47NTWZ_cjs = require('../../chunk-DS47NTWZ.cjs');
|
|
4
|
+
require('../../chunk-N7KOXOMX.cjs');
|
|
5
|
+
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "PedigreeParseError", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkDS47NTWZ_cjs.PedigreeParseError; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "layoutPedigree", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkDS47NTWZ_cjs.layoutPedigree; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "parsePedigree", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkDS47NTWZ_cjs.parsePedigree; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "pedigree", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkDS47NTWZ_cjs.pedigree; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "renderPedigree", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkDS47NTWZ_cjs.renderPedigree; }
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.cjs.map
|
|
30
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { D as DiagramAST, L as LayoutConfig, a as LayoutResult, R as RenderConfig, b as DiagramPlugin } from '../../types-DqfcYkcY.cjs';
|
|
2
|
+
|
|
3
|
+
declare class PedigreeParseError extends Error {
|
|
4
|
+
line: number;
|
|
5
|
+
constructor(message: string, line: number);
|
|
6
|
+
}
|
|
7
|
+
declare function parsePedigree(text: string): DiagramAST;
|
|
8
|
+
|
|
9
|
+
declare function layoutPedigree(ast: DiagramAST, config: LayoutConfig): LayoutResult;
|
|
10
|
+
|
|
11
|
+
declare function renderPedigree(layout: LayoutResult, config: RenderConfig, ast?: DiagramAST): string;
|
|
12
|
+
|
|
13
|
+
declare const pedigree: DiagramPlugin;
|
|
14
|
+
|
|
15
|
+
export { PedigreeParseError, layoutPedigree, parsePedigree, pedigree, renderPedigree };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { D as DiagramAST, L as LayoutConfig, a as LayoutResult, R as RenderConfig, b as DiagramPlugin } from '../../types-DqfcYkcY.js';
|
|
2
|
+
|
|
3
|
+
declare class PedigreeParseError extends Error {
|
|
4
|
+
line: number;
|
|
5
|
+
constructor(message: string, line: number);
|
|
6
|
+
}
|
|
7
|
+
declare function parsePedigree(text: string): DiagramAST;
|
|
8
|
+
|
|
9
|
+
declare function layoutPedigree(ast: DiagramAST, config: LayoutConfig): LayoutResult;
|
|
10
|
+
|
|
11
|
+
declare function renderPedigree(layout: LayoutResult, config: RenderConfig, ast?: DiagramAST): string;
|
|
12
|
+
|
|
13
|
+
declare const pedigree: DiagramPlugin;
|
|
14
|
+
|
|
15
|
+
export { PedigreeParseError, layoutPedigree, parsePedigree, pedigree, renderPedigree };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXQ52ICHU_cjs = require('../../chunk-XQ52ICHU.cjs');
|
|
4
|
+
require('../../chunk-N7KOXOMX.cjs');
|
|
5
|
+
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "PhyloParseError", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkXQ52ICHU_cjs.PhyloParseError; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "layoutPhylo", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkXQ52ICHU_cjs.layoutPhylo; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "parsePhylo", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkXQ52ICHU_cjs.parsePhylo; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "phylo", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkXQ52ICHU_cjs.phylo; }
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(exports, "renderPhylo", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return chunkXQ52ICHU_cjs.renderPhylo; }
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.cjs.map
|
|
30
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { P as PhyloTreeAST, c as PhyloLayoutNode, b as DiagramPlugin } from '../../types-DqfcYkcY.cjs';
|
|
2
|
+
|
|
3
|
+
declare class PhyloParseError extends Error {
|
|
4
|
+
constructor(message: string);
|
|
5
|
+
}
|
|
6
|
+
declare function parsePhylo(text: string): PhyloTreeAST;
|
|
7
|
+
|
|
8
|
+
interface PhyloLayoutResult {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
nodes: PhyloLayoutNode[];
|
|
12
|
+
/** Branch paths: { path, cladeId?, isConnector } */
|
|
13
|
+
branches: PhyloBranch[];
|
|
14
|
+
ast: PhyloTreeAST;
|
|
15
|
+
scale: number;
|
|
16
|
+
}
|
|
17
|
+
interface PhyloBranch {
|
|
18
|
+
path: string;
|
|
19
|
+
fromId: string;
|
|
20
|
+
toId: string;
|
|
21
|
+
/** Clade id if this branch belongs to a highlighted clade */
|
|
22
|
+
cladeId?: string;
|
|
23
|
+
/** Is this a vertical/arc connector (no length meaning) vs horizontal branch */
|
|
24
|
+
isConnector: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare function layoutPhylo(ast: PhyloTreeAST): PhyloLayoutResult;
|
|
27
|
+
|
|
28
|
+
declare function renderPhylo(layout: PhyloLayoutResult): string;
|
|
29
|
+
|
|
30
|
+
declare const phylo: DiagramPlugin;
|
|
31
|
+
|
|
32
|
+
export { type PhyloLayoutResult, PhyloParseError, layoutPhylo, parsePhylo, phylo, renderPhylo };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { P as PhyloTreeAST, c as PhyloLayoutNode, b as DiagramPlugin } from '../../types-DqfcYkcY.js';
|
|
2
|
+
|
|
3
|
+
declare class PhyloParseError extends Error {
|
|
4
|
+
constructor(message: string);
|
|
5
|
+
}
|
|
6
|
+
declare function parsePhylo(text: string): PhyloTreeAST;
|
|
7
|
+
|
|
8
|
+
interface PhyloLayoutResult {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
nodes: PhyloLayoutNode[];
|
|
12
|
+
/** Branch paths: { path, cladeId?, isConnector } */
|
|
13
|
+
branches: PhyloBranch[];
|
|
14
|
+
ast: PhyloTreeAST;
|
|
15
|
+
scale: number;
|
|
16
|
+
}
|
|
17
|
+
interface PhyloBranch {
|
|
18
|
+
path: string;
|
|
19
|
+
fromId: string;
|
|
20
|
+
toId: string;
|
|
21
|
+
/** Clade id if this branch belongs to a highlighted clade */
|
|
22
|
+
cladeId?: string;
|
|
23
|
+
/** Is this a vertical/arc connector (no length meaning) vs horizontal branch */
|
|
24
|
+
isConnector: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare function layoutPhylo(ast: PhyloTreeAST): PhyloLayoutResult;
|
|
27
|
+
|
|
28
|
+
declare function renderPhylo(layout: PhyloLayoutResult): string;
|
|
29
|
+
|
|
30
|
+
declare const phylo: DiagramPlugin;
|
|
31
|
+
|
|
32
|
+
export { type PhyloLayoutResult, PhyloParseError, layoutPhylo, parsePhylo, phylo, renderPhylo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZX7QKZK2_cjs = require('../../chunk-ZX7QKZK2.cjs');
|
|
4
|
+
require('../../chunk-N7KOXOMX.cjs');
|
|
5
|
+
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "layoutSLD", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkZX7QKZK2_cjs.layoutSLD; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "parseSLDDSL", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkZX7QKZK2_cjs.parseSLDDSL; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "renderSLD", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkZX7QKZK2_cjs.renderSLD; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "sld", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkZX7QKZK2_cjs.sld; }
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.cjs.map
|
|
26
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { S as SLDAST, R as RenderConfig, i as SLDNode, j as SLDNodeType, b as DiagramPlugin } from '../../types-DqfcYkcY.cjs';
|
|
2
|
+
|
|
3
|
+
declare function parseSLDDSL(text: string): SLDAST;
|
|
4
|
+
|
|
5
|
+
declare function renderSLD(ast: SLDAST, config?: RenderConfig): string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Top-down hierarchical layout:
|
|
9
|
+
* level 0 = sources (top)
|
|
10
|
+
* each edge forces child.level >= parent.level + 1
|
|
11
|
+
* Bus nodes expand horizontally to span their children.
|
|
12
|
+
* Other nodes are positioned in a tidy tree-like layout.
|
|
13
|
+
*/
|
|
14
|
+
interface SLDLayoutNode {
|
|
15
|
+
node: SLDNode;
|
|
16
|
+
nodeType: SLDNodeType;
|
|
17
|
+
/** center x */
|
|
18
|
+
x: number;
|
|
19
|
+
/** center y */
|
|
20
|
+
y: number;
|
|
21
|
+
/** Terminal y (top and bottom) after symbol geometry */
|
|
22
|
+
topY: number;
|
|
23
|
+
bottomY: number;
|
|
24
|
+
level: number;
|
|
25
|
+
/** Half width for spacing */
|
|
26
|
+
halfWidth: number;
|
|
27
|
+
/** For bus nodes: left and right extent (x min/max) */
|
|
28
|
+
busLeft?: number;
|
|
29
|
+
busRight?: number;
|
|
30
|
+
}
|
|
31
|
+
interface SLDLayoutEdge {
|
|
32
|
+
from: string;
|
|
33
|
+
to: string;
|
|
34
|
+
path: string;
|
|
35
|
+
cable?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
midX: number;
|
|
38
|
+
midY: number;
|
|
39
|
+
}
|
|
40
|
+
interface SLDLayoutBand {
|
|
41
|
+
level: number;
|
|
42
|
+
voltage?: string;
|
|
43
|
+
y: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}
|
|
46
|
+
interface SLDLayoutResult {
|
|
47
|
+
width: number;
|
|
48
|
+
height: number;
|
|
49
|
+
nodes: SLDLayoutNode[];
|
|
50
|
+
edges: SLDLayoutEdge[];
|
|
51
|
+
bands: SLDLayoutBand[];
|
|
52
|
+
nodeById: Map<string, SLDLayoutNode>;
|
|
53
|
+
}
|
|
54
|
+
declare function layoutSLD(ast: SLDAST): SLDLayoutResult;
|
|
55
|
+
|
|
56
|
+
declare const sld: DiagramPlugin;
|
|
57
|
+
|
|
58
|
+
export { layoutSLD, parseSLDDSL, renderSLD, sld };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { S as SLDAST, R as RenderConfig, i as SLDNode, j as SLDNodeType, b as DiagramPlugin } from '../../types-DqfcYkcY.js';
|
|
2
|
+
|
|
3
|
+
declare function parseSLDDSL(text: string): SLDAST;
|
|
4
|
+
|
|
5
|
+
declare function renderSLD(ast: SLDAST, config?: RenderConfig): string;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Top-down hierarchical layout:
|
|
9
|
+
* level 0 = sources (top)
|
|
10
|
+
* each edge forces child.level >= parent.level + 1
|
|
11
|
+
* Bus nodes expand horizontally to span their children.
|
|
12
|
+
* Other nodes are positioned in a tidy tree-like layout.
|
|
13
|
+
*/
|
|
14
|
+
interface SLDLayoutNode {
|
|
15
|
+
node: SLDNode;
|
|
16
|
+
nodeType: SLDNodeType;
|
|
17
|
+
/** center x */
|
|
18
|
+
x: number;
|
|
19
|
+
/** center y */
|
|
20
|
+
y: number;
|
|
21
|
+
/** Terminal y (top and bottom) after symbol geometry */
|
|
22
|
+
topY: number;
|
|
23
|
+
bottomY: number;
|
|
24
|
+
level: number;
|
|
25
|
+
/** Half width for spacing */
|
|
26
|
+
halfWidth: number;
|
|
27
|
+
/** For bus nodes: left and right extent (x min/max) */
|
|
28
|
+
busLeft?: number;
|
|
29
|
+
busRight?: number;
|
|
30
|
+
}
|
|
31
|
+
interface SLDLayoutEdge {
|
|
32
|
+
from: string;
|
|
33
|
+
to: string;
|
|
34
|
+
path: string;
|
|
35
|
+
cable?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
midX: number;
|
|
38
|
+
midY: number;
|
|
39
|
+
}
|
|
40
|
+
interface SLDLayoutBand {
|
|
41
|
+
level: number;
|
|
42
|
+
voltage?: string;
|
|
43
|
+
y: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}
|
|
46
|
+
interface SLDLayoutResult {
|
|
47
|
+
width: number;
|
|
48
|
+
height: number;
|
|
49
|
+
nodes: SLDLayoutNode[];
|
|
50
|
+
edges: SLDLayoutEdge[];
|
|
51
|
+
bands: SLDLayoutBand[];
|
|
52
|
+
nodeById: Map<string, SLDLayoutNode>;
|
|
53
|
+
}
|
|
54
|
+
declare function layoutSLD(ast: SLDAST): SLDLayoutResult;
|
|
55
|
+
|
|
56
|
+
declare const sld: DiagramPlugin;
|
|
57
|
+
|
|
58
|
+
export { layoutSLD, parseSLDDSL, renderSLD, sld };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkNYCIK4SU_cjs = require('../../chunk-NYCIK4SU.cjs');
|
|
4
|
+
require('../../chunk-N7KOXOMX.cjs');
|
|
5
|
+
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "layoutSociogram", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkNYCIK4SU_cjs.layoutSociogram; }
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "parseSociogram", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunkNYCIK4SU_cjs.parseSociogram; }
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "renderSociogram", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkNYCIK4SU_cjs.renderSociogram; }
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports, "sociogram", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkNYCIK4SU_cjs.sociogram; }
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.cjs.map
|
|
26
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|