@miragon/context-maps-renderer 0.6.0 → 0.6.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 (36) hide show
  1. package/README.md +46 -24
  2. package/dist/connect-handles/CmConnectHandles.d.ts +3 -1
  3. package/dist/connect-handles/CmConnectHandles.d.ts.map +1 -1
  4. package/dist/context-maps.css +1 -1
  5. package/dist/context-pad/CmContextPadProvider.d.ts +4 -2
  6. package/dist/context-pad/CmContextPadProvider.d.ts.map +1 -1
  7. package/dist/draw/ContextMapsRenderer.d.ts +5 -3
  8. package/dist/draw/ContextMapsRenderer.d.ts.map +1 -1
  9. package/dist/draw/contextColours.d.ts +22 -0
  10. package/dist/draw/contextColours.d.ts.map +1 -0
  11. package/dist/draw/contextLayout.d.ts +1 -1
  12. package/dist/draw/contextLayout.d.ts.map +1 -1
  13. package/dist/draw/lucide.d.ts +10 -3
  14. package/dist/draw/lucide.d.ts.map +1 -1
  15. package/dist/draw/markup.d.ts +20 -0
  16. package/dist/draw/markup.d.ts.map +1 -0
  17. package/dist/draw/palette-icons.d.ts +4 -1
  18. package/dist/draw/palette-icons.d.ts.map +1 -1
  19. package/dist/draw/relationshipColours.d.ts +17 -0
  20. package/dist/draw/relationshipColours.d.ts.map +1 -0
  21. package/dist/draw/styles.d.ts +12 -6
  22. package/dist/draw/styles.d.ts.map +1 -1
  23. package/dist/draw/subdomainGlyphs.d.ts +12 -0
  24. package/dist/draw/subdomainGlyphs.d.ts.map +1 -0
  25. package/dist/index.js +741 -595
  26. package/dist/index.js.map +1 -1
  27. package/dist/keyboard/CmKeyboard.d.ts.map +1 -1
  28. package/dist/keyboard/canvasFocus.d.ts +11 -0
  29. package/dist/keyboard/canvasFocus.d.ts.map +1 -0
  30. package/dist/keyboard/index.d.ts +1 -1
  31. package/dist/keyboard/index.d.ts.map +1 -1
  32. package/dist/label-editing/CmLabelEditing.d.ts.map +1 -1
  33. package/dist/palette/CmPaletteProvider.d.ts.map +1 -1
  34. package/dist/theme/palette.d.ts +4 -0
  35. package/dist/theme/palette.d.ts.map +1 -1
  36. package/package.json +7 -7
@@ -0,0 +1,17 @@
1
+ import { RelationshipPatternSpec } from '@miragon/context-maps-schema-model';
2
+ /** The fill of an integration-role chip (OHS, PL, ACL, CF) or of any other marker token. */
3
+ export declare function markFill(token: string): string;
4
+ /** A marker's text is schwarz or weiss, whichever has more contrast on its fill (guide §10.6). */
5
+ export declare function markTextColour(token: string): string;
6
+ /** The direction letter (U, D, S, C) at a relationship end, drawn on a paper halo. */
7
+ export declare function directionLetterColour(direction: string): string;
8
+ /**
9
+ * The chip a symmetric pattern (P, SK, SW) carries mid-line: schwarz on paper, because the lighter
10
+ * pattern strokes stay below 4.5:1 as text, edged in the pattern's stroke as its colour cue.
11
+ */
12
+ export declare function patternChipColours(spec: Pick<RelationshipPatternSpec, "stroke">): {
13
+ fill: string;
14
+ text: string;
15
+ border: string;
16
+ };
17
+ //# sourceMappingURL=relationshipColours.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"relationshipColours.d.ts","sourceRoot":"","sources":["../../src/draw/relationshipColours.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAS/F,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,sFAAsF;AACtF,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,uBAAuB,EAAE,QAAQ,CAAC,GAAG;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAEA"}
@@ -1,12 +1,15 @@
1
- /** Shared rendering constants (typography, accent, priorities) — Miragon corporate identity.
1
+ /**
2
+ * Shared rendering constants (typography, accent, priorities) — Miragon corporate identity.
2
3
  * Colours are derived from the single source of truth in `theme/palette.ts` (`MIRAGON`), which
3
- * mirrors the vendored `--cd-*` brand tokens. */
4
+ * mirrors the vendored `--cd-*` brand tokens.
5
+ */
4
6
  /** BaseRenderer default priority is 1000; 1500 wins the render.shape/connection event. */
