@visualli/core 0.2.6 → 0.2.8

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 (44) hide show
  1. package/dist/{chunk-FEEKCDPA.js → chunk-7VTPJVPD.js} +2 -2
  2. package/dist/{chunk-FEEKCDPA.js.map → chunk-7VTPJVPD.js.map} +1 -1
  3. package/dist/{chunk-NAD7MZBV.js → chunk-AGETXG4X.js} +2 -2
  4. package/dist/{chunk-MWH3ZD3M.js → chunk-KGMYFGOQ.js} +4 -4
  5. package/dist/{chunk-DWNGUFVO.js → chunk-RCD6QRGP.js} +2 -2
  6. package/dist/config/index.cjs.map +1 -1
  7. package/dist/config/index.d.cts +4 -4
  8. package/dist/config/index.d.ts +4 -4
  9. package/dist/config/index.js +2 -2
  10. package/dist/constants/index.d.cts +2 -2
  11. package/dist/constants/index.d.ts +2 -2
  12. package/dist/{designSystem-iPxr-Jg1.d.cts → designSystem-3oCvYiUC.d.cts} +1 -1
  13. package/dist/{designSystem-iPxr-Jg1.d.ts → designSystem-3oCvYiUC.d.ts} +1 -1
  14. package/dist/{ideaSize-1DVxFGFy.d.ts → ideaSize-ACLfsm--.d.ts} +1 -1
  15. package/dist/{ideaSize-CF07GZsk.d.cts → ideaSize-C9H3aWFn.d.cts} +1 -1
  16. package/dist/{index-CRwgyyWU.d.cts → index-4pAzpHHV.d.cts} +1 -1
  17. package/dist/{index-BWlG6Y6W.d.ts → index-D2DF4f5h.d.ts} +1 -1
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.cts +5 -5
  21. package/dist/index.d.ts +5 -5
  22. package/dist/index.js +10 -10
  23. package/dist/layout/index.d.cts +2 -2
  24. package/dist/layout/index.d.ts +2 -2
  25. package/dist/{mindmap-B07E1EHv.d.cts → mindmap-Bx-_0NxF.d.cts} +1 -1
  26. package/dist/{mindmap-B-MSJt-m.d.ts → mindmap-CYDXg2oE.d.ts} +1 -1
  27. package/dist/parser/index.cjs.map +1 -1
  28. package/dist/parser/index.d.cts +3 -3
  29. package/dist/parser/index.d.ts +3 -3
  30. package/dist/parser/index.js +4 -4
  31. package/dist/theme/index.cjs +1 -1
  32. package/dist/theme/index.cjs.map +1 -1
  33. package/dist/theme/index.d.cts +2 -2
  34. package/dist/theme/index.d.ts +2 -2
  35. package/dist/theme/index.js +2 -2
  36. package/dist/types/index.d.cts +2 -2
  37. package/dist/types/index.d.ts +2 -2
  38. package/dist/viewport/index.d.cts +2 -2
  39. package/dist/viewport/index.d.ts +2 -2
  40. package/package.json +2 -2
  41. package/src/generated/designSystem.ts +1 -1
  42. /package/dist/{chunk-NAD7MZBV.js.map → chunk-AGETXG4X.js.map} +0 -0
  43. /package/dist/{chunk-MWH3ZD3M.js.map → chunk-KGMYFGOQ.js.map} +0 -0
  44. /package/dist/{chunk-DWNGUFVO.js.map → chunk-RCD6QRGP.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-B07E1EHv.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-B07E1EHv.cjs';
1
+ import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-Bx-_0NxF.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-Bx-_0NxF.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-CF07GZsk.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-CRwgyyWU.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-iPxr-Jg1.cjs';
16
+ export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-C9H3aWFn.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-4pAzpHHV.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-3oCvYiUC.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-B-MSJt-m.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-B-MSJt-m.js';
1
+ import { R as RenderConfig, N as NodeSelection, F as FlatNode, M as MindMapConnection, V as ViewportState } from './mindmap-CYDXg2oE.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-CYDXg2oE.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-1DVxFGFy.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-BWlG6Y6W.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-iPxr-Jg1.js';
16
+ export { I as IdeaMeasure, a as approximateMeasure, i as ideaKindOf } from './ideaSize-ACLfsm--.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-D2DF4f5h.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-3oCvYiUC.js';
19
19
  export { Connection, Container, Extension, Layer, Meta, Node } from '@visualli/bindings';
20
20
 
21
21
  interface BoundingBox {
package/dist/index.js CHANGED
@@ -23,12 +23,6 @@ import {
23
23
  getRenderConfigForQuality,
24
24
  isFeatureEnabled
25
25
  } from "./chunk-S6H66I62.js";
26
- import {
27
- checkCollision,
28
- getNodeBounds,
29
- optimizeLayout,
30
- resolveCollisions
31
- } from "./chunk-LI3BVD6H.js";
32
26
  import {
33
27
  VisualliParseError,
34
28
  calculateDistance,
@@ -49,7 +43,7 @@ import {
49
43
  parseVisualliFile,
50
44
  parseVisualliFromMongoDB,
51
45
  resolveNodeOverlaps
52
- } from "./chunk-MWH3ZD3M.js";
46
+ } from "./chunk-KGMYFGOQ.js";
53
47
  import {
54
48
  BLOB_SHAPES,
55
49
  ELLIPSE,
@@ -81,10 +75,16 @@ import {
81
75
  shapeOfLevel,
82
76
  wrapInShape,
83
77
  wrapLines
84
- } from "./chunk-NAD7MZBV.js";
78
+ } from "./chunk-AGETXG4X.js";
85
79
  import {
86
80
  LAYOUT_SPACING
87
81
  } from "./chunk-N7HCYULH.js";
82
+ import {
83
+ checkCollision,
84
+ getNodeBounds,
85
+ optimizeLayout,
86
+ resolveCollisions
87
+ } from "./chunk-LI3BVD6H.js";
88
88
  import {
89
89
  applyCircularLayout,
90
90
  applyLinearHorizontalLayout,
@@ -175,7 +175,7 @@ import {
175
175
  topicFor,
176
176
  topicFromName,
177
177
  topicStyle
178
- } from "./chunk-DWNGUFVO.js";
178
+ } from "./chunk-RCD6QRGP.js";
179
179
  import {
180
180
  CANVAS_STYLE,
181
181
  DESIGN_SYSTEM_VERSION,
@@ -185,7 +185,7 @@ import {
185
185
  TOKENS,
186
186
  TOPICS,
187
187
  TYPE_STYLES
188
- } from "./chunk-FEEKCDPA.js";
188
+ } from "./chunk-7VTPJVPD.js";
189
189
  import "./chunk-VLGR5PZX.js";
190
190
 
191
191
  // src/spatial/spatialIndex.ts
@@ -1,5 +1,5 @@
1
- import { F as FlatNode, d as MindMapNode } from '../mindmap-B07E1EHv.cjs';
2
- import '../designSystem-iPxr-Jg1.cjs';
1
+ import { F as FlatNode, d as MindMapNode } from '../mindmap-Bx-_0NxF.cjs';
2
+ import '../designSystem-3oCvYiUC.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-B-MSJt-m.js';
2
- import '../designSystem-iPxr-Jg1.js';
1
+ import { F as FlatNode, d as MindMapNode } from '../mindmap-CYDXg2oE.js';
2
+ import '../designSystem-3oCvYiUC.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-iPxr-Jg1.cjs';
1
+ import { T as TopicName } from './designSystem-3oCvYiUC.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-iPxr-Jg1.js';
1
+ import { T as TopicName } from './designSystem-3oCvYiUC.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.