打包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>// <!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.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) => { return new Promise((resolve, reject) => {
setTimeout(() => { setTimeout(() => {
resolve({ resolve({
@ -66,4 +66,4 @@
// 可以通过window.$bus.$on()来监听应用的一些事件 // 可以通过window.$bus.$on()来监听应用的一些事件
// 实例化页面 // 实例化页面
window.initApp() 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", "name": "simple-mind-map",
"version": "0.7.1-fix.2", "version": "0.7.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"version": "0.7.1-fix.2", "version": "0.7.2",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@svgdotjs/svg.js": "^3.0.16", "@svgdotjs/svg.js": "^3.0.16",

View File

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

View File

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

View File

@ -1,113 +1,109 @@
export const tagColorList: {
color: string
background: string
}[]
export const themeList: { export const themeList: {
name: string name: string;
value: string value: string;
dark: boolean dark: boolean;
}[] }[];
export namespace CONSTANTS { export namespace CONSTANTS {
let CHANGE_THEME: string let CHANGE_THEME: string;
let CHANGE_LAYOUT: string let CHANGE_LAYOUT: string;
let SET_DATA: string let SET_DATA: string;
let TRANSFORM_TO_NORMAL_NODE: string let TRANSFORM_TO_NORMAL_NODE: string;
namespace MODE { namespace MODE {
let READONLY: string let READONLY: string;
let EDIT: string let EDIT: string;
} }
namespace LAYOUT { namespace LAYOUT {
let LOGICAL_STRUCTURE: string let LOGICAL_STRUCTURE: string;
let MIND_MAP: string let MIND_MAP: string;
let ORGANIZATION_STRUCTURE: string let ORGANIZATION_STRUCTURE: string;
let CATALOG_ORGANIZATION: string let CATALOG_ORGANIZATION: string;
let TIMELINE: string let TIMELINE: string;
let TIMELINE2: string let TIMELINE2: string;
let FISHBONE: string let FISHBONE: string;
let VERTICAL_TIMELINE: string let VERTICAL_TIMELINE: string;
} }
namespace DIR { namespace DIR {
let UP: string let UP: string;
let LEFT: string let LEFT: string;
let DOWN: string let DOWN: string;
let RIGHT: string let RIGHT: string;
} }
namespace KEY_DIR { namespace KEY_DIR {
let LEFT_1: string let LEFT_1: string;
export { LEFT_1 as LEFT } export { LEFT_1 as LEFT };
let UP_1: string let UP_1: string;
export { UP_1 as UP } export { UP_1 as UP };
let RIGHT_1: string let RIGHT_1: string;
export { RIGHT_1 as RIGHT } export { RIGHT_1 as RIGHT };
let DOWN_1: string let DOWN_1: string;
export { DOWN_1 as DOWN } export { DOWN_1 as DOWN };
} }
namespace SHAPE { namespace SHAPE {
let RECTANGLE: string let RECTANGLE: string;
let DIAMOND: string let DIAMOND: string;
let PARALLELOGRAM: string let PARALLELOGRAM: string;
let ROUNDED_RECTANGLE: string let ROUNDED_RECTANGLE: string;
let OCTAGONAL_RECTANGLE: string let OCTAGONAL_RECTANGLE: string;
let OUTER_TRIANGULAR_RECTANGLE: string let OUTER_TRIANGULAR_RECTANGLE: string;
let INNER_TRIANGULAR_RECTANGLE: string let INNER_TRIANGULAR_RECTANGLE: string;
let ELLIPSE: string let ELLIPSE: string;
let CIRCLE: string let CIRCLE: string;
} }
namespace MOUSE_WHEEL_ACTION { namespace MOUSE_WHEEL_ACTION {
let ZOOM: string let ZOOM: string;
let MOVE: string let MOVE: string;
} }
namespace INIT_ROOT_NODE_POSITION { namespace INIT_ROOT_NODE_POSITION {
let LEFT_2: string let LEFT_2: string;
export { LEFT_2 as LEFT } export { LEFT_2 as LEFT };
export let TOP: string export let TOP: string;
let RIGHT_2: string let RIGHT_2: string;
export { RIGHT_2 as RIGHT } export { RIGHT_2 as RIGHT };
export let BOTTOM: string export let BOTTOM: string;
export let CENTER: string export let CENTER: string;
} }
namespace LAYOUT_GROW_DIR { namespace LAYOUT_GROW_DIR {
let LEFT_3: string let LEFT_3: string;
export { LEFT_3 as LEFT } export { LEFT_3 as LEFT };
let TOP_1: string let TOP_1: string;
export { TOP_1 as TOP } export { TOP_1 as TOP };
let RIGHT_3: string let RIGHT_3: string;
export { RIGHT_3 as RIGHT } export { RIGHT_3 as RIGHT };
let BOTTOM_1: string let BOTTOM_1: string;
export { BOTTOM_1 as BOTTOM } export { BOTTOM_1 as BOTTOM };
} }
namespace PASTE_TYPE { namespace PASTE_TYPE {
let CLIP_BOARD: string let CLIP_BOARD: string;
let CANVAS: string let CANVAS: string;
} }
namespace SCROLL_BAR_DIR { namespace SCROLL_BAR_DIR {
let VERTICAL: string let VERTICAL: string;
let HORIZONTAL: string let HORIZONTAL: string;
} }
} }
export const initRootNodePositionMap: { export const initRootNodePositionMap: {
[x: string]: number [x: string]: number;
} };
export const layoutList: { export const layoutList: {
name: string name: string;
value: string value: string;
}[] }[];
export const layoutValueList: string[] export const layoutValueList: string[];
export const nodeDataNoStylePropList: string[] export const nodeDataNoStylePropList: string[];
export namespace commonCaches { export namespace commonCaches {
let measureCustomNodeContentSizeEl: any let measureCustomNodeContentSizeEl: any;
let measureRichtextNodeTextSizeEl: any let measureRichtextNodeTextSizeEl: any;
} }
export namespace ERROR_TYPES { export namespace ERROR_TYPES {
let READ_CLIPBOARD_ERROR: string let READ_CLIPBOARD_ERROR: string;
let PARSE_PASTE_DATA_ERROR: string let PARSE_PASTE_DATA_ERROR: string;
let CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string let CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string;
let LOAD_CLIPBOARD_IMAGE_ERROR: string let LOAD_CLIPBOARD_IMAGE_ERROR: string;
let BEFORE_TEXT_EDIT_ERROR: string let BEFORE_TEXT_EDIT_ERROR: string;
let EXPORT_ERROR: string let EXPORT_ERROR: string;
} }
export namespace a4Size { export namespace a4Size {
let width: number let width: number;
let height: 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 { export namespace defaultOpt {
let readonly: boolean let readonly: boolean;
let layout: string let layout: string;
let fishboneDeg: number let fishboneDeg: number;
let theme: string let theme: string;
let themeConfig: {} let themeConfig: {};
let scaleRatio: number let scaleRatio: number;
let mouseScaleCenterUseMousePosition: boolean let mouseScaleCenterUseMousePosition: boolean;
let maxTag: number let maxTag: number;
let expandBtnSize: number let expandBtnSize: number;
let imgTextMargin: number let imgTextMargin: number;
let textContentMargin: number let textContentMargin: number;
let selectTranslateStep: number let selectTranslateStep: number;
let selectTranslateLimit: number let selectTranslateLimit: number;
let customNoteContentShow: any let customNoteContentShow: any;
let enableFreeDrag: boolean let enableFreeDrag: boolean;
namespace watermarkConfig { namespace watermarkConfig {
let text: string let text: string;
let lineSpacing: number let lineSpacing: number;
let textSpacing: number let textSpacing: number;
let angle: number let angle: number;
namespace textStyle { namespace textStyle {
let color: string let color: string;
let opacity: number let opacity: number;
let fontSize: number let fontSize: number;
}
} }
} let textAutoWrapWidth: number;
let textAutoWrapWidth: number let customHandleMousewheel: any;
let customHandleMousewheel: any let mousewheelAction: string;
let mousewheelAction: string let mousewheelMoveStep: number;
let mousewheelMoveStep: number let mousewheelZoomActionReverse: boolean;
let mousewheelZoomActionReverse: boolean let defaultInsertSecondLevelNodeText: string;
let defaultInsertSecondLevelNodeText: string let defaultInsertBelowSecondLevelNodeText: string;
let defaultInsertBelowSecondLevelNodeText: string namespace expandBtnStyle {
namespace expandBtnStyle { let color_1: string;
let color_1: string export { color_1 as color };
export { color_1 as color } export let fill: string;
export let fill: string let fontSize_1: number;
let fontSize_1: number export { fontSize_1 as fontSize };
export { fontSize_1 as fontSize } export let strokeColor: string;
export let strokeColor: string }
} namespace expandBtnIcon {
namespace expandBtnIcon { let open: string;
let open: string let close: string;
let close: string }
} function expandBtnNumHandler(num: any): any;
function expandBtnNumHandler(num: any): any let isShowExpandNum: boolean;
let isShowExpandNum: boolean let enableShortcutOnlyWhenMouseInSvg: boolean;
let enableShortcutOnlyWhenMouseInSvg: boolean let initRootNodePosition: any;
let initRootNodePosition: any let exportPaddingX: number;
let exportPaddingX: number let exportPaddingY: number;
let exportPaddingY: number let nodeTextEditZIndex: number;
let nodeTextEditZIndex: number let nodeNoteTooltipZIndex: number;
let nodeNoteTooltipZIndex: number let isEndNodeTextEditOnClickOuter: boolean;
let isEndNodeTextEditOnClickOuter: boolean let maxHistoryCount: number;
let maxHistoryCount: number let alwaysShowExpandBtn: boolean;
let alwaysShowExpandBtn: boolean let iconList: any[];
let iconList: any[] let maxNodeCacheCount: number;
let maxNodeCacheCount: number let defaultAssociativeLineText: string;
let defaultAssociativeLineText: string let fitPadding: number;
let fitPadding: number let enableCtrlKeyNodeSelection: boolean;
let enableCtrlKeyNodeSelection: boolean let useLeftKeySelectionRightKeyDrag: boolean;
let useLeftKeySelectionRightKeyDrag: boolean let beforeTextEdit: any;
let beforeTextEdit: any let isUseCustomNodeContent: boolean;
let isUseCustomNodeContent: boolean let customCreateNodeContent: any;
let customCreateNodeContent: any let customInnerElsAppendTo: any;
let customInnerElsAppendTo: any let nodeDragPlaceholderMaxSize: number;
let nodeDragPlaceholderMaxSize: number let enableAutoEnterTextEditWhenKeydown: boolean;
let enableAutoEnterTextEditWhenKeydown: boolean let richTextEditFakeInPlace: boolean;
let richTextEditFakeInPlace: boolean let customHandleClipboardText: any;
let customHandleClipboardText: any let disableMouseWheelZoom: boolean;
let disableMouseWheelZoom: boolean function errorHandler(code: any, error: any): void;
function errorHandler(code: any, error: any): void let resetCss: string;
let resetCss: string let enableDblclickReset: boolean;
let enableDblclickReset: boolean let minExportImgCanvasScale: number;
let minExportImgCanvasScale: number let hoverRectColor: string;
let hoverRectColor: string let hoverRectPadding: number;
let hoverRectPadding: number let selectTextOnEnterEditText: boolean;
let selectTextOnEnterEditText: boolean let deleteNodeActive: boolean;
let deleteNodeActive: boolean let autoMoveWhenMouseInEdgeOnDrag: 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 { declare class Command {
constructor(opt?: {}) constructor(opt?: {});
opt: {} opt: {};
mindMap: any mindMap: any;
commands: {} commands: {};
history: any[] history: any[];
activeHistoryIndex: number activeHistoryIndex: number;
addHistory(): void addHistory(): void;
clearHistory(): void clearHistory(): void;
registerShortcutKeys(): void registerShortcutKeys(): void;
exec(name: any, ...args: any[]): void exec(name: any, ...args: any[]): void;
add(name: any, fn: any): void add(name: any, fn: any): void;
remove(name: any, fn: any): void remove(name: any, fn: any): void;
back(step?: number): any back(step?: number): any;
forward(step?: number): any forward(step?: number): any;
getCopyData(): any getCopyData(): any;
removeDataUid(data: any): any removeDataUid(data: any): any;
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,28 +1,23 @@
export default class Shape { export default class Shape {
constructor(node: any) constructor(node: any);
node: any node: any;
getShapePadding( getShapePadding(width: any, height: any, paddingX: any, paddingY: any): {
width: any, paddingX: number;
height: any, paddingY: number;
paddingX: any, };
paddingY: any createShape(): any;
): { getNodeSize(): {
paddingX: number width: any;
paddingY: number height: any;
} };
createShape(): any createRect(): any;
getNodeSize(): { createDiamond(): any;
width: any createParallelogram(): any;
height: any createRoundedRectangle(): any;
} createOctagonalRectangle(): any;
createRect(): any createOuterTriangularRectangle(): any;
createDiamond(): any createInnerTriangularRectangle(): any;
createParallelogram(): any createEllipse(): any;
createRoundedRectangle(): any createCircle(): 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 { declare class Style {
static setBackgroundStyle(el: any, themeConfig: any): void static setBackgroundStyle(el: any, themeConfig: any): void;
static removeBackgroundStyle(el: any): void static removeBackgroundStyle(el: any): void;
constructor(ctx: any) constructor(ctx: any);
ctx: any ctx: any;
merge(prop: any, root: any): any merge(prop: any, root: any): any;
getStyle(prop: any, root: any): any getStyle(prop: any, root: any): any;
getSelfStyle(prop: any): any getSelfStyle(prop: any): any;
rect(node: any): void rect(node: any): void;
shape(node: any): void shape(node: any): void;
text(node: any): void text(node: any): void;
createStyleText(): string createStyleText(): string;
getTextFontStyle(): { getTextFontStyle(): {
italic: boolean italic: boolean;
bold: any bold: any;
fontSize: any fontSize: any;
fontFamily: any fontFamily: any;
} };
domText(node: any, fontSizeScale: number, isMultiLine: any): void domText(node: any, fontSizeScale: number, isMultiLine: any): void;
tagText(node: any, index: any): void tagText(node: any): void;
tagRect(node: any, index: any): void tagRect(node: any, text: any, color: any): void;
iconNode(node: any): void iconNode(node: any): void;
line( line(node: any, { width, color, dasharray }?: {
node: any, width: any;
{ color: any;
width, dasharray: any;
color, }): void;
dasharray generalizationLine(node: any): void;
}?: { iconBtn(node: any, node2: any, fillNode: any): void;
width: any hasCustomStyle(): boolean;
color: any hoverNode(node: any): void;
dasharray: any
}
): void
generalizationLine(node: any): void
iconBtn(node: any, node2: any, fillNode: any): void
hasCustomStyle(): boolean
hoverNode(node: any): void
} }
declare namespace Style { declare namespace Style {
let cacheStyle: any let cacheStyle: any;
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,46 +1,43 @@
export default Base export default Base;
declare class Base { declare class Base {
constructor(renderer: any) constructor(renderer: any);
renderer: any renderer: any;
mindMap: any mindMap: any;
draw: any draw: any;
root: any root: any;
lru: Lru lru: Lru;
doLayout(): void doLayout(): void;
renderLine(): void renderLine(): void;
renderExpandBtn(): void renderExpandBtn(): void;
renderGeneralization(): void renderGeneralization(): void;
cacheNode(uid: any, node: any): void cacheNode(uid: any, node: any): void;
checkIsNeedResizeSources(): boolean checkIsNeedResizeSources(): boolean;
checkIsLayerTypeChange(oldIndex: any, newIndex: any): boolean checkIsLayerTypeChange(oldIndex: any, newIndex: any): boolean;
checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(node: any): void checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(node: any): void;
createNode(data: any, parent: any, isRoot: any, layerIndex: any): any createNode(data: any, parent: any, isRoot: any, layerIndex: any): any;
formatPosition(value: any, size: any, nodeSize: any): number formatPosition(value: any, size: any, nodeSize: any): number;
setNodeCenter(node: any): void setNodeCenter(node: any): void;
updateChildren(children: any, prop: any, offset: any): void updateChildren(children: any, prop: any, offset: any): void;
updateChildrenPro(children: any, props: any): void updateChildrenPro(children: any, props: any): void;
getNodeAreaWidth(node: any, withGeneralization?: boolean): number getNodeAreaWidth(node: any, withGeneralization?: boolean): number;
quadraticCurvePath(x1: any, y1: any, x2: any, y2: any): string quadraticCurvePath(x1: any, y1: any, x2: any, y2: any): string;
cubicBezierPath(x1: any, y1: any, x2: any, y2: any): string cubicBezierPath(x1: any, y1: any, x2: any, y2: any): string;
getMarginX(layerIndex: any): any getMarginX(layerIndex: any): any;
getMarginY(layerIndex: any): any getMarginY(layerIndex: any): any;
getNodeWidthWithGeneralization(node: any): number getNodeWidthWithGeneralization(node: any): number;
getNodeHeightWithGeneralization(node: any): number getNodeHeightWithGeneralization(node: any): number;
/** /**
* dirhv * dirhv
* isLeft * isLeft
*/ */
getNodeBoundaries( getNodeBoundaries(node: any, dir: any): {
node: any, left: any;
dir: any right: any;
): { top: any;
left: any bottom: any;
right: any generalizationLineMargin: any;
top: any generalizationNodeMargin: any;
bottom: any };
generalizationLineMargin: any getNodeActChildrenLength(node: any): 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 { declare class CatalogOrganization extends Base {
constructor(opt?: {}) constructor(opt?: {});
doLayout(callback: any): void doLayout(callback: any): void;
computedBaseValue(): void computedBaseValue(): void;
computedLeftTopValue(): void computedLeftTopValue(): void;
adjustLeftTopValue(): void adjustLeftTopValue(): void;
updateBrothersLeft(node: any, addWidth: any): void updateBrothersLeft(node: any, addWidth: any): void;
updateBrothersTop(node: any, addHeight: any): void updateBrothersTop(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any): any[] renderLine(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect( renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
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 { declare class Fishbone extends Base {
constructor(opt?: {}) constructor(opt?: {});
indent: number indent: number;
childIndent: number childIndent: number;
doLayout(callback: any): void doLayout(callback: any): void;
computedBaseValue(): void computedBaseValue(): void;
computedLeftTopValue(): void computedLeftTopValue(): void;
adjustLeftTopValue(): void adjustLeftTopValue(): void;
getNodeAreaHeight(node: any): number getNodeAreaHeight(node: any): number;
updateBrothersLeft(node: any): void updateBrothersLeft(node: any): void;
updateBrothersTop(node: any, addHeight: any): void updateBrothersTop(node: any, addHeight: any): void;
checkIsTop(node: any): boolean checkIsTop(node: any): boolean;
renderLine(node: any, lines: any, style: any): any[] renderLine(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect( renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
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 { declare class LogicalStructure extends Base {
constructor(opt?: {}) constructor(opt?: {});
doLayout(callback: any): void doLayout(callback: any): void;
computedBaseValue(): void computedBaseValue(): void;
computedTopValue(): void computedTopValue(): void;
adjustTopValue(): void adjustTopValue(): void;
updateBrothers(node: any, addHeight: any): void updateBrothers(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineStraight(node: any, lines: any, style: any): any[] renderLineStraight(node: any, lines: any, style: any): any[];
renderLineDirect(node: any, lines: any, style: any): any[] renderLineDirect(node: any, lines: any, style: any): any[];
renderLineCurve(node: any, lines: any, style: any): any[] renderLineCurve(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect( renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
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 { declare class MindMap extends Base {
constructor(opt?: {}) constructor(opt?: {});
doLayout(callback: any): void doLayout(callback: any): void;
computedBaseValue(): void computedBaseValue(): void;
computedTopValue(): void computedTopValue(): void;
adjustTopValue(): void adjustTopValue(): void;
updateBrothers(node: any, leftAddHeight: any, rightAddHeight: any): void updateBrothers(node: any, leftAddHeight: any, rightAddHeight: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineStraight(node: any, lines: any, style: any): any[] renderLineStraight(node: any, lines: any, style: any): any[];
renderLineDirect(node: any, lines: any, style: any): any[] renderLineDirect(node: any, lines: any, style: any): any[];
renderLineCurve(node: any, lines: any, style: any): any[] renderLineCurve(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect( renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
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 { declare class OrganizationStructure extends Base {
constructor(opt?: {}) constructor(opt?: {});
doLayout(callback: any): void doLayout(callback: any): void;
computedBaseValue(): void computedBaseValue(): void;
computedLeftValue(): void computedLeftValue(): void;
adjustLeftValue(): void adjustLeftValue(): void;
updateBrothers(node: any, addWidth: any): void updateBrothers(node: any, addWidth: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineDirect(node: any, lines: any, style: any): any[] renderLineDirect(node: any, lines: any, style: any): any[];
renderLineStraight(node: any, lines: any, style: any): any[] renderLineStraight(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect( renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
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 { declare class Timeline extends Base {
constructor(opt: {}, layout: any) constructor(opt: {}, layout: any);
layout: any layout: any;
doLayout(callback: any): void doLayout(callback: any): void;
computedBaseValue(): void computedBaseValue(): void;
computedLeftTopValue(): void computedLeftTopValue(): void;
adjustLeftTopValue(): void adjustLeftTopValue(): void;
getNodeAreaHeight(node: any): number getNodeAreaHeight(node: any): number;
updateBrothersLeft(node: any): void updateBrothersLeft(node: any): void;
updateBrothersTop(node: any, addHeight: any): void updateBrothersTop(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any): any[] renderLine(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect( renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
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 { declare class VerticalTimeline extends Base {
constructor(opt: {}, layout: any) constructor(opt: {}, layout: any);
layout: any layout: any;
doLayout(callback: any): void doLayout(callback: any): void;
computedBaseValue(): void computedBaseValue(): void;
computedTopValue(): void computedTopValue(): void;
adjustLeftTopValue(): void adjustLeftTopValue(): void;
updateBrothers(node: any, addHeight: any): void updateBrothers(node: any, addHeight: any): void;
updateBrothersTop(node: any, addHeight: any): void updateBrothersTop(node: any, addHeight: any): void;
renderLine(node: any, lines: any, style: any, lineStyle: any): void renderLine(node: any, lines: any, style: any, lineStyle: any): void;
renderLineStraight(node: any, lines: any, style: any): any[] renderLineStraight(node: any, lines: any, style: any): any[];
renderLineDirect(node: any, lines: any, style: any): any[] renderLineDirect(node: any, lines: any, style: any): any[];
renderLineCurve(node: any, lines: any, style: any): any[] renderLineCurve(node: any, lines: any, style: any): any[];
renderExpandBtn(node: any, btn: any): void renderExpandBtn(node: any, btn: any): void;
renderGeneralization(node: any, gLine: any, gNode: any): void renderGeneralization(node: any, gLine: any, gNode: any): void;
renderExpandBtnRect( renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
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 { declare namespace _default {
namespace top { namespace top {
function renderExpandBtn({ function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: {
node, node: any;
btn, btn: any;
expandBtnSize, expandBtnSize: any;
translateX, translateX: any;
translateY, translateY: any;
width, width: any;
height height: any;
}: { }): void;
node: any function renderLine({ node, line, top, x, lineLength, height, expandBtnSize, maxy, ctx }: {
btn: any node: any;
expandBtnSize: any line: any;
translateX: any top: any;
translateY: any x: any;
width: any lineLength: any;
height: any height: any;
}): void expandBtnSize: any;
function renderLine({ maxy: any;
node, ctx: any;
line, }): void;
top, function computedLeftTopValue({ layerIndex, node, ctx }: {
x, layerIndex: any;
lineLength, node: any;
height, ctx: any;
expandBtnSize, }): void;
maxy, function adjustLeftTopValueBefore({ node, parent, ctx, layerIndex }: {
ctx node: any;
}: { parent: any;
node: any ctx: any;
line: any layerIndex: any;
top: any }): void;
x: any function adjustLeftTopValueAfter({ parent, node, ctx }: {
lineLength: any parent: any;
height: any node: any;
expandBtnSize: any ctx: any;
maxy: any }): void;
ctx: any }
}): void namespace bottom {
function computedLeftTopValue({ function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: {
layerIndex, node: any;
node, btn: any;
ctx expandBtnSize: any;
}: { translateX: any;
layerIndex: any translateY: any;
node: any width: any;
ctx: any height: any;
}): void }): void;
function adjustLeftTopValueBefore({ function renderLine({ node, line, top, x, lineLength, height, miny, ctx }: {
node, node: any;
parent, line: any;
ctx, top: any;
layerIndex x: any;
}: { lineLength: any;
node: any height: any;
parent: any miny: any;
ctx: any ctx: any;
layerIndex: any }): void;
}): void function computedLeftTopValue({ layerIndex, node, ctx }: {
function adjustLeftTopValueAfter({ layerIndex: any;
parent, node: any;
node, ctx: any;
ctx }): void;
}: { function adjustLeftTopValueBefore({ node, ctx, layerIndex }: {
parent: any node: any;
node: any ctx: any;
ctx: any layerIndex: any;
}): void }): void;
} function adjustLeftTopValueAfter({ parent, node, ctx }: {
namespace bottom { parent: any;
function renderExpandBtn({ node: any;
node, ctx: any;
btn, }): void;
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 { declare namespace _default {
export { open } export { open };
export { close } export { close };
export { remove } export { remove };
export { imgAdjust } export { imgAdjust };
} }
export default _default 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 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 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 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>' 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: { export const nodeIconList: {
name: string name: string;
type: string type: string;
list: { list: {
name: string name: string;
icon: string icon: string;
}[] }[];
}[] }[];
declare namespace _default { declare namespace _default {
export { hyperlink } export { hyperlink };
export { note } export { note };
export { nodeIconList } export { nodeIconList };
export { getNodeIconListIcon } export { getNodeIconListIcon };
} }
export default _default 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 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 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 declare function getNodeIconListIcon(name: any, extendIconList?: any[]): any;

View File

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

View File

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

View File

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

View File

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

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;
}