@formicoidea/labre-framework-ddd-core-domain 0.39.1 → 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/commands.js +3 -2
- package/dist/core-domain/background.js +6 -4
- package/dist/templates.js +4 -3
- package/package.json +3 -3
package/dist/commands.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { addDot, addMarker, CD_SUBDOMAINS, MOVEMENT_COLOR, placeDddElement, TEAM_TOPOLOGIES, } from '@formicoidea/labre-ddd-shared';
|
|
2
|
+
import { NOTATION_NEUTRALS } from '@formicoidea/labre-core/shared/consts';
|
|
2
3
|
import { svg } from 'lit';
|
|
3
4
|
import { activateMovement, createCoreDomainChart } from './actions.js';
|
|
4
5
|
import { markerRole, subdomainRole } from './roles.js';
|
|
@@ -9,9 +10,9 @@ import { markerRole, subdomainRole } from './roles.js';
|
|
|
9
10
|
* config) — the element toolbar is out of scope for `docs/adr/0008`.
|
|
10
11
|
*/
|
|
11
12
|
const chartSwatch = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none"><rect x="4" y="3" width="17" height="17" fill="#4d9900" fill-opacity="0.5"/><rect x="4" y="3" width="6" height="17" fill="#9933ff" fill-opacity="0.5"/><path d="M4 20 V3 M4 20 H21" stroke="currentColor" stroke-width="1.8"/></svg>`;
|
|
12
|
-
const dotSwatch = (color) => svg `<svg width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="7" fill="${color}" stroke="
|
|
13
|
+
const dotSwatch = (color) => svg `<svg width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="7" fill="${color}" stroke="${NOTATION_NEUTRALS.ink}" stroke-width="1.2"/></svg>`;
|
|
13
14
|
const movementSwatch = svg `<svg width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M3 18 L16 7" stroke="${MOVEMENT_COLOR}" stroke-width="2" stroke-dasharray="3 3"/><path d="M12 6 L18 5 L17 11" stroke="${MOVEMENT_COLOR}" stroke-width="2" fill="none"/></svg>`;
|
|
14
|
-
const markerSwatch = (fill, letter) => svg `<svg width="24" height="24" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3" fill="${fill}" stroke="
|
|
15
|
+
const markerSwatch = (fill, letter) => svg `<svg width="24" height="24" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="3" fill="${fill}" stroke="${NOTATION_NEUTRALS.ink}" stroke-width="1.2"/><text x="12" y="16" text-anchor="middle" font-size="11" font-family="sans-serif" fill="${NOTATION_NEUTRALS.ink}">${letter}</text></svg>`;
|
|
15
16
|
const SPECS = [
|
|
16
17
|
{
|
|
17
18
|
id: 'addChart',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CD_SUBDOMAINS, FONT_FAMILY } from '@formicoidea/labre-ddd-shared';
|
|
2
|
+
import { NOTATION_NEUTRALS } from '@formicoidea/labre-core/shared/consts';
|
|
2
3
|
import { CORE_DOMAIN_ROLE } from '../roles.js';
|
|
3
4
|
/**
|
|
4
5
|
* The Core Domain Chart background, DECLARED.
|
|
@@ -57,13 +58,14 @@ const rh = (h) => h / PLOT.height;
|
|
|
57
58
|
* verbatim, so eight-digit hex is how a translucent band is declared.
|
|
58
59
|
*/
|
|
59
60
|
const PALETTE = {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
/** The frame, its titles and its ticks: the shared notation scale's. */
|
|
62
|
+
axis: NOTATION_NEUTRALS.frameInk,
|
|
63
|
+
title: NOTATION_NEUTRALS.frameInk,
|
|
64
|
+
tick: NOTATION_NEUTRALS.label,
|
|
63
65
|
/** Zone names of the classic reading: white, over saturated bands. */
|
|
64
66
|
zoneLabel: '#ffffff',
|
|
65
67
|
/** Zone names of the migration reading: ink, over pale tints. */
|
|
66
|
-
zoneLabelDark:
|
|
68
|
+
zoneLabelDark: NOTATION_NEUTRALS.ink,
|
|
67
69
|
zoneGeneric: '#b3b3b399',
|
|
68
70
|
zoneSupporting: '#9933ff99',
|
|
69
71
|
zoneCore: '#4d990099',
|
package/dist/templates.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CD_SUBDOMAINS, TEAM_TOPOLOGIES } from '@formicoidea/labre-ddd-shared';
|
|
2
2
|
import { templateFromCommand, } from '@formicoidea/labre-core/gfx/template';
|
|
3
|
+
import { NOTATION_NEUTRALS } from '@formicoidea/labre-core/shared/consts';
|
|
3
4
|
import { coreDomainCommands } from './commands.js';
|
|
4
5
|
/**
|
|
5
6
|
* The Core Domain Chart palette — DERIVED from the toolbox, one template per
|
|
@@ -24,9 +25,9 @@ function byLabel(label) {
|
|
|
24
25
|
return command;
|
|
25
26
|
}
|
|
26
27
|
const ATTRS = 'width="100%" height="100%" viewBox="0 0 135 80" xmlns="http://www.w3.org/2000/svg"';
|
|
27
|
-
const circ = (c) => `<svg ${ATTRS}><circle cx="68" cy="40" r="22" fill="${c}" stroke="
|
|
28
|
-
const mk = (c, l) => `<svg ${ATTRS}><rect x="48" y="20" width="40" height="40" rx="5" fill="${c}" stroke="
|
|
29
|
-
const CHART_PREVIEW = `<svg ${ATTRS} fill="none"><rect x="10" y="6" width="115" height="62" fill="#4d9900" fill-opacity="0.5"/><rect x="10" y="6" width="22" height="62" fill="#9933ff" fill-opacity="0.5"/><path d="M10 68 V6 M10 68 H125" stroke="
|
|
28
|
+
const circ = (c) => `<svg ${ATTRS}><circle cx="68" cy="40" r="22" fill="${c}" stroke="${NOTATION_NEUTRALS.ink}" stroke-width="1.5"/></svg>`;
|
|
29
|
+
const mk = (c, l) => `<svg ${ATTRS}><rect x="48" y="20" width="40" height="40" rx="5" fill="${c}" stroke="${NOTATION_NEUTRALS.ink}" stroke-width="1.5"/><text x="68" y="47" text-anchor="middle" font-size="20" fill="${NOTATION_NEUTRALS.ink}">${l}</text></svg>`;
|
|
30
|
+
const CHART_PREVIEW = `<svg ${ATTRS} fill="none"><rect x="10" y="6" width="115" height="62" fill="#4d9900" fill-opacity="0.5"/><rect x="10" y="6" width="22" height="62" fill="#9933ff" fill-opacity="0.5"/><path d="M10 68 V6 M10 68 H125" stroke="${NOTATION_NEUTRALS.frameInk}" stroke-width="1.6"/></svg>`;
|
|
30
31
|
export const coreDomainTemplateCategory = {
|
|
31
32
|
name: 'Core Domain Chart',
|
|
32
33
|
templates: [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-ddd-core-domain",
|
|
3
3
|
"description": "Labre ddd-core-domain 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
|
}
|