@visualli/core 0.2.2 → 0.2.4
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/{chunk-PIXX5QJC.js → chunk-2AB4FH2E.js} +2 -2
- package/dist/{chunk-PIXX5QJC.js.map → chunk-2AB4FH2E.js.map} +1 -1
- package/dist/{chunk-UAMEJG2C.js → chunk-3ZEH2SFM.js} +9 -1
- package/dist/chunk-3ZEH2SFM.js.map +1 -0
- package/dist/{chunk-LOQLNYB3.js → chunk-GWR7CGWW.js} +2 -2
- package/dist/{chunk-R26XEBH5.js → chunk-HONAB36P.js} +2 -2
- package/dist/{chunk-VUADCPRQ.js → chunk-L5BTWXFR.js} +3 -3
- package/dist/{chunk-W2CAOOJJ.js → chunk-RHUW2OCC.js} +2 -2
- package/dist/{chunk-P6PKWVYF.js → chunk-S6H66I62.js} +2 -2
- package/dist/{chunk-J7CFTLNA.js → chunk-WE7UEUEW.js} +7 -2
- package/dist/chunk-WE7UEUEW.js.map +1 -0
- package/dist/config/index.cjs.map +1 -1
- package/dist/config/index.d.cts +4 -4
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.js +2 -2
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +2 -2
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.js +2 -2
- package/dist/{designSystem-Ck7h42Q0.d.ts → designSystem-BcBLKHJO.d.cts} +1 -1
- package/dist/{designSystem-Ck7h42Q0.d.cts → designSystem-BcBLKHJO.d.ts} +1 -1
- package/dist/{ideaSize-D3xY8I3f.d.cts → ideaSize-BxYgVM2m.d.cts} +1 -1
- package/dist/{ideaSize-DcV698-q.d.ts → ideaSize-DBcumOej.d.ts} +1 -1
- package/dist/{index-DNFnKC6r.d.cts → index-BBRLCL27.d.cts} +7 -2
- package/dist/{index-B8lZ0mWU.d.ts → index-DFly7Oh9.d.ts} +7 -2
- package/dist/index.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -5
- package/dist/index.d.ts +15 -5
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/layout/index.d.cts +2 -2
- package/dist/layout/index.d.ts +2 -2
- package/dist/{mindmap-DXj-_dkM.d.cts → mindmap-Acjoll04.d.cts} +1 -1
- package/dist/{mindmap-BpbtqEhC.d.ts → mindmap-BwFtEDQV.d.ts} +1 -1
- package/dist/parser/index.cjs.map +1 -1
- package/dist/parser/index.d.cts +3 -3
- package/dist/parser/index.d.ts +3 -3
- package/dist/parser/index.js +3 -3
- package/dist/performance/index.cjs.map +1 -1
- package/dist/performance/index.js +2 -2
- package/dist/theme/index.cjs +1 -1
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.cts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/viewport/index.cjs.map +1 -1
- package/dist/viewport/index.d.cts +2 -2
- package/dist/viewport/index.d.ts +2 -2
- package/dist/viewport/index.js +2 -2
- package/package.json +2 -2
- package/src/generated/designSystem.ts +1 -1
- package/src/generated/geometry/color.ts +4 -0
- package/src/generated/geometry/interaction.ts +6 -0
- package/src/index.ts +1 -1
- package/dist/chunk-J7CFTLNA.js.map +0 -1
- package/dist/chunk-UAMEJG2C.js.map +0 -1
- /package/dist/{chunk-LOQLNYB3.js.map → chunk-GWR7CGWW.js.map} +0 -0
- /package/dist/{chunk-R26XEBH5.js.map → chunk-HONAB36P.js.map} +0 -0
- /package/dist/{chunk-VUADCPRQ.js.map → chunk-L5BTWXFR.js.map} +0 -0
- /package/dist/{chunk-W2CAOOJJ.js.map → chunk-RHUW2OCC.js.map} +0 -0
- /package/dist/{chunk-P6PKWVYF.js.map → chunk-S6H66I62.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TopicName$1, M as METRICS, a as ThemeName } from './designSystem-
|
|
1
|
+
import { T as TopicName$1, M as METRICS, a as ThemeName } from './designSystem-BcBLKHJO.cjs';
|
|
2
2
|
|
|
3
3
|
/** The eight topics, in the order missing colors cycle through. */
|
|
4
4
|
declare const TOPIC_ORDER: readonly ["teal", "harbor", "iris", "berry", "coral", "amber", "sun", "stone"];
|
|
@@ -7,6 +7,11 @@ type TopicName = (typeof TOPIC_ORDER)[number];
|
|
|
7
7
|
declare function topicFromName(color: string | null | undefined): TopicName | null;
|
|
8
8
|
/** The topic for an idea: its named topic; with no color, the next topic in sibling order; null for any other color. */
|
|
9
9
|
declare function topicFor(color: string | null | undefined, siblingIndex: number): TopicName | null;
|
|
10
|
+
/** Chromatic immersion: inside a layer, the canvas takes the fill of the idea you stepped into (at the `immersion-alpha`
|
|
11
|
+
* token), so you always know whose inside you are in. Part of the spec, so it is on unless a host turns it off. */
|
|
12
|
+
declare const IMMERSION: {
|
|
13
|
+
readonly defaultOn: true;
|
|
14
|
+
};
|
|
10
15
|
/** A custom (non-topic) color: drawn as given, with a darker ring. */
|
|
11
16
|
declare const CUSTOM: {
|
|
12
17
|
readonly ringShade: 0.78;
|
|
@@ -96,4 +101,4 @@ declare function ideaStyle(theme: ThemeName, c: {
|
|
|
96
101
|
ring: string;
|
|
97
102
|
};
|
|
98
103
|
|
|
99
|
-
export { CUSTOM as C,
|
|
104
|
+
export { CUSTOM as C, IMMERSION as I, type Metrics as M, type ResolvedComfort as R, TOPIC_ORDER as T, type Comfort as a, type IdeaColor as b, type ThemeEnv as c, type ThemeFamily as d, type ThemeInput as e, type TopicStyle as f, customColor as g, getTokens as h, ideaColor as i, ideaStyle as j, isContrastTheme as k, isDarkTheme as l, isFocusTheme as m, isThemeName as n, labelScale as o, metricsFor as p, resolveTheme as q, resolveComfort as r, topicFor as s, token as t, topicFromName as u, topicStyle as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TopicName$1, M as METRICS, a as ThemeName } from './designSystem-
|
|
1
|
+
import { T as TopicName$1, M as METRICS, a as ThemeName } from './designSystem-BcBLKHJO.js';
|
|
2
2
|
|
|
3
3
|
/** The eight topics, in the order missing colors cycle through. */
|
|
4
4
|
declare const TOPIC_ORDER: readonly ["teal", "harbor", "iris", "berry", "coral", "amber", "sun", "stone"];
|
|
@@ -7,6 +7,11 @@ type TopicName = (typeof TOPIC_ORDER)[number];
|
|
|
7
7
|
declare function topicFromName(color: string | null | undefined): TopicName | null;
|
|
8
8
|
/** The topic for an idea: its named topic; with no color, the next topic in sibling order; null for any other color. */
|
|
9
9
|
declare function topicFor(color: string | null | undefined, siblingIndex: number): TopicName | null;
|
|
10
|
+
/** Chromatic immersion: inside a layer, the canvas takes the fill of the idea you stepped into (at the `immersion-alpha`
|
|
11
|
+
* token), so you always know whose inside you are in. Part of the spec, so it is on unless a host turns it off. */
|
|
12
|
+
declare const IMMERSION: {
|
|
13
|
+
readonly defaultOn: true;
|
|
14
|
+
};
|
|
10
15
|
/** A custom (non-topic) color: drawn as given, with a darker ring. */
|
|
11
16
|
declare const CUSTOM: {
|
|
12
17
|
readonly ringShade: 0.78;
|
|
@@ -96,4 +101,4 @@ declare function ideaStyle(theme: ThemeName, c: {
|
|
|
96
101
|
ring: string;
|
|
97
102
|
};
|
|
98
103
|
|
|
99
|
-
export { CUSTOM as C,
|
|
104
|
+
export { CUSTOM as C, IMMERSION as I, type Metrics as M, type ResolvedComfort as R, TOPIC_ORDER as T, type Comfort as a, type IdeaColor as b, type ThemeEnv as c, type ThemeFamily as d, type ThemeInput as e, type TopicStyle as f, customColor as g, getTokens as h, ideaColor as i, ideaStyle as j, isContrastTheme as k, isDarkTheme as l, isFocusTheme as m, isThemeName as n, labelScale as o, metricsFor as p, resolveTheme as q, resolveComfort as r, topicFor as s, token as t, topicFromName as u, topicStyle as v };
|
package/dist/index.cjs
CHANGED
|
@@ -60,6 +60,7 @@ __export(index_exports, {
|
|
|
60
60
|
HULL: () => HULL,
|
|
61
61
|
HULL_CLEAR: () => HULL_CLEAR,
|
|
62
62
|
IDEA: () => IDEA,
|
|
63
|
+
IMMERSION: () => IMMERSION,
|
|
63
64
|
LABEL_GROWTH: () => LABEL_GROWTH,
|
|
64
65
|
LAYOUT_SPACING: () => LAYOUT_SPACING,
|
|
65
66
|
MAX_FRAME_TIME: () => MAX_FRAME_TIME,
|
|
@@ -528,7 +529,7 @@ function countLayersBeneath(doc, nodeId, visited = /* @__PURE__ */ new Set()) {
|
|
|
528
529
|
}
|
|
529
530
|
|
|
530
531
|
// src/generated/designSystem.ts
|
|
531
|
-
var DESIGN_SYSTEM_VERSION = "0.
|
|
532
|
+
var DESIGN_SYSTEM_VERSION = "0.3.0";
|
|
532
533
|
var THEME_NAMES = [
|
|
533
534
|
"light",
|
|
534
535
|
"dark",
|
|
@@ -1280,6 +1281,10 @@ function topicFor(color, siblingIndex) {
|
|
|
1280
1281
|
if (!color || !color.trim()) return TOPIC_ORDER[(siblingIndex % TOPIC_ORDER.length + TOPIC_ORDER.length) % TOPIC_ORDER.length];
|
|
1281
1282
|
return topicFromName(color);
|
|
1282
1283
|
}
|
|
1284
|
+
var IMMERSION = {
|
|
1285
|
+
/** Renderers draw it by default. */
|
|
1286
|
+
defaultOn: true
|
|
1287
|
+
};
|
|
1283
1288
|
var CUSTOM = {
|
|
1284
1289
|
/** The ring is the fill with each RGB channel multiplied by this. */
|
|
1285
1290
|
ringShade: 0.78
|
|
@@ -1806,6 +1811,14 @@ var GESTURE = {
|
|
|
1806
1811
|
* page (touch-action: pan-x pan-y); two fingers that land together pinch the map. */
|
|
1807
1812
|
appTouchAction: "none",
|
|
1808
1813
|
embeddedTouchAction: "pan-x pan-y",
|
|
1814
|
+
/** Press and move on the empty canvas to pan the contents (mouse and pen; touch pans with two fingers, so one finger
|
|
1815
|
+
* still scrolls an embedded page). A press that moves less than `panSlop` px is a click. */
|
|
1816
|
+
dragPan: true,
|
|
1817
|
+
panPointers: ["mouse", "pen"],
|
|
1818
|
+
panSlop: 6,
|
|
1819
|
+
/** Moving an idea starts once the press has moved this far (px), by pointerModeFor: a mouse ('hover') sooner, a finger
|
|
1820
|
+
* or pen ('touch') later, so taps still work. */
|
|
1821
|
+
ideaDragSlop: { hover: 4, touch: 10 },
|
|
1809
1822
|
/** Zoom never navigates: stepping inside and backing out stay explicit (tap an idea / Step inside, the depth trail,
|
|
1810
1823
|
* Escape or Backspace). */
|
|
1811
1824
|
zoomNavigates: false
|
|
@@ -2835,6 +2848,7 @@ function shadowsShown(visibleIdeas) {
|
|
|
2835
2848
|
HULL,
|
|
2836
2849
|
HULL_CLEAR,
|
|
2837
2850
|
IDEA,
|
|
2851
|
+
IMMERSION,
|
|
2838
2852
|
LABEL_GROWTH,
|
|
2839
2853
|
LAYOUT_SPACING,
|
|
2840
2854
|
MAX_FRAME_TIME,
|