打包0.7.2

This commit is contained in:
wanglin2
2023-09-23 16:35:13 +08:00
parent 9fe321a127
commit ef9b9804cb
37 changed files with 1398 additions and 1543 deletions

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><link rel="icon" href="dist/logo.ico"><title>思绪思维导图</title><script>// 自定义静态资源的路径
window.externalPublicPath = './dist/'
// 接管应用
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?3d449dfd2d4c7693c086" rel="stylesheet"><link href="dist/css/app.css?3d449dfd2d4c7693c086" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script>const getDataFromBackend = () => {
window.takeOverApp = false</script><link href="dist/css/chunk-vendors.css?8627952c7468fadae3f8" rel="stylesheet"><link href="dist/css/app.css?8627952c7468fadae3f8" rel="stylesheet"></head><body><noscript><strong>We're sorry but thoughts doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script>const getDataFromBackend = () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve({
@@ -66,4 +66,4 @@
// 可以通过window.$bus.$on()来监听应用的一些事件
// 实例化页面
window.initApp()
}</script><script src="dist/js/chunk-vendors.js?3d449dfd2d4c7693c086"></script><script src="dist/js/app.js?3d449dfd2d4c7693c086"></script></body></html>
}</script><script src="dist/js/chunk-vendors.js?8627952c7468fadae3f8"></script><script src="dist/js/app.js?8627952c7468fadae3f8"></script></body></html>

View File

