compasso 0.1.0 → 0.2.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/README.md +63 -8
- package/dist/{chunk-E456YKAJ.js → chunk-5B453C4P.js} +40 -10
- package/dist/chunk-5B453C4P.js.map +1 -0
- package/dist/{chunk-5RRRE2GF.js → chunk-5PGOL2KR.js} +3 -3
- package/dist/{chunk-5RRRE2GF.js.map → chunk-5PGOL2KR.js.map} +1 -1
- package/dist/{chunk-L5CYESBI.js → chunk-EHQMKVDM.js} +3 -3
- package/dist/{chunk-L5CYESBI.js.map → chunk-EHQMKVDM.js.map} +1 -1
- package/dist/chunk-P2S7AUOL.js +703 -0
- package/dist/chunk-P2S7AUOL.js.map +1 -0
- package/dist/chunk-TP3JOOJW.js +252 -0
- package/dist/chunk-TP3JOOJW.js.map +1 -0
- package/dist/core/index.cjs +44 -7
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +30 -30
- package/dist/core/index.d.ts +30 -30
- package/dist/core/index.js +1 -1
- package/dist/ecomap/index.cjs +11 -7
- package/dist/ecomap/index.cjs.map +1 -1
- package/dist/ecomap/index.js +2 -2
- package/dist/fault-tree/index.cjs +782 -0
- package/dist/fault-tree/index.cjs.map +1 -0
- package/dist/fault-tree/index.d.cts +148 -0
- package/dist/fault-tree/index.d.ts +148 -0
- package/dist/fault-tree/index.js +4 -0
- package/dist/fault-tree/index.js.map +1 -0
- package/dist/fishbone/index.cjs +314 -0
- package/dist/fishbone/index.cjs.map +1 -0
- package/dist/fishbone/index.d.cts +91 -0
- package/dist/fishbone/index.d.ts +91 -0
- package/dist/fishbone/index.js +4 -0
- package/dist/fishbone/index.js.map +1 -0
- package/dist/genogram/index.cjs +11 -7
- package/dist/genogram/index.cjs.map +1 -1
- package/dist/genogram/index.d.cts +3 -2
- package/dist/genogram/index.d.ts +3 -2
- package/dist/genogram/index.js +2 -2
- package/dist/index.cjs +1040 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -3
- package/dist/labels-CYbM5XV7.d.cts +83 -0
- package/dist/labels-CYbM5XV7.d.ts +83 -0
- package/dist/locales/pt-br.cjs +36 -0
- package/dist/locales/pt-br.cjs.map +1 -1
- package/dist/locales/pt-br.d.cts +6 -1
- package/dist/locales/pt-br.d.ts +6 -1
- package/dist/locales/pt-br.js +34 -1
- package/dist/locales/pt-br.js.map +1 -1
- package/dist/text-DuO_PwYw.d.cts +45 -0
- package/dist/text-DuO_PwYw.d.ts +45 -0
- package/dist/xml-DDae1eUr.d.cts +4 -0
- package/dist/xml-DDae1eUr.d.ts +4 -0
- package/package.json +70 -18
- package/dist/chunk-E456YKAJ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { x as xmlEscape } from './xml-DDae1eUr.cjs';
|
|
2
|
+
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';
|
|
3
|
+
export { LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, LegendBlock, LegendEntry, legendBlock } from './core/index.cjs';
|
|
2
4
|
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';
|
|
3
5
|
export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, b as GenogramInput, c as GenogramSvgLabels, d as GenogramTitleLabels, K as KINSHIP_EN, e as KinshipLexicon, N as NodeShape, P as ParentLink, f as Person, g as PersonSex, R as Relationship, h as RelationshipMapClass, U as UNION_STATUSES, i as Union, j as UnionStatus, k as classifyRelationshipType, r as relationshipTypeTokens } from './kinship-BARO5-qz.cjs';
|
|
4
6
|
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';
|
|
5
7
|
export { ECOMAP_LABELS_EN, EcomapDirection, EcomapInput, EcomapLabels, EcomapSvgOptions, EcomapTie, ecomapSvg } from './ecomap/index.cjs';
|
|
8
|
+
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';
|
|
9
|
+
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';
|
|
10
|
+
export { FISHBONE_LABELS_EN, FishboneCategory, FishboneCause, FishboneInput, FishboneLabels, FishboneSubCause, FishboneSvgOptions, FishboneValidationCode, FishboneValidationError, FishboneValidationIssue, fishboneSvg } from './fishbone/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { x as xmlEscape } from './xml-DDae1eUr.js';
|
|
2
|
+
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';
|
|
3
|
+
export { LEGEND_FONT, LEGEND_GAP, LEGEND_PAD, LEGEND_ROW_H, LEGEND_SWATCH_W, LegendBlock, LegendEntry, legendBlock } from './core/index.js';
|
|
2
4
|
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';
|
|
3
5
|
export { G as GENOGRAM_SVG_LABELS_EN, a as GENOGRAM_TITLE_LABELS_EN, b as GenogramInput, c as GenogramSvgLabels, d as GenogramTitleLabels, K as KINSHIP_EN, e as KinshipLexicon, N as NodeShape, P as ParentLink, f as Person, g as PersonSex, R as Relationship, h as RelationshipMapClass, U as UNION_STATUSES, i as Union, j as UnionStatus, k as classifyRelationshipType, r as relationshipTypeTokens } from './kinship-Bkf87Jhu.js';
|
|
4
6
|
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';
|
|
5
7
|
export { ECOMAP_LABELS_EN, EcomapDirection, EcomapInput, EcomapLabels, EcomapSvgOptions, EcomapTie, ecomapSvg } from './ecomap/index.js';
|
|
8
|
+
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';
|
|
9
|
+
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';
|
|
10
|
+
export { FISHBONE_LABELS_EN, FishboneCategory, FishboneCause, FishboneInput, FishboneLabels, FishboneSubCause, FishboneSvgOptions, FishboneValidationCode, FishboneValidationError, FishboneValidationIssue, fishboneSvg } from './fishbone/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
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 { ECOMAP_LABELS_EN, ecomapSvg } from './chunk-
|
|
3
|
-
export {
|
|
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-5PGOL2KR.js';
|
|
2
|
+
export { ECOMAP_LABELS_EN, ecomapSvg } from './chunk-EHQMKVDM.js';
|
|
3
|
+
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-P2S7AUOL.js';
|
|
4
|
+
export { FISHBONE_LABELS_EN, FishboneValidationError, fishboneSvg } from './chunk-TP3JOOJW.js';
|
|
5
|
+
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, wrapLabel, wrapLabelBalanced, xmlEscape } from './chunk-5B453C4P.js';
|
|
4
6
|
//# sourceMappingURL=index.js.map
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLOSED event-kind vocabulary (NUREG-0492 Fig. IV-1):
|
|
3
|
+
* - "intermediate": fault event from a logic combination → rectangle (incl. the top);
|
|
4
|
+
* - "basic": basic initiating fault, no further development → circle;
|
|
5
|
+
* - "undeveloped": not developed further (insufficient consequence/info) → diamond;
|
|
6
|
+
* - "house": event normally expected to occur (external/boundary) → house;
|
|
7
|
+
* - "conditioning": condition/restriction on an INHIBIT gate → oval (never a tree node);
|
|
8
|
+
* - "transfer": transfer-in, subtree developed elsewhere → triangle (a leaf).
|
|
9
|
+
*/
|
|
10
|
+
declare const FAULT_TREE_EVENT_KINDS: readonly ["intermediate", "basic", "undeveloped", "house", "conditioning", "transfer"];
|
|
11
|
+
type FaultTreeEventKind = (typeof FAULT_TREE_EVENT_KINDS)[number];
|
|
12
|
+
/**
|
|
13
|
+
* A declared fault-tree event. `label` is verbatim (always kept in the <title>);
|
|
14
|
+
* `code` is a short identifier drawn inside primary-event glyphs (null = none) —
|
|
15
|
+
* matching FTA practice, where primary-event symbols carry identifiers and the
|
|
16
|
+
* descriptions live beside them.
|
|
17
|
+
*/
|
|
18
|
+
interface FaultTreeEvent {
|
|
19
|
+
id: number;
|
|
20
|
+
kind: FaultTreeEventKind;
|
|
21
|
+
label: string;
|
|
22
|
+
code: string | null;
|
|
23
|
+
/** Optional verbatim <title> override (defaults to "code · label"). */
|
|
24
|
+
title?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* CLOSED gate vocabulary. NOT/NAND/NOR and PRIORITY-AND are deliberately
|
|
28
|
+
* unrepresentable — an unsupported gate is a compile error, never a silent visual
|
|
29
|
+
* fallback (the NOT bubble-triangle would also collide with the transfer triangle).
|
|
30
|
+
*/
|
|
31
|
+
declare const GATE_TYPES: readonly ["and", "or", "xor", "inhibit", "vote"];
|
|
32
|
+
type GateType = (typeof GATE_TYPES)[number];
|
|
33
|
+
interface FaultTreeGateBase {
|
|
34
|
+
id: number;
|
|
35
|
+
/** The intermediate event this gate resolves (drawn directly above the gate). */
|
|
36
|
+
eventId: number;
|
|
37
|
+
/** Declared left-to-right reading order — presentation data, honored as given. */
|
|
38
|
+
inputIds: number[];
|
|
39
|
+
}
|
|
40
|
+
interface AndGate extends FaultTreeGateBase {
|
|
41
|
+
type: "and";
|
|
42
|
+
}
|
|
43
|
+
interface OrGate extends FaultTreeGateBase {
|
|
44
|
+
type: "or";
|
|
45
|
+
}
|
|
46
|
+
interface XorGate extends FaultTreeGateBase {
|
|
47
|
+
type: "xor";
|
|
48
|
+
}
|
|
49
|
+
interface InhibitGate extends FaultTreeGateBase {
|
|
50
|
+
type: "inhibit";
|
|
51
|
+
/** Must reference a kind:"conditioning" event (drawn as the side oval). */
|
|
52
|
+
conditionId: number;
|
|
53
|
+
}
|
|
54
|
+
interface VoteGate extends FaultTreeGateBase {
|
|
55
|
+
type: "vote";
|
|
56
|
+
/** Output occurs if ≥ k of the n inputs occur; 1 ≤ k ≤ inputIds.length. */
|
|
57
|
+
k: number;
|
|
58
|
+
}
|
|
59
|
+
type FaultTreeGate = AndGate | OrGate | XorGate | InhibitGate | VoteGate;
|
|
60
|
+
/** Input to the fault-tree render pipeline. */
|
|
61
|
+
interface FaultTreeInput {
|
|
62
|
+
/** Declared top event (must be kind "intermediate", never a gate input). */
|
|
63
|
+
topId: number;
|
|
64
|
+
events: FaultTreeEvent[];
|
|
65
|
+
gates: FaultTreeGate[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Labels woven into element <title>s by the LAYOUT (verbatim-preserving). */
|
|
69
|
+
interface FaultTreeTitleLabels {
|
|
70
|
+
gates: Record<GateType, string>;
|
|
71
|
+
/** Title of the inhibit-gate → conditioning-oval attachment line. */
|
|
72
|
+
condition: string;
|
|
73
|
+
}
|
|
74
|
+
declare const FAULT_TREE_TITLE_LABELS_EN: FaultTreeTitleLabels;
|
|
75
|
+
/** Labels drawn by the SVG EMITTER (legend entries, accessibility text). */
|
|
76
|
+
interface FaultTreeSvgLabels {
|
|
77
|
+
events: Record<FaultTreeEventKind, string>;
|
|
78
|
+
gates: Record<GateType, string>;
|
|
79
|
+
ariaLabel: string;
|
|
80
|
+
}
|
|
81
|
+
declare const FAULT_TREE_SVG_LABELS_EN: FaultTreeSvgLabels;
|
|
82
|
+
|
|
83
|
+
export { type AndGate as A, FAULT_TREE_EVENT_KINDS as F, GATE_TYPES as G, type InhibitGate as I, type OrGate as O, type VoteGate as V, type XorGate as X, FAULT_TREE_SVG_LABELS_EN as a, FAULT_TREE_TITLE_LABELS_EN as b, type FaultTreeEvent as c, type FaultTreeEventKind as d, type FaultTreeGate as e, type FaultTreeInput as f, type FaultTreeSvgLabels as g, type FaultTreeTitleLabels as h, type GateType as i };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLOSED event-kind vocabulary (NUREG-0492 Fig. IV-1):
|
|
3
|
+
* - "intermediate": fault event from a logic combination → rectangle (incl. the top);
|
|
4
|
+
* - "basic": basic initiating fault, no further development → circle;
|
|
5
|
+
* - "undeveloped": not developed further (insufficient consequence/info) → diamond;
|
|
6
|
+
* - "house": event normally expected to occur (external/boundary) → house;
|
|
7
|
+
* - "conditioning": condition/restriction on an INHIBIT gate → oval (never a tree node);
|
|
8
|
+
* - "transfer": transfer-in, subtree developed elsewhere → triangle (a leaf).
|
|
9
|
+
*/
|
|
10
|
+
declare const FAULT_TREE_EVENT_KINDS: readonly ["intermediate", "basic", "undeveloped", "house", "conditioning", "transfer"];
|
|
11
|
+
type FaultTreeEventKind = (typeof FAULT_TREE_EVENT_KINDS)[number];
|
|
12
|
+
/**
|
|
13
|
+
* A declared fault-tree event. `label` is verbatim (always kept in the <title>);
|
|
14
|
+
* `code` is a short identifier drawn inside primary-event glyphs (null = none) —
|
|
15
|
+
* matching FTA practice, where primary-event symbols carry identifiers and the
|
|
16
|
+
* descriptions live beside them.
|
|
17
|
+
*/
|
|
18
|
+
interface FaultTreeEvent {
|
|
19
|
+
id: number;
|
|
20
|
+
kind: FaultTreeEventKind;
|
|
21
|
+
label: string;
|
|
22
|
+
code: string | null;
|
|
23
|
+
/** Optional verbatim <title> override (defaults to "code · label"). */
|
|
24
|
+
title?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* CLOSED gate vocabulary. NOT/NAND/NOR and PRIORITY-AND are deliberately
|
|
28
|
+
* unrepresentable — an unsupported gate is a compile error, never a silent visual
|
|
29
|
+
* fallback (the NOT bubble-triangle would also collide with the transfer triangle).
|
|
30
|
+
*/
|
|
31
|
+
declare const GATE_TYPES: readonly ["and", "or", "xor", "inhibit", "vote"];
|
|
32
|
+
type GateType = (typeof GATE_TYPES)[number];
|
|
33
|
+
interface FaultTreeGateBase {
|
|
34
|
+
id: number;
|
|
35
|
+
/** The intermediate event this gate resolves (drawn directly above the gate). */
|
|
36
|
+
eventId: number;
|
|
37
|
+
/** Declared left-to-right reading order — presentation data, honored as given. */
|
|
38
|
+
inputIds: number[];
|
|
39
|
+
}
|
|
40
|
+
interface AndGate extends FaultTreeGateBase {
|
|
41
|
+
type: "and";
|
|
42
|
+
}
|
|
43
|
+
interface OrGate extends FaultTreeGateBase {
|
|
44
|
+
type: "or";
|
|
45
|
+
}
|
|
46
|
+
interface XorGate extends FaultTreeGateBase {
|
|
47
|
+
type: "xor";
|
|
48
|
+
}
|
|
49
|
+
interface InhibitGate extends FaultTreeGateBase {
|
|
50
|
+
type: "inhibit";
|
|
51
|
+
/** Must reference a kind:"conditioning" event (drawn as the side oval). */
|
|
52
|
+
conditionId: number;
|
|
53
|
+
}
|
|
54
|
+
interface VoteGate extends FaultTreeGateBase {
|
|
55
|
+
type: "vote";
|
|
56
|
+
/** Output occurs if ≥ k of the n inputs occur; 1 ≤ k ≤ inputIds.length. */
|
|
57
|
+
k: number;
|
|
58
|
+
}
|
|
59
|
+
type FaultTreeGate = AndGate | OrGate | XorGate | InhibitGate | VoteGate;
|
|
60
|
+
/** Input to the fault-tree render pipeline. */
|
|
61
|
+
interface FaultTreeInput {
|
|
62
|
+
/** Declared top event (must be kind "intermediate", never a gate input). */
|
|
63
|
+
topId: number;
|
|
64
|
+
events: FaultTreeEvent[];
|
|
65
|
+
gates: FaultTreeGate[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Labels woven into element <title>s by the LAYOUT (verbatim-preserving). */
|
|
69
|
+
interface FaultTreeTitleLabels {
|
|
70
|
+
gates: Record<GateType, string>;
|
|
71
|
+
/** Title of the inhibit-gate → conditioning-oval attachment line. */
|
|
72
|
+
condition: string;
|
|
73
|
+
}
|
|
74
|
+
declare const FAULT_TREE_TITLE_LABELS_EN: FaultTreeTitleLabels;
|
|
75
|
+
/** Labels drawn by the SVG EMITTER (legend entries, accessibility text). */
|
|
76
|
+
interface FaultTreeSvgLabels {
|
|
77
|
+
events: Record<FaultTreeEventKind, string>;
|
|
78
|
+
gates: Record<GateType, string>;
|
|
79
|
+
ariaLabel: string;
|
|
80
|
+
}
|
|
81
|
+
declare const FAULT_TREE_SVG_LABELS_EN: FaultTreeSvgLabels;
|
|
82
|
+
|
|
83
|
+
export { type AndGate as A, FAULT_TREE_EVENT_KINDS as F, GATE_TYPES as G, type InhibitGate as I, type OrGate as O, type VoteGate as V, type XorGate as X, FAULT_TREE_SVG_LABELS_EN as a, FAULT_TREE_TITLE_LABELS_EN as b, type FaultTreeEvent as c, type FaultTreeEventKind as d, type FaultTreeGate as e, type FaultTreeInput as f, type FaultTreeSvgLabels as g, type FaultTreeTitleLabels as h, type GateType as i };
|
package/dist/locales/pt-br.cjs
CHANGED
|
@@ -113,8 +113,44 @@ var ECOMAP_LABELS_PT_BR = {
|
|
|
113
113
|
direction: "Sentido declarado do v\xEDnculo",
|
|
114
114
|
ariaLabel: "Ecomapa"
|
|
115
115
|
};
|
|
116
|
+
var FAULT_TREE_TITLE_LABELS_PT_BR = {
|
|
117
|
+
gates: {
|
|
118
|
+
and: "Porta E",
|
|
119
|
+
or: "Porta OU",
|
|
120
|
+
xor: "Porta OU exclusivo",
|
|
121
|
+
inhibit: "Porta de inibi\xE7\xE3o",
|
|
122
|
+
vote: "Porta de vota\xE7\xE3o"
|
|
123
|
+
},
|
|
124
|
+
condition: "condi\xE7\xE3o"
|
|
125
|
+
};
|
|
126
|
+
var FAULT_TREE_SVG_LABELS_PT_BR = {
|
|
127
|
+
events: {
|
|
128
|
+
intermediate: "Evento intermedi\xE1rio",
|
|
129
|
+
basic: "Evento b\xE1sico",
|
|
130
|
+
undeveloped: "Evento n\xE3o desenvolvido",
|
|
131
|
+
house: "Evento externo (esperado)",
|
|
132
|
+
conditioning: "Evento condicionante",
|
|
133
|
+
transfer: "Transfer\xEAncia (desenvolvido em outra \xE1rvore)"
|
|
134
|
+
},
|
|
135
|
+
gates: {
|
|
136
|
+
and: "Porta E (todas as entradas)",
|
|
137
|
+
or: "Porta OU (qualquer entrada)",
|
|
138
|
+
xor: "Porta OU exclusivo (exatamente uma entrada)",
|
|
139
|
+
inhibit: "Porta de inibi\xE7\xE3o (entrada sob condi\xE7\xE3o)",
|
|
140
|
+
vote: "Porta de vota\xE7\xE3o (k de n)"
|
|
141
|
+
},
|
|
142
|
+
ariaLabel: "\xC1rvore de falhas"
|
|
143
|
+
};
|
|
144
|
+
var FISHBONE_LABELS_PT_BR = {
|
|
145
|
+
cause: "Causa",
|
|
146
|
+
subCause: "Subcausa",
|
|
147
|
+
ariaLabel: "Diagrama de causa e efeito (Ishikawa)"
|
|
148
|
+
};
|
|
116
149
|
|
|
117
150
|
exports.ECOMAP_LABELS_PT_BR = ECOMAP_LABELS_PT_BR;
|
|
151
|
+
exports.FAULT_TREE_SVG_LABELS_PT_BR = FAULT_TREE_SVG_LABELS_PT_BR;
|
|
152
|
+
exports.FAULT_TREE_TITLE_LABELS_PT_BR = FAULT_TREE_TITLE_LABELS_PT_BR;
|
|
153
|
+
exports.FISHBONE_LABELS_PT_BR = FISHBONE_LABELS_PT_BR;
|
|
118
154
|
exports.GENOGRAM_SVG_LABELS_PT_BR = GENOGRAM_SVG_LABELS_PT_BR;
|
|
119
155
|
exports.GENOGRAM_TITLE_LABELS_PT_BR = GENOGRAM_TITLE_LABELS_PT_BR;
|
|
120
156
|
exports.KINSHIP_PT_BR = KINSHIP_PT_BR;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/locales/pt-br.ts"],"names":[],"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A,GACV;AAAA,EACA,QAAA,EAAU,+BAAA;AAAA,EACV,SAAA,EAAW;AACb;AAEO,IAAM,mBAAA,GAAoC;AAAA,EAC/C,UAAA,EAAY;AAAA,IACV,KAAA,EAAO,YAAA;AAAA,IACP,OAAA,EAAS,UAAA;AAAA,IACT,QAAA,EAAU,aAAA;AAAA,IACV,MAAA,EAAQ;AAAA,GACV;AAAA,EACA,UAAA,EAAY,sBAAA;AAAA,EACZ,SAAA,EAAW,iCAAA;AAAA,EACX,SAAA,EAAW;AACb;AAEO,IAAM,6BAAA,GAAsD;AAAA,EACjE,KAAA,EAAO;AAAA,IACL,GAAA,EAAK,SAAA;AAAA,IACL,EAAA,EAAI,UAAA;AAAA,IACJ,GAAA,EAAK,oBAAA;AAAA,IACL,OAAA,EAAS,yBAAA;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AACb;AAEO,IAAM,2BAAA,GAAkD;AAAA,EAC7D,MAAA,EAAQ;AAAA,IACN,YAAA,EAAc,yBAAA;AAAA,IACd,KAAA,EAAO,kBAAA;AAAA,IACP,WAAA,EAAa,4BAAA;AAAA,IACb,KAAA,EAAO,2BAAA;AAAA,IACP,YAAA,EAAc,sBAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,KAAA,EAAO;AAAA,IACL,GAAA,EAAK,6BAAA;AAAA,IACL,EAAA,EAAI,6BAAA;AAAA,IACJ,GAAA,EAAK,6CAAA;AAAA,IACL,OAAA,EAAS,sDAAA;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AACb;AAEO,IAAM,qBAAA,GAAwC;AAAA,EACnD,KAAA,EAAO,OAAA;AAAA,EACP,QAAA,EAAU,UAAA;AAAA,EACV,SAAA,EAAW;AACb","file":"pt-br.cjs","sourcesContent":["// Brazilian Portuguese locale pack — lexicons + display vocabularies. Pass these into\n// the genogram/ecomap options to localize both the lexical matchers (quality words,\n// kinship words) and every human-readable string the diagrams emit.\n\nimport type { QualityLexicon } from \"../core\";\nimport type { KinshipLexicon } from \"../genogram/kinship\";\nimport type { GenogramSvgLabels, GenogramTitleLabels } from \"../genogram/labels\";\nimport type { EcomapLabels } from \"../ecomap/render\";\nimport type { FaultTreeSvgLabels, FaultTreeTitleLabels } from \"../fault-tree/labels\";\nimport type { FishboneLabels } from \"../fishbone/render\";\n\n// Needles are diacritic-free, lowercase substrings; the matcher's single-bucket rule\n// keeps competing signals honest. \"sem\" is deliberately NOT a negation: it is a\n// genuine cutoff signal (\"sem contato\").\nexport const QUALITY_LEXICON_PT_BR: QualityLexicon = {\n buckets: [\n {\n style: \"close\",\n needles: [\"proxim\", \"unid\", \"carinh\", \"afet\", \"apeg\", \"amig\", \"harmoni\", \"saudavel\"],\n },\n {\n style: \"distant\",\n needles: [\"distant\", \"afast\", \"ausent\", \"frio\", \"fria\", \"separ\"],\n },\n {\n style: \"conflict\",\n needles: [\"conflit\", \"briga\", \"brig\", \"tens\", \"dificil\", \"hostil\", \"violen\", \"abusiv\", \"agressiv\", \"complicad\"],\n },\n {\n style: \"cutoff\",\n needles: [\"romp\", \"cortad\", \"sem contato\", \"corte\"],\n },\n ],\n negations: [\"nao\", \"nunca\", \"nem\", \"jamais\"],\n};\n\n// Diacritic-free tokens matched WHOLE (\"meio-irmão\" → [\"meio\",\"irmao\"]; \"avó materna\" →\n// [\"avo\",\"materna\"]). Derived kinship is checked first, so \"irmão por parte de pai\"\n// reads as a sibling, never as a parent.\nexport const KINSHIP_PT_BR: KinshipLexicon = {\n derived: new Set([\n \"irmao\", \"irma\", \"irmaos\", \"irmas\", \"mano\", \"mana\", \"manos\", \"manas\",\n \"avo\", \"avos\", \"bisavo\", \"bisava\", \"bisavos\", \"tataravo\",\n \"neto\", \"neta\", \"netos\", \"netas\", \"bisneto\", \"bisneta\", \"bisnetos\", \"bisnetas\",\n \"tio\", \"tia\", \"tios\", \"tias\",\n \"primo\", \"prima\", \"primos\", \"primas\",\n \"sobrinho\", \"sobrinha\", \"sobrinhos\", \"sobrinhas\",\n ]),\n parentage: new Set([\n \"mae\", \"maes\", \"pai\", \"pais\", \"genitor\", \"genitora\", \"genitores\",\n \"filho\", \"filha\", \"filhos\", \"filhas\",\n ]),\n childWords: new Set([\"filho\", \"filha\", \"filhos\", \"filhas\"]),\n};\n\nexport const GENOGRAM_TITLE_LABELS_PT_BR: GenogramTitleLabels = {\n unionStatus: {\n married: \"casados\",\n cohabiting: \"união estável\",\n dating: \"namoro\",\n separated: \"separados\",\n divorced: \"divorciados\",\n coparental: \"co-pais (sem união)\",\n unknown: \"união (tipo não informado)\",\n },\n parentage: \"genitor(a) de\",\n};\n\nexport const GENOGRAM_SVG_LABELS_PT_BR: GenogramSvgLabels = {\n shapes: {\n square: \"Homem\",\n circle: \"Mulher\",\n diamond: \"Sexo não informado\",\n },\n deceased: \"Falecido(a)\",\n bondStyles: {\n close: \"Próximo\",\n distant: \"Distante\",\n conflict: \"Conflituoso\",\n cutoff: \"Rompido (sem contato)\",\n },\n isolated: \"Sem ascendência registrada\",\n ariaLabel: \"Mapa da família (genograma)\",\n};\n\nexport const ECOMAP_LABELS_PT_BR: EcomapLabels = {\n bondStyles: {\n close: \"Próximo\",\n distant: \"Distante\",\n conflict: \"Conflituoso\",\n cutoff: \"Rompido (sem contato)\",\n },\n neutralTie: \"Vínculo declarado\",\n direction: \"Sentido declarado do vínculo\",\n ariaLabel: \"Ecomapa\",\n};\n\nexport const FAULT_TREE_TITLE_LABELS_PT_BR: FaultTreeTitleLabels = {\n gates: {\n and: \"Porta E\",\n or: \"Porta OU\",\n xor: \"Porta OU exclusivo\",\n inhibit: \"Porta de inibição\",\n vote: \"Porta de votação\",\n },\n condition: \"condição\",\n};\n\nexport const FAULT_TREE_SVG_LABELS_PT_BR: FaultTreeSvgLabels = {\n events: {\n intermediate: \"Evento intermediário\",\n basic: \"Evento básico\",\n undeveloped: \"Evento não desenvolvido\",\n house: \"Evento externo (esperado)\",\n conditioning: \"Evento condicionante\",\n transfer: \"Transferência (desenvolvido em outra árvore)\",\n },\n gates: {\n and: \"Porta E (todas as entradas)\",\n or: \"Porta OU (qualquer entrada)\",\n xor: \"Porta OU exclusivo (exatamente uma entrada)\",\n inhibit: \"Porta de inibição (entrada sob condição)\",\n vote: \"Porta de votação (k de n)\",\n },\n ariaLabel: \"Árvore de falhas\",\n};\n\nexport const FISHBONE_LABELS_PT_BR: FishboneLabels = {\n cause: \"Causa\",\n subCause: \"Subcausa\",\n ariaLabel: \"Diagrama de causa e efeito (Ishikawa)\",\n};\n"]}
|
package/dist/locales/pt-br.d.cts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { c as QualityLexicon } from '../stroke-MQ427drt.cjs';
|
|
2
2
|
import { c as GenogramSvgLabels, d as GenogramTitleLabels, e as KinshipLexicon } from '../kinship-BARO5-qz.cjs';
|
|
3
3
|
import { EcomapLabels } from '../ecomap/index.cjs';
|
|
4
|
+
import { g as FaultTreeSvgLabels, h as FaultTreeTitleLabels } from '../labels-CYbM5XV7.cjs';
|
|
5
|
+
import { FishboneLabels } from '../fishbone/index.cjs';
|
|
4
6
|
|
|
5
7
|
declare const QUALITY_LEXICON_PT_BR: QualityLexicon;
|
|
6
8
|
declare const KINSHIP_PT_BR: KinshipLexicon;
|
|
7
9
|
declare const GENOGRAM_TITLE_LABELS_PT_BR: GenogramTitleLabels;
|
|
8
10
|
declare const GENOGRAM_SVG_LABELS_PT_BR: GenogramSvgLabels;
|
|
9
11
|
declare const ECOMAP_LABELS_PT_BR: EcomapLabels;
|
|
12
|
+
declare const FAULT_TREE_TITLE_LABELS_PT_BR: FaultTreeTitleLabels;
|
|
13
|
+
declare const FAULT_TREE_SVG_LABELS_PT_BR: FaultTreeSvgLabels;
|
|
14
|
+
declare const FISHBONE_LABELS_PT_BR: FishboneLabels;
|
|
10
15
|
|
|
11
|
-
export { ECOMAP_LABELS_PT_BR, GENOGRAM_SVG_LABELS_PT_BR, GENOGRAM_TITLE_LABELS_PT_BR, KINSHIP_PT_BR, QUALITY_LEXICON_PT_BR };
|
|
16
|
+
export { ECOMAP_LABELS_PT_BR, FAULT_TREE_SVG_LABELS_PT_BR, FAULT_TREE_TITLE_LABELS_PT_BR, FISHBONE_LABELS_PT_BR, GENOGRAM_SVG_LABELS_PT_BR, GENOGRAM_TITLE_LABELS_PT_BR, KINSHIP_PT_BR, QUALITY_LEXICON_PT_BR };
|
package/dist/locales/pt-br.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { c as QualityLexicon } from '../stroke-MQ427drt.js';
|
|
2
2
|
import { c as GenogramSvgLabels, d as GenogramTitleLabels, e as KinshipLexicon } from '../kinship-Bkf87Jhu.js';
|
|
3
3
|
import { EcomapLabels } from '../ecomap/index.js';
|
|
4
|
+
import { g as FaultTreeSvgLabels, h as FaultTreeTitleLabels } from '../labels-CYbM5XV7.js';
|
|
5
|
+
import { FishboneLabels } from '../fishbone/index.js';
|
|
4
6
|
|
|
5
7
|
declare const QUALITY_LEXICON_PT_BR: QualityLexicon;
|
|
6
8
|
declare const KINSHIP_PT_BR: KinshipLexicon;
|
|
7
9
|
declare const GENOGRAM_TITLE_LABELS_PT_BR: GenogramTitleLabels;
|
|
8
10
|
declare const GENOGRAM_SVG_LABELS_PT_BR: GenogramSvgLabels;
|
|
9
11
|
declare const ECOMAP_LABELS_PT_BR: EcomapLabels;
|
|
12
|
+
declare const FAULT_TREE_TITLE_LABELS_PT_BR: FaultTreeTitleLabels;
|
|
13
|
+
declare const FAULT_TREE_SVG_LABELS_PT_BR: FaultTreeSvgLabels;
|
|
14
|
+
declare const FISHBONE_LABELS_PT_BR: FishboneLabels;
|
|
10
15
|
|
|
11
|
-
export { ECOMAP_LABELS_PT_BR, GENOGRAM_SVG_LABELS_PT_BR, GENOGRAM_TITLE_LABELS_PT_BR, KINSHIP_PT_BR, QUALITY_LEXICON_PT_BR };
|
|
16
|
+
export { ECOMAP_LABELS_PT_BR, FAULT_TREE_SVG_LABELS_PT_BR, FAULT_TREE_TITLE_LABELS_PT_BR, FISHBONE_LABELS_PT_BR, GENOGRAM_SVG_LABELS_PT_BR, GENOGRAM_TITLE_LABELS_PT_BR, KINSHIP_PT_BR, QUALITY_LEXICON_PT_BR };
|
package/dist/locales/pt-br.js
CHANGED
|
@@ -111,7 +111,40 @@ var ECOMAP_LABELS_PT_BR = {
|
|
|
111
111
|
direction: "Sentido declarado do v\xEDnculo",
|
|
112
112
|
ariaLabel: "Ecomapa"
|
|
113
113
|
};
|
|
114
|
+
var FAULT_TREE_TITLE_LABELS_PT_BR = {
|
|
115
|
+
gates: {
|
|
116
|
+
and: "Porta E",
|
|
117
|
+
or: "Porta OU",
|
|
118
|
+
xor: "Porta OU exclusivo",
|
|
119
|
+
inhibit: "Porta de inibi\xE7\xE3o",
|
|
120
|
+
vote: "Porta de vota\xE7\xE3o"
|
|
121
|
+
},
|
|
122
|
+
condition: "condi\xE7\xE3o"
|
|
123
|
+
};
|
|
124
|
+
var FAULT_TREE_SVG_LABELS_PT_BR = {
|
|
125
|
+
events: {
|
|
126
|
+
intermediate: "Evento intermedi\xE1rio",
|
|
127
|
+
basic: "Evento b\xE1sico",
|
|
128
|
+
undeveloped: "Evento n\xE3o desenvolvido",
|
|
129
|
+
house: "Evento externo (esperado)",
|
|
130
|
+
conditioning: "Evento condicionante",
|
|
131
|
+
transfer: "Transfer\xEAncia (desenvolvido em outra \xE1rvore)"
|
|
132
|
+
},
|
|
133
|
+
gates: {
|
|
134
|
+
and: "Porta E (todas as entradas)",
|
|
135
|
+
or: "Porta OU (qualquer entrada)",
|
|
136
|
+
xor: "Porta OU exclusivo (exatamente uma entrada)",
|
|
137
|
+
inhibit: "Porta de inibi\xE7\xE3o (entrada sob condi\xE7\xE3o)",
|
|
138
|
+
vote: "Porta de vota\xE7\xE3o (k de n)"
|
|
139
|
+
},
|
|
140
|
+
ariaLabel: "\xC1rvore de falhas"
|
|
141
|
+
};
|
|
142
|
+
var FISHBONE_LABELS_PT_BR = {
|
|
143
|
+
cause: "Causa",
|
|
144
|
+
subCause: "Subcausa",
|
|
145
|
+
ariaLabel: "Diagrama de causa e efeito (Ishikawa)"
|
|
146
|
+
};
|
|
114
147
|
|
|
115
|
-
export { ECOMAP_LABELS_PT_BR, GENOGRAM_SVG_LABELS_PT_BR, GENOGRAM_TITLE_LABELS_PT_BR, KINSHIP_PT_BR, QUALITY_LEXICON_PT_BR };
|
|
148
|
+
export { ECOMAP_LABELS_PT_BR, FAULT_TREE_SVG_LABELS_PT_BR, FAULT_TREE_TITLE_LABELS_PT_BR, FISHBONE_LABELS_PT_BR, GENOGRAM_SVG_LABELS_PT_BR, GENOGRAM_TITLE_LABELS_PT_BR, KINSHIP_PT_BR, QUALITY_LEXICON_PT_BR };
|
|
116
149
|
//# sourceMappingURL=pt-br.js.map
|
|
117
150
|
//# sourceMappingURL=pt-br.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/locales/pt-br.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../src/locales/pt-br.ts"],"names":[],"mappings":";AAcO,IAAM,qBAAA,GAAwC;AAAA,EACnD,OAAA,EAAS;AAAA,IACP;AAAA,MACE,KAAA,EAAO,OAAA;AAAA,MACP,OAAA,EAAS,CAAC,QAAA,EAAU,MAAA,EAAQ,UAAU,MAAA,EAAQ,MAAA,EAAQ,MAAA,EAAQ,SAAA,EAAW,UAAU;AAAA,KACrF;AAAA,IACA;AAAA,MACE,KAAA,EAAO,SAAA;AAAA,MACP,SAAS,CAAC,SAAA,EAAW,SAAS,QAAA,EAAU,MAAA,EAAQ,QAAQ,OAAO;AAAA,KACjE;AAAA,IACA;AAAA,MACE,KAAA,EAAO,UAAA;AAAA,MACP,OAAA,EAAS,CAAC,SAAA,EAAW,OAAA,EAAS,MAAA,EAAQ,MAAA,EAAQ,SAAA,EAAW,QAAA,EAAU,QAAA,EAAU,QAAA,EAAU,UAAA,EAAY,WAAW;AAAA,KACh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,IACN,YAAA,EAAc,yBAAA;AAAA,IACd,KAAA,EAAO,kBAAA;AAAA,IACP,WAAA,EAAa,4BAAA;AAAA,IACb,KAAA,EAAO,2BAAA;AAAA,IACP,YAAA,EAAc,sBAAA;AAAA,IACd,QAAA,EAAU;AAAA,GACZ;AAAA,EACA,KAAA,EAAO;AAAA,IACL,GAAA,EAAK,6BAAA;AAAA,IACL,EAAA,EAAI,6BAAA;AAAA,IACJ,GAAA,EAAK,6CAAA;AAAA,IACL,OAAA,EAAS,sDAAA;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AACb;AAEO,IAAM,qBAAA,GAAwC;AAAA,EACnD,KAAA,EAAO,OAAA;AAAA,EACP,QAAA,EAAU,UAAA;AAAA,EACV,SAAA,EAAW;AACb","file":"pt-br.js","sourcesContent":["// Brazilian Portuguese locale pack — lexicons + display vocabularies. Pass these into\n// the genogram/ecomap options to localize both the lexical matchers (quality words,\n// kinship words) and every human-readable string the diagrams emit.\n\nimport type { QualityLexicon } from \"../core\";\nimport type { KinshipLexicon } from \"../genogram/kinship\";\nimport type { GenogramSvgLabels, GenogramTitleLabels } from \"../genogram/labels\";\nimport type { EcomapLabels } from \"../ecomap/render\";\nimport type { FaultTreeSvgLabels, FaultTreeTitleLabels } from \"../fault-tree/labels\";\nimport type { FishboneLabels } from \"../fishbone/render\";\n\n// Needles are diacritic-free, lowercase substrings; the matcher's single-bucket rule\n// keeps competing signals honest. \"sem\" is deliberately NOT a negation: it is a\n// genuine cutoff signal (\"sem contato\").\nexport const QUALITY_LEXICON_PT_BR: QualityLexicon = {\n buckets: [\n {\n style: \"close\",\n needles: [\"proxim\", \"unid\", \"carinh\", \"afet\", \"apeg\", \"amig\", \"harmoni\", \"saudavel\"],\n },\n {\n style: \"distant\",\n needles: [\"distant\", \"afast\", \"ausent\", \"frio\", \"fria\", \"separ\"],\n },\n {\n style: \"conflict\",\n needles: [\"conflit\", \"briga\", \"brig\", \"tens\", \"dificil\", \"hostil\", \"violen\", \"abusiv\", \"agressiv\", \"complicad\"],\n },\n {\n style: \"cutoff\",\n needles: [\"romp\", \"cortad\", \"sem contato\", \"corte\"],\n },\n ],\n negations: [\"nao\", \"nunca\", \"nem\", \"jamais\"],\n};\n\n// Diacritic-free tokens matched WHOLE (\"meio-irmão\" → [\"meio\",\"irmao\"]; \"avó materna\" →\n// [\"avo\",\"materna\"]). Derived kinship is checked first, so \"irmão por parte de pai\"\n// reads as a sibling, never as a parent.\nexport const KINSHIP_PT_BR: KinshipLexicon = {\n derived: new Set([\n \"irmao\", \"irma\", \"irmaos\", \"irmas\", \"mano\", \"mana\", \"manos\", \"manas\",\n \"avo\", \"avos\", \"bisavo\", \"bisava\", \"bisavos\", \"tataravo\",\n \"neto\", \"neta\", \"netos\", \"netas\", \"bisneto\", \"bisneta\", \"bisnetos\", \"bisnetas\",\n \"tio\", \"tia\", \"tios\", \"tias\",\n \"primo\", \"prima\", \"primos\", \"primas\",\n \"sobrinho\", \"sobrinha\", \"sobrinhos\", \"sobrinhas\",\n ]),\n parentage: new Set([\n \"mae\", \"maes\", \"pai\", \"pais\", \"genitor\", \"genitora\", \"genitores\",\n \"filho\", \"filha\", \"filhos\", \"filhas\",\n ]),\n childWords: new Set([\"filho\", \"filha\", \"filhos\", \"filhas\"]),\n};\n\nexport const GENOGRAM_TITLE_LABELS_PT_BR: GenogramTitleLabels = {\n unionStatus: {\n married: \"casados\",\n cohabiting: \"união estável\",\n dating: \"namoro\",\n separated: \"separados\",\n divorced: \"divorciados\",\n coparental: \"co-pais (sem união)\",\n unknown: \"união (tipo não informado)\",\n },\n parentage: \"genitor(a) de\",\n};\n\nexport const GENOGRAM_SVG_LABELS_PT_BR: GenogramSvgLabels = {\n shapes: {\n square: \"Homem\",\n circle: \"Mulher\",\n diamond: \"Sexo não informado\",\n },\n deceased: \"Falecido(a)\",\n bondStyles: {\n close: \"Próximo\",\n distant: \"Distante\",\n conflict: \"Conflituoso\",\n cutoff: \"Rompido (sem contato)\",\n },\n isolated: \"Sem ascendência registrada\",\n ariaLabel: \"Mapa da família (genograma)\",\n};\n\nexport const ECOMAP_LABELS_PT_BR: EcomapLabels = {\n bondStyles: {\n close: \"Próximo\",\n distant: \"Distante\",\n conflict: \"Conflituoso\",\n cutoff: \"Rompido (sem contato)\",\n },\n neutralTie: \"Vínculo declarado\",\n direction: \"Sentido declarado do vínculo\",\n ariaLabel: \"Ecomapa\",\n};\n\nexport const FAULT_TREE_TITLE_LABELS_PT_BR: FaultTreeTitleLabels = {\n gates: {\n and: \"Porta E\",\n or: \"Porta OU\",\n xor: \"Porta OU exclusivo\",\n inhibit: \"Porta de inibição\",\n vote: \"Porta de votação\",\n },\n condition: \"condição\",\n};\n\nexport const FAULT_TREE_SVG_LABELS_PT_BR: FaultTreeSvgLabels = {\n events: {\n intermediate: \"Evento intermediário\",\n basic: \"Evento básico\",\n undeveloped: \"Evento não desenvolvido\",\n house: \"Evento externo (esperado)\",\n conditioning: \"Evento condicionante\",\n transfer: \"Transferência (desenvolvido em outra árvore)\",\n },\n gates: {\n and: \"Porta E (todas as entradas)\",\n or: \"Porta OU (qualquer entrada)\",\n xor: \"Porta OU exclusivo (exatamente uma entrada)\",\n inhibit: \"Porta de inibição (entrada sob condição)\",\n vote: \"Porta de votação (k de n)\",\n },\n ariaLabel: \"Árvore de falhas\",\n};\n\nexport const FISHBONE_LABELS_PT_BR: FishboneLabels = {\n cause: \"Causa\",\n subCause: \"Subcausa\",\n ariaLabel: \"Diagrama de causa e efeito (Ishikawa)\",\n};\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
interface Point {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
/** "M x y L x y …" path data from a polyline. */
|
|
6
|
+
declare function pathData(points: Point[]): string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Conservative per-character advance, as a fraction of the font size. The pure module
|
|
10
|
+
* can't measure real glyphs (no DOM/canvas), so it estimates width = chars * font *
|
|
11
|
+
* CHAR_W. It is deliberately a touch WIDER than Helvetica's ~0.5 average advance: a
|
|
12
|
+
* layout reserves slightly more room than the text needs, so the real render always
|
|
13
|
+
* fits inside its reserved box.
|
|
14
|
+
*/
|
|
15
|
+
declare const CHAR_W = 0.6;
|
|
16
|
+
/** Pure, deterministic width estimate for a single line of text at `fontPx`. */
|
|
17
|
+
declare function estimateTextWidth(text: string, fontPx: number): number;
|
|
18
|
+
/**
|
|
19
|
+
* Wraps a label onto up to `maxLines` lines (default 2) so long labels don't sprawl.
|
|
20
|
+
* Greedy word fill; each line capped at `perLine` chars (…-truncated only if a line
|
|
21
|
+
* still overflows). The LAST allowed line absorbs every remaining word before the cap
|
|
22
|
+
* applies — words are never dropped mid-label, only visibly elided. Pure + shared so
|
|
23
|
+
* every renderer wraps identically. The full text is always kept elsewhere (the
|
|
24
|
+
* node's `label`, an SVG <title>, or a side list), so nothing is silently lost.
|
|
25
|
+
*
|
|
26
|
+
* INVARIANT: with the default `maxLines` the output is byte-identical to the
|
|
27
|
+
* historical two-line implementation (pinned by test/core/text.test.ts) — both
|
|
28
|
+
* shipped renderers wrap through here.
|
|
29
|
+
*/
|
|
30
|
+
declare function wrapLabel(label: string, perLine: number, maxLines?: number): string[];
|
|
31
|
+
/**
|
|
32
|
+
* House "balanced" wrap policy (extracted verbatim from the ecomap's tie-label wrap,
|
|
33
|
+
* itself mirroring the genogram's): per-line budget `min(26, max(14, ceil(len/2)+2))`
|
|
34
|
+
* splits a medium label into two roughly even lines instead of one long + one short,
|
|
35
|
+
* then the greedy `wrapLabel` fill (and its `maxLines` semantics) applies. The shipped
|
|
36
|
+
* renderers keep their local copies for now — new modules consume this one; migrating
|
|
37
|
+
* them is a separate provably-zero-change refactor.
|
|
38
|
+
*/
|
|
39
|
+
declare function wrapLabelBalanced(label: string, maxLines?: number): string[];
|
|
40
|
+
/** Caps a verbatim label for a COMPACT render (preview); full text kept by the caller. */
|
|
41
|
+
declare function clampLabel(label: string, maxChars: number | undefined): string;
|
|
42
|
+
/** Font stack shared by every emitter; PDF embedders typically map it onto Helvetica. */
|
|
43
|
+
declare const FONT_FAMILY = "Helvetica, Arial, sans-serif";
|
|
44
|
+
|
|
45
|
+
export { CHAR_W as C, FONT_FAMILY as F, type Point as P, wrapLabelBalanced as a, clampLabel as c, estimateTextWidth as e, pathData as p, wrapLabel as w };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
interface Point {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
/** "M x y L x y …" path data from a polyline. */
|
|
6
|
+
declare function pathData(points: Point[]): string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Conservative per-character advance, as a fraction of the font size. The pure module
|
|
10
|
+
* can't measure real glyphs (no DOM/canvas), so it estimates width = chars * font *
|
|
11
|
+
* CHAR_W. It is deliberately a touch WIDER than Helvetica's ~0.5 average advance: a
|
|
12
|
+
* layout reserves slightly more room than the text needs, so the real render always
|
|
13
|
+
* fits inside its reserved box.
|
|
14
|
+
*/
|
|
15
|
+
declare const CHAR_W = 0.6;
|
|
16
|
+
/** Pure, deterministic width estimate for a single line of text at `fontPx`. */
|
|
17
|
+
declare function estimateTextWidth(text: string, fontPx: number): number;
|
|
18
|
+
/**
|
|
19
|
+
* Wraps a label onto up to `maxLines` lines (default 2) so long labels don't sprawl.
|
|
20
|
+
* Greedy word fill; each line capped at `perLine` chars (…-truncated only if a line
|
|
21
|
+
* still overflows). The LAST allowed line absorbs every remaining word before the cap
|
|
22
|
+
* applies — words are never dropped mid-label, only visibly elided. Pure + shared so
|
|
23
|
+
* every renderer wraps identically. The full text is always kept elsewhere (the
|
|
24
|
+
* node's `label`, an SVG <title>, or a side list), so nothing is silently lost.
|
|
25
|
+
*
|
|
26
|
+
* INVARIANT: with the default `maxLines` the output is byte-identical to the
|
|
27
|
+
* historical two-line implementation (pinned by test/core/text.test.ts) — both
|
|
28
|
+
* shipped renderers wrap through here.
|
|
29
|
+
*/
|
|
30
|
+
declare function wrapLabel(label: string, perLine: number, maxLines?: number): string[];
|
|
31
|
+
/**
|
|
32
|
+
* House "balanced" wrap policy (extracted verbatim from the ecomap's tie-label wrap,
|
|
33
|
+
* itself mirroring the genogram's): per-line budget `min(26, max(14, ceil(len/2)+2))`
|
|
34
|
+
* splits a medium label into two roughly even lines instead of one long + one short,
|
|
35
|
+
* then the greedy `wrapLabel` fill (and its `maxLines` semantics) applies. The shipped
|
|
36
|
+
* renderers keep their local copies for now — new modules consume this one; migrating
|
|
37
|
+
* them is a separate provably-zero-change refactor.
|
|
38
|
+
*/
|
|
39
|
+
declare function wrapLabelBalanced(label: string, maxLines?: number): string[];
|
|
40
|
+
/** Caps a verbatim label for a COMPACT render (preview); full text kept by the caller. */
|
|
41
|
+
declare function clampLabel(label: string, maxChars: number | undefined): string;
|
|
42
|
+
/** Font stack shared by every emitter; PDF embedders typically map it onto Helvetica. */
|
|
43
|
+
declare const FONT_FAMILY = "Helvetica, Arial, sans-serif";
|
|
44
|
+
|
|
45
|
+
export { CHAR_W as C, FONT_FAMILY as F, type Point as P, wrapLabelBalanced as a, clampLabel as c, estimateTextWidth as e, pathData as p, wrapLabel as w };
|