@formicoidea/labre-framework-wardley 0.60.0 → 1.0.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/dist/commands.js +2 -2
- package/dist/dark-palette.d.ts +4 -1
- package/dist/dark-palette.js +7 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +9 -2
- package/dist/interchange-headless.d.ts +32 -6
- package/dist/interchange-headless.js +65 -6
- package/dist/interchange.d.ts +1 -1
- package/dist/interchange.js +8 -3
- package/dist/legend.d.ts +1 -0
- package/dist/legend.js +66 -1
- package/dist/method.d.ts +53 -0
- package/dist/method.js +88 -0
- package/dist/natures.d.ts +64 -2
- package/dist/natures.js +154 -6
- package/dist/node/consts.d.ts +133 -1
- package/dist/node/consts.js +219 -1
- package/dist/node/node-renderer.d.ts +2 -2
- package/dist/node/node-renderer.js +42 -1
- package/dist/renderer-json-export.d.ts +40 -0
- package/dist/renderer-json-export.js +669 -0
- package/dist/renderer-json-import.d.ts +71 -0
- package/dist/renderer-json-import.js +759 -0
- package/dist/renderer-json.d.ts +202 -0
- package/dist/renderer-json.js +366 -0
- package/dist/roles.d.ts +2 -2
- package/dist/roles.js +13 -0
- package/dist/toolbar/node-config.d.ts +0 -23
- package/dist/toolbar/node-config.js +1 -114
- package/dist/translations.js +6 -3
- package/package.json +2 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Wardley board as a `@formicoidea/wardley-map-renderer` JSON map — the
|
|
3
|
+
* inverse of `renderer-json-import.ts` (ADR 0012, amendment of 2026-10-28).
|
|
4
|
+
*
|
|
5
|
+
* ## What it reads: what the canvas shows, and nothing stored
|
|
6
|
+
*
|
|
7
|
+
* No foreign id and no foreign field rides on any element, so this writer
|
|
8
|
+
* reads what is VISIBLE and recognises each piece by what it is:
|
|
9
|
+
*
|
|
10
|
+
* - a component is a Wardley node of a component kind, its type its `kind`,
|
|
11
|
+
* its place its centre on the first map's plot, its nature the
|
|
12
|
+
* `wardley:nature` tag, its colour its stroke, its method the method node's
|
|
13
|
+
* `wardley:method` tag (`methodOf`);
|
|
14
|
+
* - its name, description, step dot and range bar are found in its GROUP
|
|
15
|
+
* first (the reader puts them there), by what they are: the text with the
|
|
16
|
+
* `wardley:label` role, a plain text, a plain ellipse holding a number, a
|
|
17
|
+
* thin plain rect. Ungrouped, each is looked for in its slot;
|
|
18
|
+
* - a climate arrow is a decorator of the component whose slot it sits in; an
|
|
19
|
+
* inertia bar on an evolution arrow is that evolution's inertia; an arrow's
|
|
20
|
+
* label, when it is a renderer evolution type, is its `evolveType`;
|
|
21
|
+
* - a dependency link's colour and width say its relation type, its words
|
|
22
|
+
* the flow's label;
|
|
23
|
+
* - the plain text right above the map is the title, the one right under it
|
|
24
|
+
* the context; the map's own labels and toggles are its `renderConfig`.
|
|
25
|
+
*
|
|
26
|
+
* Ids are Labre's: a component's is the slug of its name (`paiement`,
|
|
27
|
+
* `paiement-2`), a relation's `r1`… What the format has no word for, and a
|
|
28
|
+
* free text or shape nobody claims, is left out with a warning.
|
|
29
|
+
*
|
|
30
|
+
* It needs no editor: it reads stored fields, never `instanceof`, so it runs
|
|
31
|
+
* on live models and stored props alike and lives on `./interchange`.
|
|
32
|
+
*/
|
|
33
|
+
export interface WardleyJsonExportOptions {
|
|
34
|
+
/** The page's title, written when no title text sits above the map. */
|
|
35
|
+
name?: string;
|
|
36
|
+
}
|
|
37
|
+
export declare function exportWardleyRendererJson(input: readonly unknown[], options?: WardleyJsonExportOptions): {
|
|
38
|
+
text: string;
|
|
39
|
+
warnings: string[];
|
|
40
|
+
};
|