@@ -1,11 +1,11 @@
{
"name": "simple-mind-map",
"version": "0.7.1-fix.2",
"version": "0.7.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.7.1-fix.2",
"version": "0.7.2",
"license": "MIT",
"dependencies": {
"@svgdotjs/svg.js": "^3.0.16",

View File

@@ -1,6 +1,6 @@
{
"name": "simple-mind-map",
"version": "0.7.1-fix.2",
"version": "0.7.2",
"description": "一个简单的web在线思维导图",
"authors": [
{

View File

@@ -1,166 +1,172 @@
export default MindMap
export default MindMap;
declare class MindMap {
/**
*
* @param {defaultOpt} opt
*/
constructor(opt?: {
readonly: boolean
layout: string
fishboneDeg: number
theme: string
themeConfig: {}
scaleRatio: number
mouseScaleCenterUseMousePosition: boolean
maxTag: number
expandBtnSize: number
imgTextMargin: number
textContentMargin: number
selectTranslateStep: number
selectTranslateLimit: number
customNoteContentShow: any
enableFreeDrag: boolean
watermarkConfig: {
text: string
lineSpacing: number
textSpacing: number
angle: number
textStyle: {
color: string
opacity: number
fontSize: number
}
}
textAutoWrapWidth: number
customHandleMousewheel: any
mousewheelAction: string
mousewheelMoveStep: number
mousewheelZoomActionReverse: boolean
defaultInsertSecondLevelNodeText: string
defaultInsertBelowSecondLevelNodeText: string
expandBtnStyle: {
color: string
fill: string
fontSize: number
strokeColor: string
}
expandBtnIcon: {
open: string
close: string
}
expandBtnNumHandler: (num: any) => any
isShowExpandNum: boolean
enableShortcutOnlyWhenMouseInSvg: boolean
initRootNodePosition: any
exportPaddingX: number
exportPaddingY: number
nodeTextEditZIndex: number
nodeNoteTooltipZIndex: number
isEndNodeTextEditOnClickOuter: boolean
maxHistoryCount: number
alwaysShowExpandBtn: boolean
iconList: any[]
maxNodeCacheCount: number
defaultAssociativeLineText: string
fitPadding: number
enableCtrlKeyNodeSelection: boolean
useLeftKeySelectionRightKeyDrag: boolean
beforeTextEdit: any
isUseCustomNodeContent: boolean
customCreateNodeContent: any
customInnerElsAppendTo: any
nodeDragPlaceholderMaxSize: number
enableAutoEnterTextEditWhenKeydown: boolean
richTextEditFakeInPlace: boolean
customHandleClipboardText: any
disableMouseWheelZoom: boolean
errorHandler: (code: any, error: any) => void
resetCss: string
enableDblclickReset: boolean
minExportImgCanvasScale: number
hoverRectColor: string
hoverRectPadding: number
selectTextOnEnterEditText: boolean
deleteNodeActive: boolean
autoMoveWhenMouseInEdgeOnDrag: boolean
})
opt: any
el: any
elRect: any
width: any
height: any
cssEl: HTMLStyleElement
svg: any
draw: any
event: Event
keyCommand: KeyCommand
command: Command
renderer: Render
view: View
batchExecution: BatchExecution
handleOpt(opt: any): any
addCss(): void
removeCss(): void
render(callback: any, source?: string): void
reRender(callback: any, source?: string): void
resize(): void
on(event: any, fn: any): void
emit(event: any, ...args: any[]): void
off(event: any, fn: any): void
initCache(): void
initTheme(): void
themeConfig: any
setTheme(theme: any): void
getTheme(): any
setThemeConfig(config: any): void
getCustomThemeConfig(): any
getThemeConfig(prop: any): any
getConfig(prop: any): any
updateConfig(opt?: {}): void
getLayout(): any
setLayout(layout: any): void
execCommand(...args: any[]): void
setData(data: any): void
setFullData(data: any): void
getData(withConfig: any): any
export(...args: any[]): Promise<any>
toPos(
x: any,
y: any
): {
x: number
y: number
}
setMode(mode: any): void
getSvgData({
paddingX,
paddingY
}?: {
paddingX?: number
paddingY?: number
}): {
svg: any
svgHTML: any
rect: any
origWidth: any
origHeight: any
scaleX: any
scaleY: any
}
addPlugin(plugin: any, opt: any): void
removePlugin(plugin: any): void
initPlugin(plugin: any): void
destroy(): void
/**
*
* @param {defaultOpt} opt
*/
constructor(opt?: {
readonly: boolean;
layout: string;
fishboneDeg: number;
theme: string;
themeConfig: {};
scaleRatio: number;
mouseScaleCenterUseMousePosition: boolean;
maxTag: number;
expandBtnSize: number;
imgTextMargin: number;
textContentMargin: number;
selectTranslateStep: number;
selectTranslateLimit: number;
customNoteContentShow: any;
enableFreeDrag: boolean;
watermarkConfig: {
text: string;
lineSpacing: number;
textSpacing: number;
angle: number;
textStyle: {
color: string;
opacity: number;
fontSize: number;
};
};
textAutoWrapWidth: number;
customHandleMousewheel: any;
mousewheelAction: string;
mousewheelMoveStep: number;
mousewheelZoomActionReverse: boolean;
defaultInsertSecondLevelNodeText: string;
defaultInsertBelowSecondLevelNodeText: string;
expandBtnStyle: {
color: string;
fill: string;
fontSize: number;
strokeColor: string;
};
expandBtnIcon: {
open: string;
close: string;
};
expandBtnNumHandler: (num: any) => any;
isShowExpandNum: boolean;
enableShortcutOnlyWhenMouseInSvg: boolean;
initRootNodePosition: any;
exportPaddingX: number;
exportPaddingY: number;
nodeTextEditZIndex: number;
nodeNoteTooltipZIndex: number;
isEndNodeTextEditOnClickOuter: boolean;
maxHistoryCount: number;
alwaysShowExpandBtn: boolean;
iconList: any[];
maxNodeCacheCount: number;
defaultAssociativeLineText: string;
fitPadding: number;
enableCtrlKeyNodeSelection: boolean;
useLeftKeySelectionRightKeyDrag: boolean;
beforeTextEdit: any;
isUseCustomNodeContent: boolean;
customCreateNodeContent: any;
customInnerElsAppendTo: any;
nodeDragPlaceholderMaxSize: number;
enableAutoEnterTextEditWhenKeydown: boolean;
richTextEditFakeInPlace: boolean;
customHandleClipboardText: any;
disableMouseWheelZoom: boolean;
errorHandler: (code: any, error: any) => void;
resetCss: string;
enableDblclickReset: boolean;
minExportImgCanvasScale: number;
hoverRectColor: string;
hoverRectPadding: number;
selectTextOnEnterEditText: boolean;
deleteNodeActive: boolean;
autoMoveWhenMouseInEdgeOnDrag: boolean;
fit: boolean;
dragMultiNodeRectConfig: {
width: number;
height: number;
fill: string;
};
dragPlaceholderRectFill: string;
dragOpacityConfig: {
cloneNodeOpacity: number;
beingDragNodeOpacity: number;
};
tagsColorMap: {};
});
opt: any;
el: any;
elRect: any;
width: any;
height: any;
cssEl: HTMLStyleElement;
svg: any;
draw: any;
event: Event;
keyCommand: KeyCommand;
command: Command;
renderer: Render;
view: View;
batchExecution: BatchExecution;
handleOpt(opt: any): any;
addCss(): void;
removeCss(): void;
render(callback: any, source?: string): void;
reRender(callback: any, source?: string): void;
resize(): void;
on(event: any, fn: any): void;
emit(event: any, ...args: any[]): void;
off(event: any, fn: any): void;
initCache(): void;
initTheme(): void;
themeConfig: any;
setTheme(theme: any): void;
getTheme(): any;
setThemeConfig(config: any): void;
getCustomThemeConfig(): any;
getThemeConfig(prop: any): any;
getConfig(prop: any): any;
updateConfig(opt?: {}): void;
getLayout(): any;
setLayout(layout: any): void;
execCommand(...args: any[]): void;
setData(data: any): void;
setFullData(data: any): void;
getData(withConfig: any): any;
export(...args: any[]): Promise<any>;
toPos(x: any, y: any): {
x: number;
y: number;
};
setMode(mode: any): void;
getSvgData({ paddingX, paddingY }?: {
paddingX?: number;
paddingY?: number;
}): {
svg: any;
svgHTML: any;
rect: any;
origWidth: any;
origHeight: any;
scaleX: any;
scaleY: any;
};
addPlugin(plugin: any, opt: any): void;
removePlugin(plugin: any): void;
initPlugin(plugin: any): void;
destroy(): void;
}
declare namespace MindMap {
let pluginList: any[]
function usePlugin(plugin: any, opt?: {}): typeof MindMap
function hasPlugin(plugin: any): number
function defineTheme(name: any, config?: {}): Error
let pluginList: any[];
function usePlugin(plugin: any, opt?: {}): typeof MindMap;
function hasPlugin(plugin: any): number;
function defineTheme(name: any, config?: {}): Error;
}
import Event from './src/core/event/Event'
import KeyCommand from './src/core/command/KeyCommand'
import Command from './src/core/command/Command'
import Render from './src/core/render/Render'
import View from './src/core/view/View'
import BatchExecution from './src/utils/BatchExecution'
import Event from './src/core/event/Event';
import KeyCommand from './src/core/command/KeyCommand';
import Command from './src/core/command/Command';
import Render from './src/core/render/Render';
import View from './src/core/view/View';
import BatchExecution from './src/utils/BatchExecution';

View File

@@ -1,113 +1,109 @@
export const tagColorList: {
color: string
background: string
}[]
export const themeList: {
name: string
value: string
dark: boolean
}[]
name: string;
value: string;
dark: boolean;
}[];
export namespace CONSTANTS {
let CHANGE_THEME: string
let CHANGE_LAYOUT: string
let SET_DATA: string
let TRANSFORM_TO_NORMAL_NODE: string
namespace MODE {
let READONLY: string
let EDIT: string
}
namespace LAYOUT {
let LOGICAL_STRUCTURE: string
let MIND_MAP: string
let ORGANIZATION_STRUCTURE: string
let CATALOG_ORGANIZATION: string
let TIMELINE: string
let TIMELINE2: string
let FISHBONE: string
let VERTICAL_TIMELINE: string
}
namespace DIR {
let UP: string
let LEFT: string
let DOWN: string
let RIGHT: string
}
namespace KEY_DIR {
let LEFT_1: string
export { LEFT_1 as LEFT }
let UP_1: string
export { UP_1 as UP }
let RIGHT_1: string
export { RIGHT_1 as RIGHT }
let DOWN_1: string
export { DOWN_1 as DOWN }
}
namespace SHAPE {
let RECTANGLE: string
let DIAMOND: string
let PARALLELOGRAM: string
let ROUNDED_RECTANGLE: string
let OCTAGONAL_RECTANGLE: string
let OUTER_TRIANGULAR_RECTANGLE: string
let INNER_TRIANGULAR_RECTANGLE: string
let ELLIPSE: string
let CIRCLE: string
}
namespace MOUSE_WHEEL_ACTION {
let ZOOM: string
let MOVE: string
}
namespace INIT_ROOT_NODE_POSITION {
let LEFT_2: string
export { LEFT_2 as LEFT }
export let TOP: string
let RIGHT_2: string
export { RIGHT_2 as RIGHT }
export let BOTTOM: string
export let CENTER: string
}
namespace LAYOUT_GROW_DIR {
let LEFT_3: string
export { LEFT_3 as LEFT }
let TOP_1: string
export { TOP_1 as TOP }
let RIGHT_3: string
export { RIGHT_3 as RIGHT }
let BOTTOM_1: string
export { BOTTOM_1 as BOTTOM }
}
namespace PASTE_TYPE {
let CLIP_BOARD: string
let CANVAS: string
}
namespace SCROLL_BAR_DIR {
let VERTICAL: string
let HORIZONTAL: string
}
let CHANGE_THEME: string;
let CHANGE_LAYOUT: string;
let SET_DATA: string;
let TRANSFORM_TO_NORMAL_NODE: string;
namespace MODE {
let READONLY: string;
let EDIT: string;
}
namespace LAYOUT {
let LOGICAL_STRUCTURE: string;
let MIND_MAP: string;
let ORGANIZATION_STRUCTURE: string;
let CATALOG_ORGANIZATION: string;
let TIMELINE: string;
let TIMELINE2: string;
let FISHBONE: string;
let VERTICAL_TIMELINE: string;
}
namespace DIR {
let UP: string;
let LEFT: string;
let DOWN: string;
let RIGHT: string;
}
namespace KEY_DIR {
let LEFT_1: string;
export { LEFT_1 as LEFT };
let UP_1: string;
export { UP_1 as UP };
let RIGHT_1: string;
export { RIGHT_1 as RIGHT };
let DOWN_1: string;
export { DOWN_1 as DOWN };
}
namespace SHAPE {
let RECTANGLE: string;
let DIAMOND: string;
let PARALLELOGRAM: string;
let ROUNDED_RECTANGLE: string;
let OCTAGONAL_RECTANGLE: string;
let OUTER_TRIANGULAR_RECTANGLE: string;
let INNER_TRIANGULAR_RECTANGLE: string;
let ELLIPSE: string;
let CIRCLE: string;
}
namespace MOUSE_WHEEL_ACTION {
let ZOOM: string;
let MOVE: string;
}
namespace INIT_ROOT_NODE_POSITION {
let LEFT_2: string;
export { LEFT_2 as LEFT };
export let TOP: string;
let RIGHT_2: string;
export { RIGHT_2 as RIGHT };
export let BOTTOM: string;
export let CENTER: string;
}
namespace LAYOUT_GROW_DIR {
let LEFT_3: string;
export { LEFT_3 as LEFT };
let TOP_1: string;
export { TOP_1 as TOP };
let RIGHT_3: string;
export { RIGHT_3 as RIGHT };
let BOTTOM_1: string;
export { BOTTOM_1 as BOTTOM };
}
namespace PASTE_TYPE {
let CLIP_BOARD: string;
let CANVAS: string;
}
namespace SCROLL_BAR_DIR {
let VERTICAL: string;
let HORIZONTAL: string;
}
}
export const initRootNodePositionMap: {
[x: string]: number
}
[x: string]: number;
};
export const layoutList: {
name: string
value: string
}[]
export const layoutValueList: string[]
export const nodeDataNoStylePropList: string[]
name: string;
value: string;
}[];
export const layoutValueList: string[];
export const nodeDataNoStylePropList: string[];
export namespace commonCaches {
let measureCustomNodeContentSizeEl: any
let measureRichtextNodeTextSizeEl: any
let measureCustomNodeContentSizeEl: any;
let measureRichtextNodeTextSizeEl: any;
}
export namespace ERROR_TYPES {
let READ_CLIPBOARD_ERROR: string
let PARSE_PASTE_DATA_ERROR: string
let CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string
let LOAD_CLIPBOARD_IMAGE_ERROR: string
let BEFORE_TEXT_EDIT_ERROR: string
let EXPORT_ERROR: string
let READ_CLIPBOARD_ERROR: string;
let PARSE_PASTE_DATA_ERROR: string;
let CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string;
let LOAD_CLIPBOARD_IMAGE_ERROR: string;
let BEFORE_TEXT_EDIT_ERROR: string;
let EXPORT_ERROR: string;
}
export namespace a4Size {
let width: number
let height: number
let width: number;
let height: number;
}
export const cssContent: '\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n'
export const cssContent: "\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n";

View File

@@ -1,82 +1,95 @@
export namespace defaultOpt {
let readonly: boolean
let layout: string
let fishboneDeg: number
let theme: string
let themeConfig: {}
let scaleRatio: number
let mouseScaleCenterUseMousePosition: boolean
let maxTag: number
let expandBtnSize: number
let imgTextMargin: number
let textContentMargin: number
let selectTranslateStep: number
let selectTranslateLimit: number
let customNoteContentShow: any
let enableFreeDrag: boolean
namespace watermarkConfig {
let text: string
let lineSpacing: number
let textSpacing: number
let angle: number
namespace textStyle {
let color: string
let opacity: number
let fontSize: number
let readonly: boolean;
let layout: string;
let fishboneDeg: number;
let theme: string;
let themeConfig: {};
let scaleRatio: number;
let mouseScaleCenterUseMousePosition: boolean;
let maxTag: number;
let expandBtnSize: number;
let imgTextMargin: number;
let textContentMargin: number;
let selectTranslateStep: number;
let selectTranslateLimit: number;
let customNoteContentShow: any;
let enableFreeDrag: boolean;
namespace watermarkConfig {
let text: string;
let lineSpacing: number;
let textSpacing: number;
let angle: number;
namespace textStyle {
let color: string;
let opacity: number;
let fontSize: number;
}
}
}
let textAutoWrapWidth: number
let customHandleMousewheel: any
let mousewheelAction: string
let mousewheelMoveStep: number
let mousewheelZoomActionReverse: boolean
let defaultInsertSecondLevelNodeText: string
let defaultInsertBelowSecondLevelNodeText: string
namespace expandBtnStyle {
let color_1: string
export { color_1 as color }
export let fill: string
let fontSize_1: number
export { fontSize_1 as fontSize }
export let strokeColor: string
}
namespace expandBtnIcon {
let open: string
let close: string
}
function expandBtnNumHandler(num: any): any
let isShowExpandNum: boolean
let enableShortcutOnlyWhenMouseInSvg: boolean
let initRootNodePosition: any
let exportPaddingX: number
let exportPaddingY: number
let nodeTextEditZIndex: number
let nodeNoteTooltipZIndex: number
let isEndNodeTextEditOnClickOuter: boolean
let maxHistoryCount: number
let alwaysShowExpandBtn: boolean
let iconList: any[]
let maxNodeCacheCount: number
let defaultAssociativeLineText: string
let fitPadding: number
let enableCtrlKeyNodeSelection: boolean
let useLeftKeySelectionRightKeyDrag: boolean
let beforeTextEdit: any
let isUseCustomNodeContent: boolean
let customCreateNodeContent: any
let customInnerElsAppendTo: any
let nodeDragPlaceholderMaxSize: number
let enableAutoEnterTextEditWhenKeydown: boolean
let richTextEditFakeInPlace: boolean
let customHandleClipboardText: any
let disableMouseWheelZoom: boolean
function errorHandler(code: any, error: any): void
let resetCss: string
let enableDblclickReset: boolean
let minExportImgCanvasScale: number
let hoverRectColor: string
let hoverRectPadding: number
let selectTextOnEnterEditText: boolean
let deleteNodeActive: boolean
let autoMoveWhenMouseInEdgeOnDrag: boolean
let textAutoWrapWidth: number;
let customHandleMousewheel: any;
let mousewheelAction: string;
let mousewheelMoveStep: number;
let mousewheelZoomActionReverse: boolean;
let defaultInsertSecondLevelNodeText: string;
let defaultInsertBelowSecondLevelNodeText: string;
namespace expandBtnStyle {
let color_1: string;
export { color_1 as color };
export let fill: string;
let fontSize_1: number;
export { fontSize_1 as fontSize };
export let strokeColor: string;
}
namespace expandBtnIcon {
let open: string;
let close: string;
}
function expandBtnNumHandler(num: any): any;
let isShowExpandNum: boolean;
let enableShortcutOnlyWhenMouseInSvg: boolean;
let initRootNodePosition: any;
let exportPaddingX: number;
let exportPaddingY: number;
let nodeTextEditZIndex: number;
let nodeNoteTooltipZIndex: number;
let isEndNodeTextEditOnClickOuter: boolean;
let maxHistoryCount: number;
let alwaysShowExpandBtn: boolean;
let iconList: any[];
let maxNodeCacheCount: number;
let defaultAssociativeLineText: string;
let fitPadding: number;
let enableCtrlKeyNodeSelection: boolean;
let useLeftKeySelectionRightKeyDrag: boolean;
let beforeTextEdit: any;
let isUseCustomNodeContent: boolean;
let customCreateNodeContent: any;
let customInnerElsAppendTo: any;
let nodeDragPlaceholderMaxSize: number;
let enableAutoEnterTextEditWhenKeydown: boolean;
let richTextEditFakeInPlace: boolean;
let customHandleClipboardText: any;
let disableMouseWheelZoom: boolean;
function errorHandler(code: any, error: any): void;
let resetCss: string;
let enableDblclickReset: boolean;
let minExportImgCanvasScale: number;
let hoverRectColor: string;
let hoverRectPadding: number;
let selectTextOnEnterEditText: boolean;
let deleteNodeActive: boolean;
let autoMoveWhenMouseInEdgeOnDrag: boolean;
let fit: boolean;
namespace dragMultiNodeRectConfig {
export let width: number;
export let height: number;
let fill_1: string;
export { fill_1 as fill };
}
let dragPlaceholderRectFill: string;
namespace dragOpacityConfig {
let cloneNodeOpacity: number;
let beingDragNodeOpacity: number;
}
let tagsColorMap: {};
}

View File

@@ -1,19 +1,19 @@
export default Command
export default Command;
declare class Command {
constructor(opt?: {})
opt: {}
mindMap: any
commands: {}
history: any[]
activeHistoryIndex: number
addHistory(): void
clearHistory(): void
registerShortcutKeys(): void
exec(name: any, ...args: any[]): void
add(name: any, fn: any): void
remove(name: any, fn: any): void
back(step?: number): any
forward(step?: number): any
getCopyData(): any
removeDataUid(data: any): any
constructor(opt?: {});
opt: {};
mindMap: any;
commands: {};
history: any[];
activeHistoryIndex: number;
addHistory(): void;
clearHistory(): void;
registerShortcutKeys(): void;
exec(name: any, ...args: any[]): void;
add(name: any, fn: any): void;
remove(name: any, fn: any): void;
back(step?: number): any;
forward(step?: number): any;
getCopyData(): any;
removeDataUid(data: any): any;
}

View File

@@ -1,26 +1,26 @@
export default class KeyCommand {
constructor(opt: any)
opt: any
mindMap: any
shortcutMap: {}
shortcutMapCache: {}
isPause: boolean
isInSvg: boolean
pause(): void
recovery(): void
save(): void
restore(): void
bindEvent(): void
checkKey(e: any, key: any): boolean
getOriginEventCodeArr(e: any): any[]
hasCombinationKey(e: any): any
getKeyCodeArr(key: any): any[]
/**
* Enter
* Tab | Insert
* Shift + a
*/
addShortcut(key: any, fn: any): void
removeShortcut(key: any, fn: any): void
getShortcutFn(key: any): any[]
constructor(opt: any);
opt: any;
mindMap: any;
shortcutMap: {};
shortcutMapCache: {};
isPause: boolean;
isInSvg: boolean;
pause(): void;
recovery(): void;
save(): void;
restore(): void;
bindEvent(): void;
checkKey(e: any, key: any): boolean;
getOriginEventCodeArr(e: any): any[];
hasCombinationKey(e: any): any;
getKeyCodeArr(key: any): any[];
/**
* Enter
* Tab | Insert
* Shift + a
*/
addShortcut(key: any, fn: any): void;
removeShortcut(key: any, fn: any): void;
getShortcutFn(key: any): any[];
}

View File

@@ -1,42 +1,42 @@
export const keyMap: {
Backspace: number
Tab: number
Enter: number
Shift: number
Control: number
Alt: number
CapsLock: number
Esc: number
Spacebar: number
PageUp: number
PageDown: number
End: number
Home: number
Insert: number
Left: number
Up: number
Right: number
Down: number
Del: number
NumLock: number
Cmd: number
CmdFF: number
F1: number
F2: number
F3: number
F4: number
F5: number
F6: number
F7: number
F8: number
F9: number
F10: number
F11: number
F12: number
'`': number
'=': number
'-': number
'/': number
'.': number
}
export function isKey(e: any, key: any): boolean
Backspace: number;
Tab: number;
Enter: number;
Shift: number;
Control: number;
Alt: number;
CapsLock: number;
Esc: number;
Spacebar: number;
PageUp: number;
PageDown: number;
End: number;
Home: number;
Insert: number;
Left: number;
Up: number;
Right: number;
Down: number;
Del: number;
NumLock: number;
Cmd: number;
CmdFF: number;
F1: number;
F2: number;
F3: number;
F4: number;
F5: number;
F6: number;
F7: number;
F8: number;
F9: number;
F10: number;
F11: number;
F12: number;
'`': number;
'=': number;
'-': number;
'/': number;
'.': number;
};
export function isKey(e: any, key: any): boolean;

View File

@@ -1,35 +1,35 @@
export default Event
export default Event;
declare class Event {
constructor(opt?: {})
opt: {}
mindMap: any
isLeftMousedown: boolean
isRightMousedown: boolean
isMiddleMousedown: boolean
mousedownPos: {
x: number
y: number
}
mousemovePos: {
x: number
y: number
}
mousemoveOffset: {
x: number
y: number
}
bindFn(): void
onBodyClick(e: any): void
onDrawClick(e: any): void
onMousedown(e: any): void
onMousemove(e: any): void
onMouseup(e: any): void
onMousewheel(e: any): void
onContextmenu(e: any): void
onSvgMousedown(e: any): void
onKeyup(e: any): void
onMouseenter(e: any): void
onMouseleave(e: any): void
bind(): void
unbind(): void
constructor(opt?: {});
opt: {};
mindMap: any;
isLeftMousedown: boolean;
isRightMousedown: boolean;
isMiddleMousedown: boolean;
mousedownPos: {
x: number;
y: number;
};
mousemovePos: {
x: number;
y: number;
};
mousemoveOffset: {
x: number;
y: number;
};
bindFn(): void;
onBodyClick(e: any): void;
onDrawClick(e: any): void;
onMousedown(e: any): void;
onMousemove(e: any): void;
onMouseup(e: any): void;
onMousewheel(e: any): void;
onContextmenu(e: any): void;
onSvgMousedown(e: any): void;
onKeyup(e: any): void;
onMouseenter(e: any): void;
onMouseleave(e: any): void;
bind(): void;
unbind(): void;
}

View File

@@ -1,107 +1,95 @@
export default Render
export default Render;
declare class Render {
constructor(opt?: {})
opt: {}
mindMap: any
themeConfig: any
draw: any
renderTree: any
reRender: boolean
isRendering: boolean
hasWaitRendering: boolean
nodeCache: {}
lastNodeCache: {}
renderSource: string
activeNodeList: any[]
root: any
textEdit: TextEdit
lastBeingCopyData: any
beingCopyData: any
beingPasteText: string
beingPasteImgSize: number
currentBeingPasteType: string
setLayout(): void
layout:
| MindMap
| CatalogOrganization
| OrganizationStructure
| Timeline
| VerticalTimeline
bindEvent(): void
registerCommands(): void
selectAll(): void
back(step: any): void
forward(step: any): void
insertNode(
openEdit?: boolean,
appointNodes?: any[],
appointData?: any,
appointChildren?: any[]
): void
insertChildNode(
openEdit?: boolean,
appointNodes?: any[],
appointData?: any,
appointChildren?: any[]
): void
upNode(): void
downNode(): void
insertAfter(node: any, exist: any): void
insertBefore(node: any, exist: any): void
moveNodeTo(node: any, toNode: any): void
removeNode(appointNodes?: any[]): void
pasteNode(data: any): void
cutNode(callback: any): any
setNodeStyle(node: any, prop: any, value: any): void
setNodeStyles(node: any, style: any): void
setNodeActive(node: any, active: any): void
clearAllActive(): void
setNodeExpand(node: any, expand: any): void
expandAllNode(): void
unexpandAllNode(): void
expandToLevel(level: any): void
setNodeData(node: any, data: any): void
setNodeText(node: any, text: any, richText: any, resetRichText: any): void
setNodeImage(node: any, data: any): void
setNodeIcon(node: any, icons: any): void
setNodeHyperlink(node: any, link: any, title?: string): void
setNodeNote(node: any, note: any): void
setNodeTag(node: any, tag: any): void
addGeneralization(data: any): void
removeGeneralization(): void
setNodeCustomPosition(node: any, left?: any, top?: any): void
resetLayout(): void
setNodeShape(node: any, shape: any): void
goTargetNode(node: any, callback?: () => void): void
registerShortcutKeys(): void
insertNodeWrap: () => void
toggleActiveExpand(): void
removeNodeWrap: () => void
copy(): void
cut(): void
startTextEdit(): void
endTextEdit(): void
render(callback: () => void, source: any): void
clearActive(): void
addActiveNode(node: any): void
removeActiveNode(node: any): void
findActiveNodeIndex(node: any): number
getNodeIndex(node: any): any
formatAppointNodes(appointNodes: any): any[]
setCoptyDataToClipboard(data: any): void
paste(): void
onPaste(): Promise<void>
removeOneNode(node: any): void
copyNode(): any
toggleNodeExpand(node: any): void
setNodeDataRender(node: any, data: any, notRender?: boolean): void
moveNodeToCenter(node: any): void
expandToNodeUid(uid: any, callback?: () => void): void
findNodeByUid(uid: any): any
constructor(opt?: {});
opt: {};
mindMap: any;
themeConfig: any;
draw: any;
renderTree: any;
reRender: boolean;
isRendering: boolean;
hasWaitRendering: boolean;
nodeCache: {};
lastNodeCache: {};
renderSource: string;
activeNodeList: any[];
root: any;
textEdit: TextEdit;
lastBeingCopyData: any;
beingCopyData: any;
beingPasteText: string;
beingPasteImgSize: number;
currentBeingPasteType: string;
setLayout(): void;
layout: MindMap | CatalogOrganization | OrganizationStructure | Timeline | VerticalTimeline;
bindEvent(): void;
registerCommands(): void;
selectAll(): void;
back(step: any): void;
forward(step: any): void;
insertNode(openEdit?: boolean, appointNodes?: any[], appointData?: any, appointChildren?: any[]): void;
insertMultiNode(appointNodes: any, nodeList: any): void;
insertChildNode(openEdit?: boolean, appointNodes?: any[], appointData?: any, appointChildren?: any[]): void;
insertMultiChildNode(appointNodes: any, childList: any): void;
upNode(): void;
downNode(): void;
insertAfter(node: any, exist: any): void;
insertBefore(node: any, exist: any): void;
moveNodeTo(node: any, toNode: any): void;
removeNode(appointNodes?: any[]): void;
pasteNode(data: any): void;
cutNode(callback: any): void;
setNodeStyle(node: any, prop: any, value: any): void;
setNodeStyles(node: any, style: any): void;
setNodeActive(node: any, active: any): void;
clearAllActive(): void;
setNodeExpand(node: any, expand: any): void;
expandAllNode(): void;
unexpandAllNode(): void;
expandToLevel(level: any): void;
setNodeData(node: any, data: any): void;
setNodeText(node: any, text: any, richText: any, resetRichText: any): void;
setNodeImage(node: any, data: any): void;
setNodeIcon(node: any, icons: any): void;
setNodeHyperlink(node: any, link: any, title?: string): void;
setNodeNote(node: any, note: any): void;
setNodeTag(node: any, tag: any): void;
insertFormula(formula: any, appointNodes?: any[]): void;
addGeneralization(data: any): void;
removeGeneralization(): void;
setNodeCustomPosition(node: any, left?: any, top?: any): void;
resetLayout(): void;
setNodeShape(node: any, shape: any): void;
goTargetNode(node: any, callback?: () => void): void;
registerShortcutKeys(): void;
insertNodeWrap: () => void;
toggleActiveExpand(): void;
removeNodeWrap: () => void;
copy(): void;
cut(): void;
startTextEdit(): void;
endTextEdit(): void;
render(callback: () => void, source: any): void;
clearActive(): void;
addActiveNode(node: any): void;
removeActiveNode(node: any): void;
findActiveNodeIndex(node: any): number;
setCopyDataToClipboard(data: any): void;
paste(): void;
onPaste(): Promise<void>;
insertTo(node: any, exist: any, dir?: string): void;
checkNodeLayerChange(node: any, toNode: any): void;
removeOneNode(node: any): void;
copyNode(): any;
toggleNodeExpand(node: any): void;
setNodeDataRender(node: any, data: any, notRender?: boolean): void;
moveNodeToCenter(node: any): void;
expandToNodeUid(uid: any, callback?: () => void): void;
findNodeByUid(uid: any): any;
}
import TextEdit from './TextEdit'
import MindMap from '../../layouts/MindMap'
import CatalogOrganization from '../../layouts/CatalogOrganization'
import OrganizationStructure from '../../layouts/OrganizationStructure'
import Timeline from '../../layouts/Timeline'
import VerticalTimeline from '../../layouts/VerticalTimeline'
import TextEdit from './TextEdit';
import MindMap from '../../layouts/MindMap';
import CatalogOrganization from '../../layouts/CatalogOrganization';
import OrganizationStructure from '../../layouts/OrganizationStructure';
import Timeline from '../../layouts/Timeline';
import VerticalTimeline from '../../layouts/VerticalTimeline';

View File

@@ -1,29 +1,17 @@
export default class TextEdit {
constructor(renderer: any)
renderer: any
mindMap: any
currentNode: any
textEditNode: HTMLDivElement
showTextEdit: boolean
cacheEditingText: string
bindEvent(): void
show(
node: any,
e: any,
isInserting?: boolean,
isFromKeyDown?: boolean
): Promise<void>
onScale(): void
checkIsAutoEnterTextEditKey(e: any): boolean
registerTmpShortcut(): void
showEditTextBox(
node: any,
rect: any,
isInserting: any,
isFromKeyDown: any
): void
focus(): void
selectNodeText(): void
getEditText(): any
hideEditTextBox(): any
constructor(renderer: any);
renderer: any;
mindMap: any;
currentNode: any;
textEditNode: HTMLDivElement;
showTextEdit: boolean;
cacheEditingText: string;
bindEvent(): void;
show(node: any, e: any, isInserting?: boolean, isFromKeyDown?: boolean): Promise<void>;
onScale(): void;
checkIsAutoEnterTextEditKey(e: any): boolean;
registerTmpShortcut(): void;
showEditTextBox(node: any, rect: any, isInserting: any, isFromKeyDown: any): void;
getEditText(): any;
hideEditTextBox(): any;
}

View File

@@ -1,116 +1,118 @@
export default Node
export default Node;
declare class Node {
constructor(opt?: {})
nodeData: any
uid: any
mindMap: any
renderer: any
draw: any
style: Style
shapeInstance: Shape
shapePadding: {
paddingX: number
paddingY: number
}
isRoot: any
isGeneralization: any
generalizationBelongNode: any
layerIndex: any
width: any
height: any
_left: any
_top: any
customLeft: any
customTop: any
isDrag: boolean
parent: any
children: any
group: any
shapeNode: any
hoverNode: any
_customNodeContent: any
_imgData: any
_iconData: any
_textData: any
_hyperlinkData: any
_tagData: any
_noteData: any
noteEl: any
_expandBtn: any
_lastExpandBtnType: any
_showExpandBtn: boolean
_openExpandNode: any
_closeExpandNode: any
_fillExpandNode: any
_lines: any[]
_generalizationLine: any
_generalizationNode: any
_unVisibleRectRegionNode: any
_isMouseenter: boolean
_rectInfo: {
imgContentWidth: number
imgContentHeight: number
textContentWidth: number
textContentHeight: number
}
_generalizationNodeWidth: number
_generalizationNodeHeight: number
textContentItemMargin: any
blockContentMargin: any
expandBtnSize: any
isMultipleChoice: boolean
needLayout: boolean
isHide: boolean
set left(arg: any)
get left(): any
set top(arg: any)
get top(): any
reset(): void
handleData(data: any): any
createNodeData(): void
getSize(): boolean
getNodeRect(): {
width: any
height: any
}
layout(): void
bindGroupEvent(): void
active(e: any): void
update(): void
getNodePosInClient(
_left: any,
_top: any
): {
left: any
top: any
}
reRender(): boolean
updateNodeActive(): void
render(callback?: () => void): void
remove(): void
destroy(): void
hide(): void
show(): void
renderLine(deep?: boolean): void
getShape(): any
hasCustomPosition(): boolean
ancestorHasCustomPosition(): boolean
addChildren(node: any): void
styleLine(line: any, node: any): void
removeLine(): void
isParent(node: any): boolean
isBrother(node: any): any
getPaddingVale(): {
paddingX: any
paddingY: any
}
getStyle(prop: any, root: any): any
getSelfStyle(prop: any): any
getParentSelfStyle(prop: any): any
getSelfInhertStyle(prop: any): any
getBorderWidth(): any
getData(key: any): any
hasCustomStyle(): boolean
constructor(opt?: {});
nodeData: any;
uid: any;
mindMap: any;
renderer: any;
draw: any;
style: Style;
shapeInstance: Shape;
shapePadding: {
paddingX: number;
paddingY: number;
};
isRoot: any;
isGeneralization: any;
generalizationBelongNode: any;
layerIndex: any;
width: any;
height: any;
_left: any;
_top: any;
customLeft: any;
customTop: any;
isDrag: boolean;
parent: any;
children: any;
group: any;
shapeNode: any;
hoverNode: any;
_customNodeContent: any;
_imgData: any;
_iconData: any;
_textData: any;
_hyperlinkData: any;
_tagData: any;
_noteData: any;
noteEl: any;
_expandBtn: any;
_lastExpandBtnType: any;
_showExpandBtn: boolean;
_openExpandNode: any;
_closeExpandNode: any;
_fillExpandNode: any;
_lines: any[];
_generalizationLine: any;
_generalizationNode: any;
_unVisibleRectRegionNode: any;
_isMouseenter: boolean;
_rectInfo: {
imgContentWidth: number;
imgContentHeight: number;
textContentWidth: number;
textContentHeight: number;
};
_generalizationNodeWidth: number;
_generalizationNodeHeight: number;
textContentItemMargin: any;
blockContentMargin: any;
expandBtnSize: any;
isMultipleChoice: boolean;
needLayout: boolean;
isHide: boolean;
set left(arg: any);
get left(): any;
set top(arg: any);
get top(): any;
reset(): void;
handleData(data: any): any;
createNodeData(): void;
getSize(): boolean;
getNodeRect(): {
width: any;
height: any;
};
layout(): void;
bindGroupEvent(): void;
active(e: any): void;
update(): void;
getNodePosInClient(_left: any, _top: any): {
left: any;
top: any;
};
reRender(): boolean;
updateNodeActive(): void;
render(callback?: () => void): void;
remove(): void;
destroy(): void;
hide(): void;
show(): void;
setOpacity(val: any): void;
hideChildren(): void;
showChildren(): void;
startDrag(): void;
endDrag(): void;
renderLine(deep?: boolean): void;
getShape(): any;
hasCustomPosition(): boolean;
ancestorHasCustomPosition(): boolean;
addChildren(node: any): void;
styleLine(line: any, node: any): void;
removeLine(): void;
isParent(node: any): boolean;
isBrother(node: any): any;
getPaddingVale(): {
paddingX: any;
paddingY: any;
};
getStyle(prop: any, root: any): any;
getSelfStyle(prop: any): any;
getParentSelfStyle(prop: any): any;
getSelfInhertStyle(prop: any): any;
getBorderWidth(): any;
getData(key: any): any;
hasCustomStyle(): boolean;
}
import Style from './Style'
import Shape from './Shape'
import Style from './Style';
import Shape from './Shape';

View File

@@ -1,28 +1,23 @@
export default class Shape {
constructor(node: any)
node: any
getShapePadding(
width: any,
height: any,
paddingX: any,
paddingY: any
): {
paddingX: number
paddingY: number
}
createShape(): any
getNodeSize(): {
width: any
height: any
}
createRect(): any
createDiamond(): any
createParallelogram(): any
createRoundedRectangle(): any
createOctagonalRectangle(): any
createOuterTriangularRectangle(): any
createInnerTriangularRectangle(): any
createEllipse(): any
createCircle(): any
constructor(node: any);
node: any;
getShapePadding(width: any, height: any, paddingX: any, paddingY: any): {
paddingX: number;
paddingY: number;
};
createShape(): any;
getNodeSize(): {
width: any;
height: any;
};
createRect(): any;
createDiamond(): any;
createParallelogram(): any;
createRoundedRectangle(): any;
createOctagonalRectangle(): any;
createOuterTriangularRectangle(): any;
createInnerTriangularRectangle(): any;
createEllipse(): any;
createCircle(): any;
}
export const shapeList: string[]
export const shapeList: string[];

View File

@@ -1,43 +1,36 @@
export default Style
export default Style;
declare class Style {
static setBackgroundStyle(el: any, themeConfig: any): void
static removeBackgroundStyle(el: any): void
constructor(ctx: any)
ctx: any
merge(prop: any, root: any): any
getStyle(prop: any, root: any): any
getSelfStyle(prop: any): any
rect(node: any): void
shape(node: any): void
text(node: any): void
createStyleText(): string
getTextFontStyle(): {
italic: boolean
bold: any
fontSize: any
fontFamily: any
}
domText(node: any, fontSizeScale: number, isMultiLine: any): void
tagText(node: any, index: any): void
tagRect(node: any, index: any): void
iconNode(node: any): void
line(
node: any,
{
width,
color,
dasharray
}?: {
width: any
color: any
dasharray: any
}
): void
generalizationLine(node: any): void
iconBtn(node: any, node2: any, fillNode: any): void
hasCustomStyle(): boolean
hoverNode(node: any): void
static setBackgroundStyle(el: any, themeConfig: any): void;
static removeBackgroundStyle(el: any): void;
constructor(ctx: any);
ctx: any;
merge(prop: any, root: any): any;
getStyle(prop: any, root: any): any;
getSelfStyle(prop: any): any;
rect(node: any): void;
shape(node: any): void;
text(node: any): void;
createStyleText(): string;
getTextFontStyle(): {
italic: boolean;
bold: any;
fontSize: any;
fontFamily: any;
};
domText(node: any, fontSizeScale: number, isMultiLine: any): void;
tagText(node: any): void;
tagRect(node: any, text: any, color: any): void;
iconNode(node: any): void;
line(node: any, { width, color, dasharray }?: {
width: any;
color: any;
dasharray: any;
}): void;
generalizationLine(node: any): void;
iconBtn(node: any, node2: any, fillNode: any): void;
hasCustomStyle(): boolean;
hoverNode(node: any): void;
}
declare namespace Style {
let cacheStyle: any
let cacheStyle: any;
}

View File

@@ -1,23 +1,23 @@
declare namespace _default {
export { setData }
export { setText }
export { setImage }
export { setIcon }
export { setHyperlink }
export { setNote }
export { setTag }
export { setShape }
export { setStyle }
export { setStyles }
export { setData };
export { setText };
export { setImage };
export { setIcon };
export { setHyperlink };
export { setNote };
export { setTag };
export { setShape };
export { setStyle };
export { setStyles };
}
export default _default
declare function setData(data?: {}): void
declare function setText(text: any, richText: any, resetRichText: any): void
declare function setImage(imgData: any): void
declare function setIcon(icons: any): void
declare function setHyperlink(link: any, title: any): void
declare function setNote(note: any): void
declare function setTag(tag: any): void
declare function setShape(shape: any): void
declare function setStyle(prop: any, value: any): void
declare function setStyles(style: any): void
export default _default;
declare function setData(data?: {}): void;
declare function setText(text: any, richText: any, resetRichText: any): void;
declare function setImage(imgData: any): void;
declare function setIcon(icons: any): void;
declare function setHyperlink(link: any, title: any): void;
declare function setNote(note: any): void;
declare function setTag(tag: any): void;
declare function setShape(shape: any): void;
declare function setStyle(prop: any, value: any): void;
declare function setStyles(style: any): void;

View File

@@ -1,45 +1,45 @@
declare namespace _default {
export { createImgNode }
export { getImgShowSize }
export { createIconNode }
export { createRichTextNode }
export { createTextNode }
export { createHyperlinkNode }
export { createTagNode }
export { createNoteNode }
export { measureCustomNodeContentSize }
export { isUseCustomNodeContent }
export { createImgNode };
export { getImgShowSize };
export { createIconNode };
export { createRichTextNode };
export { createTextNode };
export { createHyperlinkNode };
export { createTagNode };
export { createNoteNode };
export { measureCustomNodeContentSize };
export { isUseCustomNodeContent };
}
export default _default
export default _default;
declare function createImgNode(): {
node: any
width: any
height: any
}
declare function getImgShowSize(): any
declare function createIconNode(): any
node: any;
width: any;
height: any;
};
declare function getImgShowSize(): any;
declare function createIconNode(): any;
declare function createRichTextNode(): {
node: any
width: any
height: any
}
declare function createTextNode(): any
node: any;
width: any;
height: any;
};
declare function createTextNode(): any;
declare function createHyperlinkNode(): {
node: any
width: any
height: any
}
declare function createTagNode(): any[]
node: any;
width: any;
height: any;
};
declare function createTagNode(): any[];
declare function createNoteNode(): {
node: any
width: any
height: any
}
node: any;
width: any;
height: any;
};
declare class createNoteNode {
noteEl: HTMLDivElement
noteEl: HTMLDivElement;
}
declare function measureCustomNodeContentSize(content: any): {
width: any
height: any
}
declare function isUseCustomNodeContent(): boolean
width: any;
height: any;
};
declare function isUseCustomNodeContent(): boolean;

