@formicoidea/labre-framework-cynefin 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/templates/index.js +5 -4
- package/package.json +2 -2
package/dist/templates/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { makeTemplateSnapshot, surfaceText, templateFromCommand, } from '@formicoidea/labre-core/gfx/template';
|
|
2
2
|
import { FontFamily, ShapeStyle, TextAlign } from '@formicoidea/labre-core/model';
|
|
3
|
+
import { NOTATION_NEUTRALS } from '@formicoidea/labre-core/shared/consts';
|
|
3
4
|
import { cynefinEstuarineCommands } from '../commands.js';
|
|
4
5
|
import { HEX_SIZE } from '../estuarine/consts.js';
|
|
5
6
|
import { CYNEFIN_H, CYNEFIN_W, cynefinBackgroundProps, ESTUARINE_MAP_H, ESTUARINE_MAP_W, estuarineHexagonBox, estuarineHexagonProps, estuarineMapProps, MAP_SCALE, } from '../presets.js';
|
|
@@ -37,7 +38,7 @@ function sticky(x, y, text) {
|
|
|
37
38
|
roughness: 0,
|
|
38
39
|
radius: 8,
|
|
39
40
|
text: surfaceText(text),
|
|
40
|
-
color:
|
|
41
|
+
color: NOTATION_NEUTRALS.ink,
|
|
41
42
|
fontFamily: FontFamily.Inter,
|
|
42
43
|
fontSize: 18,
|
|
43
44
|
textAlign: TextAlign.Center,
|
|
@@ -72,7 +73,7 @@ function caption(cx, cy, str) {
|
|
|
72
73
|
return {
|
|
73
74
|
type: 'text',
|
|
74
75
|
text: surfaceText(str),
|
|
75
|
-
color:
|
|
76
|
+
color: NOTATION_NEUTRALS.ink,
|
|
76
77
|
fontFamily: FontFamily.Inter,
|
|
77
78
|
fontSize: 16,
|
|
78
79
|
textAlign: TextAlign.Center,
|
|
@@ -92,7 +93,7 @@ const ATTRS = 'width="100%" height="100%" viewBox="0 0 135 80" xmlns="http://www
|
|
|
92
93
|
export const cynefinTemplateCategory = {
|
|
93
94
|
name: 'Cynefin',
|
|
94
95
|
templates: [
|
|
95
|
-
tpl('Decision sorting', `<svg ${ATTRS} fill="none"><rect x="8" y="10" width="119" height="60" rx="4" stroke="#2a9d99" stroke-width="1.5"/><path d="M67 10 V70 M8 40 H127" stroke="
|
|
96
|
+
tpl('Decision sorting', `<svg ${ATTRS} fill="none"><rect x="8" y="10" width="119" height="60" rx="4" stroke="#2a9d99" stroke-width="1.5"/><path d="M67 10 V70 M8 40 H127" stroke="${NOTATION_NEUTRALS.divider}"/><rect x="18" y="18" width="34" height="14" rx="2" fill="#fff3b0"/><rect x="83" y="18" width="34" height="14" rx="2" fill="#fff3b0"/><rect x="18" y="48" width="34" height="14" rx="2" fill="#fff3b0"/><rect x="83" y="48" width="34" height="14" rx="2" fill="#fff3b0"/></svg>`, {
|
|
96
97
|
bg: cynefinBackgroundProps({
|
|
97
98
|
xywh: `[0,0,${CYNEFIN_W},${CYNEFIN_H}]`,
|
|
98
99
|
}),
|
|
@@ -101,7 +102,7 @@ export const cynefinTemplateCategory = {
|
|
|
101
102
|
s3: sticky(190, 505, 'Act now'),
|
|
102
103
|
s4: sticky(690, 505, 'Known issue'),
|
|
103
104
|
}),
|
|
104
|
-
templateFromCommand(byId('cynefin-estuarine.addCynefin'), `<svg ${ATTRS} fill="none"><rect x="14" y="12" width="107" height="56" rx="4" stroke="#2a9d99" stroke-width="1.6"/><path d="M67 12 V68 M14 40 H121" stroke="
|
|
105
|
+
templateFromCommand(byId('cynefin-estuarine.addCynefin'), `<svg ${ATTRS} fill="none"><rect x="14" y="12" width="107" height="56" rx="4" stroke="#2a9d99" stroke-width="1.6"/><path d="M67 12 V68 M14 40 H121" stroke="${NOTATION_NEUTRALS.divider}"/></svg>`, 'Cynefin framework'),
|
|
105
106
|
],
|
|
106
107
|
};
|
|
107
108
|
export const estuarineTemplateCategory = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-cynefin",
|
|
3
3
|
"description": "Labre cynefin-estuarine 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,7 +31,7 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@formicoidea/labre-core": "0.
|
|
34
|
+
"@formicoidea/labre-core": "0.40.0",
|
|
35
35
|
"@preact/signals-core": "^1.8.0",
|
|
36
36
|
"lit": "^3.2.0"
|
|
37
37
|
}
|