5
7
  export declare const TT_RENDER_PRIORITY = 1500;
6
8
  /** Selection / hover accent (Miragon blue — kept in sync with the app theme via the shared palette). */
7
9
  export declare const ACCENT: "#335DE5";
8
10
  export declare const INK: "#1D1D1D";
9
- export declare const INK_SOFT = "#5B5B5B";
11
+ /** Secondary text (the team caption): at least 4.5:1 on white, grau and every subdomain fill. */
12
+ export declare const INK_SOFT: "#6B6666";
10
13
  export declare const FONT: {
11
14
  /**
12
15
  * Set directly as the `font-family` attribute on every SVG <text> (canvas
@@ -30,7 +33,10 @@ export declare const CONTEXT_NAME_TOP = 36;
30
33
  export declare const CONTEXT_TEAM_RESERVE = 18;
31
34
  /** Paper colour used for the label halo so text stays legible over lines. */
32
35
  export declare const PAPER: "#FFFFFF";
33
- /** Box colours for contexts without a subdomain classification (canvas + icons). */
34
- export declare const NEUTRAL_FILL = "#F1F1EE";
35
- export declare const NEUTRAL_STROKE = "#8A8577";
36
+ /**
37
+ * Box colours for contexts without a subdomain classification (canvas + icons): the element fill
38
+ * of guide §10.1 and a contour that keeps 3:1 against the canvas around it.
39
+ */
40
+ export declare const NEUTRAL_FILL: "#FFFFFF";
41
+ export declare const NEUTRAL_STROKE: "#8F8A8A";
36
42
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/draw/styles.ts"],"names":[],"mappings":"AAAA;;kDAEkD;AAIlD,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC,wGAAwG;AACxG,eAAO,MAAM,MAAM,WAAe,CAAC;AAEnC,eAAO,MAAM,GAAG,WAAkB,CAAC;AACnC,eAAO,MAAM,QAAQ,YAAY,CAAC;AAElC,eAAO,MAAM,IAAI;IACf;;;;;;;OAOG;;;;CAKK,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,6EAA6E;AAC7E,eAAO,MAAM,KAAK,WAAgB,CAAC;AAEnC,oFAAoF;AACpF,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/draw/styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,OAAO,CAAC;AAEvC,wGAAwG;AACxG,eAAO,MAAM,MAAM,WAAe,CAAC;AAEnC,eAAO,MAAM,GAAG,WAAkB,CAAC;AACnC,iGAAiG;AACjG,eAAO,MAAM,QAAQ,WAAoB,CAAC;AAE1C,eAAO,MAAM,IAAI;IACf;;;;;;;OAOG;;;;CAKK,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,6EAA6E;AAC7E,eAAO,MAAM,KAAK,WAAgB,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,YAAY,WAAgB,CAAC;AAC1C,eAAO,MAAM,cAAc,WAAiB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /*! @miragon/context-maps-renderer notation glyphs
2
+ * Material Icons star and pan_tool @license Apache-2.0
3
+ * Copyright Google LLC */
4
+ /**
5
+ * Kaiser's subdomain glyphs on a 24×24 viewBox: a filled star for a core domain, an open hand for a
6
+ * supporting subdomain (a generic subdomain draws a dotted circle). They are notation, not function
7
+ * icons, so they keep their filled shapes instead of Lucide outlines (guide §3.6, §11). The paths are
8
+ * Material Icons `star` and `pan_tool`.
9
+ */
10
+ export declare const STAR_PATH = "M12 2l2.9 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 7.1-1.01z";
11
+ export declare const HAND_PATH = "M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z";
12
+ //# sourceMappingURL=subdomainGlyphs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subdomainGlyphs.d.ts","sourceRoot":"","sources":["../../src/draw/subdomainGlyphs.ts"],"names":[],"mappings":"AAAA;;0BAE0B;AAE1B;;;;;GAKG;AACH,eAAO,MAAM,SAAS,uFACgE,CAAC;AACvF,eAAO,MAAM,SAAS,oUAC6S,CAAC"}