View File

@@ -1,34 +1,34 @@
declare namespace _default {
export { createExpandNodeContent }
export { updateExpandBtnNode }
export { updateExpandBtnPos }
export { renderExpandBtn }
export { removeExpandBtn }
export { showExpandBtn }
export { hideExpandBtn }
export { sumNode }
export { createExpandNodeContent };
export { updateExpandBtnNode };
export { updateExpandBtnPos };
export { renderExpandBtn };
export { removeExpandBtn };
export { showExpandBtn };
export { hideExpandBtn };
export { sumNode };
}
export default _default
declare function createExpandNodeContent(): void
export default _default;
declare function createExpandNodeContent(): void;
declare class createExpandNodeContent {
_openExpandNode: any
_closeExpandNode: any
_fillExpandNode: any
_openExpandNode: any;
_closeExpandNode: any;
_fillExpandNode: any;
}
declare function updateExpandBtnNode(): void
declare function updateExpandBtnNode(): void;
declare class updateExpandBtnNode {
_lastExpandBtnType: boolean
_lastExpandBtnType: boolean;
}
declare function updateExpandBtnPos(): void
declare function renderExpandBtn(): void
declare function updateExpandBtnPos(): void;
declare function renderExpandBtn(): void;
declare class renderExpandBtn {
_expandBtn: any
_showExpandBtn: boolean
_expandBtn: any;
_showExpandBtn: boolean;
}
declare function removeExpandBtn(): void
declare function removeExpandBtn(): void;
declare class removeExpandBtn {
_showExpandBtn: boolean
_showExpandBtn: boolean;
}
declare function showExpandBtn(): void
declare function hideExpandBtn(): void
declare function sumNode(data?: any[]): any
declare function showExpandBtn(): void;
declare function hideExpandBtn(): void;
declare function sumNode(data?: any[]): any;

