@visualli/core 0.2.2 → 0.2.3

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.
Files changed (62) hide show
  1. package/dist/{chunk-PIXX5QJC.js → chunk-2AB4FH2E.js} +2 -2
  2. package/dist/{chunk-PIXX5QJC.js.map → chunk-2AB4FH2E.js.map} +1 -1
  3. package/dist/{chunk-J7CFTLNA.js → chunk-2EVIMAJN.js} +2 -2
  4. package/dist/chunk-2EVIMAJN.js.map +1 -0
  5. package/dist/{chunk-UAMEJG2C.js → chunk-3ZEH2SFM.js} +9 -1
  6. package/dist/chunk-3ZEH2SFM.js.map +1 -0
  7. package/dist/{chunk-LOQLNYB3.js → chunk-GWR7CGWW.js} +2 -2
  8. package/dist/{chunk-R26XEBH5.js → chunk-HONAB36P.js} +2 -2
  9. package/dist/{chunk-W2CAOOJJ.js → chunk-RHUW2OCC.js} +2 -2
  10. package/dist/{chunk-VUADCPRQ.js → chunk-RLZO3KIN.js} +3 -3
  11. package/dist/{chunk-P6PKWVYF.js → chunk-S6H66I62.js} +2 -2
  12. package/dist/config/index.cjs.map +1 -1
  13. package/dist/config/index.d.cts +4 -4
  14. package/dist/config/index.d.ts +4 -4
  15. package/dist/config/index.js +2 -2
  16. package/dist/constants/index.cjs.map +1 -1
  17. package/dist/constants/index.d.cts +2 -2
  18. package/dist/constants/index.d.ts +2 -2
  19. package/dist/constants/index.js +2 -2
  20. package/dist/{designSystem-Ck7h42Q0.d.ts → designSystem-BcBLKHJO.d.cts} +1 -1
  21. package/dist/{designSystem-Ck7h42Q0.d.cts → designSystem-BcBLKHJO.d.ts} +1 -1
  22. package/dist/{ideaSize-D3xY8I3f.d.cts → ideaSize-BxYgVM2m.d.cts} +1 -1
  23. package/dist/{ideaSize-DcV698-q.d.ts → ideaSize-DBcumOej.d.ts} +1 -1
  24. package/dist/{index-DNFnKC6r.d.cts → index-BD-rumDI.d.cts} +1 -1
  25. package/dist/{index-B8lZ0mWU.d.ts → index-CnQ3Vcwr.d.ts} +1 -1
  26. package/dist/index.cjs +9 -1
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +15 -5
  29. package/dist/index.d.ts +15 -5
  30. package/dist/index.js +8 -8
  31. package/dist/layout/index.d.cts +2 -2
  32. package/dist/layout/index.d.ts +2 -2
  33. package/dist/{mindmap-DXj-_dkM.d.cts → mindmap-Acjoll04.d.cts} +1 -1
  34. package/dist/{mindmap-BpbtqEhC.d.ts → mindmap-BwFtEDQV.d.ts} +1 -1
  35. package/dist/parser/index.cjs.map +1 -1
  36. package/dist/parser/index.d.cts +3 -3
  37. package/dist/parser/index.d.ts +3 -3
  38. package/dist/parser/index.js +3 -3
  39. package/dist/performance/index.cjs.map +1 -1
  40. package/dist/performance/index.js +2 -2
  41. package/dist/theme/index.cjs +1 -1
  42. package/dist/theme/index.cjs.map +1 -1
  43. package/dist/theme/index.d.cts +2 -2
  44. package/dist/theme/index.d.ts +2 -2
  45. package/dist/theme/index.js +2 -2
  46. package/dist/types/index.d.cts +2 -2
  47. package/dist/types/index.d.ts +2 -2
  48. package/dist/viewport/index.cjs.map +1 -1
  49. package/dist/viewport/index.d.cts +2 -2
  50. package/dist/viewport/index.d.ts +2 -2
  51. package/dist/viewport/index.js +2 -2
  52. package/package.json +1 -1
  53. package/src/generated/designSystem.ts +1 -1
  54. package/src/generated/geometry/color.ts +4 -0
  55. package/src/generated/geometry/interaction.ts +6 -0
  56. package/dist/chunk-J7CFTLNA.js.map +0 -1
  57. package/dist/chunk-UAMEJG2C.js.map +0 -1
  58. /package/dist/{chunk-LOQLNYB3.js.map → chunk-GWR7CGWW.js.map} +0 -0
  59. /package/dist/{chunk-R26XEBH5.js.map → chunk-HONAB36P.js.map} +0 -0
  60. /package/dist/{chunk-W2CAOOJJ.js.map → chunk-RHUW2OCC.js.map} +0 -0
  61. /package/dist/{chunk-VUADCPRQ.js.map → chunk-RLZO3KIN.js.map} +0 -0
  62. /package/dist/{chunk-P6PKWVYF.js.map → chunk-S6H66I62.js.map} +0 -0
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-DXj-_dkM.cjs';
2
- export { a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, w as wrapLines } from './mindmap-DXj-_dkM.cjs';
1
+ import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-Acjoll04.cjs';
2
+ export { a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, w as wrapLines } from './mindmap-Acjoll04.cjs';
3
3
  import { V as VisualliDocument } from './document-MEJEfxl3.cjs';
