@visualli/core 0.2.7 → 0.2.9

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 (63) hide show
  1. package/dist/{chunk-TDLZKTP7.js → chunk-4O42KVJ5.js} +4 -4
  2. package/dist/{chunk-3ZEH2SFM.js → chunk-6US6V2BX.js} +1 -1
  3. package/dist/chunk-6US6V2BX.js.map +1 -0
  4. package/dist/{chunk-GWR7CGWW.js → chunk-AQY3VHRM.js} +2 -2
  5. package/dist/{chunk-4RN36Q7J.js → chunk-DRTDHK4R.js} +2 -2
  6. package/dist/{chunk-RHUW2OCC.js → chunk-HRRGKHUD.js} +2 -2
  7. package/dist/{chunk-2GTJNTYI.js → chunk-TJF6R4WH.js} +12 -2
  8. package/dist/chunk-TJF6R4WH.js.map +1 -0
  9. package/dist/{chunk-KIE654CJ.js → chunk-WGLWQQKC.js} +2 -2
  10. package/dist/{chunk-S6H66I62.js → chunk-WKZHCJAT.js} +2 -2
  11. package/dist/config/index.cjs +1 -0
  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-BLfisQR0.d.cts → designSystem-C6DKkmV8.d.cts} +3 -1
  21. package/dist/{designSystem-BLfisQR0.d.ts → designSystem-C6DKkmV8.d.ts} +3 -1
  22. package/dist/{ideaSize-Dqq1BOUH.d.ts → ideaSize-B4lvLW5S.d.ts} +1 -1
  23. package/dist/{ideaSize-3jKlpNWG.d.cts → ideaSize-CTA03TLY.d.cts} +1 -1
  24. package/dist/{index-BqBDVAmE.d.ts → index-BSG3ACvL.d.ts} +1 -1
  25. package/dist/{index-Ckhboq53.d.cts → index-CzKgW53y.d.cts} +1 -1
  26. package/dist/index.cjs +11 -1
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.cts +5 -5
  29. package/dist/index.d.ts +5 -5
  30. package/dist/index.js +22 -22
  31. package/dist/layout/index.d.cts +2 -2
  32. package/dist/layout/index.d.ts +2 -2
  33. package/dist/{mindmap-CASD52ux.d.ts → mindmap-B59ENw1g.d.ts} +1 -1
  34. package/dist/{mindmap-B0Sffsds.d.cts → mindmap-D2M47Mxn.d.cts} +1 -1
  35. package/dist/parser/index.cjs +9 -0
  36. package/dist/parser/index.cjs.map +1 -1
  37. package/dist/parser/index.d.cts +3 -3
  38. package/dist/parser/index.d.ts +3 -3
  39. package/dist/parser/index.js +4 -4
  40. package/dist/performance/index.cjs.map +1 -1
  41. package/dist/performance/index.js +2 -2
  42. package/dist/theme/index.cjs +11 -1
  43. package/dist/theme/index.cjs.map +1 -1
  44. package/dist/theme/index.d.cts +2 -2
  45. package/dist/theme/index.d.ts +2 -2
  46. package/dist/theme/index.js +2 -2
  47. package/dist/types/index.d.cts +2 -2
  48. package/dist/types/index.d.ts +2 -2
  49. package/dist/viewport/index.cjs.map +1 -1
  50. package/dist/viewport/index.d.cts +2 -2
  51. package/dist/viewport/index.d.ts +2 -2
  52. package/dist/viewport/index.js +2 -2
  53. package/package.json +2 -2
  54. package/src/generated/designSystem.ts +11 -1
  55. package/src/generated/geometry/interaction.ts +17 -0
  56. package/dist/chunk-2GTJNTYI.js.map +0 -1
  57. package/dist/chunk-3ZEH2SFM.js.map +0 -1
  58. /package/dist/{chunk-TDLZKTP7.js.map → chunk-4O42KVJ5.js.map} +0 -0
  59. /package/dist/{chunk-GWR7CGWW.js.map → chunk-AQY3VHRM.js.map} +0 -0
  60. /package/dist/{chunk-4RN36Q7J.js.map → chunk-DRTDHK4R.js.map} +0 -0
  61. /package/dist/{chunk-RHUW2OCC.js.map → chunk-HRRGKHUD.js.map} +0 -0
  62. /package/dist/{chunk-KIE654CJ.js.map → chunk-WGLWQQKC.js.map} +0 -0
  63. /package/dist/{chunk-S6H66I62.js.map → chunk-WKZHCJAT.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-B0Sffsds.cjs';
2
- export { E as ELLIPSE, a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as ShapeProfile, f as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, g as labelLayout, h as layoutGrowth, j as lineWidthsInShape, w as wrapInShape, k as wrapLines } from './mindmap-B0Sffsds.cjs';
1
+ import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-D2M47Mxn.cjs';
2
+ export { E as ELLIPSE, a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as ShapeProfile, f as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, g as labelLayout, h as layoutGrowth, j as lineWidthsInShape, w as wrapInShape, k as wrapLines } from './mindmap-D2M47Mxn.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, blobProfile, 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-3jKlpNWG.cjs';
17
- export { C as CUSTOM, a as Comfort, I as IMMERSION, b as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, c as ThemeEnv, d as ThemeFamily, e as ThemeInput, f as TopicStyle, g as customColor, h as getTokens, i as ideaColor, j as ideaStyle, k as isContrastTheme, l as isDarkTheme, m as isFocusTheme, n as isThemeName, o as labelScale, p as metricsFor, r as resolveComfort, q as resolveTheme, t as token, s as topicFor, u as topicFromName, v as topicStyle } from './index-Ckhboq53.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-BLfisQR0.cjs';
16
+ export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-CTA03TLY.cjs';
17
+ export { C as CUSTOM, a as Comfort, I as IMMERSION, b as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, c as ThemeEnv, d as ThemeFamily, e as ThemeInput, f as TopicStyle, g as customColor, h as getTokens, i as ideaColor, j as ideaStyle, k as isContrastTheme, l as isDarkTheme, m as isFocusTheme, n as isThemeName, o as labelScale, p as metricsFor, r as resolveComfort, q as resolveTheme, t as token, s as topicFor, u as topicFromName, v as topicStyle } from './index-CzKgW53y.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-C6DKkmV8.cjs';
19
19
  export { Connection, Container, Extension, Layer, Meta, Node } from '@visualli/bindings';
20
20
 
21
21
  interface BoundingBox {
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-CASD52ux.js';
2
- export { E as ELLIPSE, a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as ShapeProfile, f as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, g as labelLayout, h as layoutGrowth, j as lineWidthsInShape, w as wrapInShape, k as wrapLines } from './mindmap-CASD52ux.js';
1
+ import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-B59ENw1g.js';
2
+ export { E as ELLIPSE, a as IDEA, I as IdeaKind, L as LABEL_GROWTH, b as MindMapConfig, c as MindMapData, d as MindMapNode, e as NodeMap, S as ShapeProfile, f as SpatialBounds, T as TopLevelConnection, i as ideaSize, l as labelGrowth, g as labelLayout, h as layoutGrowth, j as lineWidthsInShape, w as wrapInShape, k as wrapLines } from './mindmap-B59ENw1g.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, blobProfile, 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-Dqq1BOUH.js';
17
- export { C as CUSTOM, a as Comfort, I as IMMERSION, b as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, c as ThemeEnv, d as ThemeFamily, e as ThemeInput, f as TopicStyle, g as customColor, h as getTokens, i as ideaColor, j as ideaStyle, k as isContrastTheme, l as isDarkTheme, m as isFocusTheme, n as isThemeName, o as labelScale, p as metricsFor, r as resolveComfort, q as resolveTheme, t as token, s as topicFor, u as topicFromName, v as topicStyle } from './index-BqBDVAmE.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-BLfisQR0.js';
16
+ export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-B4lvLW5S.js';
17
+ export { C as CUSTOM, a as Comfort, I as IMMERSION, b as IdeaColor, M as Metrics, R as ResolvedComfort, T as TOPIC_ORDER, c as ThemeEnv, d as ThemeFamily, e as ThemeInput, f as TopicStyle, g as customColor, h as getTokens, i as ideaColor, j as ideaStyle, k as isContrastTheme, l as isDarkTheme, m as isFocusTheme, n as isThemeName, o as labelScale, p as metricsFor, r as resolveComfort, q as resolveTheme, t as token, s as topicFor, u as topicFromName, v as topicStyle } from './index-BSG3ACvL.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-C6DKkmV8.js';
19
19
  export { Connection, Container, Extension, Layer, Meta, Node } from '@visualli/bindings';
20
20
 
21
21
  interface BoundingBox {
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  setViewportCenter,
10
10
  worldToScreen,
11
11
  zoomViewport
12
- } from "./chunk-RHUW2OCC.js";
12
+ } from "./chunk-HRRGKHUD.js";
13
13
  import "./chunk-LSPDGEVE.js";
14
14
  import {
15
15
  DEFAULT_RENDER_CONFIG,
@@ -22,7 +22,13 @@ import {
22
22
  getRecommendedRenderConfig,
23
23
  getRenderConfigForQuality,
24
24
  isFeatureEnabled
25
- } from "./chunk-S6H66I62.js";
25
+ } from "./chunk-WKZHCJAT.js";
26
+ import {
27
+ checkCollision,
28
+ getNodeBounds,
29
+ optimizeLayout,
30
+ resolveCollisions
31
+ } from "./chunk-LI3BVD6H.js";
26
32
  import {
27
33
  VisualliParseError,
28
34
  calculateDistance,
@@ -43,7 +49,7 @@ import {
43
49
  parseVisualliFile,
44
50
  parseVisualliFromMongoDB,
45
51
  resolveNodeOverlaps
46
- } from "./chunk-TDLZKTP7.js";
52
+ } from "./chunk-4O42KVJ5.js";
47
53
  import {
48
54
  BLOB_SHAPES,
49
55
  ELLIPSE,
@@ -75,15 +81,22 @@ import {
75
81
  shapeOfLevel,
76
82
  wrapInShape,
77
83
  wrapLines
78
- } from "./chunk-4RN36Q7J.js";
84
+ } from "./chunk-DRTDHK4R.js";
79
85
  import {
80
86
  LAYOUT_SPACING
81
87
  } from "./chunk-N7HCYULH.js";
88
+ import {
89
+ applyCircularLayout,
90
+ applyLinearHorizontalLayout,
91
+ applyLinearVerticalLayout,
92
+ calculateMinimumRadius,
93
+ calculateOptimalRadiusPercentage
94
+ } from "./chunk-GQMFBYLK.js";
82
95
  import {
83
96
  FPSMonitor,
84
97
  MemoryMonitor,
85
98
  PerformanceProfiler
86
- } from "./chunk-GWR7CGWW.js";
99
+ } from "./chunk-AQY3VHRM.js";
87
100
  import {
88
101
  CIRCULAR_REFERENCE_MAX_DEPTH,
89
102
  CLICK_THRESHOLD,
@@ -141,20 +154,8 @@ import {
141
154
  pinchZoom,
142
155
  pointerModeFor,
143
156
  zoomAround
144
- } from "./chunk-3ZEH2SFM.js";
145
- import {
146
- checkCollision,
147
- getNodeBounds,
148
- optimizeLayout,
149
- resolveCollisions
150
- } from "./chunk-LI3BVD6H.js";
151
- import {
152
- applyCircularLayout,
153
- applyLinearHorizontalLayout,
154
- applyLinearVerticalLayout,
155
- calculateMinimumRadius,
156
- calculateOptimalRadiusPercentage
157
- } from "./chunk-GQMFBYLK.js";
157
+ } from "./chunk-6US6V2BX.js";
158
+ import "./chunk-VLGR5PZX.js";
158
159
  import {
159
160
  CUSTOM,
160
161
  IMMERSION,
@@ -175,7 +176,7 @@ import {
175
176
  topicFor,
176
177
  topicFromName,
177
178
  topicStyle
178
- } from "./chunk-KIE654CJ.js";
179
+ } from "./chunk-WGLWQQKC.js";
179
180
  import {
180
181
  CANVAS_STYLE,
181
182
  DESIGN_SYSTEM_VERSION,
@@ -185,8 +186,7 @@ import {
185
186
  TOKENS,
186
187
  TOPICS,
187
188
  TYPE_STYLES
188
- } from "./chunk-2GTJNTYI.js";
189
- import "./chunk-VLGR5PZX.js";
189
+ } from "./chunk-TJF6R4WH.js";
190
190
 