View File

@@ -1,18 +1,18 @@
declare namespace _default {
export { renderExpandBtnPlaceholderRect }
export { clearExpandBtnPlaceholderRect }
export { updateExpandBtnPlaceholderRect }
export { renderExpandBtnPlaceholderRect };
export { clearExpandBtnPlaceholderRect };
export { updateExpandBtnPlaceholderRect };
}
export default _default
declare function renderExpandBtnPlaceholderRect(): void
export default _default;
declare function renderExpandBtnPlaceholderRect(): void;
declare class renderExpandBtnPlaceholderRect {
_unVisibleRectRegionNode: any
_unVisibleRectRegionNode: any;
}
declare function clearExpandBtnPlaceholderRect(): void
declare function clearExpandBtnPlaceholderRect(): void;
declare class clearExpandBtnPlaceholderRect {
_unVisibleRectRegionNode: any
_unVisibleRectRegionNode: any;
}
declare function updateExpandBtnPlaceholderRect(): void
declare function updateExpandBtnPlaceholderRect(): void;
declare class updateExpandBtnPlaceholderRect {
needRerenderExpandBtnPlaceholderRect: boolean
needRerenderExpandBtnPlaceholderRect: boolean;
}

View File

@@ -1,32 +1,32 @@
declare namespace _default {
export { checkHasGeneralization }
export { createGeneralizationNode }
export { updateGeneralization }
export { renderGeneralization }
export { removeGeneralization }
export { hideGeneralization }
export { showGeneralization }
export { checkHasGeneralization };
export { createGeneralizationNode };
export { updateGeneralization };
export { renderGeneralization };
export { removeGeneralization };
export { hideGeneralization };
export { showGeneralization };
}
export default _default
declare function checkHasGeneralization(): boolean
declare function createGeneralizationNode(): void
export default _default;
declare function checkHasGeneralization(): boolean;
declare function createGeneralizationNode(): void;
declare class createGeneralizationNode {
_generalizationLine: any
_generalizationNode: Node
_generalizationNodeWidth: any
_generalizationNodeHeight: any
_generalizationLine: any;
_generalizationNode: Node;
_generalizationNodeWidth: any;
_generalizationNodeHeight: any;
}
declare function updateGeneralization(): void
declare function renderGeneralization(): void
declare function updateGeneralization(): void;
declare function renderGeneralization(): void;
declare class renderGeneralization {
_generalizationNodeWidth: number
_generalizationNodeHeight: number
_generalizationNodeWidth: number;
_generalizationNodeHeight: number;
}
declare function removeGeneralization(): void
declare function removeGeneralization(): void;
declare class removeGeneralization {
_generalizationLine: any
_generalizationNode: any
_generalizationLine: any;
_generalizationNode: any;
}
declare function hideGeneralization(): void
declare function showGeneralization(): void
import Node from './Node'
declare function hideGeneralization(): void;
declare function showGeneralization(): void;
import Node from './Node';

