compasso 0.4.0 → 0.5.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.
Files changed (100) hide show
  1. package/README.md +115 -5
  2. package/dist/{chunk-ZBDABVIO.js → chunk-2NDET6O5.js} +3 -3
  3. package/dist/{chunk-ZBDABVIO.js.map → chunk-2NDET6O5.js.map} +1 -1
  4. package/dist/{chunk-Q6DVTCXD.js → chunk-3RGYLVTN.js} +18 -6
  5. package/dist/chunk-3RGYLVTN.js.map +1 -0
  6. package/dist/chunk-BM7UJBK5.js +680 -0
  7. package/dist/chunk-BM7UJBK5.js.map +1 -0
  8. package/dist/chunk-DVLWT565.js +372 -0
  9. package/dist/chunk-DVLWT565.js.map +1 -0
  10. package/dist/{chunk-F47C6ZEB.js → chunk-JBDA7E2O.js} +3 -3
  11. package/dist/{chunk-F47C6ZEB.js.map → chunk-JBDA7E2O.js.map} +1 -1
  12. package/dist/chunk-MIJTBYX2.js +982 -0
  13. package/dist/chunk-MIJTBYX2.js.map +1 -0
  14. package/dist/{chunk-JP4N42AY.js → chunk-PJHLWSGD.js} +3 -3
  15. package/dist/{chunk-JP4N42AY.js.map → chunk-PJHLWSGD.js.map} +1 -1
  16. package/dist/{chunk-LRHHUJFZ.js → chunk-RDH4XHA2.js} +3 -3
  17. package/dist/{chunk-LRHHUJFZ.js.map → chunk-RDH4XHA2.js.map} +1 -1
  18. package/dist/{chunk-UJVU7B44.js → chunk-WEHUSHVI.js} +31 -51
  19. package/dist/chunk-WEHUSHVI.js.map +1 -0
  20. package/dist/{chunk-RWPGGWO5.js → chunk-Z66YUOUM.js} +34 -10
  21. package/dist/chunk-Z66YUOUM.js.map +1 -0
  22. package/dist/core/index.cjs +247 -0
  23. package/dist/core/index.cjs.map +1 -1
  24. package/dist/core/index.d.cts +94 -2
  25. package/dist/core/index.d.ts +94 -2
  26. package/dist/core/index.js +1 -1
  27. package/dist/ecomap/index.cjs +34 -11
  28. package/dist/ecomap/index.cjs.map +1 -1
  29. package/dist/ecomap/index.d.cts +12 -0
  30. package/dist/ecomap/index.d.ts +12 -0
  31. package/dist/ecomap/index.js +2 -2
  32. package/dist/fault-tree/index.d.cts +2 -2
  33. package/dist/fault-tree/index.d.ts +2 -2
  34. package/dist/fault-tree/index.js +2 -2
  35. package/dist/fishbone/index.js +2 -2
  36. package/dist/genogram/index.cjs +57 -7
  37. package/dist/genogram/index.cjs.map +1 -1
  38. package/dist/genogram/index.d.cts +22 -6
  39. package/dist/genogram/index.d.ts +22 -6
  40. package/dist/genogram/index.js +2 -2
  41. package/dist/geometry-P-XGqGe7.d.cts +8 -0
  42. package/dist/geometry-P-XGqGe7.d.ts +8 -0
  43. package/dist/grid-BMgUSly1.d.cts +79 -0
  44. package/dist/grid-BMgUSly1.d.ts +79 -0
  45. package/dist/index.cjs +2360 -395
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.cts +14 -7
  48. package/dist/index.d.ts +14 -7
  49. package/dist/index.js +10 -8
  50. package/dist/{kinship-DqEklrDN.d.ts → kinship-BF90HyyS.d.ts} +1 -1
  51. package/dist/{kinship-Dy_ijjJV.d.cts → kinship-BOUss5cT.d.cts} +1 -1
  52. package/dist/{labels-RtFw9tX1.d.cts → labels-B0aOMbHy.d.cts} +12 -0
  53. package/dist/{labels-RtFw9tX1.d.ts → labels-B0aOMbHy.d.ts} +12 -0
  54. package/dist/labels-Br8yjc3C.d.cts +29 -0
  55. package/dist/labels-Br8yjc3C.d.ts +29 -0
  56. package/dist/{labels-DNqRkWuI.d.ts → labels-CuLbFyrz.d.ts} +1 -1
  57. package/dist/labels-D1v1RWZd.d.cts +97 -0
  58. package/dist/labels-D1v1RWZd.d.ts +97 -0
  59. package/dist/{labels-CBQ_3Ec9.d.cts → labels-DhQe7I8m.d.cts} +1 -1
  60. package/dist/layered-DmZluAqe.d.cts +72 -0
  61. package/dist/layered-DmZluAqe.d.ts +72 -0
  62. package/dist/locales/pt-br.cjs +53 -0
  63. package/dist/locales/pt-br.cjs.map +1 -1
  64. package/dist/locales/pt-br.d.cts +11 -5
  65. package/dist/locales/pt-br.d.ts +11 -5
  66. package/dist/locales/pt-br.js +50 -1
  67. package/dist/locales/pt-br.js.map +1 -1
  68. package/dist/org-chart/index.cjs +138 -94
  69. package/dist/org-chart/index.cjs.map +1 -1
  70. package/dist/org-chart/index.d.cts +24 -33
  71. package/dist/org-chart/index.d.ts +24 -33
  72. package/dist/org-chart/index.js +2 -2
  73. package/dist/pedigree/index.d.cts +6 -6
  74. package/dist/pedigree/index.d.ts +6 -6
  75. package/dist/pedigree/index.js +2 -2
  76. package/dist/phylo/index.d.cts +2 -2
  77. package/dist/phylo/index.d.ts +2 -2
  78. package/dist/phylo/index.js +2 -2
  79. package/dist/prisma/index.cjs +882 -0
  80. package/dist/prisma/index.cjs.map +1 -0
  81. package/dist/prisma/index.d.cts +174 -0
  82. package/dist/prisma/index.d.ts +174 -0
  83. package/dist/prisma/index.js +4 -0
  84. package/dist/prisma/index.js.map +1 -0
  85. package/dist/{text-DuO_PwYw.d.cts → text-DDVzpwPZ.d.cts} +1 -8
  86. package/dist/{text-DuO_PwYw.d.ts → text-DDVzpwPZ.d.ts} +1 -8
  87. package/dist/{types-BnMG7TCd.d.cts → types-jE2fdM1t.d.cts} +8 -0
  88. package/dist/{types-BnMG7TCd.d.ts → types-jE2fdM1t.d.ts} +8 -0
  89. package/dist/uml/index.cjs +1214 -0
  90. package/dist/uml/index.cjs.map +1 -0
  91. package/dist/uml/index.d.cts +189 -0
  92. package/dist/uml/index.d.ts +189 -0
  93. package/dist/uml/index.js +4 -0
  94. package/dist/uml/index.js.map +1 -0
  95. package/package.json +28 -2
  96. package/dist/chunk-O3BT2O42.js +0 -145
  97. package/dist/chunk-O3BT2O42.js.map +0 -1
  98. package/dist/chunk-Q6DVTCXD.js.map +0 -1
  99. package/dist/chunk-RWPGGWO5.js.map +0 -1
  100. package/dist/chunk-UJVU7B44.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,17 +1,24 @@
1
1
  export { x as xmlEscape } from './xml-DDae1eUr.cjs';
2
- export { LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, LegendBlock, LegendEntry, legendBlock, romanNumeral } from './core/index.cjs';
3
- export { C as CHAR_W, F as FONT_FAMILY, P as Point, c as clampLabel, e as estimateTextWidth, p as pathData, w as wrapLabel, a as wrapLabelBalanced } from './text-DuO_PwYw.cjs';
2
+ export { ANNOTATION_INK, Dir, GLYPH_ARROW_HALF, GLYPH_ARROW_LEN, GLYPH_DIAMOND_HALF, GLYPH_DIAMOND_LEN, GLYPH_TRI_HALF, GLYPH_TRI_LEN, LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, LegendBlock, LegendEntry, annotationDot, annotationSwatch, annotationTick, arrowFilledPoints, arrowOpenPoints, diamondPoints, glyphInset, legendBlock, romanNumeral, trianglePoints } from './core/index.cjs';
3
+ export { P as Point, p as pathData } from './geometry-P-XGqGe7.cjs';
4
+ export { C as CHAR_W, F as FONT_FAMILY, c as clampLabel, e as estimateTextWidth, w as wrapLabel, a as wrapLabelBalanced } from './text-DDVzpwPZ.cjs';
4
5
  export { E as EDGE_STROKE, a as EdgeLineStyle, b as EdgeStroke, Q as QUALITY_LEXICON_EN, c as QualityLexicon, n as normalizeText, q as qualityLineStyle } from './stroke-MQ427drt.cjs';
