compasso 0.3.0 → 0.4.1

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 (67) hide show
  1. package/README.md +95 -10
  2. package/dist/{chunk-RWPGGWO5.js → chunk-FYBABYC7.js} +34 -10
  3. package/dist/chunk-FYBABYC7.js.map +1 -0
  4. package/dist/{chunk-F47C6ZEB.js → chunk-IPE7JZO5.js} +3 -3
  5. package/dist/{chunk-F47C6ZEB.js.map → chunk-IPE7JZO5.js.map} +1 -1
  6. package/dist/{chunk-Q6DVTCXD.js → chunk-LR7BXUWM.js} +18 -6
  7. package/dist/chunk-LR7BXUWM.js.map +1 -0
  8. package/dist/{chunk-LRHHUJFZ.js → chunk-M4WA6ME7.js} +3 -3
  9. package/dist/{chunk-LRHHUJFZ.js.map → chunk-M4WA6ME7.js.map} +1 -1
  10. package/dist/{chunk-JP4N42AY.js → chunk-PGUMLTIM.js} +3 -3
  11. package/dist/{chunk-JP4N42AY.js.map → chunk-PGUMLTIM.js.map} +1 -1
  12. package/dist/{chunk-O3BT2O42.js → chunk-SD4NTRBM.js} +29 -3
  13. package/dist/chunk-SD4NTRBM.js.map +1 -0
  14. package/dist/chunk-TAE2UB7D.js +780 -0
  15. package/dist/chunk-TAE2UB7D.js.map +1 -0
  16. package/dist/{chunk-ZBDABVIO.js → chunk-WJYYBGZW.js} +3 -3
  17. package/dist/{chunk-ZBDABVIO.js.map → chunk-WJYYBGZW.js.map} +1 -1
  18. package/dist/core/index.cjs +30 -0
  19. package/dist/core/index.cjs.map +1 -1
  20. package/dist/core/index.d.cts +18 -2
  21. package/dist/core/index.d.ts +18 -2
  22. package/dist/core/index.js +1 -1
  23. package/dist/ecomap/index.cjs +34 -11
  24. package/dist/ecomap/index.cjs.map +1 -1
  25. package/dist/ecomap/index.d.cts +12 -0
  26. package/dist/ecomap/index.d.ts +12 -0
  27. package/dist/ecomap/index.js +2 -2
  28. package/dist/fault-tree/index.js +2 -2
  29. package/dist/fishbone/index.js +2 -2
  30. package/dist/genogram/index.cjs +57 -7
  31. package/dist/genogram/index.cjs.map +1 -1
  32. package/dist/genogram/index.d.cts +20 -4
  33. package/dist/genogram/index.d.ts +20 -4
  34. package/dist/genogram/index.js +2 -2
  35. package/dist/index.cjs +1052 -191
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.cts +6 -4
  38. package/dist/index.d.ts +6 -4
  39. package/dist/index.js +8 -7
  40. package/dist/{kinship-DqEklrDN.d.ts → kinship-BF90HyyS.d.ts} +1 -1
  41. package/dist/{kinship-Dy_ijjJV.d.cts → kinship-BOUss5cT.d.cts} +1 -1
  42. package/dist/labels-B0aOMbHy.d.cts +103 -0
  43. package/dist/labels-B0aOMbHy.d.ts +103 -0
  44. package/dist/{labels-DNqRkWuI.d.ts → labels-CuLbFyrz.d.ts} +1 -1
  45. package/dist/{labels-CBQ_3Ec9.d.cts → labels-DhQe7I8m.d.cts} +1 -1
  46. package/dist/locales/pt-br.cjs +19 -0
  47. package/dist/locales/pt-br.cjs.map +1 -1
  48. package/dist/locales/pt-br.d.cts +7 -4
  49. package/dist/locales/pt-br.d.ts +7 -4
  50. package/dist/locales/pt-br.js +18 -1
  51. package/dist/locales/pt-br.js.map +1 -1
  52. package/dist/org-chart/index.cjs +895 -0
  53. package/dist/org-chart/index.cjs.map +1 -0
  54. package/dist/org-chart/index.d.cts +185 -0
  55. package/dist/org-chart/index.d.ts +185 -0
  56. package/dist/org-chart/index.js +4 -0
  57. package/dist/org-chart/index.js.map +1 -0
  58. package/dist/pedigree/index.d.cts +4 -4
  59. package/dist/pedigree/index.d.ts +4 -4
  60. package/dist/pedigree/index.js +2 -2
  61. package/dist/phylo/index.js +2 -2
  62. package/dist/{types-BnMG7TCd.d.cts → types-jE2fdM1t.d.cts} +8 -0
  63. package/dist/{types-BnMG7TCd.d.ts → types-jE2fdM1t.d.ts} +8 -0
  64. package/package.json +28 -11
  65. package/dist/chunk-O3BT2O42.js.map +0 -1
  66. package/dist/chunk-Q6DVTCXD.js.map +0 -1
  67. package/dist/chunk-RWPGGWO5.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { N as NodeShape, a as Person, c as Union, P as ParentLink, R as Relationship, d as UnionStatus, G as GenogramInput } from '../types-BnMG7TCd.cjs';
