@visualli/core 0.1.6 → 0.2.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/README.md +37 -105
- package/dist/chunk-25AJTPMS.js +68 -0
- package/dist/chunk-25AJTPMS.js.map +1 -0
- package/dist/{chunk-6NXADJK2.js → chunk-7NJWM7ZE.js} +84 -117
- package/dist/chunk-7NJWM7ZE.js.map +1 -0
- package/dist/chunk-KVSM3APM.js +96 -0
- package/dist/chunk-KVSM3APM.js.map +1 -0
- package/dist/{chunk-PDP5CVUL.js → chunk-LOQLNYB3.js} +2 -2
- package/dist/chunk-LV3EXUQY.js +753 -0
- package/dist/chunk-LV3EXUQY.js.map +1 -0
- package/dist/chunk-N7HCYULH.js +12 -0
- package/dist/chunk-N7HCYULH.js.map +1 -0
- package/dist/{chunk-I75TMOE4.js → chunk-P6PKWVYF.js} +2 -2
- package/dist/chunk-TPLJJKAU.js +151 -0
- package/dist/chunk-TPLJJKAU.js.map +1 -0
- package/dist/chunk-UAMEJG2C.js +267 -0
- package/dist/chunk-UAMEJG2C.js.map +1 -0
- package/dist/{chunk-LJYSKSCE.js → chunk-W2CAOOJJ.js} +6 -6
- package/dist/chunk-W2CAOOJJ.js.map +1 -0
- package/dist/config/index.cjs +250 -349
- package/dist/config/index.cjs.map +1 -1
- package/dist/config/index.d.cts +107 -66
- package/dist/config/index.d.ts +107 -66
- package/dist/config/index.js +52 -34
- package/dist/constants/index.cjs +14 -333
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +5 -243
- package/dist/constants/index.d.ts +5 -243
- package/dist/constants/index.js +5 -75
- package/dist/designSystem-BOrZHfEq.d.cts +150 -0
- package/dist/designSystem-BOrZHfEq.d.ts +150 -0
- package/dist/document-BFBwn93X.d.ts +26 -0
- package/dist/document-MEJEfxl3.d.cts +26 -0
- package/dist/ideaSize-CLDKeyqD.d.cts +11 -0
- package/dist/ideaSize-DxxGy2E8.d.ts +11 -0
- package/dist/index-BmILeKj6.d.cts +99 -0
- package/dist/index-CcPRwVUL.d.ts +99 -0
- package/dist/index.cjs +1636 -961
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +350 -27
- package/dist/index.d.ts +350 -27
- package/dist/index.js +445 -190
- package/dist/index.js.map +1 -1
- package/dist/{document-B3hnNr-F.d.cts → layer-B2A3Ki48.d.cts} +2 -16
- package/dist/{document-B3hnNr-F.d.ts → layer-B2A3Ki48.d.ts} +2 -16
- package/dist/layout/index.d.cts +2 -1
- package/dist/layout/index.d.ts +2 -1
- package/dist/mindmap-C3Qr0qKW.d.cts +182 -0
- package/dist/mindmap-DHeVa86G.d.ts +182 -0
- package/dist/parser/index.cjs +745 -179
- package/dist/parser/index.cjs.map +1 -1
- package/dist/parser/index.d.cts +23 -8
- package/dist/parser/index.d.ts +23 -8
- package/dist/parser/index.js +7 -2
- package/dist/performance/index.cjs +13 -0
- package/dist/performance/index.cjs.map +1 -1
- package/dist/performance/index.js +2 -2
- package/dist/theme/index.cjs +884 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.d.cts +2 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.js +53 -0
- package/dist/types/index.d.cts +4 -2
- package/dist/types/index.d.ts +4 -2
- package/dist/viewport/index.cjs +17 -6
- package/dist/viewport/index.cjs.map +1 -1
- package/dist/viewport/index.d.cts +6 -4
- package/dist/viewport/index.d.ts +6 -4
- package/dist/viewport/index.js +2 -2
- package/licenses/visualli-design-system/LICENSE +9 -0
- package/licenses/visualli-design-system/NOTICE.md +6 -0
- package/package.json +13 -5
- package/src/config/README.md +2 -4
- package/src/config/USAGE_EXAMPLES.md +0 -4
- package/src/config/index.ts +3 -4
- package/src/constants/index.ts +1 -1
- package/src/constants/layout.ts +11 -0
- package/src/constants/performanceConstants.ts +8 -27
- package/src/generated/README.md +12 -0
- package/src/generated/designSystem.ts +758 -0
- package/src/generated/geometry/blob.ts +99 -0
- package/src/generated/geometry/blobShapes.ts +4 -0
- package/src/generated/geometry/color.ts +37 -0
- package/src/generated/geometry/container.ts +84 -0
- package/src/generated/geometry/detail.ts +22 -0
- package/src/generated/geometry/idea.ts +56 -0
- package/src/generated/geometry/interaction.ts +122 -0
- package/src/generated/geometry/motion.ts +140 -0
- package/src/index.ts +18 -1
- package/src/parser/configUtils.ts +12 -19
- package/src/parser/visualliConverter.ts +71 -112
- package/src/parser/visualliParser.ts +16 -1
- package/src/rendering/culling.ts +16 -12
- package/src/rendering/ideaSize.ts +21 -0
- package/src/rendering/nodeGeometry.ts +97 -0
- package/src/theme/index.ts +136 -0
- package/src/types/document.ts +9 -0
- package/src/types/layer.ts +1 -1
- package/src/types/mindmap.ts +13 -0
- package/src/utils/navigation.ts +33 -63
- package/src/viewport/viewportUtils.ts +6 -4
- package/dist/animations/index.cjs +0 -146
- package/dist/animations/index.cjs.map +0 -1
- package/dist/animations/index.d.cts +0 -81
- package/dist/animations/index.d.ts +0 -81
- package/dist/animations/index.js +0 -35
- package/dist/chunk-6NXADJK2.js.map +0 -1
- package/dist/chunk-F36SMC3K.js +0 -106
- package/dist/chunk-F36SMC3K.js.map +0 -1
- package/dist/chunk-G5H3P4YZ.js +0 -273
- package/dist/chunk-G5H3P4YZ.js.map +0 -1
- package/dist/chunk-LDJRGT2Q.js +0 -163
- package/dist/chunk-LDJRGT2Q.js.map +0 -1
- package/dist/chunk-LJYSKSCE.js.map +0 -1
- package/dist/chunk-LNTJTDB2.js +0 -349
- package/dist/chunk-LNTJTDB2.js.map +0 -1
- package/dist/mindmap-DWS0WZT_.d.cts +0 -118
- package/dist/mindmap-DWS0WZT_.d.ts +0 -118
- package/src/animations/constants.ts +0 -72
- package/src/animations/easing.ts +0 -70
- package/src/animations/index.ts +0 -2
- package/src/config/blobShapes.ts +0 -146
- package/src/config/textScaling.ts +0 -54
- package/src/constants/design.ts +0 -281
- /package/dist/{chunk-PDP5CVUL.js.map → chunk-LOQLNYB3.js.map} +0 -0
- /package/dist/{chunk-I75TMOE4.js.map → chunk-P6PKWVYF.js.map} +0 -0
- /package/dist/{animations → theme}/index.js.map +0 -0
|
@@ -0,0 +1,884 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/theme/index.ts
|
|
21
|
+
var theme_exports = {};
|
|
22
|
+
__export(theme_exports, {
|
|
23
|
+
CANVAS_STYLE: () => CANVAS_STYLE,
|
|
24
|
+
DESIGN_SYSTEM_VERSION: () => DESIGN_SYSTEM_VERSION,
|
|
25
|
+
METRICS: () => METRICS,
|
|
26
|
+
METRICS_REDUCED_MOTION: () => METRICS_REDUCED_MOTION,
|
|
27
|
+
THEME_NAMES: () => THEME_NAMES,
|
|
28
|
+
TOKENS: () => TOKENS,
|
|
29
|
+
TOPICS: () => TOPICS,
|
|
30
|
+
TYPE_STYLES: () => TYPE_STYLES,
|
|
31
|
+
customColor: () => customColor,
|
|
32
|
+
getTokens: () => getTokens,
|
|
33
|
+
ideaColor: () => ideaColor,
|
|
34
|
+
ideaStyle: () => ideaStyle,
|
|
35
|
+
isContrastTheme: () => isContrastTheme,
|
|
36
|
+
isDarkTheme: () => isDarkTheme,
|
|
37
|
+
isFocusTheme: () => isFocusTheme,
|
|
38
|
+
isThemeName: () => isThemeName,
|
|
39
|
+
labelScale: () => labelScale,
|
|
40
|
+
metricsFor: () => metricsFor,
|
|
41
|
+
resolveComfort: () => resolveComfort,
|
|
42
|
+
resolveTheme: () => resolveTheme,
|
|
43
|
+
token: () => token,
|
|
44
|
+
topicFromName: () => topicFromName,
|
|
45
|
+
topicStyle: () => topicStyle
|
|
46
|
+
});
|
|
47
|
+
module.exports = __toCommonJS(theme_exports);
|
|
48
|
+
|
|
49
|
+
// src/generated/designSystem.ts
|
|
50
|
+
var DESIGN_SYSTEM_VERSION = "0.2.0";
|
|
51
|
+
var THEME_NAMES = [
|
|
52
|
+
"light",
|
|
53
|
+
"dark",
|
|
54
|
+
"focus-light",
|
|
55
|
+
"focus-dark",
|
|
56
|
+
"colorsafe-light",
|
|
57
|
+
"colorsafe-dark",
|
|
58
|
+
"contrast-light",
|
|
59
|
+
"contrast-dark"
|
|
60
|
+
];
|
|
61
|
+
var TOKENS = {
|
|
62
|
+
"light": {
|
|
63
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
64
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
65
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
66
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
67
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
68
|
+
"canvas": "#f6f3ee",
|
|
69
|
+
"surface": "#ffffff",
|
|
70
|
+
"surface-sunken": "#f0ece5",
|
|
71
|
+
"surface-overlay": "#ffffff",
|
|
72
|
+
"line": "#e4dfd6",
|
|
73
|
+
"line-strong": "#7a7f94",
|
|
74
|
+
"ink": "#182140",
|
|
75
|
+
"ink-muted": "#4f5671",
|
|
76
|
+
"ink-subtle": "#5f647c",
|
|
77
|
+
"action": "#182140",
|
|
78
|
+
"on-action": "#ffffff",
|
|
79
|
+
"focus": "#325e8c",
|
|
80
|
+
"link": "#2f5a87",
|
|
81
|
+
"selection": "rgba(18, 199, 211, 0.28)",
|
|
82
|
+
"node-ink": "#182140",
|
|
83
|
+
"edge": "#2a3048",
|
|
84
|
+
"edge-label": "#4f5671",
|
|
85
|
+
"topic-teal": "#87f2f8",
|
|
86
|
+
"topic-teal-ring": "#00cdd5",
|
|
87
|
+
"topic-harbor": "#bcdbff",
|
|
88
|
+
"topic-harbor-ring": "#76b2f5",
|
|
89
|
+
"topic-iris": "#e0c8fe",
|
|
90
|
+
"topic-iris-ring": "#bd96ea",
|
|
91
|
+
"topic-berry": "#ffbdc4",
|
|
92
|
+
"topic-berry-ring": "#f47e8f",
|
|
93
|
+
"topic-coral": "#ffc7b2",
|
|
94
|
+
"topic-coral-ring": "#f38e65",
|
|
95
|
+
"topic-amber": "#ffcf9d",
|
|
96
|
+
"topic-amber-ring": "#eb9c38",
|
|
97
|
+
"topic-sun": "#ffea94",
|
|
98
|
+
"topic-sun-ring": "#dfbd04",
|
|
99
|
+
"topic-stone": "#e0dacf",
|
|
100
|
+
"topic-stone-ring": "#bab09f",
|
|
101
|
+
"space-1": "4px",
|
|
102
|
+
"space-2": "8px",
|
|
103
|
+
"space-3": "12px",
|
|
104
|
+
"space-4": "16px",
|
|
105
|
+
"space-7": "48px",
|
|
106
|
+
"radius-sm": "10px",
|
|
107
|
+
"radius-md": "16px",
|
|
108
|
+
"radius-lg": "24px",
|
|
109
|
+
"radius-pill": "999px",
|
|
110
|
+
"shadow-float": "0 1px 2px rgba(24, 33, 64, 0.06), 0 8px 24px rgba(24, 33, 64, 0.08)",
|
|
111
|
+
"shadow-pop": "0 2px 4px rgba(24, 33, 64, 0.08), 0 16px 40px rgba(24, 33, 64, 0.14)",
|
|
112
|
+
"node-width": "200px",
|
|
113
|
+
"node-height": "148px",
|
|
114
|
+
"node-stroke": "3px",
|
|
115
|
+
"edge-width": "2.5px",
|
|
116
|
+
"edge-gap": "15px",
|
|
117
|
+
"edge-arc-max": "45px",
|
|
118
|
+
"immersion-alpha": "0.15",
|
|
119
|
+
"zoom-min": "0.3",
|
|
120
|
+
"zoom-max": "5",
|
|
121
|
+
"duration-instant": "100ms",
|
|
122
|
+
"duration-quick": "160ms",
|
|
123
|
+
"duration-base": "240ms",
|
|
124
|
+
"duration-zoom": "500ms",
|
|
125
|
+
"duration-reveal": "420ms",
|
|
126
|
+
"stagger-reveal": "70ms",
|
|
127
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
128
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
129
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
130
|
+
"z-chrome": "10",
|
|
131
|
+
"z-card": "20",
|
|
132
|
+
"z-menu": "40"
|
|
133
|
+
},
|
|
134
|
+
"dark": {
|
|
135
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
136
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
137
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
138
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
139
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
140
|
+
"canvas": "#0f1220",
|
|
141
|
+
"surface": "#171b2b",
|
|
142
|
+
"surface-sunken": "#0f1220",
|
|
143
|
+
"surface-overlay": "#212639",
|
|
144
|
+
"line": "#2b3148",
|
|
145
|
+
"line-strong": "#6c7392",
|
|
146
|
+
"ink": "#eef0f7",
|
|
147
|
+
"ink-muted": "#b3b8cc",
|
|
148
|
+
"ink-subtle": "#8f95ae",
|
|
149
|
+
"action": "#f6f3ee",
|
|
150
|
+
"on-action": "#182140",
|
|
151
|
+
"focus": "#12c7d3",
|
|
152
|
+
"link": "#5fd8e1",
|
|
153
|
+
"selection": "rgba(18, 199, 211, 0.32)",
|
|
154
|
+
"node-ink": "#182140",
|
|
155
|
+
"edge": "#c9cddc",
|
|
156
|
+
"edge-label": "#b3b8cc",
|
|
157
|
+
"topic-teal": "#87f2f8",
|
|
158
|
+
"topic-teal-ring": "#0fc5cd",
|
|
159
|
+
"topic-harbor": "#bcdbff",
|
|
160
|
+
"topic-harbor-ring": "#73aceb",
|
|
161
|
+
"topic-iris": "#e0c8fe",
|
|
162
|
+
"topic-iris-ring": "#b691e1",
|
|
163
|
+
"topic-berry": "#ffbdc4",
|
|
164
|
+
"topic-berry-ring": "#eb798a",
|
|
165
|
+
"topic-coral": "#ffc7b2",
|
|
166
|
+
"topic-coral-ring": "#ea8962",
|
|
167
|
+
"topic-amber": "#ffcf9d",
|
|
168
|
+
"topic-amber-ring": "#e29737",
|
|
169
|
+
"topic-sun": "#ffea94",
|
|
170
|
+
"topic-sun-ring": "#d8b70a",
|
|
171
|
+
"topic-stone": "#e0dacf",
|
|
172
|
+
"topic-stone-ring": "#b4a999",
|
|
173
|
+
"space-1": "4px",
|
|
174
|
+
"space-2": "8px",
|
|
175
|
+
"space-3": "12px",
|
|
176
|
+
"space-4": "16px",
|
|
177
|
+
"space-7": "48px",
|
|
178
|
+
"radius-sm": "10px",
|
|
179
|
+
"radius-md": "16px",
|
|
180
|
+
"radius-lg": "24px",
|
|
181
|
+
"radius-pill": "999px",
|
|
182
|
+
"shadow-float": "0 1px 2px rgba(0, 0, 0, 0.40), 0 8px 24px rgba(0, 0, 0, 0.35)",
|
|
183
|
+
"shadow-pop": "0 2px 4px rgba(0, 0, 0, 0.50), 0 16px 40px rgba(0, 0, 0, 0.50)",
|
|
184
|
+
"node-width": "200px",
|
|
185
|
+
"node-height": "148px",
|
|
186
|
+
"node-stroke": "3px",
|
|
187
|
+
"edge-width": "2.5px",
|
|
188
|
+
"edge-gap": "15px",
|
|
189
|
+
"edge-arc-max": "45px",
|
|
190
|
+
"immersion-alpha": "0.15",
|
|
191
|
+
"zoom-min": "0.3",
|
|
192
|
+
"zoom-max": "5",
|
|
193
|
+
"duration-instant": "100ms",
|
|
194
|
+
"duration-quick": "160ms",
|
|
195
|
+
"duration-base": "240ms",
|
|
196
|
+
"duration-zoom": "500ms",
|
|
197
|
+
"duration-reveal": "420ms",
|
|
198
|
+
"stagger-reveal": "70ms",
|
|
199
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
200
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
201
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
202
|
+
"z-chrome": "10",
|
|
203
|
+
"z-card": "20",
|
|
204
|
+
"z-menu": "40"
|
|
205
|
+
},
|
|
206
|
+
"focus-light": {
|
|
207
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
208
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
209
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
210
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
211
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
212
|
+
"canvas": "#f4f2ee",
|
|
213
|
+
"surface": "#ffffff",
|
|
214
|
+
"surface-sunken": "#f0ece5",
|
|
215
|
+
"surface-overlay": "#ffffff",
|
|
216
|
+
"line": "#e4dfd6",
|
|
217
|
+
"line-strong": "#7a7f94",
|
|
218
|
+
"ink": "#182140",
|
|
219
|
+
"ink-muted": "#4f5671",
|
|
220
|
+
"ink-subtle": "#5f647c",
|
|
221
|
+
"action": "#182140",
|
|
222
|
+
"on-action": "#ffffff",
|
|
223
|
+
"focus": "#325e8c",
|
|
224
|
+
"link": "#2f5a87",
|
|
225
|
+
"selection": "rgba(18, 199, 211, 0.28)",
|
|
226
|
+
"node-ink": "#182140",
|
|
227
|
+
"edge": "#5a6079",
|
|
228
|
+
"edge-label": "#5a6079",
|
|
229
|
+
"topic-teal": "#bce8ea",
|
|
230
|
+
"topic-teal-ring": "#67c6cb",
|
|
231
|
+
"topic-harbor": "#c9d9ec",
|
|
232
|
+
"topic-harbor-ring": "#8bb2de",
|
|
233
|
+
"topic-iris": "#d9cfe8",
|
|
234
|
+
"topic-iris-ring": "#b79ed4",
|
|
235
|
+
"topic-berry": "#edc6c9",
|
|
236
|
+
"topic-berry-ring": "#da9099",
|
|
237
|
+
"topic-coral": "#eecec1",
|
|
238
|
+
"topic-coral-ring": "#db9b82",
|
|
239
|
+
"topic-amber": "#eed4ba",
|
|
240
|
+
"topic-amber-ring": "#d6a570",
|
|
241
|
+
"topic-sun": "#f4eac1",
|
|
242
|
+
"topic-sun-ring": "#d2bf73",
|
|
243
|
+
"topic-stone": "#dddad5",
|
|
244
|
+
"topic-stone-ring": "#bab09f",
|
|
245
|
+
"space-1": "4px",
|
|
246
|
+
"space-2": "8px",
|
|
247
|
+
"space-3": "12px",
|
|
248
|
+
"space-4": "16px",
|
|
249
|
+
"space-7": "48px",
|
|
250
|
+
"radius-sm": "10px",
|
|
251
|
+
"radius-md": "16px",
|
|
252
|
+
"radius-lg": "24px",
|
|
253
|
+
"radius-pill": "999px",
|
|
254
|
+
"shadow-float": "0 1px 2px rgba(24, 33, 64, 0.06), 0 8px 24px rgba(24, 33, 64, 0.08)",
|
|
255
|
+
"shadow-pop": "0 2px 4px rgba(24, 33, 64, 0.08), 0 16px 40px rgba(24, 33, 64, 0.14)",
|
|
256
|
+
"node-width": "200px",
|
|
257
|
+
"node-height": "148px",
|
|
258
|
+
"node-stroke": "3px",
|
|
259
|
+
"edge-width": "2.5px",
|
|
260
|
+
"edge-gap": "15px",
|
|
261
|
+
"edge-arc-max": "45px",
|
|
262
|
+
"immersion-alpha": "0.15",
|
|
263
|
+
"zoom-min": "0.3",
|
|
264
|
+
"zoom-max": "5",
|
|
265
|
+
"duration-instant": "100ms",
|
|
266
|
+
"duration-quick": "160ms",
|
|
267
|
+
"duration-base": "240ms",
|
|
268
|
+
"duration-zoom": "500ms",
|
|
269
|
+
"duration-reveal": "420ms",
|
|
270
|
+
"stagger-reveal": "70ms",
|
|
271
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
272
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
273
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
274
|
+
"z-chrome": "10",
|
|
275
|
+
"z-card": "20",
|
|
276
|
+
"z-menu": "40"
|
|
277
|
+
},
|
|
278
|
+
"focus-dark": {
|
|
279
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
280
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
281
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
282
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
283
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
284
|
+
"canvas": "#12141c",
|
|
285
|
+
"surface": "#171b2b",
|
|
286
|
+
"surface-sunken": "#0f1220",
|
|
287
|
+
"surface-overlay": "#212639",
|
|
288
|
+
"line": "#2b3148",
|
|
289
|
+
"line-strong": "#6c7392",
|
|
290
|
+
"ink": "#eef0f7",
|
|
291
|
+
"ink-muted": "#b3b8cc",
|
|
292
|
+
"ink-subtle": "#8f95ae",
|
|
293
|
+
"action": "#f6f3ee",
|
|
294
|
+
"on-action": "#182140",
|
|
295
|
+
"focus": "#12c7d3",
|
|
296
|
+
"link": "#5fd8e1",
|
|
297
|
+
"selection": "rgba(18, 199, 211, 0.32)",
|
|
298
|
+
"node-ink": "#182140",
|
|
299
|
+
"edge": "#a9aec0",
|
|
300
|
+
"edge-label": "#b3b8cc",
|
|
301
|
+
"topic-teal": "#bce8ea",
|
|
302
|
+
"topic-teal-ring": "#71bdc1",
|
|
303
|
+
"topic-harbor": "#c9d9ec",
|
|
304
|
+
"topic-harbor-ring": "#8cabce",
|
|
305
|
+
"topic-iris": "#d9cfe8",
|
|
306
|
+
"topic-iris-ring": "#ae9bc6",
|
|
307
|
+
"topic-berry": "#edc6c9",
|
|
308
|
+
"topic-berry-ring": "#cc8e95",
|
|
309
|
+
"topic-coral": "#eecec1",
|
|
310
|
+
"topic-coral-ring": "#cd9884",
|
|
311
|
+
"topic-amber": "#eed4ba",
|
|
312
|
+
"topic-amber-ring": "#c9a176",
|
|
313
|
+
"topic-sun": "#f4eac1",
|
|
314
|
+
"topic-sun-ring": "#c9b97a",
|
|
315
|
+
"topic-stone": "#dddad5",
|
|
316
|
+
"topic-stone-ring": "#b4a999",
|
|
317
|
+
"space-1": "4px",
|
|
318
|
+
"space-2": "8px",
|
|
319
|
+
"space-3": "12px",
|
|
320
|
+
"space-4": "16px",
|
|
321
|
+
"space-7": "48px",
|
|
322
|
+
"radius-sm": "10px",
|
|
323
|
+
"radius-md": "16px",
|
|
324
|
+
"radius-lg": "24px",
|
|
325
|
+
"radius-pill": "999px",
|
|
326
|
+
"shadow-float": "0 1px 2px rgba(24, 33, 64, 0.06), 0 8px 24px rgba(24, 33, 64, 0.08)",
|
|
327
|
+
"shadow-pop": "0 2px 4px rgba(24, 33, 64, 0.08), 0 16px 40px rgba(24, 33, 64, 0.14)",
|
|
328
|
+
"node-width": "200px",
|
|
329
|
+
"node-height": "148px",
|
|
330
|
+
"node-stroke": "3px",
|
|
331
|
+
"edge-width": "2.5px",
|
|
332
|
+
"edge-gap": "15px",
|
|
333
|
+
"edge-arc-max": "45px",
|
|
334
|
+
"immersion-alpha": "0.15",
|
|
335
|
+
"zoom-min": "0.3",
|
|
336
|
+
"zoom-max": "5",
|
|
337
|
+
"duration-instant": "100ms",
|
|
338
|
+
"duration-quick": "160ms",
|
|
339
|
+
"duration-base": "240ms",
|
|
340
|
+
"duration-zoom": "500ms",
|
|
341
|
+
"duration-reveal": "420ms",
|
|
342
|
+
"stagger-reveal": "70ms",
|
|
343
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
344
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
345
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
346
|
+
"z-chrome": "10",
|
|
347
|
+
"z-card": "20",
|
|
348
|
+
"z-menu": "40"
|
|
349
|
+
},
|
|
350
|
+
"colorsafe-light": {
|
|
351
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
352
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
353
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
354
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
355
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
356
|
+
"canvas": "#f6f3ee",
|
|
357
|
+
"surface": "#ffffff",
|
|
358
|
+
"surface-sunken": "#f0ece5",
|
|
359
|
+
"surface-overlay": "#ffffff",
|
|
360
|
+
"line": "#e4dfd6",
|
|
361
|
+
"line-strong": "#7a7f94",
|
|
362
|
+
"ink": "#182140",
|
|
363
|
+
"ink-muted": "#4f5671",
|
|
364
|
+
"ink-subtle": "#5f647c",
|
|
365
|
+
"action": "#182140",
|
|
366
|
+
"on-action": "#ffffff",
|
|
367
|
+
"focus": "#325e8c",
|
|
368
|
+
"link": "#2f5a87",
|
|
369
|
+
"selection": "rgba(18, 199, 211, 0.28)",
|
|
370
|
+
"node-ink": "#182140",
|
|
371
|
+
"edge": "#2a3048",
|
|
372
|
+
"edge-label": "#4f5671",
|
|
373
|
+
"topic-teal": "#b0ecbc",
|
|
374
|
+
"topic-teal-ring": "#6cc982",
|
|
375
|
+
"topic-harbor": "#abdbfe",
|
|
376
|
+
"topic-harbor-ring": "#60b4ec",
|
|
377
|
+
"topic-iris": "#f6bde2",
|
|
378
|
+
"topic-iris-ring": "#dc87c0",
|
|
379
|
+
"topic-berry": "#feb79e",
|
|
380
|
+
"topic-berry-ring": "#ec7f58",
|
|
381
|
+
"topic-coral": "#fece96",
|
|
382
|
+
"topic-coral-ring": "#e49d41",
|
|
383
|
+
"topic-amber": "#b2e8fa",
|
|
384
|
+
"topic-amber-ring": "#5cc4e2",
|
|
385
|
+
"topic-sun": "#f6f097",
|
|
386
|
+
"topic-sun-ring": "#d0c637",
|
|
387
|
+
"topic-stone": "#dbdbdb",
|
|
388
|
+
"topic-stone-ring": "#b7afb1",
|
|
389
|
+
"space-1": "4px",
|
|
390
|
+
"space-2": "8px",
|
|
391
|
+
"space-3": "12px",
|
|
392
|
+
"space-4": "16px",
|
|
393
|
+
"space-7": "48px",
|
|
394
|
+
"radius-sm": "10px",
|
|
395
|
+
"radius-md": "16px",
|
|
396
|
+
"radius-lg": "24px",
|
|
397
|
+
"radius-pill": "999px",
|
|
398
|
+
"shadow-float": "0 1px 2px rgba(24, 33, 64, 0.06), 0 8px 24px rgba(24, 33, 64, 0.08)",
|
|
399
|
+
"shadow-pop": "0 2px 4px rgba(24, 33, 64, 0.08), 0 16px 40px rgba(24, 33, 64, 0.14)",
|
|
400
|
+
"node-width": "200px",
|
|
401
|
+
"node-height": "148px",
|
|
402
|
+
"node-stroke": "3px",
|
|
403
|
+
"edge-width": "2.5px",
|
|
404
|
+
"edge-gap": "15px",
|
|
405
|
+
"edge-arc-max": "45px",
|
|
406
|
+
"immersion-alpha": "0.15",
|
|
407
|
+
"zoom-min": "0.3",
|
|
408
|
+
"zoom-max": "5",
|
|
409
|
+
"duration-instant": "100ms",
|
|
410
|
+
"duration-quick": "160ms",
|
|
411
|
+
"duration-base": "240ms",
|
|
412
|
+
"duration-zoom": "500ms",
|
|
413
|
+
"duration-reveal": "420ms",
|
|
414
|
+
"stagger-reveal": "70ms",
|
|
415
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
416
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
417
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
418
|
+
"z-chrome": "10",
|
|
419
|
+
"z-card": "20",
|
|
420
|
+
"z-menu": "40"
|
|
421
|
+
},
|
|
422
|
+
"colorsafe-dark": {
|
|
423
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
424
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
425
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
426
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
427
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
428
|
+
"canvas": "#0f1220",
|
|
429
|
+
"surface": "#171b2b",
|
|
430
|
+
"surface-sunken": "#0f1220",
|
|
431
|
+
"surface-overlay": "#212639",
|
|
432
|
+
"line": "#2b3148",
|
|
433
|
+
"line-strong": "#6c7392",
|
|
434
|
+
"ink": "#eef0f7",
|
|
435
|
+
"ink-muted": "#b3b8cc",
|
|
436
|
+
"ink-subtle": "#8f95ae",
|
|
437
|
+
"action": "#f6f3ee",
|
|
438
|
+
"on-action": "#182140",
|
|
439
|
+
"focus": "#12c7d3",
|
|
440
|
+
"link": "#5fd8e1",
|
|
441
|
+
"selection": "rgba(18, 199, 211, 0.32)",
|
|
442
|
+
"node-ink": "#182140",
|
|
443
|
+
"edge": "#c9cddc",
|
|
444
|
+
"edge-label": "#b3b8cc",
|
|
445
|
+
"topic-teal": "#b0ecbc",
|
|
446
|
+
"topic-teal-ring": "#69c27e",
|
|
447
|
+
"topic-harbor": "#abdbfe",
|
|
448
|
+
"topic-harbor-ring": "#5eade2",
|
|
449
|
+
"topic-iris": "#f6bde2",
|
|
450
|
+
"topic-iris-ring": "#d383b9",
|
|
451
|
+
"topic-berry": "#feb79e",
|
|
452
|
+
"topic-berry-ring": "#e37a55",
|
|
453
|
+
"topic-coral": "#fece96",
|
|
454
|
+
"topic-coral-ring": "#db9840",
|
|
455
|
+
"topic-amber": "#b2e8fa",
|
|
456
|
+
"topic-amber-ring": "#5bbdda",
|
|
457
|
+
"topic-sun": "#f6f097",
|
|
458
|
+
"topic-sun-ring": "#c9bf37",
|
|
459
|
+
"topic-stone": "#dbdbdb",
|
|
460
|
+
"topic-stone-ring": "#b1a8aa",
|
|
461
|
+
"space-1": "4px",
|
|
462
|
+
"space-2": "8px",
|
|
463
|
+
"space-3": "12px",
|
|
464
|
+
"space-4": "16px",
|
|
465
|
+
"space-7": "48px",
|
|
466
|
+
"radius-sm": "10px",
|
|
467
|
+
"radius-md": "16px",
|
|
468
|
+
"radius-lg": "24px",
|
|
469
|
+
"radius-pill": "999px",
|
|
470
|
+
"shadow-float": "0 1px 2px rgba(24, 33, 64, 0.06), 0 8px 24px rgba(24, 33, 64, 0.08)",
|
|
471
|
+
"shadow-pop": "0 2px 4px rgba(24, 33, 64, 0.08), 0 16px 40px rgba(24, 33, 64, 0.14)",
|
|
472
|
+
"node-width": "200px",
|
|
473
|
+
"node-height": "148px",
|
|
474
|
+
"node-stroke": "3px",
|
|
475
|
+
"edge-width": "2.5px",
|
|
476
|
+
"edge-gap": "15px",
|
|
477
|
+
"edge-arc-max": "45px",
|
|
478
|
+
"immersion-alpha": "0.15",
|
|
479
|
+
"zoom-min": "0.3",
|
|
480
|
+
"zoom-max": "5",
|
|
481
|
+
"duration-instant": "100ms",
|
|
482
|
+
"duration-quick": "160ms",
|
|
483
|
+
"duration-base": "240ms",
|
|
484
|
+
"duration-zoom": "500ms",
|
|
485
|
+
"duration-reveal": "420ms",
|
|
486
|
+
"stagger-reveal": "70ms",
|
|
487
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
488
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
489
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
490
|
+
"z-chrome": "10",
|
|
491
|
+
"z-card": "20",
|
|
492
|
+
"z-menu": "40"
|
|
493
|
+
},
|
|
494
|
+
"contrast-light": {
|
|
495
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
496
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
497
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
498
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
499
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
500
|
+
"canvas": "#ffffff",
|
|
501
|
+
"surface": "#ffffff",
|
|
502
|
+
"surface-sunken": "#f2f2f2",
|
|
503
|
+
"surface-overlay": "#ffffff",
|
|
504
|
+
"line": "#5c6178",
|
|
505
|
+
"line-strong": "#000000",
|
|
506
|
+
"ink": "#000000",
|
|
507
|
+
"ink-muted": "#1f2433",
|
|
508
|
+
"ink-subtle": "#3a3f52",
|
|
509
|
+
"action": "#000000",
|
|
510
|
+
"on-action": "#ffffff",
|
|
511
|
+
"focus": "#0b4a8f",
|
|
512
|
+
"link": "#0b4a8f",
|
|
513
|
+
"selection": "rgba(18, 199, 211, 0.28)",
|
|
514
|
+
"node-ink": "#000000",
|
|
515
|
+
"edge": "#000000",
|
|
516
|
+
"edge-label": "#1f2433",
|
|
517
|
+
"topic-teal": "#87f2f8",
|
|
518
|
+
"topic-teal-ring": "#006b70",
|
|
519
|
+
"topic-harbor": "#bcdbff",
|
|
520
|
+
"topic-harbor-ring": "#0e599d",
|
|
521
|
+
"topic-iris": "#e0c8fe",
|
|
522
|
+
"topic-iris-ring": "#683b92",
|
|
523
|
+
"topic-berry": "#ffbdc4",
|
|
524
|
+
"topic-berry-ring": "#96173a",
|
|
525
|
+
"topic-coral": "#ffc7b2",
|
|
526
|
+
"topic-coral-ring": "#923400",
|
|
527
|
+
"topic-amber": "#ffcf9d",
|
|
528
|
+
"topic-amber-ring": "#7e4d00",
|
|
529
|
+
"topic-sun": "#ffea94",
|
|
530
|
+
"topic-sun-ring": "#7a6600",
|
|
531
|
+
"topic-stone": "#e0dacf",
|
|
532
|
+
"topic-stone-ring": "#63594b",
|
|
533
|
+
"space-1": "4px",
|
|
534
|
+
"space-2": "8px",
|
|
535
|
+
"space-3": "12px",
|
|
536
|
+
"space-4": "16px",
|
|
537
|
+
"space-7": "48px",
|
|
538
|
+
"radius-sm": "10px",
|
|
539
|
+
"radius-md": "16px",
|
|
540
|
+
"radius-lg": "24px",
|
|
541
|
+
"radius-pill": "999px",
|
|
542
|
+
"shadow-float": "none",
|
|
543
|
+
"shadow-pop": "none",
|
|
544
|
+
"node-width": "200px",
|
|
545
|
+
"node-height": "148px",
|
|
546
|
+
"node-stroke": "3px",
|
|
547
|
+
"edge-width": "2.5px",
|
|
548
|
+
"edge-gap": "15px",
|
|
549
|
+
"edge-arc-max": "45px",
|
|
550
|
+
"immersion-alpha": "0.15",
|
|
551
|
+
"zoom-min": "0.3",
|
|
552
|
+
"zoom-max": "5",
|
|
553
|
+
"duration-instant": "100ms",
|
|
554
|
+
"duration-quick": "160ms",
|
|
555
|
+
"duration-base": "240ms",
|
|
556
|
+
"duration-zoom": "500ms",
|
|
557
|
+
"duration-reveal": "420ms",
|
|
558
|
+
"stagger-reveal": "70ms",
|
|
559
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
560
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
561
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
562
|
+
"z-chrome": "10",
|
|
563
|
+
"z-card": "20",
|
|
564
|
+
"z-menu": "40"
|
|
565
|
+
},
|
|
566
|
+
"contrast-dark": {
|
|
567
|
+
"font-display": '"Atkinson Hyperlegible Next", system-ui, sans-serif',
|
|
568
|
+
"font-ui": '"Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif',
|
|
569
|
+
"font-hand": 'Kalam, "Atkinson Hyperlegible Next", cursive',
|
|
570
|
+
"font-note": "Caveat, Kalam, cursive",
|
|
571
|
+
"font-mono": '"Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace',
|
|
572
|
+
"canvas": "#000000",
|
|
573
|
+
"surface": "#000000",
|
|
574
|
+
"surface-sunken": "#0d0d0d",
|
|
575
|
+
"surface-overlay": "#0d0d0d",
|
|
576
|
+
"line": "#9aa0b8",
|
|
577
|
+
"line-strong": "#ffffff",
|
|
578
|
+
"ink": "#ffffff",
|
|
579
|
+
"ink-muted": "#e6e8f0",
|
|
580
|
+
"ink-subtle": "#c8ccda",
|
|
581
|
+
"action": "#ffffff",
|
|
582
|
+
"on-action": "#000000",
|
|
583
|
+
"focus": "#5fe8f0",
|
|
584
|
+
"link": "#7ff0f5",
|
|
585
|
+
"selection": "rgba(18, 199, 211, 0.32)",
|
|
586
|
+
"node-ink": "#000000",
|
|
587
|
+
"edge": "#ffffff",
|
|
588
|
+
"edge-label": "#e6e8f0",
|
|
589
|
+
"topic-teal": "#87f2f8",
|
|
590
|
+
"topic-teal-ring": "#64eff7",
|
|
591
|
+
"topic-harbor": "#bcdbff",
|
|
592
|
+
"topic-harbor-ring": "#b0d5fe",
|
|
593
|
+
"topic-iris": "#e0c8fe",
|
|
594
|
+
"topic-iris-ring": "#dcbfff",
|
|
595
|
+
"topic-berry": "#ffbdc4",
|
|
596
|
+
"topic-berry-ring": "#feb3bb",
|
|
597
|
+
"topic-coral": "#ffc7b2",
|
|
598
|
+
"topic-coral-ring": "#ffbea5",
|
|
599
|
+
"topic-amber": "#ffcf9d",
|
|
600
|
+
"topic-amber-ring": "#ffc78a",
|
|
601
|
+
"topic-sun": "#ffea94",
|
|
602
|
+
"topic-sun-ring": "#ffe26d",
|
|
603
|
+
"topic-stone": "#e0dacf",
|
|
604
|
+
"topic-stone-ring": "#ddd3c2",
|
|
605
|
+
"space-1": "4px",
|
|
606
|
+
"space-2": "8px",
|
|
607
|
+
"space-3": "12px",
|
|
608
|
+
"space-4": "16px",
|
|
609
|
+
"space-7": "48px",
|
|
610
|
+
"radius-sm": "10px",
|
|
611
|
+
"radius-md": "16px",
|
|
612
|
+
"radius-lg": "24px",
|
|
613
|
+
"radius-pill": "999px",
|
|
614
|
+
"shadow-float": "none",
|
|
615
|
+
"shadow-pop": "none",
|
|
616
|
+
"node-width": "200px",
|
|
617
|
+
"node-height": "148px",
|
|
618
|
+
"node-stroke": "3px",
|
|
619
|
+
"edge-width": "2.5px",
|
|
620
|
+
"edge-gap": "15px",
|
|
621
|
+
"edge-arc-max": "45px",
|
|
622
|
+
"immersion-alpha": "0.15",
|
|
623
|
+
"zoom-min": "0.3",
|
|
624
|
+
"zoom-max": "5",
|
|
625
|
+
"duration-instant": "100ms",
|
|
626
|
+
"duration-quick": "160ms",
|
|
627
|
+
"duration-base": "240ms",
|
|
628
|
+
"duration-zoom": "500ms",
|
|
629
|
+
"duration-reveal": "420ms",
|
|
630
|
+
"stagger-reveal": "70ms",
|
|
631
|
+
"ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
632
|
+
"ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
633
|
+
"ease-bloom": "cubic-bezier(0.34, 1.4, 0.64, 1)",
|
|
634
|
+
"z-chrome": "10",
|
|
635
|
+
"z-card": "20",
|
|
636
|
+
"z-menu": "40"
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
var TOPICS = [
|
|
640
|
+
"teal",
|
|
641
|
+
"harbor",
|
|
642
|
+
"iris",
|
|
643
|
+
"berry",
|
|
644
|
+
"coral",
|
|
645
|
+
"amber",
|
|
646
|
+
"sun",
|
|
647
|
+
"stone"
|
|
648
|
+
];
|
|
649
|
+
var METRICS = {
|
|
650
|
+
"space1": 4,
|
|
651
|
+
"space2": 8,
|
|
652
|
+
"space3": 12,
|
|
653
|
+
"space4": 16,
|
|
654
|
+
"space7": 48,
|
|
655
|
+
"radiusSm": 10,
|
|
656
|
+
"radiusMd": 16,
|
|
657
|
+
"radiusLg": 24,
|
|
658
|
+
"radiusPill": 999,
|
|
659
|
+
"nodeWidth": 200,
|
|
660
|
+
"nodeHeight": 148,
|
|
661
|
+
"nodeStroke": 3,
|
|
662
|
+
"edgeWidth": 2.5,
|
|
663
|
+
"edgeGap": 15,
|
|
664
|
+
"edgeArcMax": 45,
|
|
665
|
+
"immersionAlpha": 0.15,
|
|
666
|
+
"zoomMin": 0.3,
|
|
667
|
+
"zoomMax": 5,
|
|
668
|
+
"durationInstant": 100,
|
|
669
|
+
"durationQuick": 160,
|
|
670
|
+
"durationBase": 240,
|
|
671
|
+
"durationZoom": 500,
|
|
672
|
+
"durationReveal": 420,
|
|
673
|
+
"staggerReveal": 70,
|
|
674
|
+
"zChrome": 10,
|
|
675
|
+
"zCard": 20,
|
|
676
|
+
"zMenu": 40
|
|
677
|
+
};
|
|
678
|
+
var METRICS_REDUCED_MOTION = {
|
|
679
|
+
"durationInstant": 120,
|
|
680
|
+
"durationQuick": 0,
|
|
681
|
+
"durationBase": 0,
|
|
682
|
+
"durationZoom": 0,
|
|
683
|
+
"durationReveal": 0,
|
|
684
|
+
"staggerReveal": 0
|
|
685
|
+
};
|
|
686
|
+
var TYPE_STYLES = {
|
|
687
|
+
"heading": {
|
|
688
|
+
"family": "font-ui",
|
|
689
|
+
"size": 17,
|
|
690
|
+
"lineHeight": 24,
|
|
691
|
+
"weight": 700
|
|
692
|
+
},
|
|
693
|
+
"body": {
|
|
694
|
+
"family": "font-ui",
|
|
695
|
+
"size": 15,
|
|
696
|
+
"lineHeight": 22,
|
|
697
|
+
"weight": 400
|
|
698
|
+
},
|
|
699
|
+
"body-sm": {
|
|
700
|
+
"family": "font-ui",
|
|
701
|
+
"size": 13,
|
|
702
|
+
"lineHeight": 18,
|
|
703
|
+
"weight": 400
|
|
704
|
+
},
|
|
705
|
+
"label": {
|
|
706
|
+
"family": "font-ui",
|
|
707
|
+
"size": 13,
|
|
708
|
+
"lineHeight": 16,
|
|
709
|
+
"weight": 600,
|
|
710
|
+
"letterSpacing": 0.01
|
|
711
|
+
},
|
|
712
|
+
"caption": {
|
|
713
|
+
"family": "font-ui",
|
|
714
|
+
"size": 12,
|
|
715
|
+
"lineHeight": 16,
|
|
716
|
+
"weight": 400
|
|
717
|
+
},
|
|
718
|
+
"node-root": {
|
|
719
|
+
"family": "font-hand",
|
|
720
|
+
"size": 30,
|
|
721
|
+
"lineHeight": 34,
|
|
722
|
+
"weight": 700
|
|
723
|
+
},
|
|
724
|
+
"node-label": {
|
|
725
|
+
"family": "font-hand",
|
|
726
|
+
"size": 22,
|
|
727
|
+
"lineHeight": 26,
|
|
728
|
+
"weight": 700
|
|
729
|
+
},
|
|
730
|
+
"edge-label": {
|
|
731
|
+
"family": "font-note",
|
|
732
|
+
"size": 18,
|
|
733
|
+
"lineHeight": 20,
|
|
734
|
+
"weight": 500
|
|
735
|
+
},
|
|
736
|
+
"annotation": {
|
|
737
|
+
"family": "font-note",
|
|
738
|
+
"size": 24,
|
|
739
|
+
"lineHeight": 26,
|
|
740
|
+
"weight": 600
|
|
741
|
+
}
|
|
742
|
+
};
|
|
743
|
+
var CANVAS_STYLE = {
|
|
744
|
+
"node": {
|
|
745
|
+
"selectedStrokeWidth": 4,
|
|
746
|
+
"hoverRingsRotate": -2,
|
|
747
|
+
"hoverRingsScale": 1.015,
|
|
748
|
+
"hoverLift": -2,
|
|
749
|
+
"dimmedOpacity": 1,
|
|
750
|
+
"dimmedOpacityFocus": 0.4,
|
|
751
|
+
"dimmedOpacityTouch": 0.6,
|
|
752
|
+
"dimmedOpacityFocusTouch": 0.4,
|
|
753
|
+
"shadowLight": "0 6px 14px rgba(24, 33, 64, .10)",
|
|
754
|
+
"shadowDark": "0 0 22px rgba(255, 255, 255, .10)"
|
|
755
|
+
},
|
|
756
|
+
"edge": {
|
|
757
|
+
"dash": [
|
|
758
|
+
7,
|
|
759
|
+
7
|
|
760
|
+
],
|
|
761
|
+
"labelWeight": 500,
|
|
762
|
+
"labelSize": 18,
|
|
763
|
+
"readableLabelSize": 14,
|
|
764
|
+
"readableLabelWeight": 600,
|
|
765
|
+
"labelHaloWidth": 5
|
|
766
|
+
},
|
|
767
|
+
"group": {
|
|
768
|
+
"strokeWidth": 1.5,
|
|
769
|
+
"dash": [
|
|
770
|
+
10,
|
|
771
|
+
6
|
|
772
|
+
],
|
|
773
|
+
"labelWeight": 700,
|
|
774
|
+
"labelLineHeight": 1.1,
|
|
775
|
+
"labelSize": 26,
|
|
776
|
+
"labelPadding": {
|
|
777
|
+
"top": 6,
|
|
778
|
+
"x": 22,
|
|
779
|
+
"bottom": 8
|
|
780
|
+
},
|
|
781
|
+
"labelMaxWidth": 420,
|
|
782
|
+
"labelBorderWidth": 1.5,
|
|
783
|
+
"labelFill": "topic-stone",
|
|
784
|
+
"labelBorder": "topic-stone-ring",
|
|
785
|
+
"labelInk": "node-ink",
|
|
786
|
+
"contrastLabelBorderWidth": 2,
|
|
787
|
+
"contrastLabelBorder": "line-strong"
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
// src/generated/geometry/color.ts
|
|
792
|
+
var TOPIC_ORDER = ["teal", "harbor", "iris", "berry", "coral", "amber", "sun", "stone"];
|
|
793
|
+
function topicFromName(color) {
|
|
794
|
+
if (!color) return null;
|
|
795
|
+
const c = color.trim().toLowerCase();
|
|
796
|
+
return TOPIC_ORDER.includes(c) ? c : null;
|
|
797
|
+
}
|
|
798
|
+
function topicFor(color, siblingIndex) {
|
|
799
|
+
if (!color || !color.trim()) return TOPIC_ORDER[(siblingIndex % TOPIC_ORDER.length + TOPIC_ORDER.length) % TOPIC_ORDER.length];
|
|
800
|
+
return topicFromName(color);
|
|
801
|
+
}
|
|
802
|
+
var CUSTOM = {
|
|
803
|
+
/** The ring is the fill with each RGB channel multiplied by this. */
|
|
804
|
+
ringShade: 0.78
|
|
805
|
+
};
|
|
806
|
+
function customColor(color) {
|
|
807
|
+
const m = /^#?([0-9a-f]{6})$/i.exec((color || "").trim());
|
|
808
|
+
if (!m) return { fill: color, ring: null };
|
|
809
|
+
const n = parseInt(m[1], 16), f = CUSTOM.ringShade;
|
|
810
|
+
const r = Math.round((n >> 16 & 255) * f), g = Math.round((n >> 8 & 255) * f), b = Math.round((n & 255) * f);
|
|
811
|
+
return { fill: color.trim(), ring: "#" + (1 << 24 | r << 16 | g << 8 | b).toString(16).slice(1) };
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
// src/theme/index.ts
|
|
815
|
+
var FAMILIES = /* @__PURE__ */ new Set(["focus", "colorsafe", "contrast"]);
|
|
816
|
+
function isThemeName(v) {
|
|
817
|
+
return typeof v === "string" && THEME_NAMES.includes(v);
|
|
818
|
+
}
|
|
819
|
+
function resolveTheme(input, env = {}) {
|
|
820
|
+
const scheme = env.prefersDark ? "dark" : "light";
|
|
821
|
+
if (input === void 0 || input === "auto") return env.forcedColors ? `contrast-${scheme}` : scheme;
|
|
822
|
+
if (FAMILIES.has(input)) return `${input}-${scheme}`;
|
|
823
|
+
return isThemeName(input) ? input : "light";
|
|
824
|
+
}
|
|
825
|
+
var isDarkTheme = (name) => name.endsWith("dark");
|
|
826
|
+
var isContrastTheme = (name) => name.startsWith("contrast");
|
|
827
|
+
var isFocusTheme = (name) => name.startsWith("focus");
|
|
828
|
+
var getTokens = (name) => TOKENS[name];
|
|
829
|
+
function token(name, key) {
|
|
830
|
+
const v = TOKENS[name][key];
|
|
831
|
+
if (v === void 0) throw new Error(`Unknown design-system token "${key}"`);
|
|
832
|
+
return v;
|
|
833
|
+
}
|
|
834
|
+
function resolveComfort(c, env = {}) {
|
|
835
|
+
const rm = c?.reducedMotion;
|
|
836
|
+
return {
|
|
837
|
+
readableType: !!c?.readableType,
|
|
838
|
+
largerText: !!c?.largerText,
|
|
839
|
+
reducedMotion: rm === void 0 || rm === "system" ? !!env.prefersReducedMotion : rm
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function metricsFor(comfort) {
|
|
843
|
+
return comfort.reducedMotion ? { ...METRICS, ...METRICS_REDUCED_MOTION } : METRICS;
|
|
844
|
+
}
|
|
845
|
+
var labelScale = (c) => c.largerText ? 1.15 : 1;
|
|
846
|
+
function topicStyle(theme, topic) {
|
|
847
|
+
const t = TOKENS[theme];
|
|
848
|
+
return { topic, fill: t[`topic-${topic}`], ring: t[`topic-${topic}-ring`] };
|
|
849
|
+
}
|
|
850
|
+
function ideaColor(color, siblingIndex) {
|
|
851
|
+
const topic = topicFor(color, siblingIndex);
|
|
852
|
+
return topic ? { topic, custom: null } : { topic: null, custom: customColor(color) };
|
|
853
|
+
}
|
|
854
|
+
function ideaStyle(theme, c) {
|
|
855
|
+
if (c.custom) return { fill: c.custom.fill, ring: c.custom.ring ?? TOKENS[theme]["edge"] };
|
|
856
|
+
return topicStyle(theme, c.topic ?? TOPIC_ORDER[0]);
|
|
857
|
+
}
|
|
858
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
859
|
+
0 && (module.exports = {
|
|
860
|
+
CANVAS_STYLE,
|
|
861
|
+
DESIGN_SYSTEM_VERSION,
|
|
862
|
+
METRICS,
|
|
863
|
+
METRICS_REDUCED_MOTION,
|
|
864
|
+
THEME_NAMES,
|
|
865
|
+
TOKENS,
|
|
866
|
+
TOPICS,
|
|
867
|
+
TYPE_STYLES,
|
|
868
|
+
customColor,
|
|
869
|
+
getTokens,
|
|
870
|
+
ideaColor,
|
|
871
|
+
ideaStyle,
|
|
872
|
+
isContrastTheme,
|
|
873
|
+
isDarkTheme,
|
|
874
|
+
isFocusTheme,
|
|
875
|
+
isThemeName,
|
|
876
|
+
labelScale,
|
|
877
|
+
metricsFor,
|
|
878
|
+
resolveComfort,
|
|
879
|
+
resolveTheme,
|
|
880
|
+
token,
|
|
881
|
+
topicFromName,
|
|
882
|
+
topicStyle
|
|
883
|
+
});
|
|
884
|
+
//# sourceMappingURL=index.cjs.map
|