4
4
  export { S as SemanticAnchor, a as VisualliMeta } from './document-MEJEfxl3.cjs';
5
5
  import { V as VisualliLayer } from './layer-B2A3Ki48.cjs';
@@ -13,9 +13,9 @@ export { WorldBounds, calculateViewportBounds, clampZoom, focusOnNode, isNodeInV
13
13
  export { FPSMonitor, MemoryMonitor, MemoryStats, PerformanceProfiler } from './performance/index.cjs';
14
14
  import * as zustand_vanilla from 'zustand/vanilla';
15
15
  export { BLOB_SHAPES, ConnectorGeometry, MAX_RINGS, NodeLike, RINGS, SHAPE, arrowPath, blobPath, blobRadius, connectorGeometry, drawBlob, edgePath, nodeBounds, nodeRadii, outlineRadius, ringCount, ringsFor, shapeForLevel, shapeOfLevel } from './config/index.cjs';
16
- export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-D3xY8I3f.cjs';
17
- export { C as CUSTOM, a as Comfort, I as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, b as ThemeEnv, c as ThemeFamily, d as ThemeInput, e as TopicStyle, f as customColor, g as getTokens, i as ideaColor, h as ideaStyle, j as isContrastTheme, k as isDarkTheme, l as isFocusTheme, m as isThemeName, n as labelScale, o as metricsFor, r as resolveComfort, p as resolveTheme, t as token, q as topicFor, s as topicFromName, u as topicStyle } from './index-DNFnKC6r.cjs';
18
- export { C as CANVAS_STYLE, D as DESIGN_SYSTEM_VERSION, M as METRICS, b as METRICS_REDUCED_MOTION, c as THEME_NAMES, d as TOKENS, e as TOPICS, f as TYPE_STYLES, a as ThemeName, T as TopicName } from './designSystem-Ck7h42Q0.cjs';
16
+ export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-BxYgVM2m.cjs';
17
+ export { C as CUSTOM, a as Comfort, I as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, b as ThemeEnv, c as ThemeFamily, d as ThemeInput, e as TopicStyle, f as customColor, g as getTokens, i as ideaColor, h as ideaStyle, j as isContrastTheme, k as isDarkTheme, l as isFocusTheme, m as isThemeName, n as labelScale, o as metricsFor, r as resolveComfort, p as resolveTheme, t as token, q as topicFor, s as topicFromName, u as topicStyle } from './index-BD-rumDI.cjs';
18
+ export { C as CANVAS_STYLE, D as DESIGN_SYSTEM_VERSION, M as METRICS, b as METRICS_REDUCED_MOTION, c as THEME_NAMES, d as TOKENS, e as TOPICS, f as TYPE_STYLES, a as ThemeName, T as TopicName } from './designSystem-BcBLKHJO.cjs';
19
19
  export { Connection, Container, Extension, Layer, Meta, Node } from '@visualli/bindings';
20
20
 
21
21
  interface BoundingBox {
@@ -121,6 +121,16 @@ declare const GESTURE: {
121
121
  * so the browser never zooms the page. Embedded on a scrolling page (website, docs), one finger still scrolls the
122
122
  * page (touch-action: pan-x pan-y); two fingers that land together pinch the map. */ readonly appTouchAction: "none";
123
123
  readonly embeddedTouchAction: "pan-x pan-y";
124
+ /** Press and move on the empty canvas to pan the contents (mouse and pen; touch pans with two fingers, so one finger
125
+ * still scrolls an embedded page). A press that moves less than `panSlop` px is a click. */ readonly dragPan: true;
126
+ readonly panPointers: readonly string[];
127
+ readonly panSlop: 6;
128
+ /** Moving an idea starts once the press has moved this far (px), by pointerModeFor: a mouse ('hover') sooner, a finger
129
+ * or pen ('touch') later, so taps still work. */
130
+ readonly ideaDragSlop: {
131
+ readonly hover: 4;
132
+ readonly touch: 10;
133
+ };
124
134
  /** Zoom never navigates: stepping inside and backing out stay explicit (tap an idea / Step inside, the depth trail,
125
135
  * Escape or Backspace). */ readonly zoomNavigates: false;
126
136
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-BpbtqEhC.js';
2
- export { a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, w as wrapLines } from './mindmap-BpbtqEhC.js';
1
+ import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-BwFtEDQV.js';
2
+ export { a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, w as wrapLines } from './mindmap-BwFtEDQV.js';
3
3
  import { V as VisualliDocument } from './document-BFBwn93X.js';
4
4
  export { S as SemanticAnchor, a as VisualliMeta } from './document-BFBwn93X.js';
5
5
  import { V as VisualliLayer } from './layer-B2A3Ki48.js';
@@ -13,9 +13,9 @@ export { WorldBounds, calculateViewportBounds, clampZoom, focusOnNode, isNodeInV
13
13
  export { FPSMonitor, MemoryMonitor, MemoryStats, PerformanceProfiler } from './performance/index.js';
14
14
  import * as zustand_vanilla from 'zustand/vanilla';
15
15
  export { BLOB_SHAPES, ConnectorGeometry, MAX_RINGS, NodeLike, RINGS, SHAPE, arrowPath, blobPath, blobRadius, connectorGeometry, drawBlob, edgePath, nodeBounds, nodeRadii, outlineRadius, ringCount, ringsFor, shapeForLevel, shapeOfLevel } from './config/index.js';
16
- export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-DcV698-q.js';
17
- export { C as CUSTOM, a as Comfort, I as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, b as ThemeEnv, c as ThemeFamily, d as ThemeInput, e as TopicStyle, f as customColor, g as getTokens, i as ideaColor, h as ideaStyle, j as isContrastTheme, k as isDarkTheme, l as isFocusTheme, m as isThemeName, n as labelScale, o as metricsFor, r as resolveComfort, p as resolveTheme, t as token, q as topicFor, s as topicFromName, u as topicStyle } from './index-B8lZ0mWU.js';
18
- export { C as CANVAS_STYLE, D as DESIGN_SYSTEM_VERSION, M as METRICS, b as METRICS_REDUCED_MOTION, c as THEME_NAMES, d as TOKENS, e as TOPICS, f as TYPE_STYLES, a as ThemeName, T as TopicName } from './designSystem-Ck7h42Q0.js';
16
+ export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-DBcumOej.js';
17
+ export { C as CUSTOM, a as Comfort, I as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, b as ThemeEnv, c as ThemeFamily, d as ThemeInput, e as TopicStyle, f as customColor, g as getTokens, i as ideaColor, h as ideaStyle, j as isContrastTheme, k as isDarkTheme, l as isFocusTheme, m as isThemeName, n as labelScale, o as metricsFor, r as resolveComfort, p as resolveTheme, t as token, q as topicFor, s as topicFromName, u as topicStyle } from './index-CnQ3Vcwr.js';
18
+ export { C as CANVAS_STYLE, D as DESIGN_SYSTEM_VERSION, M as METRICS, b as METRICS_REDUCED_MOTION, c as THEME_NAMES, d as TOKENS, e as TOPICS, f as TYPE_STYLES, a as ThemeName, T as TopicName } from './designSystem-BcBLKHJO.js';
19
19
  export { Connection, Container, Extension, Layer, Meta, Node } from '@visualli/bindings';
20
20
 
21
21
  interface BoundingBox {
@@ -121,6 +121,16 @@ declare const GESTURE: {
121
121
  * so the browser never zooms the page. Embedded on a scrolling page (website, docs), one finger still scrolls the
122
122
  * page (touch-action: pan-x pan-y); two fingers that land together pinch the map. */ readonly appTouchAction: "none";
123
123
  readonly embeddedTouchAction: "pan-x pan-y";
124
+ /** Press and move on the empty canvas to pan the contents (mouse and pen; touch pans with two fingers, so one finger
125
+ * still scrolls an embedded page). A press that moves less than `panSlop` px is a click. */ readonly dragPan: true;
126
+ readonly panPointers: readonly string[];
127
+ readonly panSlop: 6;
128
+ /** Moving an idea starts once the press has moved this far (px), by pointerModeFor: a mouse ('hover') sooner, a finger
129
+ * or pen ('touch') later, so taps still work. */
130
+ readonly ideaDragSlop: {
131
+ readonly hover: 4;
132
+ readonly touch: 10;
133
+ };
124
134
  /** Zoom never navigates: stepping inside and backing out stay explicit (tap an idea / Step inside, the depth trail,
125
135
  * Escape or Backspace). */ readonly zoomNavigates: false;
126
136
  };
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  setViewportCenter,
10
10
  worldToScreen,
11
11
  zoomViewport
12
- } from "./chunk-W2CAOOJJ.js";
12
+ } from "./chunk-RHUW2OCC.js";
13
13
  import {
14
14
  BLOB_SHAPES,
15
15
  MAX_RINGS,
@@ -28,7 +28,7 @@ import {
28
28
  ringsFor,
29
29
  shapeForLevel,
30
30
  shapeOfLevel
31
- } from "./chunk-R26XEBH5.js";
31
+ } from "./chunk-HONAB36P.js";
32
32
  import {
33
33
  DEFAULT_RENDER_CONFIG,
34
34
  FEATURE_FLAGS,
@@ -40,7 +40,7 @@ import {
40
40
  getRecommendedRenderConfig,
41
41
  getRenderConfigForQuality,
42
42
  isFeatureEnabled
43
- } from "./chunk-P6PKWVYF.js";
43
+ } from "./chunk-S6H66I62.js";
44
44
  import {
45
45
  checkCollision,
46
46
  getNodeBounds,
@@ -67,7 +67,7 @@ import {
67
67
  parseVisualliFile,
68
68
  parseVisualliFromMongoDB,
69
69
  resolveNodeOverlaps
70
- } from "./chunk-VUADCPRQ.js";
70
+ } from "./chunk-RLZO3KIN.js";
71
71
  import {
72
72
  IDEA,
73
73
  LABEL_GROWTH,
@@ -91,7 +91,7 @@ import {
91
91
  FPSMonitor,
92
92
  MemoryMonitor,
93
93
  PerformanceProfiler
94
- } from "./chunk-LOQLNYB3.js";
94
+ } from "./chunk-GWR7CGWW.js";
95
95
  import {
96
96
  CIRCULAR_REFERENCE_MAX_DEPTH,
97
97
  CLICK_THRESHOLD,
@@ -149,7 +149,7 @@ import {
149
149
  pinchZoom,
150
150
  pointerModeFor,
151
151
  zoomAround
152
- } from "./chunk-UAMEJG2C.js";
152
+ } from "./chunk-3ZEH2SFM.js";
153
153
  import {
154
154
  CUSTOM,
155
155
  TOPIC_ORDER,
@@ -169,7 +169,7 @@ import {
169
169
  topicFor,
170
170
  topicFromName,
171
171
  topicStyle
172
- } from "./chunk-J7CFTLNA.js";
172
+ } from "./chunk-2EVIMAJN.js";
173
173
  import {
174
174
  CANVAS_STYLE,
175
175
  DESIGN_SYSTEM_VERSION,
@@ -179,7 +179,7 @@ import {
179
179
  TOKENS,
180
180
  TOPICS,
181
181
  TYPE_STYLES
182
- } from "./chunk-PIXX5QJC.js";
182
+ } from "./chunk-2AB4FH2E.js";
183
183
  import "./chunk-VLGR5PZX.js";
184
184
 
185
185
  // src/spatial/spatialIndex.ts
@@ -1,5 +1,5 @@
1
- import { F as FlatNode, d as MindMapNode } from '../mindmap-DXj-_dkM.cjs';
2
- import '../designSystem-Ck7h42Q0.cjs';
1
+ import { F as FlatNode, d as MindMapNode } from '../mindmap-Acjoll04.cjs';
2
+ import '../designSystem-BcBLKHJO.cjs';
3
3
 
4
4
  interface CircularLayoutOptions {
5
5
  /** Radius as a fraction of the container's minimum dimension (0–1). Default: 0.135 */
@@ -1,5 +1,5 @@
1
- import { F as FlatNode, d as MindMapNode } from '../mindmap-BpbtqEhC.js';
2
- import '../designSystem-Ck7h42Q0.js';
1
+ import { F as FlatNode, d as MindMapNode } from '../mindmap-BwFtEDQV.js';
2
+ import '../designSystem-BcBLKHJO.js';
3
3
 
4
4
  interface CircularLayoutOptions {
5
5
  /** Radius as a fraction of the container's minimum dimension (0–1). Default: 0.135 */
@@ -1,4 +1,4 @@
1
- import { T as TopicName } from './designSystem-Ck7h42Q0.cjs';
1
+ import { T as TopicName } from './designSystem-BcBLKHJO.cjs';
2
2
 
3
3
  type IdeaKind = 'root' | 'node' | 'mini';
4
4
  /** How much labels grow when zoomed out (`scale` = the map's zoom): never smaller than their size, up to these caps.
@@ -1,4 +1,4 @@
1
- import { T as TopicName } from './designSystem-Ck7h42Q0.js';
1
+ import { T as TopicName } from './designSystem-BcBLKHJO.js';
2
2
 
3
3
  type IdeaKind = 'root' | 'node' | 'mini';
4
4
  /** How much labels grow when zoomed out (`scale` = the map's zoom): never smaller than their size, up to these caps.