2
- export { b as PersonSex, U as UNION_STATUSES } from '../types-BnMG7TCd.cjs';
3
- import { d as KinshipLexicon, c as GenogramTitleLabels, b as GenogramSvgLabels } from '../kinship-Dy_ijjJV.cjs';
4
- export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, K as KINSHIP_EN, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from '../kinship-Dy_ijjJV.cjs';
1
+ import { N as NodeShape, a as Person, c as Union, P as ParentLink, R as Relationship, d as UnionStatus, G as GenogramInput } from '../types-jE2fdM1t.cjs';
2
+ export { b as PersonSex, U as UNION_STATUSES } from '../types-jE2fdM1t.cjs';
3
+ import { d as KinshipLexicon, c as GenogramTitleLabels, b as GenogramSvgLabels } from '../kinship-BOUss5cT.cjs';
4
+ export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, K as KINSHIP_EN, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from '../kinship-BOUss5cT.cjs';
5
5
  import { P as Point } from '../text-DuO_PwYw.cjs';
6
6
  export { C as CHAR_W, e as estimateTextWidth, w as wrapLabel } from '../text-DuO_PwYw.cjs';
7
7
  import { a as EdgeLineStyle, c as QualityLexicon } from '../stroke-MQ427drt.cjs';
@@ -37,6 +37,8 @@ interface GenogramNode {
37
37
  label: string;
38
38
  shape: NodeShape;
39
39
  deceased: boolean;
40
+ /** Caller-declared: this node was annotated. Mirrors Person.annotated — never interpreted. */
41
+ annotated: boolean;
40
42
  /** Center of the node. */
41
43
  cx: number;
42
44
  cy: number;
@@ -64,6 +66,8 @@ interface GenogramElement {
64
66
  lineStyle: EdgeLineStyle;
65
67
  unionStyle?: UnionEdgeStyle;
66
68
  dotted?: boolean;
69
+ /** Caller-declared: this edge was annotated. Propagated from the source input row(s). */
70
+ annotated: boolean;
67
71
  }
68
72
  interface GenogramLayout {
69
73
  width: number;
@@ -109,6 +113,12 @@ interface GenogramSvgOptions {
109
113
  legend?: boolean;
110
114
  /** Display vocabulary (legend/accessibility) — English default; see locale packs. */
111
115
  labels?: GenogramSvgLabels;
116
+ /**
117
+ * Legend label for annotated elements. When provided AND at least one element or node is
118
+ * annotated, a legend row is added (used-keys-only). The library supplies no default —
119
+ * the caller owns the wording (domain-agnostic).
120
+ */
121
+ annotationLabel?: string;
112
122
  }
113
123
  /**
114
124
  * Emits a self-contained SVG for a computed genogram layout. Pure + deterministic.
@@ -135,6 +145,12 @@ interface GenogramRenderOptions extends GenogramLayoutOptions {
135
145
  legend?: boolean;
136
146
  /** Display vocabulary for the emitter (legend/accessibility) — English default. */
137
147
  svgLabels?: GenogramSvgLabels;
148
+ /**
149
+ * Verbatim legend label for caller-declared `annotated` people/unions/parentage/bonds.
150
+ * When set AND something is annotated, a legend row with the marker glyph + this label is
151
+ * added. compasso never supplies a default — the caller owns the wording (domain-specific).
152
+ */
153
+ annotationLabel?: string;
138
154
  }
139
155
  interface GenogramRenderResult {
140
156
  /** Self-contained SVG (numeric width/height + matching viewBox — PDF-embedder safe). */
@@ -1,7 +1,7 @@
1
- import { N as NodeShape, a as Person, c as Union, P as ParentLink, R as Relationship, d as UnionStatus, G as GenogramInput } from '../types-BnMG7TCd.js';
2
- export { b as PersonSex, U as UNION_STATUSES } from '../types-BnMG7TCd.js';
3
- import { d as KinshipLexicon, c as GenogramTitleLabels, b as GenogramSvgLabels } from '../kinship-DqEklrDN.js';
4
- export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, K as KINSHIP_EN, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from '../kinship-DqEklrDN.js';
1
+ import { N as NodeShape, a as Person, c as Union, P as ParentLink, R as Relationship, d as UnionStatus, G as GenogramInput } from '../types-jE2fdM1t.js';
2
+ export { b as PersonSex, U as UNION_STATUSES } from '../types-jE2fdM1t.js';
3
+ import { d as KinshipLexicon, c as GenogramTitleLabels, b as GenogramSvgLabels } from '../kinship-BF90HyyS.js';
4
+ export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, K as KINSHIP_EN, R as RelationshipMapClass, e as classifyRelationshipType, r as relationshipTypeTokens } from '../kinship-BF90HyyS.js';
5
5
  import { P as Point } from '../text-DuO_PwYw.js';
6
6
  export { C as CHAR_W, e as estimateTextWidth, w as wrapLabel } from '../text-DuO_PwYw.js';
7
7
  import { a as EdgeLineStyle, c as QualityLexicon } from '../stroke-MQ427drt.js';
@@ -37,6 +37,8 @@ interface GenogramNode {
37
37
  label: string;
38
38
  shape: NodeShape;
39
39
  deceased: boolean;
40
+ /** Caller-declared: this node was annotated. Mirrors Person.annotated — never interpreted. */
41
+ annotated: boolean;
40
42
  /** Center of the node. */
41
43
  cx: number;
42
44
  cy: number;
@@ -64,6 +66,8 @@ interface GenogramElement {
64
66
  lineStyle: EdgeLineStyle;
65
67
  unionStyle?: UnionEdgeStyle;
66
68
  dotted?: boolean;
69
+ /** Caller-declared: this edge was annotated. Propagated from the source input row(s). */
70
+ annotated: boolean;
67
71
  }
68
72
  interface GenogramLayout {
69
73
  width: number;
@@ -109,6 +113,12 @@ interface GenogramSvgOptions {
109
113
  legend?: boolean;
110
114
  /** Display vocabulary (legend/accessibility) — English default; see locale packs. */
111
115
  labels?: GenogramSvgLabels;
116
+ /**
117
+ * Legend label for annotated elements. When provided AND at least one element or node is
118
+ * annotated, a legend row is added (used-keys-only). The library supplies no default —
119
+ * the caller owns the wording (domain-agnostic).
120
+ */
121
+ annotationLabel?: string;
112
122
  }
113
123
  /**
114
124
  * Emits a self-contained SVG for a computed genogram layout. Pure + deterministic.
@@ -135,6 +145,12 @@ interface GenogramRenderOptions extends GenogramLayoutOptions {
135
145
  legend?: boolean;
136
146
  /** Display vocabulary for the emitter (legend/accessibility) — English default. */
137
147
  svgLabels?: GenogramSvgLabels;
148
+ /**
149
+ * Verbatim legend label for caller-declared `annotated` people/unions/parentage/bonds.
150
+ * When set AND something is annotated, a legend row with the marker glyph + this label is
151
+ * added. compasso never supplies a default — the caller owns the wording (domain-specific).
152
+ */
153
+ annotationLabel?: string;
138
154
  }
139
155
  interface GenogramRenderResult {
140
156
  /** Self-contained SVG (numeric width/height + matching viewBox — PDF-embedder safe). */
@@ -1,4 +1,4 @@
1
- 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';
2
- export { CHAR_W, EDGE_STROKE, estimateTextWidth, qualityLineStyle, wrapLabel, xmlEscape } from '../chunk-O3BT2O42.js';
1
+ 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-FYBABYC7.js';
2
+ export { CHAR_W, EDGE_STROKE, estimateTextWidth, qualityLineStyle, wrapLabel, xmlEscape } from '../chunk-SD4NTRBM.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map