@visualli/core 0.2.1 → 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.
- package/dist/{chunk-RFMUATWB.js → chunk-2AB4FH2E.js} +2 -2
- package/dist/{chunk-RFMUATWB.js.map → chunk-2AB4FH2E.js.map} +1 -1
- package/dist/{chunk-ITDZ72JE.js → chunk-2EVIMAJN.js} +2 -2
- package/dist/chunk-2EVIMAJN.js.map +1 -0
- 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-64PUANNH.js → chunk-HONAB36P.js} +2 -2
- package/dist/{chunk-W2CAOOJJ.js → chunk-RHUW2OCC.js} +2 -2
- package/dist/{chunk-WO4JAAKP.js → chunk-RLZO3KIN.js} +3 -3
- package/dist/{chunk-P6PKWVYF.js → chunk-S6H66I62.js} +2 -2
- 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-D49xVfr8.d.cts → designSystem-BcBLKHJO.d.cts} +1 -1
- package/dist/{designSystem-D49xVfr8.d.ts → designSystem-BcBLKHJO.d.ts} +1 -1
- package/dist/{ideaSize-BTJu6thN.d.cts → ideaSize-BxYgVM2m.d.cts} +1 -1
- package/dist/{ideaSize-RKbms8K6.d.ts → ideaSize-DBcumOej.d.ts} +1 -1
- package/dist/{index-Dt--T2l8.d.cts → index-BD-rumDI.d.cts} +1 -1
- package/dist/{index-CcF0Jvmb.d.ts → index-CnQ3Vcwr.d.ts} +1 -1
- package/dist/index.cjs +9 -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 +8 -8
- package/dist/layout/index.d.cts +2 -2
- package/dist/layout/index.d.ts +2 -2
- package/dist/{mindmap-BO3YD5qu.d.cts → mindmap-Acjoll04.d.cts} +1 -1
- package/dist/{mindmap-D0Of0jaZ.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 +1 -1
- package/src/generated/designSystem.ts +1 -1
- package/src/generated/geometry/color.ts +4 -0
- package/src/generated/geometry/interaction.ts +6 -0
- package/dist/chunk-ITDZ72JE.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-64PUANNH.js.map → chunk-HONAB36P.js.map} +0 -0
- /package/dist/{chunk-W2CAOOJJ.js.map → chunk-RHUW2OCC.js.map} +0 -0
- /package/dist/{chunk-WO4JAAKP.js.map → chunk-RLZO3KIN.js.map} +0 -0
- /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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
182
|
+
} from "./chunk-2AB4FH2E.js";
|
|
183
183
|
import "./chunk-VLGR5PZX.js";
|
|
184
184
|
|
|
185
185
|
// src/spatial/spatialIndex.ts
|
package/dist/layout/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FlatNode, d as MindMapNode } from '../mindmap-
|
|
2
|
-
import '../designSystem-
|
|
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 */
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as FlatNode, d as MindMapNode } from '../mindmap-
|
|
2
|
-
import '../designSystem-
|
|
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-
|
|
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-
|
|
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.
|