5
- export { G as GenogramInput, N as NodeShape, P as ParentLink, a as Person, b as PersonSex, R as Relationship, U as UNION_STATUSES, c as Union, d as UnionStatus } from './types-BnMG7TCd.cjs';
6
- export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, b as GenogramSvgLabels, c as GenogramTitleLabels, K as KINSHIP_EN, d as KinshipLexicon, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from './kinship-Dy_ijjJV.cjs';
6
+ export { B as BandRow, a as BandStackOpts, b as BandStackResult, P as PackGaps, c as PackNode, d as PackResult, e as allocateLanes, f as bandStack, p as packSubtree } from './layered-DmZluAqe.cjs';
7
+ export { C as CompartmentMetrics, G as GridCell, a as GridResult, m as measureCompartmentBox, p as packGrid } from './grid-BMgUSly1.cjs';
8
+ export { G as GenogramInput, N as NodeShape, P as ParentLink, a as Person, b as PersonSex, R as Relationship, U as UNION_STATUSES, c as Union, d as UnionStatus } from './types-jE2fdM1t.cjs';
9
+ export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, b as GenogramSvgLabels, c as GenogramTitleLabels, K as KINSHIP_EN, d as KinshipLexicon, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from './kinship-BOUss5cT.cjs';
7
10
  export { EDGE_FONT, GenogramElement, GenogramElementKind, GenogramLayout, GenogramLayoutOptions, GenogramNode, GenogramRenderOptions, GenogramRenderResult, GenogramSvgOptions, LABEL_FONT, LABEL_LINE_H, NODE_SIZE, PARENT_REL_ID_BASE, PROMOTED_REL_ID_BASE, UNION_NOTATION, UNION_REL_ID_BASE, UnionEdgeStyle, computeGenogramLayout, genogramLayoutSvg, genogramSvg, latestUnionPerPair } from './genogram/index.cjs';
8
11
  export { ECOMAP_LABELS_EN, EcomapDirection, EcomapInput, EcomapLabels, EcomapSvgOptions, EcomapTie, ecomapSvg } from './ecomap/index.cjs';
9
12
  export { A as AndGate, F as FAULT_TREE_EVENT_KINDS, a as FAULT_TREE_SVG_LABELS_EN, b as FAULT_TREE_TITLE_LABELS_EN, c as FaultTreeEvent, d as FaultTreeEventKind, e as FaultTreeGate, f as FaultTreeInput, g as FaultTreeSvgLabels, h as FaultTreeTitleLabels, G as GATE_TYPES, i as GateType, I as InhibitGate, O as OrGate, V as VoteGate, X as XorGate } from './labels-CYbM5XV7.cjs';
10
13
  export { CODE_FONT, FT_BUS_ID_BASE, FT_CONDITION_ID_BASE, FT_DROP_ID_BASE, FT_LABEL_FONT, FT_LABEL_LINE_H, FT_RISER_ID_BASE, FT_STEM_ID_BASE, FaultTreeElement, FaultTreeElementKind, FaultTreeGateNode, FaultTreeIssue, FaultTreeIssueCode, FaultTreeLayout, FaultTreeLayoutOptions, FaultTreeNode, FaultTreeRenderOptions, FaultTreeRenderResult, FaultTreeSvgOptions, FaultTreeValidationError, LABEL_GAP, computeFaultTreeLayout, faultTreeIssues, faultTreeLayoutSvg, faultTreeSvg, validateFaultTree } from './fault-tree/index.cjs';
11
14
  export { FISHBONE_LABELS_EN, FishboneCategory, FishboneCause, FishboneInput, FishboneLabels, FishboneSubCause, FishboneSvgOptions, FishboneValidationCode, FishboneValidationError, FishboneValidationIssue, fishboneSvg } from './fishbone/index.cjs';
12
- export { C as Condition, I as Individual, L as LIFE_STATUSES, a as LifeStatus, M as Mating, P as PEDIGREE_SVG_LABELS_EN, b as PEDIGREE_TITLE_LABELS_EN, c as PedigreeInput, d as PedigreeRole, e as PedigreeSvgLabels, f as PedigreeTitleLabels, S as Sibship, T as TwinGroup, Z as Zygosity } from './labels-CBQ_3Ec9.cjs';
15
+ export { C as Condition, I as Individual, L as LIFE_STATUSES, a as LifeStatus, M as Mating, P as PEDIGREE_SVG_LABELS_EN, b as PEDIGREE_TITLE_LABELS_EN, c as PedigreeInput, d as PedigreeRole, e as PedigreeSvgLabels, f as PedigreeTitleLabels, S as Sibship, T as TwinGroup, Z as Zygosity } from './labels-DhQe7I8m.cjs';
13
16
  export { MAX_CONDITIONS_PER_INDIVIDUAL, PED_ADDRESS_FONT, PED_CONDITION_FILLS, PED_DESCENT_ID_BASE, PED_GLYPH, PED_LABEL_FONT, PED_LABEL_GAP, PED_LABEL_LINE_H, PED_MATING_ID_BASE, PED_RISER_ID_BASE, PED_SIBBAR_ID_BASE, PED_TWINBAR_ID_BASE, PedigreeElement, PedigreeElementKind, PedigreeGenerationLabel, PedigreeIssue, PedigreeIssueCode, PedigreeLayout, PedigreeLayoutOptions, PedigreeNode, PedigreeRenderOptions, PedigreeRenderResult, PedigreeSvgOptions, PedigreeValidationError, computePedigreeLayout, pedigreeIssues, pedigreeLayoutSvg, pedigreeSvg, validatePedigree } from './pedigree/index.cjs';
14
17
  export { P as PHYLO_SVG_LABELS_EN, a as PHYLO_TITLE_LABELS_EN, b as PhyloEdge, c as PhyloInput, d as PhyloMode, e as PhyloNode, f as PhyloSvgLabels, g as PhyloTitleLabels } from './labels-iZjijjtK.cjs';
15
18
  export { PHYLO_BRANCH_ID_BASE, PHYLO_CLADEBAR_ID_BASE, PHYLO_EXTENSION_ID_BASE, PHYLO_LABEL_FONT, PHYLO_LABEL_GAP, PHYLO_ROOTSTUB_ID_BASE, PHYLO_ROW_SLOT, PHYLO_SCALEBAR_ID, PHYLO_SUPPORT_FONT, PhyloElement, PhyloElementKind, PhyloIssue, PhyloIssueCode, PhyloLayout, PhyloLayoutNode, PhyloLayoutOptions, PhyloRenderOptions, PhyloRenderResult, PhyloScaleBar, PhyloSvgOptions, PhyloValidationError, computePhyloLayout, niceScaleStep, phyloIssues, phyloLayoutSvg, phyloSvg, validatePhylo } from './phylo/index.cjs';