191
191
  // src/spatial/spatialIndex.ts
192
192
  import RBush from "rbush";
@@ -1,5 +1,5 @@
1
- import { F as FlatNode, d as MindMapNode } from '../mindmap-B0Sffsds.cjs';
2
- import '../designSystem-BLfisQR0.cjs';
1
+ import { F as FlatNode, d as MindMapNode } from '../mindmap-D2M47Mxn.cjs';
2
+ import '../designSystem-C6DKkmV8.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-CASD52ux.js';
2
- import '../designSystem-BLfisQR0.js';
1
+ import { F as FlatNode, d as MindMapNode } from '../mindmap-B59ENw1g.js';
2
+ import '../designSystem-C6DKkmV8.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-BLfisQR0.js';
1
+ import { T as TopicName } from './designSystem-C6DKkmV8.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.
@@ -1,4 +1,4 @@
1
- import { T as TopicName } from './designSystem-BLfisQR0.cjs';
1
+ import { T as TopicName } from './designSystem-C6DKkmV8.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.
@@ -245,6 +245,7 @@ var TOKENS = {
245
245
  "duration-base": "240ms",
246
246
  "duration-zoom": "500ms",
247
247
  "duration-reveal": "420ms",
248
+ "duration-autoplay": "7000ms",
248
249
  "stagger-reveal": "70ms",
249
250
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
250
251
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -317,6 +318,7 @@ var TOKENS = {
317
318
  "duration-base": "240ms",
318
319
  "duration-zoom": "500ms",
319
320
  "duration-reveal": "420ms",
321
+ "duration-autoplay": "7000ms",
320
322
  "stagger-reveal": "70ms",
321
323
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
322
324
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -389,6 +391,7 @@ var TOKENS = {
389
391
  "duration-base": "240ms",
390
392
  "duration-zoom": "500ms",
391
393
  "duration-reveal": "420ms",
394
+ "duration-autoplay": "7000ms",
392
395
  "stagger-reveal": "70ms",
393
396
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
394
397
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -461,6 +464,7 @@ var TOKENS = {
461
464
  "duration-base": "240ms",
462
465
  "duration-zoom": "500ms",
463
466
  "duration-reveal": "420ms",
467
+ "duration-autoplay": "7000ms",
464
468
  "stagger-reveal": "70ms",
465
469
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
466
470
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -533,6 +537,7 @@ var TOKENS = {
533
537
  "duration-base": "240ms",
534
538
  "duration-zoom": "500ms",
535
539
  "duration-reveal": "420ms",
540
+ "duration-autoplay": "7000ms",
536
541
  "stagger-reveal": "70ms",
537
542
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
538
543
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -605,6 +610,7 @@ var TOKENS = {
605
610
  "duration-base": "240ms",
606
611
  "duration-zoom": "500ms",
607
612
  "duration-reveal": "420ms",
613
+ "duration-autoplay": "7000ms",
608
614
  "stagger-reveal": "70ms",
609
615
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
610
616
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -677,6 +683,7 @@ var TOKENS = {
677
683
  "duration-base": "240ms",
678
684
  "duration-zoom": "500ms",
679
685
  "duration-reveal": "420ms",
686
+ "duration-autoplay": "7000ms",
680
687
  "stagger-reveal": "70ms",
681
688
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
682
689
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -749,6 +756,7 @@ var TOKENS = {
749
756
  "duration-base": "240ms",
750
757
  "duration-zoom": "500ms",
751
758
  "duration-reveal": "420ms",
759
+ "duration-autoplay": "7000ms",
752
760
  "stagger-reveal": "70ms",
753
761
  "ease-zoom": "cubic-bezier(0.2, 0.8, 0.2, 1)",
754
762
  "ease-standard": "cubic-bezier(0.4, 0, 0.2, 1)",
@@ -792,6 +800,7 @@ var METRICS = {
792
800
  "durationBase": 240,
793
801
  "durationZoom": 500,
794
802
  "durationReveal": 420,
803
+ "durationAutoplay": 7e3,
795
804
  "staggerReveal": 70,
796
805
  "zChrome": 10,
797
806
  "zCard": 20,