View File

@@ -1,36 +1,36 @@
export default View
export default View;
declare class View {
constructor(opt?: {})
opt: {}
mindMap: any
scale: number
sx: number
sy: number
x: number
y: number
firstDrag: boolean
bind(): void
getTransformData(): {
transform: any
state: {
scale: number
x: number
y: number
sx: number
sy: number
}
}
setTransformData(viewData: any): void
translateXY(x: any, y: any): void
translateX(step: any): void
translateXTo(x: any): void
translateY(step: any): void
translateYTo(y: any): void
transform(): void
reset(): void
narrow(cx: any, cy: any, isTouchPad: any): void
enlarge(cx: any, cy: any, isTouchPad: any): void
scaleInCenter(scale: any, cx: any, cy: any): void
setScale(scale: any, cx: any, cy: any): void
fit(): void
constructor(opt?: {});
opt: {};
mindMap: any;
scale: number;
sx: number;
sy: number;
x: number;
y: number;
firstDrag: boolean;
bind(): void;
getTransformData(): {
transform: any;
state: {
scale: number;
x: number;
y: number;
sx: number;
sy: number;
};
};
setTransformData(viewData: any): void;
translateXY(x: any, y: any): void;
translateX(step: any): void;
translateXTo(x: any): void;
translateY(step: any): void;
translateYTo(y: any): void;
transform(): void;
reset(): void;
narrow(cx: any, cy: any, isTouchPad: any): void;
enlarge(cx: any, cy: any, isTouchPad: any): void;
scaleInCenter(scale: any, cx: any, cy: any): void;
setScale(scale: any, cx: any, cy: any): void;
fit(): void;
}

View File

@@ -1,46 +1,43 @@
export default Base
export default Base;
declare class Base {
constructor(renderer: any)
renderer: any
mindMap: any
draw: any
root: any
lru: Lru
doLayout(): void
renderLine(): void
renderExpandBtn(): void
renderGeneralization(): void
cacheNode(uid: any, node: any): void
checkIsNeedResizeSources(): boolean
checkIsLayerTypeChange(oldIndex: any, newIndex: any): boolean
checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(node: any): void
createNode(data: any, parent: any, isRoot: any, layerIndex: any): any
formatPosition(value: any, size: any, nodeSize: any): number
setNodeCenter(node: any): void
updateChildren(children: any, prop: any, offset: any): void
updateChildrenPro(children: any, props: any): void
getNodeAreaWidth(node: any, withGeneralization?: boolean): number
quadraticCurvePath(x1: any, y1: any, x2: any, y2: any): string
cubicBezierPath(x1: any, y1: any, x2: any, y2: any): string
getMarginX(layerIndex: any): any
getMarginY(layerIndex: any): any
getNodeWidthWithGeneralization(node: any): number
getNodeHeightWithGeneralization(node: any): number
/**
* dir生长方向h水平、v垂直
* isLeft是否向左生长
*/
getNodeBoundaries(
node: any,
dir: any
): {
left: any
right: any
top: any
bottom: any
generalizationLineMargin: any
generalizationNodeMargin: any
}
getNodeActChildrenLength(node: any): any
constructor(renderer: any);
renderer: any;
mindMap: any;
draw: any;
root: any;
lru: Lru;
doLayout(): void;
renderLine(): void;
renderExpandBtn(): void;
renderGeneralization(): void;
cacheNode(uid: any, node: any): void;
checkIsNeedResizeSources(): boolean;
checkIsLayerTypeChange(oldIndex: any, newIndex: any): boolean;
checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(node: any): void;
createNode(data: any, parent: any, isRoot: any, layerIndex: any): any;
formatPosition(value: any, size: any, nodeSize: any): number;
setNodeCenter(node: any): void;
updateChildren(children: any, prop: any, offset: any): void;
updateChildrenPro(children: any, props: any): void;
getNodeAreaWidth(node: any, withGeneralization?: boolean): number;
quadraticCurvePath(x1: any, y1: any, x2: any, y2: any): string;
cubicBezierPath(x1: any, y1: any, x2: any, y2: any): string;
getMarginX(layerIndex: any): any;
getMarginY(layerIndex: any): any;
getNodeWidthWithGeneralization(node: any): number;
getNodeHeightWithGeneralization(node: any): number;
/**
* dir生长方向h水平、v垂直
* isLeft是否向左生长
*/
getNodeBoundaries(node: any, dir: any): {
left: any;
right: any;
top: any;
bottom: any;
generalizationLineMargin: any;
generalizationNodeMargin: any;
};
getNodeActChildrenLength(node: any): any;
}
import Lru from '../utils/Lru'
import Lru from '../utils/Lru';

View File

