-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.ts
More file actions
95 lines (79 loc) · 2.08 KB
/
index.ts
File metadata and controls
95 lines (79 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
* mindstage-sdk
* Core mind map rendering engine
*
* Main entry point for the SDK
*/
// Engine exports
export { LayoutEngine } from './engine/LayoutEngine';
export type { ILayoutEngine, LayoutOptions, ConnectionOptions } from './engine/LayoutEngine';
export { RenderEngine } from './engine/RenderEngine';
export type { IRenderEngine, RenderOptions } from './engine/RenderEngine';
export { MindMapEngine } from './engine/MindMapEngine';
export type { IMindMapEngine } from './engine/MindMapEngine';
// Model exports
export { NodeModel } from './models/NodeModel';
// Type exports
export type {
Node,
NodeWithPosition,
NodeConnection,
NodeType,
NodeStyle,
NodeMeta,
NodePosition,
Relation,
} from './types/node';
export type { MindMap, MindMapMetadata } from './types/mindmap';
export type {
ThemeConfig,
ThemeColors,
ThemeNodeStyles,
NodeVisualStyle,
MindMapLayoutDirection,
MindMapStyle,
} from './types/theme';
export type { TextSpan, TextSelection } from './types/textSpan';
export type { ExportFormat, ExportOptions, ExportResult } from './types/export';
export type { ImportFormat, ImportOptions, ImportResult } from './types/import';
// Utility exports
export {
getContrastTextColor,
getBranchColor,
getPriorityColor,
hexToRgb,
getLuminance,
} from './utils/colorUtils';
export {
textSpansToString,
stringToTextSpans,
getAllStyles,
applyStyleToAll,
toggleStyleInAll,
setColorInAll,
expandTextSpans,
} from './utils/textSpanUtils';
export { generateNodeId, generateMindMapId, isValidId } from './utils/id';
export {
validateNode,
validateMindMap,
validateNodeType,
validateNodeContent,
getDisplayWidth,
MAX_NODE_CONTENT_LENGTH,
MAX_DISPLAY_WIDTH,
} from './utils/validator';
export {
DEFAULT_LAYOUT_OPTIONS,
DEFAULT_VIEW_STATE,
DEFAULT_EXPORT_OPTIONS,
COMMON_TAGS,
NODE_TYPES,
} from './utils/constants';
// Render utilities
export { MindMapRenderer, renderMindMapFromJSON } from './utils/mindMapRenderer';
export type {
RenderFromJSONOptions,
RenderFromJSONResult,
MountFromJSONResult,
} from './utils/mindMapRenderer';