16
- export { O as ORG_CHART_SVG_LABELS_EN, a as ORG_CHART_TITLE_LABELS_EN, b as ORG_REPORT_KINDS, c as ORG_VACANCIES, d as OrgBoxStyle, e as OrgChartInput, f as OrgChartSvgLabels, g as OrgChartTitleLabels, h as OrgPosition, i as OrgReport, j as OrgReportKind, k as OrgVacancy } from './labels-RtFw9tX1.cjs';
17
- export { ORG_ASSIST_ID_BASE, ORG_BUS_ID_BASE, ORG_DOTTED_ID_BASE, ORG_DROP_ID_BASE, ORG_LABEL_FONT, ORG_LABEL_LINE_H, ORG_MAX_MATRIX_EDGES_PER_NODE, ORG_STEM_ID_BASE, ORG_TITLE_FONT, OrgChartIssue, OrgChartIssueCode, OrgChartLayout, OrgChartLayoutOptions, OrgChartRenderOptions, OrgChartRenderResult, OrgChartSvgOptions, OrgChartValidationError, OrgElement, OrgElementKind, OrgNode, PackGaps, PackNode, PackResult, computeOrgChartLayout, orgChartIssues, orgChartLayoutSvg, orgChartSvg, packSubtree, validateOrgChart } from './org-chart/index.cjs';
19
+ export { O as ORG_CHART_SVG_LABELS_EN, a as ORG_CHART_TITLE_LABELS_EN, b as ORG_REPORT_KINDS, c as ORG_VACANCIES, d as OrgBoxStyle, e as OrgChartInput, f as OrgChartSvgLabels, g as OrgChartTitleLabels, h as OrgPosition, i as OrgReport, j as OrgReportKind, k as OrgVacancy } from './labels-B0aOMbHy.cjs';
20
+ export { ORG_ASSIST_ID_BASE, ORG_BUS_ID_BASE, ORG_DOTTED_ID_BASE, ORG_DROP_ID_BASE, ORG_LABEL_FONT, ORG_LABEL_LINE_H, ORG_MAX_MATRIX_EDGES_PER_NODE, ORG_STEM_ID_BASE, ORG_TITLE_FONT, OrgChartIssue, OrgChartIssueCode, OrgChartLayout, OrgChartLayoutOptions, OrgChartRenderOptions, OrgChartRenderResult, OrgChartSvgOptions, OrgChartValidationError, OrgElement, OrgElementKind, OrgNode, computeOrgChartLayout, orgChartIssues, orgChartLayoutSvg, orgChartSvg, validateOrgChart } from './org-chart/index.cjs';
21
+ export { PRISMA_BAND_LABEL_W, PRISMA_BOX_KINDS, PRISMA_BOX_PAD_X, PRISMA_BOX_PAD_Y, PRISMA_COLUMNS, PRISMA_COL_GAP, PRISMA_CORRIDOR, PRISMA_COUNT_FONT, PRISMA_EXCL_ARROW_BASE, PRISMA_EXCL_GAP, PRISMA_FLOW_ARROW_BASE, PRISMA_HEADING_FONT, PRISMA_LINE_H, PRISMA_MERGE_ARROW_BASE, PRISMA_MIN_BOX_W, PRISMA_PADDING, PRISMA_PHASES, PrismaArrow, PrismaBox, PrismaBoxKind, PrismaColumn, PrismaCount, PrismaInput, PrismaIssue, PrismaIssueCode, PrismaLayout, PrismaLayoutBox, PrismaLayoutElement, PrismaLayoutOpts, PrismaPhase, PrismaRenderOpts, PrismaSvgOpts, PrismaValidationError, computePrismaLayout, prismaIssues, prismaLayoutSvg, prismaSvg, validatePrisma } from './prisma/index.cjs';
22
+ export { P as PRISMA_SVG_LABELS_EN, a as PRISMA_TITLE_LABELS_EN, b as PrismaSvgLabels, c as PrismaTitleLabels } from './labels-Br8yjc3C.cjs';
23
+ export { G as GlyphKind, R as RELATION_GLYPHS, U as UML_RELATIONSHIPS, a as UML_SVG_LABELS_EN, b as UML_TITLE_LABELS_EN, c as UML_VISIBILITIES, d as UML_VIS_GLYPH, e as UmlClass, f as UmlFeature, g as UmlInput, h as UmlRelationship, i as UmlRelationshipKind, j as UmlSvgLabels, k as UmlTitleLabels, l as UmlVisibility } from './labels-D1v1RWZd.cjs';
24
+ export { UML_ASSOC_ROUTE_BASE, UML_BOX_PAD_X, UML_BOX_PAD_Y, UML_COL_GAP, UML_FEAT_FONT, UML_GLYPH_BASE, UML_LABEL_FONT, UML_LINE_H, UML_MIN_BOX_W, UML_NAME_FONT, UML_PADDING, UML_PORT_PITCH, UML_ROW_GAP, UML_SELF_LOOP_BASE, UML_SELF_LOOP_W, UML_SEP_PAD, UmlBoxNode, UmlEdgeElement, UmlIssue, UmlIssueCode, UmlLayout, UmlSvgOptions, UmlTextBox, UmlValidationError, computeUmlLayout, sideCapacity, sideCapacityIssue, umlIssues, umlLayoutSvg, umlSvg, validateUml } from './uml/index.cjs';
package/dist/index.d.ts CHANGED
@@ -1,17 +1,24 @@
1
1
  export { x as xmlEscape } from './xml-DDae1eUr.js';
2
- export { LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, LegendBlock, LegendEntry, legendBlock, romanNumeral } from './core/index.js';
3
- export { C as CHAR_W, F as FONT_FAMILY, P as Point, c as clampLabel, e as estimateTextWidth, p as pathData, w as wrapLabel, a as wrapLabelBalanced } from './text-DuO_PwYw.js';
2
+ export { ANNOTATION_INK, Dir, GLYPH_ARROW_HALF, GLYPH_ARROW_LEN, GLYPH_DIAMOND_HALF, GLYPH_DIAMOND_LEN, GLYPH_TRI_HALF, GLYPH_TRI_LEN, LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, LegendBlock, LegendEntry, annotationDot, annotationSwatch, annotationTick, arrowFilledPoints, arrowOpenPoints, diamondPoints, glyphInset, legendBlock, romanNumeral, trianglePoints } from './core/index.js';
3
+ export { P as Point, p as pathData } from './geometry-P-XGqGe7.js';
4
+ export { C as CHAR_W, F as FONT_FAMILY, c as clampLabel, e as estimateTextWidth, w as wrapLabel, a as wrapLabelBalanced } from './text-DDVzpwPZ.js';
4
5
  export { E as EDGE_STROKE, a as EdgeLineStyle, b as EdgeStroke, Q as QUALITY_LEXICON_EN, c as QualityLexicon, n as normalizeText, q as qualityLineStyle } from './stroke-MQ427drt.js';
5
- export { G as GenogramInput, N as NodeShape, P as ParentLink, a as Person, b as PersonSex, R as Relationship, U as UNION_STATUSES, c as Union, d as UnionStatus } from './types-BnMG7TCd.js';
6
- export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, b as GenogramSvgLabels, c as GenogramTitleLabels, K as KINSHIP_EN, d as KinshipLexicon, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from './kinship-DqEklrDN.js';
6
+ export { B as BandRow, a as BandStackOpts, b as BandStackResult, P as PackGaps, c as PackNode, d as PackResult, e as allocateLanes, f as bandStack, p as packSubtree } from './layered-DmZluAqe.js';
7
+ export { C as CompartmentMetrics, G as GridCell, a as GridResult, m as measureCompartmentBox, p as packGrid } from './grid-BMgUSly1.js';
8
+ export { G as GenogramInput, N as NodeShape, P as ParentLink, a as Person, b as PersonSex, R as Relationship, U as UNION_STATUSES, c as Union, d as UnionStatus } from './types-jE2fdM1t.js';
9
+ export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, b as GenogramSvgLabels, c as GenogramTitleLabels, K as KINSHIP_EN, d as KinshipLexicon, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from './kinship-BF90HyyS.js';
7
10
  export { EDGE_FONT, GenogramElement, GenogramElementKind, GenogramLayout, GenogramLayoutOptions, GenogramNode, GenogramRenderOptions, GenogramRenderResult, GenogramSvgOptions, LABEL_FONT, LABEL_LINE_H, NODE_SIZE, PARENT_REL_ID_BASE, PROMOTED_REL_ID_BASE, UNION_NOTATION, UNION_REL_ID_BASE, UnionEdgeStyle, computeGenogramLayout, genogramLayoutSvg, genogramSvg, latestUnionPerPair } from './genogram/index.js';
8
11
  export { ECOMAP_LABELS_EN, EcomapDirection, EcomapInput, EcomapLabels, EcomapSvgOptions, EcomapTie, ecomapSvg } from './ecomap/index.js';
9
12
  export { A as AndGate, F as FAULT_TREE_EVENT_KINDS, a as FAULT_TREE_SVG_LABELS_EN, b as FAULT_TREE_TITLE_LABELS_EN, c as FaultTreeEvent, d as FaultTreeEventKind, e as FaultTreeGate, f as FaultTreeInput, g as FaultTreeSvgLabels, h as FaultTreeTitleLabels, G as GATE_TYPES, i as GateType, I as InhibitGate, O as OrGate, V as VoteGate, X as XorGate } from './labels-CYbM5XV7.js';
10
13
  export { CODE_FONT, FT_BUS_ID_BASE, FT_CONDITION_ID_BASE, FT_DROP_ID_BASE, FT_LABEL_FONT, FT_LABEL_LINE_H, FT_RISER_ID_BASE, FT_STEM_ID_BASE, FaultTreeElement, FaultTreeElementKind, FaultTreeGateNode, FaultTreeIssue, FaultTreeIssueCode, FaultTreeLayout, FaultTreeLayoutOptions, FaultTreeNode, FaultTreeRenderOptions, FaultTreeRenderResult, FaultTreeSvgOptions, FaultTreeValidationError, LABEL_GAP, computeFaultTreeLayout, faultTreeIssues, faultTreeLayoutSvg, faultTreeSvg, validateFaultTree } from './fault-tree/index.js';
11
14
  export { FISHBONE_LABELS_EN, FishboneCategory, FishboneCause, FishboneInput, FishboneLabels, FishboneSubCause, FishboneSvgOptions, FishboneValidationCode, FishboneValidationError, FishboneValidationIssue, fishboneSvg } from './fishbone/index.js';
