compasso 0.4.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.
- package/README.md +29 -0
- package/dist/{chunk-RWPGGWO5.js → chunk-FYBABYC7.js} +34 -10
- package/dist/chunk-FYBABYC7.js.map +1 -0
- package/dist/{chunk-F47C6ZEB.js → chunk-IPE7JZO5.js} +3 -3
- package/dist/{chunk-F47C6ZEB.js.map → chunk-IPE7JZO5.js.map} +1 -1
- package/dist/{chunk-Q6DVTCXD.js → chunk-LR7BXUWM.js} +18 -6
- package/dist/chunk-LR7BXUWM.js.map +1 -0
- package/dist/{chunk-LRHHUJFZ.js → chunk-M4WA6ME7.js} +3 -3
- package/dist/{chunk-LRHHUJFZ.js.map → chunk-M4WA6ME7.js.map} +1 -1
- package/dist/{chunk-JP4N42AY.js → chunk-PGUMLTIM.js} +3 -3
- package/dist/{chunk-JP4N42AY.js.map → chunk-PGUMLTIM.js.map} +1 -1
- package/dist/{chunk-O3BT2O42.js → chunk-SD4NTRBM.js} +29 -3
- package/dist/chunk-SD4NTRBM.js.map +1 -0
- package/dist/{chunk-UJVU7B44.js → chunk-TAE2UB7D.js} +30 -14
- package/dist/chunk-TAE2UB7D.js.map +1 -0
- package/dist/{chunk-ZBDABVIO.js → chunk-WJYYBGZW.js} +3 -3
- package/dist/{chunk-ZBDABVIO.js.map → chunk-WJYYBGZW.js.map} +1 -1
- package/dist/core/index.cjs +30 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +18 -2
- package/dist/core/index.d.ts +18 -2
- package/dist/core/index.js +1 -1
- package/dist/ecomap/index.cjs +34 -11
- package/dist/ecomap/index.cjs.map +1 -1
- package/dist/ecomap/index.d.cts +12 -0
- package/dist/ecomap/index.d.ts +12 -0
- package/dist/ecomap/index.js +2 -2
- package/dist/fault-tree/index.js +2 -2
- package/dist/fishbone/index.js +2 -2
- package/dist/genogram/index.cjs +57 -7
- package/dist/genogram/index.cjs.map +1 -1
- package/dist/genogram/index.d.cts +20 -4
- package/dist/genogram/index.d.ts +20 -4
- package/dist/genogram/index.js +2 -2
- package/dist/index.cjs +325 -243
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +8 -8
- package/dist/{kinship-DqEklrDN.d.ts → kinship-BF90HyyS.d.ts} +1 -1
- package/dist/{kinship-Dy_ijjJV.d.cts → kinship-BOUss5cT.d.cts} +1 -1
- package/dist/{labels-RtFw9tX1.d.cts → labels-B0aOMbHy.d.cts} +12 -0
- package/dist/{labels-RtFw9tX1.d.ts → labels-B0aOMbHy.d.ts} +12 -0
- package/dist/{labels-DNqRkWuI.d.ts → labels-CuLbFyrz.d.ts} +1 -1
- package/dist/{labels-CBQ_3Ec9.d.cts → labels-DhQe7I8m.d.cts} +1 -1
- package/dist/locales/pt-br.d.cts +4 -4
- package/dist/locales/pt-br.d.ts +4 -4
- package/dist/org-chart/index.cjs +100 -58
- package/dist/org-chart/index.cjs.map +1 -1
- package/dist/org-chart/index.d.cts +19 -2
- package/dist/org-chart/index.d.ts +19 -2
- package/dist/org-chart/index.js +2 -2
- package/dist/pedigree/index.d.cts +4 -4
- package/dist/pedigree/index.d.ts +4 -4
- package/dist/pedigree/index.js +2 -2
- package/dist/phylo/index.js +2 -2
- package/dist/{types-BnMG7TCd.d.cts → types-jE2fdM1t.d.cts} +8 -0
- package/dist/{types-BnMG7TCd.d.ts → types-jE2fdM1t.d.ts} +8 -0
- package/package.json +1 -1
- package/dist/chunk-O3BT2O42.js.map +0 -1
- package/dist/chunk-Q6DVTCXD.js.map +0 -1
- package/dist/chunk-RWPGGWO5.js.map +0 -1
- package/dist/chunk-UJVU7B44.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-
|
|
2
|
-
export { b as PersonSex, U as UNION_STATUSES } from '../types-
|
|
3
|
-
import { d as KinshipLexicon, c as GenogramTitleLabels, b as GenogramSvgLabels } from '../kinship-
|
|
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-
|
|
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). */
|
package/dist/genogram/index.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
export { b as PersonSex, U as UNION_STATUSES } from '../types-
|
|
3
|
-
import { d as KinshipLexicon, c as GenogramTitleLabels, b as GenogramSvgLabels } from '../kinship-
|
|
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-
|
|
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). */
|
package/dist/genogram/index.js
CHANGED
|
@@ -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-
|
|
2
|
-
export { CHAR_W, EDGE_STROKE, estimateTextWidth, qualityLineStyle, wrapLabel, xmlEscape } from '../chunk-
|
|
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
|