@formicoidea/labre-framework-c4 0.39.3 → 0.40.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/consts.d.ts +14 -12
- package/dist/consts.js +15 -12
- package/dist/templates.js +2 -2
- package/package.json +3 -3
package/dist/consts.d.ts
CHANGED
|
@@ -247,23 +247,25 @@ export declare const NODE_SIZE: Record<C4NodeKind, {
|
|
|
247
247
|
*/
|
|
248
248
|
export declare const NODE_LABEL: Record<C4NodeKind, string>;
|
|
249
249
|
export declare const FONT_FAMILY = "Inter, sans-serif";
|
|
250
|
-
/**
|
|
251
|
-
|
|
252
|
-
|
|
250
|
+
/**
|
|
251
|
+
* The card — the same white every framework background paints, framed and
|
|
252
|
+
* titled in the shared notation scale. The board is Labre's furniture, not
|
|
253
|
+
* the stencil's, so its neutrals are the scale's; the stencil greys are kept
|
|
254
|
+
* where the stencil draws them (the boundary, the relationship).
|
|
255
|
+
*/
|
|
256
|
+
export declare const BOARD_CARD_FILL: string;
|
|
257
|
+
export declare const BOARD_CARD_BORDER: string;
|
|
253
258
|
export declare const BOARD_BORDER_WIDTH = 1.5;
|
|
254
259
|
export declare const BOARD_CORNER_RADIUS = 12;
|
|
255
260
|
export declare const BOARD_TITLE_FONT_SIZE = 20;
|
|
256
|
-
export declare const BOARD_TITLE_COLOR
|
|
261
|
+
export declare const BOARD_TITLE_COLOR: string;
|
|
257
262
|
/**
|
|
258
|
-
* The header strip's
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* cannot see is a target they cannot aim at, and it must not read as a second
|
|
263
|
-
* object sitting on the sheet. A hair lighter than the pool's, which is what it
|
|
264
|
-
* takes to stay quiet under a 20-unit title rather than under a 13-unit one.
|
|
263
|
+
* The header strip's fill: plain card white, like the pool's participant band
|
|
264
|
+
* (`POOL_BAND_FILL`), painted at render time. The strip stays visible, and so
|
|
265
|
+
* aimable, through the divider drawn under it in `BOARD_CARD_BORDER`, not
|
|
266
|
+
* through a tint (PO, 11/09/2026: no tinted bands).
|
|
265
267
|
*/
|
|
266
|
-
export declare const BOARD_BAND_FILL
|
|
268
|
+
export declare const BOARD_BAND_FILL: string;
|
|
267
269
|
/**
|
|
268
270
|
* The size a fresh board is created at, and the room its furniture takes.
|
|
269
271
|
*
|
package/dist/consts.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NOTATION_NEUTRALS } from '@formicoidea/labre-core/shared/consts';
|
|
1
2
|
/**
|
|
2
3
|
* Visual constants for the C4 pack.
|
|
3
4
|
*
|
|
@@ -292,23 +293,25 @@ export const NODE_LABEL = {
|
|
|
292
293
|
};
|
|
293
294
|
/* ── The board ─────────────────────────────────────────────────────────── */
|
|
294
295
|
export const FONT_FAMILY = 'Inter, sans-serif';
|
|
295
|
-
/**
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
/**
|
|
297
|
+
* The card — the same white every framework background paints, framed and
|
|
298
|
+
* titled in the shared notation scale. The board is Labre's furniture, not
|
|
299
|
+
* the stencil's, so its neutrals are the scale's; the stencil greys are kept
|
|
300
|
+
* where the stencil draws them (the boundary, the relationship).
|
|
301
|
+
*/
|
|
302
|
+
export const BOARD_CARD_FILL = NOTATION_NEUTRALS.cardFill;
|
|
303
|
+
export const BOARD_CARD_BORDER = NOTATION_NEUTRALS.cardBorder;
|
|
298
304
|
export const BOARD_BORDER_WIDTH = 1.5;
|
|
299
305
|
export const BOARD_CORNER_RADIUS = 12;
|
|
300
306
|
export const BOARD_TITLE_FONT_SIZE = 20;
|
|
301
|
-
export const BOARD_TITLE_COLOR =
|
|
307
|
+
export const BOARD_TITLE_COLOR = NOTATION_NEUTRALS.frameInk;
|
|
302
308
|
/**
|
|
303
|
-
* The header strip's
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
*
|
|
307
|
-
* cannot see is a target they cannot aim at, and it must not read as a second
|
|
308
|
-
* object sitting on the sheet. A hair lighter than the pool's, which is what it
|
|
309
|
-
* takes to stay quiet under a 20-unit title rather than under a 13-unit one.
|
|
309
|
+
* The header strip's fill: plain card white, like the pool's participant band
|
|
310
|
+
* (`POOL_BAND_FILL`), painted at render time. The strip stays visible, and so
|
|
311
|
+
* aimable, through the divider drawn under it in `BOARD_CARD_BORDER`, not
|
|
312
|
+
* through a tint (PO, 11/09/2026: no tinted bands).
|
|
310
313
|
*/
|
|
311
|
-
export const BOARD_BAND_FILL =
|
|
314
|
+
export const BOARD_BAND_FILL = NOTATION_NEUTRALS.cardFill;
|
|
312
315
|
/**
|
|
313
316
|
* The size a fresh board is created at, and the room its furniture takes.
|
|
314
317
|
*
|
package/dist/templates.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { templateFromCommand, } from '@formicoidea/labre-core/gfx/template';
|
|
2
2
|
import { c4Commands } from './commands.js';
|
|
3
|
-
import { BOARD_BAND_FILL, BOARD_CARD_BORDER, BOARD_CARD_FILL, BOUNDARY_STROKE, NODE_PALETTE, } from './consts.js';
|
|
3
|
+
import { BOARD_BAND_FILL, BOARD_CARD_BORDER, BOARD_CARD_FILL, BOARD_TITLE_COLOR, BOUNDARY_STROKE, NODE_PALETTE, RELATIONSHIP_STROKE, } from './consts.js';
|
|
4
4
|
/**
|
|
5
5
|
* The C4 palette — DERIVED from the toolbox, one template per command.
|
|
6
6
|
*
|
|
@@ -47,7 +47,7 @@ const CONTAINER = NODE_PALETTE.container;
|
|
|
47
47
|
export const c4TemplateCategory = {
|
|
48
48
|
name: 'C4',
|
|
49
49
|
templates: [
|
|
50
|
-
templateFromCommand(byId('c4.addBoard'), `<svg ${ATTRS} fill="none"><rect x="10" y="10" width="115" height="60" rx="6" fill="${BOARD_CARD_FILL}" stroke="${BOARD_CARD_BORDER}" stroke-width="1.5"/><path d="M10 26 H125" stroke="${BOARD_CARD_BORDER}" stroke-width="1.5"/><rect x="11" y="11" width="113" height="15" fill="${BOARD_BAND_FILL}"/><rect x="20" y="15" width="40" height="6" rx="3" fill="
|
|
50
|
+
templateFromCommand(byId('c4.addBoard'), `<svg ${ATTRS} fill="none"><rect x="10" y="10" width="115" height="60" rx="6" fill="${BOARD_CARD_FILL}" stroke="${BOARD_CARD_BORDER}" stroke-width="1.5"/><path d="M10 26 H125" stroke="${BOARD_CARD_BORDER}" stroke-width="1.5"/><rect x="11" y="11" width="113" height="15" fill="${BOARD_BAND_FILL}"/><rect x="20" y="15" width="40" height="6" rx="3" fill="${BOARD_TITLE_COLOR}" opacity="0.55"/><rect x="22" y="36" width="34" height="20" rx="2" fill="${NODE_PALETTE.system.fill}"/><rect x="79" y="36" width="34" height="20" rx="2" fill="${CONTAINER.fill}"/><path d="M58 46 H75" stroke="${RELATIONSHIP_STROKE}" stroke-width="1.6" stroke-dasharray="4 3"/></svg>`),
|
|
51
51
|
templateFromCommand(byId('c4.addPerson'), personPreview('person')),
|
|
52
52
|
templateFromCommand(byId('c4.addPersonExt'), personPreview('person-ext')),
|
|
53
53
|
templateFromCommand(byId('c4.addSystem'), boxPreview('system')),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-c4",
|
|
3
3
|
"description": "Labre c4 framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.40.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@formicoidea/labre-core": "0.
|
|
35
|
-
"@formicoidea/labre-ddd-shared": "0.
|
|
34
|
+
"@formicoidea/labre-core": "0.40.0",
|
|
35
|
+
"@formicoidea/labre-ddd-shared": "0.40.0",
|
|
36
36
|
"lit": "^3.2.0"
|
|
37
37
|
}
|
|
38
38
|
}
|