12
- export { C as Condition, I as Individual, L as LIFE_STATUSES, a as LifeStatus, M as Mating, P as PEDIGREE_SVG_LABELS_EN, b as PEDIGREE_TITLE_LABELS_EN, c as PedigreeInput, d as PedigreeRole, e as PedigreeSvgLabels, f as PedigreeTitleLabels, S as Sibship, T as TwinGroup, Z as Zygosity } from './labels-DNqRkWuI.js';
15
+ export { C as Condition, I as Individual, L as LIFE_STATUSES, a as LifeStatus, M as Mating, P as PEDIGREE_SVG_LABELS_EN, b as PEDIGREE_TITLE_LABELS_EN, c as PedigreeInput, d as PedigreeRole, e as PedigreeSvgLabels, f as PedigreeTitleLabels, S as Sibship, T as TwinGroup, Z as Zygosity } from './labels-CuLbFyrz.js';
13
16
  export { MAX_CONDITIONS_PER_INDIVIDUAL, PED_ADDRESS_FONT, PED_CONDITION_FILLS, PED_DESCENT_ID_BASE, PED_GLYPH, PED_LABEL_FONT, PED_LABEL_GAP, PED_LABEL_LINE_H, PED_MATING_ID_BASE, PED_RISER_ID_BASE, PED_SIBBAR_ID_BASE, PED_TWINBAR_ID_BASE, PedigreeElement, PedigreeElementKind, PedigreeGenerationLabel, PedigreeIssue, PedigreeIssueCode, PedigreeLayout, PedigreeLayoutOptions, PedigreeNode, PedigreeRenderOptions, PedigreeRenderResult, PedigreeSvgOptions, PedigreeValidationError, computePedigreeLayout, pedigreeIssues, pedigreeLayoutSvg, pedigreeSvg, validatePedigree } from './pedigree/index.js';
14
17
  export { P as PHYLO_SVG_LABELS_EN, a as PHYLO_TITLE_LABELS_EN, b as PhyloEdge, c as PhyloInput, d as PhyloMode, e as PhyloNode, f as PhyloSvgLabels, g as PhyloTitleLabels } from './labels-iZjijjtK.js';
15
18
  export { PHYLO_BRANCH_ID_BASE, PHYLO_CLADEBAR_ID_BASE, PHYLO_EXTENSION_ID_BASE, PHYLO_LABEL_FONT, PHYLO_LABEL_GAP, PHYLO_ROOTSTUB_ID_BASE, PHYLO_ROW_SLOT, PHYLO_SCALEBAR_ID, PHYLO_SUPPORT_FONT, PhyloElement, PhyloElementKind, PhyloIssue, PhyloIssueCode, PhyloLayout, PhyloLayoutNode, PhyloLayoutOptions, PhyloRenderOptions, PhyloRenderResult, PhyloScaleBar, PhyloSvgOptions, PhyloValidationError, computePhyloLayout, niceScaleStep, phyloIssues, phyloLayoutSvg, phyloSvg, validatePhylo } from './phylo/index.js';