@@ -1,21 +1,15 @@
export default CatalogOrganization
export default CatalogOrganization;
declare class CatalogOrganization extends Base {
constructor(opt?: {})
doLayout(callback: any): void
computedBaseValue(): void
computedLeftTopValue(): void
adjustLeftTopValue(): void
updateBrothersLeft(node: any, addWidth: any): void
updateBrothersTop(node: any, addHeight: any): void
renderLine(node: any, lines: any, style: any): any[]
renderExpandBtn(node: any, btn: any): void
renderGeneralization(node: any, gLine: any, gNode: any): void
renderExpandBtnRect(
rect: any,
expandBtnSize: any,
width: any,
height: any,
node: any
): void
constructor(opt?: {});
doLayout(callback: any): void;
computedBaseValue(): void;
computedLeftTopValue(): void;
adjustLeftTopValue(): void;
updateBrothersLeft(node: any, addWidth: any): void;
updateBrothersTop(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from './Base'
import Base from './Base';

View File

@@ -1,25 +1,19 @@
export default Fishbone
export default Fishbone;
declare class Fishbone extends Base {
constructor(opt?: {})
indent: number
childIndent: number
doLayout(callback: any): void
computedBaseValue(): void
computedLeftTopValue(): void
adjustLeftTopValue(): void
getNodeAreaHeight(node: any): number
updateBrothersLeft(node: any): void
updateBrothersTop(node: any, addHeight: any): void
checkIsTop(node: any): boolean
renderLine(node: any, lines: any, style: any): any[]
renderExpandBtn(node: any, btn: any): void
renderGeneralization(node: any, gLine: any, gNode: any): void
renderExpandBtnRect(
rect: any,
expandBtnSize: any,
width: any,
height: any,
node: any
): void
constructor(opt?: {});
indent: number;
childIndent: number;
doLayout(callback: any): void;
computedBaseValue(): void;
computedLeftTopValue(): void;
adjustLeftTopValue(): void;
getNodeAreaHeight(node: any): number;
updateBrothersLeft(node: any): void;
updateBrothersTop(node: any, addHeight: any): void;
checkIsTop(node: any): boolean;
renderLine(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from './Base'
import Base from './Base';

View File

@@ -1,23 +1,17 @@
export default LogicalStructure
export default LogicalStructure;
declare class LogicalStructure extends Base {
constructor(opt?: {})
doLayout(callback: any): void
computedBaseValue(): void
computedTopValue(): void
adjustTopValue(): void
updateBrothers(node: any, addHeight: any): void
renderLine(node: any, lines: any, style: any, lineStyle: any): void
renderLineStraight(node: any, lines: any, style: any): any[]
renderLineDirect(node: any, lines: any, style: any): any[]
renderLineCurve(node: any, lines: any, style: any): any[]
renderExpandBtn(node: any, btn: any): void
renderGeneralization(node: any, gLine: any, gNode: any): void
renderExpandBtnRect(
rect: any,
expandBtnSize: any,
width: any,
height: any,
node: any
): void
constructor(opt?: {});
doLayout(callback: any): void;
computedBaseValue(): void;
computedTopValue(): void;
adjustTopValue(): void;
updateBrothers(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineStraight(node: any, lines: any, style: any): any[];
renderLineDirect(node: any, lines: any, style: any): any[];
renderLineCurve(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from './Base'
import Base from './Base';

View File

@@ -1,23 +1,17 @@
export default MindMap
export default MindMap;
declare class MindMap extends Base {
constructor(opt?: {})
doLayout(callback: any): void
computedBaseValue(): void
computedTopValue(): void
adjustTopValue(): void
updateBrothers(node: any, leftAddHeight: any, rightAddHeight: any): void
renderLine(node: any, lines: any, style: any, lineStyle: any): void
renderLineStraight(node: any, lines: any, style: any): any[]
renderLineDirect(node: any, lines: any, style: any): any[]
renderLineCurve(node: any, lines: any, style: any): any[]
renderExpandBtn(node: any, btn: any): void
renderGeneralization(node: any, gLine: any, gNode: any): void
renderExpandBtnRect(
rect: any,
expandBtnSize: any,
width: any,
height: any,
node: any
): void
constructor(opt?: {});
doLayout(callback: any): void;
computedBaseValue(): void;
computedTopValue(): void;
adjustTopValue(): void;
updateBrothers(node: any, leftAddHeight: any, rightAddHeight: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineStraight(node: any, lines: any, style: any): any[];
renderLineDirect(node: any, lines: any, style: any): any[];
renderLineCurve(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from './Base'
import Base from './Base';

View File

@@ -1,22 +1,16 @@
export default OrganizationStructure
export default OrganizationStructure;
declare class OrganizationStructure extends Base {
constructor(opt?: {})
doLayout(callback: any): void
computedBaseValue(): void
computedLeftValue(): void
adjustLeftValue(): void
updateBrothers(node: any, addWidth: any): void
renderLine(node: any, lines: any, style: any, lineStyle: any): void
renderLineDirect(node: any, lines: any, style: any): any[]
renderLineStraight(node: any, lines: any, style: any): any[]
renderExpandBtn(node: any, btn: any): void
renderGeneralization(node: any, gLine: any, gNode: any): void
renderExpandBtnRect(
rect: any,
expandBtnSize: any,
width: any,
height: any,
node: any
): void
constructor(opt?: {});
doLayout(callback: any): void;
computedBaseValue(): void;
computedLeftValue(): void;
adjustLeftValue(): void;
updateBrothers(node: any, addWidth: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineDirect(node: any, lines: any, style: any): any[];
renderLineStraight(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from './Base'
import Base from './Base';

View File

@@ -1,23 +1,17 @@
export default Timeline
export default Timeline;
declare class Timeline extends Base {
constructor(opt: {}, layout: any)
layout: any
doLayout(callback: any): void
computedBaseValue(): void
computedLeftTopValue(): void
adjustLeftTopValue(): void
getNodeAreaHeight(node: any): number
updateBrothersLeft(node: any): void
updateBrothersTop(node: any, addHeight: any): void
renderLine(node: any, lines: any, style: any): any[]
renderExpandBtn(node: any, btn: any): void
renderGeneralization(node: any, gLine: any, gNode: any): void
renderExpandBtnRect(
rect: any,
expandBtnSize: any,
width: any,
height: any,
node: any
): void
constructor(opt: {}, layout: any);
layout: any;
doLayout(callback: any): void;
computedBaseValue(): void;
computedLeftTopValue(): void;
adjustLeftTopValue(): void;
getNodeAreaHeight(node: any): number;
updateBrothersLeft(node: any): void;
updateBrothersTop(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from './Base'
import Base from './Base';

View File

@@ -1,25 +1,19 @@
export default VerticalTimeline
export default VerticalTimeline;
declare class VerticalTimeline extends Base {
constructor(opt: {}, layout: any)
layout: any
doLayout(callback: any): void
computedBaseValue(): void
computedTopValue(): void
adjustLeftTopValue(): void
updateBrothers(node: any, addHeight: any): void
updateBrothersTop(node: any, addHeight: any): void
renderLine(node: any, lines: any, style: any, lineStyle: any): void
renderLineStraight(node: any, lines: any, style: any): any[]
renderLineDirect(node: any, lines: any, style: any): any[]
renderLineCurve(node: any, lines: any, style: any): any[]
renderExpandBtn(node: any, btn: any): void
renderGeneralization(node: any, gLine: any, gNode: any): void
renderExpandBtnRect(
rect: any,
expandBtnSize: any,
width: any,
height: any,
node: any
): void
constructor(opt: {}, layout: any);
layout: any;
doLayout(callback: any): void;
computedBaseValue(): void;
computedTopValue(): void;
adjustLeftTopValue(): void;
updateBrothers(node: any, addHeight: any): void;
updateBrothersTop(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineStraight(node: any, lines: any, style: any): any[];
renderLineDirect(node: any, lines: any, style: any): any[];
renderLineCurve(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from './Base'
import Base from './Base';

View File

@@ -1,137 +1,77 @@
declare namespace _default {
namespace top {
function renderExpandBtn({
node,
btn,
expandBtnSize,
translateX,
translateY,
width,
height
}: {
node: any
btn: any
expandBtnSize: any
translateX: any
translateY: any
width: any
height: any
}): void
function renderLine({
node,
line,
top,
x,
lineLength,
height,
expandBtnSize,
maxy,
ctx
}: {
node: any
line: any
top: any
x: any
lineLength: any
height: any
expandBtnSize: any
maxy: any
ctx: any
}): void
function computedLeftTopValue({
layerIndex,
node,
ctx
}: {
layerIndex: any
node: any
ctx: any
}): void
function adjustLeftTopValueBefore({
node,
parent,
ctx,
layerIndex
}: {
node: any
parent: any
ctx: any
layerIndex: any
}): void
function adjustLeftTopValueAfter({
parent,
node,
ctx
}: {
parent: any
node: any
ctx: any
}): void
}
namespace bottom {
function renderExpandBtn({
node,
btn,
expandBtnSize,
translateX,
translateY,
width,
height
}: {
node: any
btn: any
expandBtnSize: any
translateX: any
translateY: any
width: any
height: any
}): void
function renderLine({
node,
line,
top,
x,
lineLength,
height,
miny,
ctx
}: {
node: any
line: any
top: any
x: any
lineLength: any
height: any
miny: any
ctx: any
}): void
function computedLeftTopValue({
layerIndex,
node,
ctx
}: {
layerIndex: any
node: any
ctx: any
}): void
function adjustLeftTopValueBefore({
node,
ctx,
layerIndex
}: {
node: any
ctx: any
layerIndex: any
}): void
function adjustLeftTopValueAfter({
parent,
node,
ctx
}: {
parent: any
node: any
ctx: any
}): void
}
namespace top {
function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: {
node: any;
btn: any;
expandBtnSize: any;
translateX: any;
translateY: any;
width: any;
height: any;
}): void;
function renderLine({ node, line, top, x, lineLength, height, expandBtnSize, maxy, ctx }: {
node: any;
line: any;
top: any;
x: any;
lineLength: any;
height: any;
expandBtnSize: any;
maxy: any;
ctx: any;
}): void;
function computedLeftTopValue({ layerIndex, node, ctx }: {
layerIndex: any;
node: any;
ctx: any;
}): void;
function adjustLeftTopValueBefore({ node, parent, ctx, layerIndex }: {
node: any;
parent: any;
ctx: any;
layerIndex: any;
}): void;
function adjustLeftTopValueAfter({ parent, node, ctx }: {
parent: any;
node: any;
ctx: any;
}): void;
}
namespace bottom {
function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: {
node: any;
btn: any;
expandBtnSize: any;
translateX: any;
translateY: any;
width: any;
height: any;
}): void;
function renderLine({ node, line, top, x, lineLength, height, miny, ctx }: {
node: any;
line: any;
top: any;
x: any;
lineLength: any;
height: any;
miny: any;
ctx: any;
}): void;
function computedLeftTopValue({ layerIndex, node, ctx }: {
layerIndex: any;
node: any;
ctx: any;
}): void;
function adjustLeftTopValueBefore({ node, ctx, layerIndex }: {
node: any;
ctx: any;
layerIndex: any;
}): void;
function adjustLeftTopValueAfter({ parent, node, ctx }: {
parent: any;
node: any;
ctx: any;
}): void;
}
}
export default _default
export default _default;

View File

@@ -1,11 +1,11 @@
declare namespace _default {
export { open }
export { close }
export { remove }
export { imgAdjust }
export { open };
export { close };
export { remove };
export { imgAdjust };
}
export default _default
declare const open: '<svg t="1618141562310" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13476" width="200" height="200"><path d="M475.136 327.168v147.968h-147.968v74.24h147.968v147.968h74.24v-147.968h147.968v-74.24h-147.968v-147.968h-74.24z m36.864-222.208c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13477"></path></svg>'
declare const close: '<svg t="1618141589243" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13611" width="200" height="200"><path d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13612"></path><path d="M252.928 474.624h518.144v74.24h-518.144z" p-id="13613"></path></svg>'
declare const remove: '<svg width="14px" height="14px" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="13611" width="200" height="200"><path fill="#ffffff" d="M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z" p-id="13612"></path><path fill="#ffffff" d="M252.928 474.624h518.144v74.24h-518.144z" p-id="13613"></path></svg>'
declare const imgAdjust: '<svg width="12px" height="12px" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path fill="#ffffff" d="M1008.128 614.4a25.6 25.6 0 0 0-27.648 5.632l-142.848 142.848L259.072 186.88 401.92 43.52A25.6 25.6 0 0 0 384 0h-358.4a25.6 25.6 0 0 0-25.6 25.6v358.4a25.6 25.6 0 0 0 43.52 17.92l143.36-142.848 578.048 578.048-142.848 142.848a25.6 25.6 0 0 0 17.92 43.52h358.4a25.6 25.6 0 0 0 25.6-25.6v-358.4a25.6 25.6 0 0 0-15.872-25.088z" /></svg>'
export default _default;
declare const open: "<svg t=\"1618141562310\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"13476\" width=\"200\" height=\"200\"><path d=\"M475.136 327.168v147.968h-147.968v74.24h147.968v147.968h74.24v-147.968h147.968v-74.24h-147.968v-147.968h-74.24z m36.864-222.208c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z\" p-id=\"13477\"></path></svg>";
declare const close: "<svg t=\"1618141589243\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"13611\" width=\"200\" height=\"200\"><path d=\"M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z\" p-id=\"13612\"></path><path d=\"M252.928 474.624h518.144v74.24h-518.144z\" p-id=\"13613\"></path></svg>";
declare const remove: "<svg width=\"14px\" height=\"14px\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"13611\" width=\"200\" height=\"200\"><path fill=\"#ffffff\" d=\"M512 105.472c225.28 0 407.04 181.76 407.04 407.04s-181.76 407.04-407.04 407.04-407.04-181.76-407.04-407.04 181.76-407.04 407.04-407.04z m0-74.24c-265.216 0-480.768 215.552-480.768 480.768s215.552 480.768 480.768 480.768 480.768-215.552 480.768-480.768-215.552-480.768-480.768-480.768z\" p-id=\"13612\"></path><path fill=\"#ffffff\" d=\"M252.928 474.624h518.144v74.24h-518.144z\" p-id=\"13613\"></path></svg>";
declare const imgAdjust: "<svg width=\"12px\" height=\"12px\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path fill=\"#ffffff\" d=\"M1008.128 614.4a25.6 25.6 0 0 0-27.648 5.632l-142.848 142.848L259.072 186.88 401.92 43.52A25.6 25.6 0 0 0 384 0h-358.4a25.6 25.6 0 0 0-25.6 25.6v358.4a25.6 25.6 0 0 0 43.52 17.92l143.36-142.848 578.048 578.048-142.848 142.848a25.6 25.6 0 0 0 17.92 43.52h358.4a25.6 25.6 0 0 0 25.6-25.6v-358.4a25.6 25.6 0 0 0-15.872-25.088z\" /></svg>";

View File

@@ -1,18 +1,18 @@
export const nodeIconList: {
name: string
type: string
list: {
name: string
icon: string
}[]
}[]
name: string;
type: string;
list: {
name: string;
icon: string;
}[];
}[];
declare namespace _default {
export { hyperlink }
export { note }
export { nodeIconList }
export { getNodeIconListIcon }
export { hyperlink };
export { note };
export { nodeIconList };
export { getNodeIconListIcon };
}
export default _default
declare const hyperlink: '<svg t="1624174958075" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7982" ><path d="M435.484444 251.733333v68.892445L295.822222 320.682667a168.504889 168.504889 0 0 0-2.844444 336.952889h142.506666v68.892444H295.822222a237.397333 237.397333 0 0 1 0-474.794667h139.662222z m248.945778 0a237.397333 237.397333 0 0 1 0 474.851556H544.654222v-69.006222l139.776 0.056889a168.504889 168.504889 0 0 0 2.844445-336.952889H544.597333V251.676444h139.776z m-25.827555 203.946667a34.474667 34.474667 0 0 1 0 68.892444H321.649778a34.474667 34.474667 0 0 1 0-68.892444h336.952889z" p-id="7983"></path></svg>'
declare const note: '<svg t="1624195132675" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8792" ><path d="M152.768 985.984 152.768 49.856l434.56 0 66.816 0 234.048 267.392 0 66.816 0 601.92L152.768 985.984 152.768 985.984zM654.144 193.088l0 124.16 108.736 0L654.144 193.088 654.144 193.088zM821.312 384.064l-167.168 0L587.328 384.064 587.328 317.312 587.328 116.736 219.584 116.736 219.584 919.04l601.728 0L821.312 384.064 821.312 384.064zM386.688 517.888 319.808 517.888 319.808 450.944l66.816 0L386.624 517.888 386.688 517.888zM386.688 651.584 319.808 651.584 319.808 584.704l66.816 0L386.624 651.584 386.688 651.584zM386.688 785.344 319.808 785.344l0-66.88 66.816 0L386.624 785.344 386.688 785.344zM721.024 517.888 453.632 517.888 453.632 450.944l267.392 0L721.024 517.888 721.024 517.888zM654.144 651.584 453.632 651.584 453.632 584.704l200.512 0L654.144 651.584 654.144 651.584zM620.672 785.344l-167.04 0 0-66.88 167.04 0L620.672 785.344 620.672 785.344z" p-id="8793"></path></svg>'
declare function getNodeIconListIcon(name: any, extendIconList?: any[]): any
export default _default;
declare const hyperlink: "<svg t=\"1624174958075\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"7982\" ><path d=\"M435.484444 251.733333v68.892445L295.822222 320.682667a168.504889 168.504889 0 0 0-2.844444 336.952889h142.506666v68.892444H295.822222a237.397333 237.397333 0 0 1 0-474.794667h139.662222z m248.945778 0a237.397333 237.397333 0 0 1 0 474.851556H544.654222v-69.006222l139.776 0.056889a168.504889 168.504889 0 0 0 2.844445-336.952889H544.597333V251.676444h139.776z m-25.827555 203.946667a34.474667 34.474667 0 0 1 0 68.892444H321.649778a34.474667 34.474667 0 0 1 0-68.892444h336.952889z\" p-id=\"7983\"></path></svg>";
declare const note: "<svg t=\"1624195132675\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"8792\" ><path d=\"M152.768 985.984 152.768 49.856l434.56 0 66.816 0 234.048 267.392 0 66.816 0 601.92L152.768 985.984 152.768 985.984zM654.144 193.088l0 124.16 108.736 0L654.144 193.088 654.144 193.088zM821.312 384.064l-167.168 0L587.328 384.064 587.328 317.312 587.328 116.736 219.584 116.736 219.584 919.04l601.728 0L821.312 384.064 821.312 384.064zM386.688 517.888 319.808 517.888 319.808 450.944l66.816 0L386.624 517.888 386.688 517.888zM386.688 651.584 319.808 651.584 319.808 584.704l66.816 0L386.624 651.584 386.688 651.584zM386.688 785.344 319.808 785.344l0-66.88 66.816 0L386.624 785.344 386.688 785.344zM721.024 517.888 453.632 517.888 453.632 450.944l267.392 0L721.024 517.888 721.024 517.888zM654.144 651.584 453.632 651.584 453.632 584.704l200.512 0L654.144 651.584 654.144 651.584zM620.672 785.344l-167.04 0 0-66.88 167.04 0L620.672 785.344 620.672 785.344z\" p-id=\"8793\"></path></svg>";
declare function getNodeIconListIcon(name: any, extendIconList?: any[]): any;

View File

@@ -1,143 +1,143 @@
declare namespace _default {
let paddingX: number
let paddingY: number
let imgMaxWidth: number
let imgMaxHeight: number
let iconSize: number
let lineWidth: number
let lineColor: string
let lineDasharray: string
let lineStyle: string
let rootLineKeepSameInCurve: boolean
let generalizationLineWidth: number
let generalizationLineColor: string
let generalizationLineMargin: number
let generalizationNodeMargin: number
let associativeLineWidth: number
let associativeLineColor: string
let associativeLineActiveWidth: number
let associativeLineActiveColor: string
let associativeLineTextColor: string
let associativeLineTextFontSize: number
let associativeLineTextLineHeight: number
let associativeLineTextFontFamily: string
let backgroundColor: string
let backgroundImage: string
let backgroundRepeat: string
let backgroundPosition: string
let backgroundSize: string
let nodeUseLineStyle: boolean
namespace root {
let shape: string
let fillColor: string
let fontFamily: string
let color: string
let fontSize: number
let fontWeight: string
let fontStyle: string
let lineHeight: number
let borderColor: string
let borderWidth: number
let borderDasharray: string
let borderRadius: number
let textDecoration: string
}
namespace second {
let shape_1: string
export { shape_1 as shape }
export let marginX: number
export let marginY: number
let fillColor_1: string
export { fillColor_1 as fillColor }
let fontFamily_1: string
export { fontFamily_1 as fontFamily }
let color_1: string
export { color_1 as color }
let fontSize_1: number
export { fontSize_1 as fontSize }
let fontWeight_1: string
export { fontWeight_1 as fontWeight }
let fontStyle_1: string
export { fontStyle_1 as fontStyle }
let lineHeight_1: number
export { lineHeight_1 as lineHeight }
let borderColor_1: string
export { borderColor_1 as borderColor }
let borderWidth_1: number
export { borderWidth_1 as borderWidth }
let borderDasharray_1: string
export { borderDasharray_1 as borderDasharray }
let borderRadius_1: number
export { borderRadius_1 as borderRadius }
let textDecoration_1: string
export { textDecoration_1 as textDecoration }
}
namespace node {
let shape_2: string
export { shape_2 as shape }
let marginX_1: number
export { marginX_1 as marginX }
let marginY_1: number
export { marginY_1 as marginY }
let fillColor_2: string
export { fillColor_2 as fillColor }
let fontFamily_2: string
export { fontFamily_2 as fontFamily }
let color_2: string
export { color_2 as color }
let fontSize_2: number
export { fontSize_2 as fontSize }
let fontWeight_2: string
export { fontWeight_2 as fontWeight }
let fontStyle_2: string
export { fontStyle_2 as fontStyle }
let lineHeight_2: number
export { lineHeight_2 as lineHeight }
let borderColor_2: string
export { borderColor_2 as borderColor }
let borderWidth_2: number
export { borderWidth_2 as borderWidth }
let borderRadius_2: number
export { borderRadius_2 as borderRadius }
let borderDasharray_2: string
export { borderDasharray_2 as borderDasharray }
let textDecoration_2: string
export { textDecoration_2 as textDecoration }
}
namespace generalization {
let shape_3: string
export { shape_3 as shape }
let marginX_2: number
export { marginX_2 as marginX }
let marginY_2: number
export { marginY_2 as marginY }
let fillColor_3: string
export { fillColor_3 as fillColor }
let fontFamily_3: string
export { fontFamily_3 as fontFamily }
let color_3: string
export { color_3 as color }
let fontSize_3: number
export { fontSize_3 as fontSize }
let fontWeight_3: string
export { fontWeight_3 as fontWeight }
let fontStyle_3: string
export { fontStyle_3 as fontStyle }
let lineHeight_3: number
export { lineHeight_3 as lineHeight }
let borderColor_3: string
export { borderColor_3 as borderColor }
let borderWidth_3: number
export { borderWidth_3 as borderWidth }
let borderDasharray_3: string
export { borderDasharray_3 as borderDasharray }
let borderRadius_3: number
export { borderRadius_3 as borderRadius }
let textDecoration_3: string
export { textDecoration_3 as textDecoration }
}
let paddingX: number;
let paddingY: number;
let imgMaxWidth: number;
let imgMaxHeight: number;
let iconSize: number;
let lineWidth: number;
let lineColor: string;
let lineDasharray: string;
let lineStyle: string;
let rootLineKeepSameInCurve: boolean;
let generalizationLineWidth: number;
let generalizationLineColor: string;
let generalizationLineMargin: number;
let generalizationNodeMargin: number;
let associativeLineWidth: number;
let associativeLineColor: string;
let associativeLineActiveWidth: number;
let associativeLineActiveColor: string;
let associativeLineTextColor: string;
let associativeLineTextFontSize: number;
let associativeLineTextLineHeight: number;
let associativeLineTextFontFamily: string;
let backgroundColor: string;
let backgroundImage: string;
let backgroundRepeat: string;
let backgroundPosition: string;
let backgroundSize: string;
let nodeUseLineStyle: boolean;
namespace root {
let shape: string;
let fillColor: string;
let fontFamily: string;
let color: string;
let fontSize: number;
let fontWeight: string;
let fontStyle: string;
let lineHeight: number;
let borderColor: string;
let borderWidth: number;
let borderDasharray: string;
let borderRadius: number;
let textDecoration: string;
}
namespace second {
let shape_1: string;
export { shape_1 as shape };
export let marginX: number;
export let marginY: number;
let fillColor_1: string;
export { fillColor_1 as fillColor };
let fontFamily_1: string;
export { fontFamily_1 as fontFamily };
let color_1: string;
export { color_1 as color };
let fontSize_1: number;
export { fontSize_1 as fontSize };
let fontWeight_1: string;
export { fontWeight_1 as fontWeight };
let fontStyle_1: string;
export { fontStyle_1 as fontStyle };
let lineHeight_1: number;
export { lineHeight_1 as lineHeight };
let borderColor_1: string;
export { borderColor_1 as borderColor };
let borderWidth_1: number;
export { borderWidth_1 as borderWidth };
let borderDasharray_1: string;
export { borderDasharray_1 as borderDasharray };
let borderRadius_1: number;
export { borderRadius_1 as borderRadius };
let textDecoration_1: string;
export { textDecoration_1 as textDecoration };
}
namespace node {
let shape_2: string;
export { shape_2 as shape };
let marginX_1: number;
export { marginX_1 as marginX };
let marginY_1: number;
export { marginY_1 as marginY };
let fillColor_2: string;
export { fillColor_2 as fillColor };
let fontFamily_2: string;
export { fontFamily_2 as fontFamily };
let color_2: string;
export { color_2 as color };
let fontSize_2: number;
export { fontSize_2 as fontSize };
let fontWeight_2: string;
export { fontWeight_2 as fontWeight };
let fontStyle_2: string;
export { fontStyle_2 as fontStyle };
let lineHeight_2: number;
export { lineHeight_2 as lineHeight };
let borderColor_2: string;
export { borderColor_2 as borderColor };
let borderWidth_2: number;
export { borderWidth_2 as borderWidth };
let borderRadius_2: number;
export { borderRadius_2 as borderRadius };
let borderDasharray_2: string;
export { borderDasharray_2 as borderDasharray };
let textDecoration_2: string;
export { textDecoration_2 as textDecoration };
}
namespace generalization {
let shape_3: string;
export { shape_3 as shape };
let marginX_2: number;
export { marginX_2 as marginX };
let marginY_2: number;
export { marginY_2 as marginY };
let fillColor_3: string;
export { fillColor_3 as fillColor };
let fontFamily_3: string;
export { fontFamily_3 as fontFamily };
let color_3: string;
export { color_3 as color };
let fontSize_3: number;
export { fontSize_3 as fontSize };
let fontWeight_3: string;
export { fontWeight_3 as fontWeight };
let fontStyle_3: string;
export { fontStyle_3 as fontStyle };
let lineHeight_3: number;
export { lineHeight_3 as lineHeight };
let borderColor_3: string;
export { borderColor_3 as borderColor };
let borderWidth_3: number;
export { borderWidth_3 as borderWidth };
let borderDasharray_3: string;
export { borderDasharray_3 as borderDasharray };
let borderRadius_3: number;
export { borderRadius_3 as borderRadius };
let textDecoration_3: string;
export { textDecoration_3 as textDecoration };
}
}
export default _default
export const supportActiveStyle: string[]
export function checkIsNodeSizeIndependenceConfig(config: any): boolean
export const lineStyleProps: string[]
export default _default;
export const supportActiveStyle: string[];
export function checkIsNodeSizeIndependenceConfig(config: any): boolean;
export const lineStyleProps: string[];

View File

@@ -1,8 +1,8 @@
export default BatchExecution
export default BatchExecution;
declare class BatchExecution {
has: {}
queue: any[]
nextTick: any
push(name: any, fn: any): void
flush(): void
has: {};
queue: any[];
nextTick: any;
push(name: any, fn: any): void;
flush(): void;
}

View File

@@ -1,10 +1,10 @@
export default class CRU {
constructor(max: any)
max: any
size: number
pool: Map<any, any>
add(key: any, value: any): void
delete(key: any): void
has(key: any): boolean
get(key: any): any
export default class Lru {
constructor(max: any);
max: any;
size: number;
pool: Map<any, any>;
add(key: any, value: any): void;
delete(key: any): void;
has(key: any): boolean;
get(key: any): any;
}

View File

@@ -1,113 +1,69 @@
export function walk(
root: any,
parent: any,
beforeCallback: any,
afterCallback: any,
isRoot: any,
layerIndex?: number,
index?: number
): void
export function bfsWalk(root: any, callback: any): void
export function resizeImgSizeByOriginRatio(
width: any,
height: any,
newWidth: any,
newHeight: any
): any[]
export function resizeImgSize(
width: any,
height: any,
maxWidth: any,
maxHeight: any
): any[]
export function resizeImg(
imgUrl: any,
maxWidth: any,
maxHeight: any
): Promise<any>
export function getStrWithBrFromHtml(str: any): any
export function simpleDeepClone(data: any): any
export function copyRenderTree(
tree: any,
root: any,
removeActiveState?: boolean
): any
export function copyNodeTree(
tree: any,
root: any,
removeActiveState?: boolean,
keepId?: boolean
): any
export function imgToDataUrl(src: any): Promise<any>
export function parseDataUrl(data: any): any
export function downloadFile(file: any, fileName: any): void
export function throttle(
fn: any,
time: number,
ctx: any
): (...args: any[]) => void
export function asyncRun(taskList: any, callback?: () => void): void
export function degToRad(deg: any): number
export function camelCaseToHyphen(str: any): any
export function measureText(
text: any,
{
italic,
bold,
fontSize,
fontFamily
}: {
italic: any
bold: any
fontSize: any
fontFamily: any
}
): {
width: any
height: any
}
export function joinFontStr({
italic,
bold,
fontSize,
fontFamily
}: {
italic: any
bold: any
fontSize: any
fontFamily: any
}): string
export function nextTick(fn: any, ctx: any): () => void
export function checkNodeOuter(
mindMap: any,
node: any
): {
isOuter: boolean
offsetLeft: number
offsetTop: number
}
export function getTextFromHtml(html: any): any
export function readBlob(blob: any): Promise<any>
export function nodeToHTML(node: any): any
export function getImageSize(src: any): Promise<any>
export function createUid(): any
export function loadImage(imgFile: any): Promise<any>
export function removeHTMLEntities(str: any): any
export function getType(data: any): any
export function isUndef(data: any): boolean
export function removeHtmlStyle(html: any): any
export function addHtmlStyle(html: any, tag: any, style: any): any
export function checkIsRichText(str: any): boolean
export function replaceHtmlText(
html: any,
searchText: any,
replaceText: any
): any
export function isWhite(color: any): boolean
export function isTransparent(color: any): boolean
export function getVisibleColorFromTheme(themeConfig: any): any
export function nodeRichTextToTextWithWrap(html: any): string
export function textToNodeRichTextWithWrap(html: any): string
export function isMobile(): boolean
export function getObjectChangedProps(oldObject: any, newObject: any): {}
export function checkIsNodeStyleDataKey(key: any): boolean
export function walk(root: any, parent: any, beforeCallback: any, afterCallback: any, isRoot: any, layerIndex?: number, index?: number): void;
export function bfsWalk(root: any, callback: any): void;
export function resizeImgSizeByOriginRatio(width: any, height: any, newWidth: any, newHeight: any): any[];
export function resizeImgSize(width: any, height: any, maxWidth: any, maxHeight: any): any[];
export function resizeImg(imgUrl: any, maxWidth: any, maxHeight: any): Promise<any>;
export function getStrWithBrFromHtml(str: any): any;
export function simpleDeepClone(data: any): any;
export function copyRenderTree(tree: any, root: any, removeActiveState?: boolean): any;
export function copyNodeTree(tree: any, root: any, removeActiveState?: boolean, keepId?: boolean): any;
export function imgToDataUrl(src: any): Promise<any>;
export function parseDataUrl(data: any): any;
export function downloadFile(file: any, fileName: any): void;
export function throttle(fn: any, time: number, ctx: any): (...args: any[]) => void;
export function asyncRun(taskList: any, callback?: () => void): void;
export function degToRad(deg: any): number;
export function camelCaseToHyphen(str: any): any;
export function measureText(text: any, { italic, bold, fontSize, fontFamily }: {
italic: any;
bold: any;
fontSize: any;
fontFamily: any;
}): {
width: any;
height: any;
};
export function joinFontStr({ italic, bold, fontSize, fontFamily }: {
italic: any;
bold: any;
fontSize: any;
fontFamily: any;
}): string;
export function nextTick(fn: any, ctx: any): () => void;
export function checkNodeOuter(mindMap: any, node: any): {
isOuter: boolean;
offsetLeft: number;
offsetTop: number;
};
export function getTextFromHtml(html: any): any;
export function readBlob(blob: any): Promise<any>;
export function nodeToHTML(node: any): any;
export function getImageSize(src: any): Promise<any>;
export function createUid(): any;
export function loadImage(imgFile: any): Promise<any>;
export function removeHTMLEntities(str: any): any;
export function getType(data: any): any;
export function isUndef(data: any): boolean;
export function removeHtmlStyle(html: any): any;
export function addHtmlStyle(html: any, tag: any, style: any): any;
export function checkIsRichText(str: any): boolean;
export function replaceHtmlText(html: any, searchText: any, replaceText: any): any;
export function isWhite(color: any): boolean;
export function isTransparent(color: any): boolean;
export function getVisibleColorFromTheme(themeConfig: any): any;
export function nodeRichTextToTextWithWrap(html: any): string;
export function textToNodeRichTextWithWrap(html: any): string;
export function isMobile(): boolean;
export function getObjectChangedProps(oldObject: any, newObject: any): {};
export function checkIsNodeStyleDataKey(key: any): boolean;
export function mergerIconList(list: any): any;
export function getTopAncestorsFomNodeList(list: any): any[];
export function checkTwoRectIsOverlap(minx1: any, maxx1: any, miny1: any, maxy1: any, minx2: any, maxx2: any, miny2: any, maxy2: any): boolean;
export function focusInput(el: any): void;
export function selectAllInput(el: any): void;
export function addDataToAppointNodes(appointNodes: any, data?: {}): any;
export function createUidForAppointNodes(appointNodes: any): any;
export function formatDataToArray(data: any): any[];
export function getNodeIndex(node: any): any;
export function generateColorByContent(str: any): string;
export function htmlEscape(str: any): any;

View File

@@ -0,0 +1,23 @@
/**
* @description 为了保证相同的内容每次生成的随机数都是一样的我们可以使用一个伪随机数生成器PRNG并使用内容的哈希值作为种子。以下是一个使用Mersenne Twister算法的PRNG的实现
*
* @param {*} seed
*/
export default function MersenneTwister(seed: any): void;
export default class MersenneTwister {
/**
* @description 为了保证相同的内容每次生成的随机数都是一样的我们可以使用一个伪随机数生成器PRNG并使用内容的哈希值作为种子。以下是一个使用Mersenne Twister算法的PRNG的实现
*
* @param {*} seed
*/
constructor(seed: any);
N: number;
M: number;
MATRIX_A: number;
UPPER_MASK: number;
LOWER_MASK: number;
mt: any[];
mti: number;
init_genrand(s: any): void;
genrand_int32(): number;
}