16
- export { O as ORG_CHART_SVG_LABELS_EN, a as ORG_CHART_TITLE_LABELS_EN, b as ORG_REPORT_KINDS, c as ORG_VACANCIES, d as OrgBoxStyle, e as OrgChartInput, f as OrgChartSvgLabels, g as OrgChartTitleLabels, h as OrgPosition, i as OrgReport, j as OrgReportKind, k as OrgVacancy } from './labels-RtFw9tX1.js';
17
- export { ORG_ASSIST_ID_BASE, ORG_BUS_ID_BASE, ORG_DOTTED_ID_BASE, ORG_DROP_ID_BASE, ORG_LABEL_FONT, ORG_LABEL_LINE_H, ORG_MAX_MATRIX_EDGES_PER_NODE, ORG_STEM_ID_BASE, ORG_TITLE_FONT, OrgChartIssue, OrgChartIssueCode, OrgChartLayout, OrgChartLayoutOptions, OrgChartRenderOptions, OrgChartRenderResult, OrgChartSvgOptions, OrgChartValidationError, OrgElement, OrgElementKind, OrgNode, PackGaps, PackNode, PackResult, computeOrgChartLayout, orgChartIssues, orgChartLayoutSvg, orgChartSvg, packSubtree, validateOrgChart } from './org-chart/index.js';
19
+ export { O as ORG_CHART_SVG_LABELS_EN, a as ORG_CHART_TITLE_LABELS_EN, b as ORG_REPORT_KINDS, c as ORG_VACANCIES, d as OrgBoxStyle, e as OrgChartInput, f as OrgChartSvgLabels, g as OrgChartTitleLabels, h as OrgPosition, i as OrgReport, j as OrgReportKind, k as OrgVacancy } from './labels-B0aOMbHy.js';
20
+ export { ORG_ASSIST_ID_BASE, ORG_BUS_ID_BASE, ORG_DOTTED_ID_BASE, ORG_DROP_ID_BASE, ORG_LABEL_FONT, ORG_LABEL_LINE_H, ORG_MAX_MATRIX_EDGES_PER_NODE, ORG_STEM_ID_BASE, ORG_TITLE_FONT, OrgChartIssue, OrgChartIssueCode, OrgChartLayout, OrgChartLayoutOptions, OrgChartRenderOptions, OrgChartRenderResult, OrgChartSvgOptions, OrgChartValidationError, OrgElement, OrgElementKind, OrgNode, computeOrgChartLayout, orgChartIssues, orgChartLayoutSvg, orgChartSvg, validateOrgChart } from './org-chart/index.js';
21
+ export { PRISMA_BAND_LABEL_W, PRISMA_BOX_KINDS, PRISMA_BOX_PAD_X, PRISMA_BOX_PAD_Y, PRISMA_COLUMNS, PRISMA_COL_GAP, PRISMA_CORRIDOR, PRISMA_COUNT_FONT, PRISMA_EXCL_ARROW_BASE, PRISMA_EXCL_GAP, PRISMA_FLOW_ARROW_BASE, PRISMA_HEADING_FONT, PRISMA_LINE_H, PRISMA_MERGE_ARROW_BASE, PRISMA_MIN_BOX_W, PRISMA_PADDING, PRISMA_PHASES, PrismaArrow, PrismaBox, PrismaBoxKind, PrismaColumn, PrismaCount, PrismaInput, PrismaIssue, PrismaIssueCode, PrismaLayout, PrismaLayoutBox, PrismaLayoutElement, PrismaLayoutOpts, PrismaPhase, PrismaRenderOpts, PrismaSvgOpts, PrismaValidationError, computePrismaLayout, prismaIssues, prismaLayoutSvg, prismaSvg, validatePrisma } from './prisma/index.js';
22
+ export { P as PRISMA_SVG_LABELS_EN, a as PRISMA_TITLE_LABELS_EN, b as PrismaSvgLabels, c as PrismaTitleLabels } from './labels-Br8yjc3C.js';
23
+ export { G as GlyphKind, R as RELATION_GLYPHS, U as UML_RELATIONSHIPS, a as UML_SVG_LABELS_EN, b as UML_TITLE_LABELS_EN, c as UML_VISIBILITIES, d as UML_VIS_GLYPH, e as UmlClass, f as UmlFeature, g as UmlInput, h as UmlRelationship, i as UmlRelationshipKind, j as UmlSvgLabels, k as UmlTitleLabels, l as UmlVisibility } from './labels-D1v1RWZd.js';
24
+ export { UML_ASSOC_ROUTE_BASE, UML_BOX_PAD_X, UML_BOX_PAD_Y, UML_COL_GAP, UML_FEAT_FONT, UML_GLYPH_BASE, UML_LABEL_FONT, UML_LINE_H, UML_MIN_BOX_W, UML_NAME_FONT, UML_PADDING, UML_PORT_PITCH, UML_ROW_GAP, UML_SELF_LOOP_BASE, UML_SELF_LOOP_W, UML_SEP_PAD, UmlBoxNode, UmlEdgeElement, UmlIssue, UmlIssueCode, UmlLayout, UmlSvgOptions, UmlTextBox, UmlValidationError, computeUmlLayout, sideCapacity, sideCapacityIssue, umlIssues, umlLayoutSvg, umlSvg, validateUml } from './uml/index.js';
package/dist/index.js CHANGED
@@ -1,10 +1,12 @@
1
- export { ORG_ASSIST_ID_BASE, ORG_BUS_ID_BASE, ORG_CHART_SVG_LABELS_EN, ORG_CHART_TITLE_LABELS_EN, ORG_DOTTED_ID_BASE, ORG_DROP_ID_BASE, ORG_LABEL_FONT, ORG_LABEL_LINE_H, ORG_MAX_MATRIX_EDGES_PER_NODE, ORG_REPORT_KINDS, ORG_STEM_ID_BASE, ORG_TITLE_FONT, ORG_VACANCIES, OrgChartValidationError, computeOrgChartLayout, orgChartIssues, orgChartLayoutSvg, orgChartSvg, packSubtree, validateOrgChart } from './chunk-UJVU7B44.js';
2
- export { EDGE_FONT, GENOGRAM_SVG_LABELS_EN, GENOGRAM_TITLE_LABELS_EN, KINSHIP_EN, LABEL_FONT, LABEL_LINE_H, NODE_SIZE, PARENT_REL_ID_BASE, PROMOTED_REL_ID_BASE, UNION_NOTATION, UNION_REL_ID_BASE, UNION_STATUSES, classifyRelationshipType, computeGenogramLayout, genogramLayoutSvg, genogramSvg, latestUnionPerPair, relationshipTypeTokens } from './chunk-RWPGGWO5.js';
3
- export { ECOMAP_LABELS_EN, ecomapSvg } from './chunk-Q6DVTCXD.js';
4
- export { CODE_FONT, FAULT_TREE_EVENT_KINDS, FAULT_TREE_SVG_LABELS_EN, FAULT_TREE_TITLE_LABELS_EN, FT_BUS_ID_BASE, FT_CONDITION_ID_BASE, FT_DROP_ID_BASE, FT_LABEL_FONT, FT_LABEL_LINE_H, FT_RISER_ID_BASE, FT_STEM_ID_BASE, FaultTreeValidationError, GATE_TYPES, LABEL_GAP, computeFaultTreeLayout, faultTreeIssues, faultTreeLayoutSvg, faultTreeSvg, validateFaultTree } from './chunk-LRHHUJFZ.js';
5
- export { FISHBONE_LABELS_EN, FishboneValidationError, fishboneSvg } from './chunk-ZBDABVIO.js';
6
- export { LIFE_STATUSES, MAX_CONDITIONS_PER_INDIVIDUAL, PEDIGREE_SVG_LABELS_EN, PEDIGREE_TITLE_LABELS_EN, PED_ADDRESS_FONT, PED_CONDITION_FILLS, PED_DESCENT_ID_BASE, PED_GLYPH, PED_LABEL_FONT, PED_LABEL_GAP, PED_LABEL_LINE_H, PED_MATING_ID_BASE, PED_RISER_ID_BASE, PED_SIBBAR_ID_BASE, PED_TWINBAR_ID_BASE, PedigreeValidationError, computePedigreeLayout, pedigreeIssues, pedigreeLayoutSvg, pedigreeSvg, validatePedigree } from './chunk-F47C6ZEB.js';
7
- export { PHYLO_BRANCH_ID_BASE, PHYLO_CLADEBAR_ID_BASE, PHYLO_EXTENSION_ID_BASE, PHYLO_LABEL_FONT, PHYLO_LABEL_GAP, PHYLO_ROOTSTUB_ID_BASE, PHYLO_ROW_SLOT, PHYLO_SCALEBAR_ID, PHYLO_SUPPORT_FONT, PHYLO_SVG_LABELS_EN, PHYLO_TITLE_LABELS_EN, PhyloValidationError, computePhyloLayout, niceScaleStep, phyloIssues, phyloLayoutSvg, phyloSvg, validatePhylo } from './chunk-JP4N42AY.js';
8
- export { CHAR_W, EDGE_STROKE, FONT_FAMILY, LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, QUALITY_LEXICON_EN, clampLabel, estimateTextWidth, legendBlock, normalizeText, pathData, qualityLineStyle, romanNumeral, wrapLabel, wrapLabelBalanced, xmlEscape } from './chunk-O3BT2O42.js';
1
+ export { ORG_ASSIST_ID_BASE, ORG_BUS_ID_BASE, ORG_CHART_SVG_LABELS_EN, ORG_CHART_TITLE_LABELS_EN, ORG_DOTTED_ID_BASE, ORG_DROP_ID_BASE, ORG_LABEL_FONT, ORG_LABEL_LINE_H, ORG_MAX_MATRIX_EDGES_PER_NODE, ORG_REPORT_KINDS, ORG_STEM_ID_BASE, ORG_TITLE_FONT, ORG_VACANCIES, OrgChartValidationError, computeOrgChartLayout, orgChartIssues, orgChartLayoutSvg, orgChartSvg, validateOrgChart } from './chunk-WEHUSHVI.js';
2
+ export { PRISMA_BAND_LABEL_W, PRISMA_BOX_KINDS, PRISMA_BOX_PAD_X, PRISMA_BOX_PAD_Y, PRISMA_COLUMNS, PRISMA_COL_GAP, PRISMA_CORRIDOR, PRISMA_COUNT_FONT, PRISMA_EXCL_ARROW_BASE, PRISMA_EXCL_GAP, PRISMA_FLOW_ARROW_BASE, PRISMA_HEADING_FONT, PRISMA_LINE_H, PRISMA_MERGE_ARROW_BASE, PRISMA_MIN_BOX_W, PRISMA_PADDING, PRISMA_PHASES, PRISMA_SVG_LABELS_EN, PRISMA_TITLE_LABELS_EN, PrismaValidationError, computePrismaLayout, prismaIssues, prismaLayoutSvg, prismaSvg, validatePrisma } from './chunk-BM7UJBK5.js';
3
+ export { RELATION_GLYPHS, UML_ASSOC_ROUTE_BASE, UML_BOX_PAD_X, UML_BOX_PAD_Y, UML_COL_GAP, UML_FEAT_FONT, UML_GLYPH_BASE, UML_LABEL_FONT, UML_LINE_H, UML_MIN_BOX_W, UML_NAME_FONT, UML_PADDING, UML_PORT_PITCH, UML_RELATIONSHIPS, UML_ROW_GAP, UML_SELF_LOOP_BASE, UML_SELF_LOOP_W, UML_SEP_PAD, UML_SVG_LABELS_EN, UML_TITLE_LABELS_EN, UML_VISIBILITIES, UML_VIS_GLYPH, UmlValidationError, computeUmlLayout, sideCapacity, sideCapacityIssue, umlIssues, umlLayoutSvg, umlSvg, validateUml } from './chunk-MIJTBYX2.js';
4
+ export { EDGE_FONT, GENOGRAM_SVG_LABELS_EN, GENOGRAM_TITLE_LABELS_EN, KINSHIP_EN, LABEL_FONT, LABEL_LINE_H, NODE_SIZE, PARENT_REL_ID_BASE, PROMOTED_REL_ID_BASE, UNION_NOTATION, UNION_REL_ID_BASE, UNION_STATUSES, classifyRelationshipType, computeGenogramLayout, genogramLayoutSvg, genogramSvg, latestUnionPerPair, relationshipTypeTokens } from './chunk-Z66YUOUM.js';
5
+ export { ECOMAP_LABELS_EN, ecomapSvg } from './chunk-3RGYLVTN.js';
6
+ export { CODE_FONT, FAULT_TREE_EVENT_KINDS, FAULT_TREE_SVG_LABELS_EN, FAULT_TREE_TITLE_LABELS_EN, FT_BUS_ID_BASE, FT_CONDITION_ID_BASE, FT_DROP_ID_BASE, FT_LABEL_FONT, FT_LABEL_LINE_H, FT_RISER_ID_BASE, FT_STEM_ID_BASE, FaultTreeValidationError, GATE_TYPES, LABEL_GAP, computeFaultTreeLayout, faultTreeIssues, faultTreeLayoutSvg, faultTreeSvg, validateFaultTree } from './chunk-RDH4XHA2.js';
7
+ export { FISHBONE_LABELS_EN, FishboneValidationError, fishboneSvg } from './chunk-2NDET6O5.js';
8
+ export { LIFE_STATUSES, MAX_CONDITIONS_PER_INDIVIDUAL, PEDIGREE_SVG_LABELS_EN, PEDIGREE_TITLE_LABELS_EN, PED_ADDRESS_FONT, PED_CONDITION_FILLS, PED_DESCENT_ID_BASE, PED_GLYPH, PED_LABEL_FONT, PED_LABEL_GAP, PED_LABEL_LINE_H, PED_MATING_ID_BASE, PED_RISER_ID_BASE, PED_SIBBAR_ID_BASE, PED_TWINBAR_ID_BASE, PedigreeValidationError, computePedigreeLayout, pedigreeIssues, pedigreeLayoutSvg, pedigreeSvg, validatePedigree } from './chunk-JBDA7E2O.js';
9
+ export { PHYLO_BRANCH_ID_BASE, PHYLO_CLADEBAR_ID_BASE, PHYLO_EXTENSION_ID_BASE, PHYLO_LABEL_FONT, PHYLO_LABEL_GAP, PHYLO_ROOTSTUB_ID_BASE, PHYLO_ROW_SLOT, PHYLO_SCALEBAR_ID, PHYLO_SUPPORT_FONT, PHYLO_SVG_LABELS_EN, PHYLO_TITLE_LABELS_EN, PhyloValidationError, computePhyloLayout, niceScaleStep, phyloIssues, phyloLayoutSvg, phyloSvg, validatePhylo } from './chunk-PJHLWSGD.js';
10
+ export { ANNOTATION_INK, CHAR_W, EDGE_STROKE, FONT_FAMILY, GLYPH_ARROW_HALF, GLYPH_ARROW_LEN, GLYPH_DIAMOND_HALF, GLYPH_DIAMOND_LEN, GLYPH_TRI_HALF, GLYPH_TRI_LEN, LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, QUALITY_LEXICON_EN, allocateLanes, annotationDot, annotationSwatch, annotationTick, arrowFilledPoints, arrowOpenPoints, bandStack, clampLabel, diamondPoints, estimateTextWidth, glyphInset, legendBlock, measureCompartmentBox, normalizeText, packGrid, packSubtree, pathData, qualityLineStyle, romanNumeral, trianglePoints, wrapLabel, wrapLabelBalanced, xmlEscape } from './chunk-DVLWT565.js';
9
11
  //# sourceMappingURL=index.js.map
10
12
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { a as EdgeLineStyle } from './stroke-MQ427drt.js';
2
- import { N as NodeShape, d as UnionStatus } from './types-BnMG7TCd.js';
2
+ import { N as NodeShape, d as UnionStatus } from './types-jE2fdM1t.js';
3
3
 
4
4
  /** Labels woven into element <title>s by the LAYOUT (verbatim-preserving). */
5
5
  interface GenogramTitleLabels {
@@ -1,5 +1,5 @@
1
1
  import { a as EdgeLineStyle } from './stroke-MQ427drt.cjs';
2
- import { N as NodeShape, d as UnionStatus } from './types-BnMG7TCd.cjs';
2
+ import { N as NodeShape, d as UnionStatus } from './types-jE2fdM1t.cjs';
3
3
 
4
4
  /** Labels woven into element <title>s by the LAYOUT (verbatim-preserving). */
5
5
  interface GenogramTitleLabels {
@@ -42,6 +42,12 @@ interface OrgPosition {
42
42
  vacancy: OrgVacancy;
43
43
  /** Verbatim <title> override; defaults below (see svg.ts). */
44
44
  hover?: string;
45
+ /**
46
+ * Caller-asserted annotation flag. compasso never decides what "annotated" MEANS —
47
+ * it only draws a discreet dot at the box's upper-right when true. Default undefined
48
+ * === not annotated (backward-compatible).
49
+ */
50
+ annotated?: boolean;
45
51
  }
46
52
  /**
47
53
  * One row per DECLARED relationship, manager → report. There is no `order` column in
@@ -57,6 +63,12 @@ interface OrgReport {
57
63
  kind: OrgReportKind;
58
64
  /** Verbatim relationship label (e.g. "interim", "matrix") for the <title>; null = none. */
59
65
  label?: string | null;
66
+ /**
67
+ * Caller-asserted annotation flag. compasso never decides what "annotated" MEANS —
68
+ * it only draws a discreet tick at the edge's midpoint when true. Default undefined
69
+ * === not annotated (backward-compatible).
70
+ */
71
+ annotated?: boolean;
60
72
  }
61
73
  /** Input to the org-chart render pipeline — flat, id-referenced rows, never nested. */
62
74
  interface OrgChartInput {
@@ -42,6 +42,12 @@ interface OrgPosition {
42
42
  vacancy: OrgVacancy;
43
43
  /** Verbatim <title> override; defaults below (see svg.ts). */
44
44
  hover?: string;
45
+ /**
46
+ * Caller-asserted annotation flag. compasso never decides what "annotated" MEANS —
47
+ * it only draws a discreet dot at the box's upper-right when true. Default undefined
48
+ * === not annotated (backward-compatible).
49
+ */
50
+ annotated?: boolean;
45
51
  }
46
52
  /**
47
53
  * One row per DECLARED relationship, manager → report. There is no `order` column in
@@ -57,6 +63,12 @@ interface OrgReport {
57
63
  kind: OrgReportKind;
58
64
  /** Verbatim relationship label (e.g. "interim", "matrix") for the <title>; null = none. */
59
65
  label?: string | null;
66
+ /**
67
+ * Caller-asserted annotation flag. compasso never decides what "annotated" MEANS —
68
+ * it only draws a discreet tick at the edge's midpoint when true. Default undefined
69
+ * === not annotated (backward-compatible).
70
+ */
71
+ annotated?: boolean;
60
72
  }
61
73
  /** Input to the org-chart render pipeline — flat, id-referenced rows, never nested. */
62
74
  interface OrgChartInput {
@@ -0,0 +1,29 @@
1
+ /** Labels woven into element <title>s — phase names, count token, arrow kind words. */
2
+ interface PrismaTitleLabels {
3
+ /** Display names for each phase band (left gutter label). */
4
+ phases: {
5
+ identification: string;
6
+ screening: string;
7
+ included: string;
8
+ };
9
+ /** Localized token for n=null counts ("n = —" in EN/PT-BR). */
10
+ nullCount: string;
11
+ /** Arrow kind words used in <title>s. */
12
+ arrowKinds: {
13
+ flow: string;
14
+ exclusion: string;
15
+ merge: string;
16
+ };
17
+ }
18
+ /** Labels drawn by the SVG emitter (legend entries, accessibility aria-label). */
19
+ interface PrismaSvgLabels {
20
+ legend: {
21
+ flow: string;
22
+ exclusion: string;
23
+ };
24
+ ariaLabel: string;
25
+ }
26
+ declare const PRISMA_TITLE_LABELS_EN: PrismaTitleLabels;
27
+ declare const PRISMA_SVG_LABELS_EN: PrismaSvgLabels;
28
+
29
+ export { PRISMA_SVG_LABELS_EN as P, PRISMA_TITLE_LABELS_EN as a, type PrismaSvgLabels as b, type PrismaTitleLabels as c };
@@ -0,0 +1,29 @@
1
+ /** Labels woven into element <title>s — phase names, count token, arrow kind words. */
2
+ interface PrismaTitleLabels {
3
+ /** Display names for each phase band (left gutter label). */
4
+ phases: {
5
+ identification: string;
6
+ screening: string;
7
+ included: string;
8
+ };
9
+ /** Localized token for n=null counts ("n = —" in EN/PT-BR). */
10
+ nullCount: string;
11
+ /** Arrow kind words used in <title>s. */
12
+ arrowKinds: {
13
+ flow: string;
14
+ exclusion: string;
15
+ merge: string;
16
+ };
17
+ }
18
+ /** Labels drawn by the SVG emitter (legend entries, accessibility aria-label). */
19
+ interface PrismaSvgLabels {
20
+ legend: {
21
+ flow: string;
22
+ exclusion: string;
23
+ };
24
+ ariaLabel: string;
25
+ }
26
+ declare const PRISMA_TITLE_LABELS_EN: PrismaTitleLabels;
27
+ declare const PRISMA_SVG_LABELS_EN: PrismaSvgLabels;
28
+
29
+ export { PRISMA_SVG_LABELS_EN as P, PRISMA_TITLE_LABELS_EN as a, type PrismaSvgLabels as b, type PrismaTitleLabels as c };
@@ -1,4 +1,4 @@
1
- import { b as PersonSex, N as NodeShape } from './types-BnMG7TCd.js';
1
+ import { b as PersonSex, N as NodeShape } from './types-jE2fdM1t.js';
2
2
 
3
3
  /** PSSC proband (filled arrow) / consultand (open arrow); null = neither. */
4
4
  type PedigreeRole = "proband" | "consultand" | null;
@@ -0,0 +1,97 @@
1
+ declare const UML_VISIBILITIES: readonly ["public", "private", "protected", "package"];
2
+ type UmlVisibility = (typeof UML_VISIBILITIES)[number];
3
+ /** Universal OMG notation glyphs — NOT localized. */
4
+ declare const UML_VIS_GLYPH: Record<UmlVisibility, string>;
5
+ interface UmlFeature {
6
+ /** null = no visibility marker drawn. */
7
+ visibility: UmlVisibility | null;
8
+ /**
9
+ * Verbatim signature text — drawn AS GIVEN, NEVER parsed.
10
+ * e.g. "name: String" / "getName(): String".
11
+ */
12
+ text: string;
13
+ /** When true, a <line> underline is drawn under the text run. */
14
+ isStatic?: boolean;
15
+ }
16
+ interface UmlClass {
17
+ id: number;
18
+ /** Verbatim name; italic rendering when isAbstract. */
19
+ name: string;
20
+ /**
21
+ * «interface»/«enumeration»/«abstract» line above name; verbatim, drawn only
22
+ * when declared (not null). Caller includes the guillemets when desired.
23
+ */
24
+ stereotype: string | null;
25
+ isAbstract?: boolean;
26
+ attributes: UmlFeature[];
27
+ operations: UmlFeature[];
28
+ /**
29
+ * DECLARED grid cell (the escape hatch for a general graph).
30
+ * Non-negative integers required on every class.
31
+ */
32
+ col: number;
33
+ row: number;
34
+ /** <title> override. */
35
+ title?: string;
36
+ }
37
+ declare const UML_RELATIONSHIPS: readonly ["association", "directed-association", "aggregation", "composition", "generalization", "realization", "dependency"];
38
+ type UmlRelationshipKind = (typeof UML_RELATIONSHIPS)[number];
39
+ interface UmlRelationship {
40
+ id: number;
41
+ kind: UmlRelationshipKind;
42
+ /** Direction per-kind via RELATION_GLYPHS; generalization: source=subclass, target=superclass. */
43
+ sourceId: number;
44
+ targetId: number;
45
+ /** Verbatim multiplicity strings — NEVER parsed/validated. null = none drawn. */
46
+ sourceMultiplicity: string | null;
47
+ targetMultiplicity: string | null;
48
+ /** Verbatim role names at the ends. null = none drawn. */
49
+ sourceRole: string | null;
50
+ targetRole: string | null;
51
+ /** Verbatim relationship name drawn at mid-edge. null = none drawn. */
52
+ label: string | null;
53
+ /** <title> override. */
54
+ title?: string;
55
+ }
56
+ /**
57
+ * The five distinct glyph shapes used for UML relationship ends.
58
+ * "none" = plain line terminus (no arrowhead or decoration).
59
+ */
60
+ type GlyphKind = "none" | "open-arrow" | "hollow-triangle" | "hollow-diamond" | "solid-diamond";
61
+ /**
62
+ * RELATION_GLYPHS — the single source of truth mapping a relationship kind to
63
+ * its standard UML end decorations and line style.
64
+ * The caller picks a KIND and the standard glyph follows — they cannot mis-state
65
+ * a glyph (the honesty-rule encoding).
66
+ *
67
+ * Glyph placement convention:
68
+ * - aggregation/composition: diamond at the WHOLE (source side)
69
+ * - generalization/realization: triangle at the SUPERTYPE (target side)
70
+ * - directed-association/dependency: open-arrow at the TARGET
71
+ */
72
+ declare const RELATION_GLYPHS: Record<UmlRelationshipKind, {
73
+ sourceEnd: GlyphKind;
74
+ targetEnd: GlyphKind;
75
+ line: "solid" | "dashed";
76
+ }>;
77
+ interface UmlInput {
78
+ classes: UmlClass[];
79
+ relationships: UmlRelationship[];
80
+ }
81
+
82
+ /** Labels woven into element/box <title>s by the LAYOUT (verbatim-preserving). */
83
+ interface UmlTitleLabels {
84
+ /** Display name for each relationship kind (in <title>s). */
85
+ kinds: Record<UmlRelationshipKind, string>;
86
+ /** Display name for each visibility level (in feature <title>s). */
87
+ visibilities: Record<UmlVisibility, string>;
88
+ }
89
+ declare const UML_TITLE_LABELS_EN: UmlTitleLabels;
90
+ /** Labels drawn by the SVG EMITTER (legend entries, accessibility text). */
91
+ interface UmlSvgLabels {
92
+ legend: Record<UmlRelationshipKind, string>;
93
+ ariaLabel: string;
94
+ }
95
+ declare const UML_SVG_LABELS_EN: UmlSvgLabels;
96
+
97
+ export { type GlyphKind as G, RELATION_GLYPHS as R, UML_RELATIONSHIPS as U, UML_SVG_LABELS_EN as a, UML_TITLE_LABELS_EN as b, UML_VISIBILITIES as c, UML_VIS_GLYPH as d, type UmlClass as e, type UmlFeature as f, type UmlInput as g, type UmlRelationship as h, type UmlRelationshipKind as i, type UmlSvgLabels as j, type UmlTitleLabels as k, type UmlVisibility as l };
@@ -0,0 +1,97 @@
1
+ declare const UML_VISIBILITIES: readonly ["public", "private", "protected", "package"];
2
+ type UmlVisibility = (typeof UML_VISIBILITIES)[number];
3
+ /** Universal OMG notation glyphs — NOT localized. */
4
+ declare const UML_VIS_GLYPH: Record<UmlVisibility, string>;
5
+ interface UmlFeature {
6
+ /** null = no visibility marker drawn. */
7
+ visibility: UmlVisibility | null;
8
+ /**
9
+ * Verbatim signature text — drawn AS GIVEN, NEVER parsed.
10
+ * e.g. "name: String" / "getName(): String".
11
+ */
12
+ text: string;
13
+ /** When true, a <line> underline is drawn under the text run. */
14
+ isStatic?: boolean;
15
+ }
16
+ interface UmlClass {
17
+ id: number;
18
+ /** Verbatim name; italic rendering when isAbstract. */
19
+ name: string;
20
+ /**
21
+ * «interface»/«enumeration»/«abstract» line above name; verbatim, drawn only
22
+ * when declared (not null). Caller includes the guillemets when desired.
23
+ */
24
+ stereotype: string | null;
25
+ isAbstract?: boolean;
26
+ attributes: UmlFeature[];
27
+ operations: UmlFeature[];
28
+ /**
29
+ * DECLARED grid cell (the escape hatch for a general graph).
30
+ * Non-negative integers required on every class.
31
+ */
32
+ col: number;
33
+ row: number;
34
+ /** <title> override. */
35
+ title?: string;
36
+ }
37
+ declare const UML_RELATIONSHIPS: readonly ["association", "directed-association", "aggregation", "composition", "generalization", "realization", "dependency"];
38
+ type UmlRelationshipKind = (typeof UML_RELATIONSHIPS)[number];
39
+ interface UmlRelationship {
40
+ id: number;
41
+ kind: UmlRelationshipKind;
42
+ /** Direction per-kind via RELATION_GLYPHS; generalization: source=subclass, target=superclass. */
43
+ sourceId: number;
44
+ targetId: number;
45
+ /** Verbatim multiplicity strings — NEVER parsed/validated. null = none drawn. */
46
+ sourceMultiplicity: string | null;
47
+ targetMultiplicity: string | null;
48
+ /** Verbatim role names at the ends. null = none drawn. */
49
+ sourceRole: string | null;
50
+ targetRole: string | null;
51
+ /** Verbatim relationship name drawn at mid-edge. null = none drawn. */
52
+ label: string | null;
53
+ /** <title> override. */
54
+ title?: string;
55
+ }
56
+ /**
57
+ * The five distinct glyph shapes used for UML relationship ends.
58
+ * "none" = plain line terminus (no arrowhead or decoration).
59
+ */
60
+ type GlyphKind = "none" | "open-arrow" | "hollow-triangle" | "hollow-diamond" | "solid-diamond";
61
+ /**
62
+ * RELATION_GLYPHS — the single source of truth mapping a relationship kind to
63
+ * its standard UML end decorations and line style.
64
+ * The caller picks a KIND and the standard glyph follows — they cannot mis-state
65
+ * a glyph (the honesty-rule encoding).
66
+ *
67
+ * Glyph placement convention:
68
+ * - aggregation/composition: diamond at the WHOLE (source side)
69
+ * - generalization/realization: triangle at the SUPERTYPE (target side)
70
+ * - directed-association/dependency: open-arrow at the TARGET
71
+ */
72
+ declare const RELATION_GLYPHS: Record<UmlRelationshipKind, {
73
+ sourceEnd: GlyphKind;
74
+ targetEnd: GlyphKind;
75
+ line: "solid" | "dashed";
76
+ }>;
77
+ interface UmlInput {
78
+ classes: UmlClass[];
79
+ relationships: UmlRelationship[];
80
+ }
81
+
82
+ /** Labels woven into element/box <title>s by the LAYOUT (verbatim-preserving). */
83
+ interface UmlTitleLabels {
84
+ /** Display name for each relationship kind (in <title>s). */
85
+ kinds: Record<UmlRelationshipKind, string>;
86
+ /** Display name for each visibility level (in feature <title>s). */
87
+ visibilities: Record<UmlVisibility, string>;
88
+ }
89
+ declare const UML_TITLE_LABELS_EN: UmlTitleLabels;
90
+ /** Labels drawn by the SVG EMITTER (legend entries, accessibility text). */
91
+ interface UmlSvgLabels {
92
+ legend: Record<UmlRelationshipKind, string>;
93
+ ariaLabel: string;
94
+ }
95
+ declare const UML_SVG_LABELS_EN: UmlSvgLabels;
96
+
97
+ export { type GlyphKind as G, RELATION_GLYPHS as R, UML_RELATIONSHIPS as U, UML_SVG_LABELS_EN as a, UML_TITLE_LABELS_EN as b, UML_VISIBILITIES as c, UML_VIS_GLYPH as d, type UmlClass as e, type UmlFeature as f, type UmlInput as g, type UmlRelationship as h, type UmlRelationshipKind as i, type UmlSvgLabels as j, type UmlTitleLabels as k, type UmlVisibility as l };
@@ -1,4 +1,4 @@
1
- import { b as PersonSex, N as NodeShape } from './types-BnMG7TCd.cjs';
1
+ import { b as PersonSex, N as NodeShape } from './types-jE2fdM1t.cjs';
2
2
 
3
3
  /** PSSC proband (filled arrow) / consultand (open arrow); null = neither. */
4
4
  type PedigreeRole = "proband" | "consultand" | null;
@@ -0,0 +1,72 @@
1
+ /** A node's own symmetric-or-asymmetric half-extents plus its children's half-extents. */
2
+ interface PackNode {
3
+ ownHalfL: number;
4
+ ownHalfR: number;
5
+ /** One entry per child, in placement order; empty = leaf. */
6
+ children: {
7
+ halfL: number;
8
+ halfR: number;
9
+ }[];
10
+ }
11
+ interface PackGaps {
12
+ siblingGap: number;
13
+ }
14
+ interface PackResult {
15
+ /** Subtree half-extents (cover the ENTIRE subtree). */
16
+ halfL: number;
17
+ halfR: number;
18
+ /** Center offset of each child relative to this node's center (parallel to children). */
19
+ offsets: number[];
20
+ }
21
+ /**
22
+ * Span-packs a node's children into disjoint horizontal intervals (the fault-tree `pack`
23
+ * transposed top-down). Children c1..cn: x1 = 0; x_{i+1} = x_i + halfR_i + siblingGap +
24
+ * halfL_{i+1}. Parent axis a = (x1 + xn)/2 — centered over its line-report block. The
25
+ * returned offsets are each child's center MINUS the parent axis. Subtree halfL/halfR
26
+ * extend ownHalf* to cover the children block. Pure + deterministic.
27
+ */
28
+ declare function packSubtree(node: PackNode, gaps: PackGaps): PackResult;
29
+ /** Allocate lanes for a set of y-intervals: each takes the lowest lane free over its span
30
+ * (touching at an endpoint does NOT count as overlap, so abutting edges may share). Mirror
31
+ * of the genogram allocateLanes (src/genogram/layout.ts) — keeps the gutter narrow. */
32
+ declare function allocateLanes(items: {
33
+ lo: number;
34
+ hi: number;
35
+ set: (lane: number) => void;
36
+ }[]): number;
37
+ interface BandRow {
38
+ /** Height of the content row itself (tallest box, etc.). */
39
+ rowH: number;
40
+ /** Height of the side-zone hanging BELOW the row and ABOVE the corridor
41
+ * (assistant stack, gate zone, …). Pass 0 when there is no zone. */
42
+ zoneH: number;
43
+ }
44
+ interface BandStackOpts {
45
+ /** Canvas padding placed above row 0 and below the last row. */
46
+ padding: number;
47
+ /** Vertical gap between rows (the bus lives at busY = next rowTop − corridor/2). */
48
+ corridor: number;
49
+ }
50
+ interface BandStackResult {
51
+ /** rowTop[d] = y of the top edge of row d. rowTop[0] = padding. */
52
+ rowTop: number[];
53
+ /** y of the bus (connector horizontal bar) between row d and row d+1. */
54
+ busY: (d: number) => number;
55
+ /** Total canvas height (last row bottom + last zoneH + padding). */
56
+ height: number;
57
+ }
58
+ /**
59
+ * Stacks rows top-down with a corridor between them.
60
+ *
61
+ * Recurrence:
62
+ * rowTop[0] = padding
63
+ * rowTop[d+1] = rowTop[d] + rows[d].rowH + rows[d].zoneH + corridor
64
+ * busY(d) = rowTop[d+1] − corridor / 2
65
+ * height = rowTop[last] + rows[last].rowH + rows[last].zoneH + padding
66
+ *
67
+ * An empty `rows` array returns `{ rowTop: [], busY: () => 0, height: padding * 2 }`.
68
+ * Pure + deterministic.
69
+ */
70
+ declare function bandStack(rows: BandRow[], opts: BandStackOpts): BandStackResult;
71
+
72
+ export { type BandRow as B, type PackGaps as P, type BandStackOpts as a, type BandStackResult as b, type PackNode as c, type PackResult as d, allocateLanes as e, bandStack as f, packSubtree as p };
@@ -0,0 +1,72 @@
1
+ /** A node's own symmetric-or-asymmetric half-extents plus its children's half-extents. */
2
+ interface PackNode {
3
+ ownHalfL: number;
4
+ ownHalfR: number;
5
+ /** One entry per child, in placement order; empty = leaf. */
6
+ children: {
7
+ halfL: number;
8
+ halfR: number;
9
+ }[];
10
+ }
11
+ interface PackGaps {
12
+ siblingGap: number;
13
+ }
14
+ interface PackResult {
15
+ /** Subtree half-extents (cover the ENTIRE subtree). */
16
+ halfL: number;
17
+ halfR: number;
18
+ /** Center offset of each child relative to this node's center (parallel to children). */
19
+ offsets: number[];
20
+ }
21
+ /**
22
+ * Span-packs a node's children into disjoint horizontal intervals (the fault-tree `pack`
23
+ * transposed top-down). Children c1..cn: x1 = 0; x_{i+1} = x_i + halfR_i + siblingGap +
24
+ * halfL_{i+1}. Parent axis a = (x1 + xn)/2 — centered over its line-report block. The
25
+ * returned offsets are each child's center MINUS the parent axis. Subtree halfL/halfR
26
+ * extend ownHalf* to cover the children block. Pure + deterministic.
27
+ */
28
+ declare function packSubtree(node: PackNode, gaps: PackGaps): PackResult;
29
+ /** Allocate lanes for a set of y-intervals: each takes the lowest lane free over its span
30
+ * (touching at an endpoint does NOT count as overlap, so abutting edges may share). Mirror
31
+ * of the genogram allocateLanes (src/genogram/layout.ts) — keeps the gutter narrow. */
32
+ declare function allocateLanes(items: {
33
+ lo: number;
34
+ hi: number;
35
+ set: (lane: number) => void;
36
+ }[]): number;
37
+ interface BandRow {
38
+ /** Height of the content row itself (tallest box, etc.). */
39
+ rowH: number;
40
+ /** Height of the side-zone hanging BELOW the row and ABOVE the corridor
41
+ * (assistant stack, gate zone, …). Pass 0 when there is no zone. */
42
+ zoneH: number;
43
+ }
44
+ interface BandStackOpts {
45
+ /** Canvas padding placed above row 0 and below the last row. */
46
+ padding: number;
47
+ /** Vertical gap between rows (the bus lives at busY = next rowTop − corridor/2). */
48
+ corridor: number;
49
+ }
50
+ interface BandStackResult {
51
+ /** rowTop[d] = y of the top edge of row d. rowTop[0] = padding. */
52
+ rowTop: number[];
53
+ /** y of the bus (connector horizontal bar) between row d and row d+1. */
54
+ busY: (d: number) => number;
55
+ /** Total canvas height (last row bottom + last zoneH + padding). */
56
+ height: number;
57
+ }
58
+ /**
59
+ * Stacks rows top-down with a corridor between them.
60
+ *
61
+ * Recurrence:
62
+ * rowTop[0] = padding
63
+ * rowTop[d+1] = rowTop[d] + rows[d].rowH + rows[d].zoneH + corridor
64
+ * busY(d) = rowTop[d+1] − corridor / 2
65
+ * height = rowTop[last] + rows[last].rowH + rows[last].zoneH + padding
66
+ *
67
+ * An empty `rows` array returns `{ rowTop: [], busY: () => 0, height: padding * 2 }`.
68
+ * Pure + deterministic.
69
+ */
70
+ declare function bandStack(rows: BandRow[], opts: BandStackOpts): BandStackResult;
71
+
72
+ export { type BandRow as B, type PackGaps as P, type BandStackOpts as a, type BandStackResult as b, type PackNode as c, type PackResult as d, allocateLanes as e, bandStack as f, packSubtree as p };