打包0.9.1-fix.2

This commit is contained in:
街角小林 2023-12-13 09:52:48 +08:00
parent 8dc637c544
commit cad6f1dce7
82 changed files with 19 additions and 1837 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
node_modules
.DS_Store
dist_electron
simple-mind-map/dist
simple-mind-map/dist
simple-mind-map/types

File diff suppressed because one or more lines are too long

BIN
dist/img/HaHN.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

1
dist/img/图片加载失败.svg vendored Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1702344017086" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1621" width="128" height="128" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M776 328m-72 0a72 72 0 1 0 144 0 72 72 0 1 0-144 0Z" p-id="1622" fill="#bfbfbf"></path><path d="M999.904 116.608a32 32 0 0 0-21.952-10.912l-456.192-31.904a31.552 31.552 0 0 0-27.2 11.904l-92.192 114.848a32 32 0 0 0 0.672 40.896l146.144 169.952-147.456 194.656 36.48-173.376a32 32 0 0 0-11.136-31.424L235.616 245.504l79.616-125.696a32 32 0 0 0-29.28-49.024l-240.192 16.768a32 32 0 0 0-29.696 34.176l55.808 798.016a32.064 32.064 0 0 0 34.304 29.696l176.512-13.184c17.632-1.312 30.848-16.672 29.504-34.272s-16.576-31.04-34.304-29.536l-144.448 10.784-6.432-92.512 125.312-12.576a32 32 0 0 0 28.672-35.04 32.16 32.16 0 0 0-35.04-28.672l-123.392 12.416L82.144 149.184l145.152-10.144-60.96 96.224a32 32 0 0 0 6.848 41.952l198.4 161.344-58.752 279.296a30.912 30.912 0 0 0 0.736 14.752 31.68 31.68 0 0 0 1.408 11.04l51.52 154.56a31.968 31.968 0 0 0 27.456 21.76l523.104 47.552a32.064 32.064 0 0 0 34.848-29.632L1007.68 139.84a32.064 32.064 0 0 0-7.776-23.232z m-98.912 630.848l-412.576-39.648a31.52 31.52 0 0 0-34.912 28.768 32 32 0 0 0 28.8 34.912l414.24 39.808-6.272 89.536-469.728-42.72-39.584-118.72 234.816-310.016a31.936 31.936 0 0 0-1.248-40.192L468.896 219.84l65.088-81.056 407.584 28.48-40.576 580.192z" p-id="1623" fill="#bfbfbf"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-3cfaaabc.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-7f271756.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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?3a7f5470406752a0d4ac" rel="stylesheet"><link href="dist/css/app.css?3a7f5470406752a0d4ac" 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?8fccd498baeca61b68aa" rel="stylesheet"><link href="dist/css/app.css?8fccd498baeca61b68aa" 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?3a7f5470406752a0d4ac"></script><script src="dist/js/app.js?3a7f5470406752a0d4ac"></script></body></html>
}</script><script src="dist/js/chunk-vendors.js?8fccd498baeca61b68aa"></script><script src="dist/js/app.js?8fccd498baeca61b68aa"></script></body></html>

View File

@ -1,195 +0,0 @@
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;
disableTouchZoom: boolean;
errorHandler: (code: any, error: any) => void;
resetCss: string;
enableDblclickBackToRootNode: 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: {};
cooperateStyle: {
avatarSize: number;
fontSize: number;
};
associativeLineIsAlwaysAboveNode: boolean;
defaultGeneralizationText: string;
handleIsSplitByWrapOnPasteCreateNewNode: any;
addHistoryTime: number;
isDisableDrag: boolean;
highlightNodeBoxStyle: {
stroke: string;
fill: string;
};
createNewNodeBehavior: string;
});
opt: any;
el: any;
cssEl: HTMLStyleElement;
event: Event;
keyCommand: KeyCommand;
command: Command;
renderer: Render;
view: View;
batchExecution: BatchExecution;
handleOpt(opt: any): any;
initContainer(): void;
associativeLineDraw: any;
svg: any;
draw: any;
lineDraw: any;
nodeDraw: any;
otherDraw: any;
clearDraw(): void;
addCss(): void;
removeCss(): void;
render(callback: any, source?: string): void;
reRender(callback: any, source?: string): void;
getElRectInfo(): void;
elRect: any;
width: any;
height: any;
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, notRender?: boolean): void;
getTheme(): any;
setThemeConfig(config: any, notRender?: boolean): void;
getCustomThemeConfig(): any;
getThemeConfig(prop: any): any;
getConfig(prop: any): any;
updateConfig(opt?: {}): void;
getLayout(): any;
setLayout(layout: any, notRender?: boolean): 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, ignoreWatermark }?: {
paddingX?: number;
paddingY?: number;
ignoreWatermark?: boolean;
}): {
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 {
const 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";

View File

@ -1,115 +0,0 @@
export const themeList: {
name: string;
value: string;
dark: boolean;
}[];
export namespace CONSTANTS {
const CHANGE_THEME: string;
const CHANGE_LAYOUT: string;
const SET_DATA: string;
const TRANSFORM_TO_NORMAL_NODE: string;
namespace MODE {
const READONLY: string;
const EDIT: string;
}
namespace LAYOUT {
const LOGICAL_STRUCTURE: string;
const MIND_MAP: string;
const ORGANIZATION_STRUCTURE: string;
const CATALOG_ORGANIZATION: string;
const TIMELINE: string;
const TIMELINE2: string;
const FISHBONE: string;
const VERTICAL_TIMELINE: string;
}
namespace DIR {
const UP: string;
const LEFT: string;
const DOWN: string;
const RIGHT: string;
}
namespace KEY_DIR {
const LEFT_1: string;
export { LEFT_1 as LEFT };
const UP_1: string;
export { UP_1 as UP };
const RIGHT_1: string;
export { RIGHT_1 as RIGHT };
const DOWN_1: string;
export { DOWN_1 as DOWN };
}
namespace SHAPE {
const RECTANGLE: string;
const DIAMOND: string;
const PARALLELOGRAM: string;
const ROUNDED_RECTANGLE: string;
const OCTAGONAL_RECTANGLE: string;
const OUTER_TRIANGULAR_RECTANGLE: string;
const INNER_TRIANGULAR_RECTANGLE: string;
const ELLIPSE: string;
const CIRCLE: string;
}
namespace MOUSE_WHEEL_ACTION {
const ZOOM: string;
const MOVE: string;
}
namespace INIT_ROOT_NODE_POSITION {
const LEFT_2: string;
export { LEFT_2 as LEFT };
export const TOP: string;
const RIGHT_2: string;
export { RIGHT_2 as RIGHT };
export const BOTTOM: string;
export const CENTER: string;
}
namespace LAYOUT_GROW_DIR {
const LEFT_3: string;
export { LEFT_3 as LEFT };
const TOP_1: string;
export { TOP_1 as TOP };
const RIGHT_3: string;
export { RIGHT_3 as RIGHT };
const BOTTOM_1: string;
export { BOTTOM_1 as BOTTOM };
}
namespace PASTE_TYPE {
const CLIP_BOARD: string;
const CANVAS: string;
}
namespace SCROLL_BAR_DIR {
const VERTICAL: string;
const HORIZONTAL: string;
}
namespace CREATE_NEW_NODE_BEHAVIOR {
const DEFAULT: string;
const NOT_ACTIVE: string;
const ACTIVE_ONLY: string;
}
}
export const initRootNodePositionMap: {
[x: string]: number;
};
export const layoutList: {
name: string;
value: string;
}[];
export const layoutValueList: string[];
export const nodeDataNoStylePropList: string[];
export namespace commonCaches {
const measureCustomNodeContentSizeEl: any;
const measureRichtextNodeTextSizeEl: any;
}
export namespace ERROR_TYPES {
const READ_CLIPBOARD_ERROR: string;
const PARSE_PASTE_DATA_ERROR: string;
const CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string;
const LOAD_CLIPBOARD_IMAGE_ERROR: string;
const BEFORE_TEXT_EDIT_ERROR: string;
const EXPORT_ERROR: string;
}
export namespace a4Size {
const width: number;
const 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: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";
export const selfCloseTagList: string[];

View File

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

View File

@ -1,19 +0,0 @@
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;
}

View File

@ -1,28 +0,0 @@
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;
onKeydown(e: any): void;
unBindEvent(): 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 +0,0 @@
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;

View File

@ -1,35 +0,0 @@
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;
}

View File

@ -1,109 +0,0 @@
export default Render;
declare class Render {
constructor(opt?: {});
opt: {};
mindMap: any;
themeConfig: any;
renderTree: any;
reRender: boolean;
isRendering: boolean;
hasWaitRendering: boolean;
waitRenderingParams: any[];
nodeCache: {};
lastNodeCache: {};
renderSource: string;
activeNodeList: any[];
root: any;
textEdit: TextEdit;
lastBeingCopyData: any;
beingCopyData: any;
beingPasteText: string;
beingPasteImgSize: number;
currentBeingPasteType: string;
highlightBoxNode: any;
lastActiveNode: any;
lastActiveNodeList: any[];
setLayout(): void;
layout: MindMap | CatalogOrganization | OrganizationStructure | Timeline | VerticalTimeline;
setData(data: any): void;
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;
insertParentNode(openEdit: boolean, appointNodes: any, appointData: 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;
removeCurrentNode(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;
clearActiveNode(): 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;
toggleActiveExpand(): void;
emitNodeActiveEvent(node?: any, activeNodeList?: any[]): void;
clearActiveNodeListOnDrawClick(e: any, eventType: any): void;
startTextEdit(): void;
endTextEdit(): void;
render(callback: () => void, source: any): void;
clearActiveNodeList(): void;
addNodeToActiveList(node: any): void;
removeNodeFromActiveList(node: any): void;
findActiveNodeIndex(node: any): any;
backForward(type: any, step: any): void;
getNewNodeBehavior(openEdit?: boolean, handleMultiNodes?: boolean): {
focusNewNode: boolean;
inserting: boolean;
};
copy(): void;
cut(): void;
paste(): void;
onPaste(): Promise<void>;
insertTo(node: any, exist: any, dir?: string): void;
checkNodeLayerChange(node: any, toNode: any): void;
deleteNodeGeneralization(node: any): void;
getNextActiveNode(): any;
copyNode(): any;
toggleNodeExpand(node: any): void;
setNodeDataRender(node: any, data: any, notRender?: boolean): void;
moveNodeToCenter(node: any): void;
setRootNodeCenter(): void;
expandToNodeUid(uid: any, callback?: () => void): void;
findNodeByUid(uid: any): any;
highlightNode(node: any, range: any): void;
closeHighlightNode(): void;
}
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,30 +0,0 @@
export default class TextEdit {
constructor(renderer: any);
renderer: any;
mindMap: any;
currentNode: any;
textEditNode: HTMLDivElement;
showTextEdit: boolean;
cacheEditingText: string;
bindEvent(): void;
show({ node, isInserting, isFromKeyDown, isFromScale }: {
node: any;
isInserting?: boolean;
isFromKeyDown?: boolean;
isFromScale?: boolean;
}): Promise<void>;
onScale(): void;
onKeydown(e: any): void;
unBindEvent(): void;
checkIsAutoEnterTextEditKey(e: any): boolean;
registerTmpShortcut(): void;
showEditTextBox({ node, rect, isInserting, isFromKeyDown, isFromScale }: {
node: any;
rect: any;
isInserting: any;
isFromKeyDown: any;
isFromScale: any;
}): void;
getEditText(): any;
hideEditTextBox(): any;
}

View File

@ -1,136 +0,0 @@
export default Node;
declare class Node {
constructor(opt?: {});
nodeData: any;
uid: any;
mindMap: any;
renderer: any;
draw: any;
nodeDraw: any;
lineDraw: 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;
userList: any[];
group: any;
shapeNode: any;
hoverNode: any;
_customNodeContent: any;
_imgData: any;
_iconData: any;
_textData: any;
_hyperlinkData: any;
_tagData: any;
_noteData: any;
noteEl: any;
noteContentIsShow: boolean;
_expandBtn: any;
_lastExpandBtnType: any;
_showExpandBtn: boolean;
_openExpandNode: any;
_closeExpandNode: any;
_fillExpandNode: any;
_userListGroup: any;
_lines: any[];
_generalizationList: 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;
updateNodeActiveClass(): void;
updateNodeByActive(active: any): 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;
ancestorHasGeneralization(): boolean;
addChildren(node: any): void;
styleLine(line: any, node: any): void;
removeLine(): void;
isAncestor(node: any): boolean;
isParent(node: any): boolean;
isBrother(node: any): any;
getIndexInBrothers(): 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;
getPureData(removeActiveState?: boolean, removeId?: boolean): any;
hasCustomStyle(): boolean;
getRect(): any;
getRectInSvg(): {
left: any;
right: any;
top: any;
bottom: any;
width: number;
height: number;
};
}
import Style from "./Style";
import Shape from "./Shape";

View File

@ -1,23 +0,0 @@
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;
}
export const shapeList: string[];

View File

@ -1,36 +0,0 @@
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): 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 {
const cacheStyle: any;
}

View File

@ -1,23 +0,0 @@
declare namespace _default {
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;

View File

@ -1,18 +0,0 @@
declare namespace _default {
export { createUserListNode };
export { updateUserListNode };
export { createTextAvatar };
export { createImageAvatar };
export { addUser };
export { removeUser };
}
export default _default;
declare function createUserListNode(): void;
declare class createUserListNode {
_userListGroup: any;
}
declare function updateUserListNode(): void;
declare function createTextAvatar(item: any): any;
declare function createImageAvatar(item: any): any;
declare function addUser(userInfo: any): void;
declare function removeUser(userInfo: any): void;

View File

@ -1,50 +0,0 @@
declare namespace _default {
export { createImgNode };
export { getImgShowSize };
export { createIconNode };
export { createRichTextNode };
export { createTextNode };
export { createHyperlinkNode };
export { createTagNode };
export { createNoteNode };
export { getNoteContentPosition };
export { measureCustomNodeContentSize };
export { isUseCustomNodeContent };
}
export default _default;
declare function createImgNode(): {
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;
declare function createHyperlinkNode(): {
node: any;
width: any;
height: any;
};
declare function createTagNode(): any[];
declare function createNoteNode(): {
node: any;
width: any;
height: any;
};
declare class createNoteNode {
noteEl: HTMLDivElement;
}
declare function getNoteContentPosition(): {
left: any;
top: any;
};
declare function measureCustomNodeContentSize(content: any): {
width: any;
height: any;
};
declare function isUseCustomNodeContent(): boolean;

View File

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

View File

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

View File

@ -1,38 +0,0 @@
declare namespace _default {
export { formatGetGeneralization };
export { checkHasGeneralization };
export { checkHasSelfGeneralization };
export { getGeneralizationNodeIndex };
export { createGeneralizationNode };
export { updateGeneralization };
export { updateGeneralizationData };
export { renderGeneralization };
export { removeGeneralization };
export { hideGeneralization };
export { showGeneralization };
export { setGeneralizationOpacity };
export { handleGeneralizationMouseenter };
export { handleGeneralizationMouseleave };
}
export default _default;
declare function formatGetGeneralization(): any[];
declare function checkHasGeneralization(): boolean;
declare function checkHasSelfGeneralization(): boolean;
declare function getGeneralizationNodeIndex(node: any): any;
declare function createGeneralizationNode(): void;
declare class createGeneralizationNode {
_generalizationNodeWidth: number;
_generalizationNodeHeight: number;
}
declare function updateGeneralization(): void;
declare function updateGeneralizationData(): void;
declare function renderGeneralization(): void;
declare function removeGeneralization(): void;
declare class removeGeneralization {
_generalizationList: any[];
}
declare function hideGeneralization(): void;
declare function showGeneralization(): void;
declare function setGeneralizationOpacity(val: any): void;
declare function handleGeneralizationMouseenter(): void;
declare function handleGeneralizationMouseleave(): void;

View File

@ -1,36 +0,0 @@
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;
}

View File

@ -1,60 +0,0 @@
export default Base;
declare class Base {
constructor(renderer: any);
renderer: any;
mindMap: any;
draw: any;
lineDraw: 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;
/**
* dirhv
* isLeft
*/
getNodeBoundaries(node: any, dir: any): {
left: any;
right: any;
top: any;
bottom: any;
generalizationLineMargin: any;
generalizationNodeMargin: any;
};
getChildrenBoundaries(node: any, dir: any, startIndex: number, endIndex: any): {
left: number;
right: number;
top: number;
bottom: number;
generalizationLineMargin: any;
generalizationNodeMargin: any;
};
getNodeGeneralizationRenderBoundaries(item: any, dir: any): {
left: any;
right: any;
top: any;
bottom: any;
generalizationLineMargin: any;
generalizationNodeMargin: any;
};
getNodeActChildrenLength(node: any): any;
}
import Lru from "../utils/Lru";

View File

@ -1,11 +0,0 @@
export default CatalogOrganization;
declare class CatalogOrganization extends Base {
constructor(opt?: {});
computedBaseValue(): void;
computedLeftTopValue(): void;
adjustLeftTopValue(): void;
updateBrothersLeft(node: any, addWidth: any): void;
updateBrothersTop(node: any, addHeight: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from "./Base";

View File

@ -1,15 +0,0 @@
export default Fishbone;
declare class Fishbone extends Base {
constructor(opt?: {});
indent: number;
childIndent: number;
computedBaseValue(): void;
computedLeftTopValue(): void;
adjustLeftTopValue(): void;
getNodeAreaHeight(node: any): number;
updateBrothersLeft(node: any): void;
updateBrothersTop(node: any, addHeight: any): void;
checkIsTop(node: any): boolean;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from "./Base";

View File

@ -1,13 +0,0 @@
export default LogicalStructure;
declare class LogicalStructure extends Base {
constructor(opt?: {});
computedBaseValue(): void;
computedTopValue(): void;
adjustTopValue(): void;
updateBrothers(node: any, addHeight: 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[];
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from "./Base";

View File

@ -1,13 +0,0 @@
export default MindMap;
declare class MindMap extends Base {
constructor(opt?: {});
computedBaseValue(): void;
computedTopValue(): void;
adjustTopValue(): void;
updateBrothers(node: any, leftAddHeight: any, rightAddHeight: 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[];
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from "./Base";

View File

@ -1,12 +0,0 @@
export default OrganizationStructure;
declare class OrganizationStructure extends Base {
constructor(opt?: {});
computedBaseValue(): void;
computedLeftValue(): void;
adjustLeftValue(): void;
updateBrothers(node: any, addWidth: any): void;
renderLineDirect(node: any, lines: any, style: any): any[];
renderLineStraight(node: any, lines: any, style: any): any[];
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from "./Base";

View File

@ -1,13 +0,0 @@
export default Timeline;
declare class Timeline extends Base {
constructor(opt: {}, layout: any);
layout: any;
computedBaseValue(): void;
computedLeftTopValue(): void;
adjustLeftTopValue(): void;
getNodeAreaHeight(node: any): number;
updateBrothersLeft(node: any): void;
updateBrothersTop(node: any, addHeight: any): void;
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from "./Base";

View File

@ -1,15 +0,0 @@
export default VerticalTimeline;
declare class VerticalTimeline extends Base {
constructor(opt: {}, layout: any);
layout: any;
computedBaseValue(): void;
computedTopValue(): void;
adjustLeftTopValue(): void;
updateBrothers(node: any, addHeight: any): void;
updateBrothersTop(node: any, addHeight: 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[];
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
}
import Base from "./Base";

View File

@ -1,147 +0,0 @@
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 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 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 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 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;
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 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 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 computedLeftTopValue({ layerIndex, node, ctx }: {
layerIndex: any;
node: any;
ctx: any;
}): void;
function adjustLeftTopValueBefore({ node, ctx, layerIndex }: {
node: any;
ctx: any;
layerIndex: 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;
function adjustLeftTopValueAfter({ parent, node, ctx }: {
parent: any;
node: any;
ctx: any;
}): void;
}
}
export default _default;

View File

@ -1,11 +0,0 @@
declare namespace _default {
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>";

View File

@ -1,18 +0,0 @@
export const nodeIconList: {
name: string;
type: string;
list: {
name: string;
icon: string;
}[];
}[];
declare namespace _default {
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;

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

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

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,67 +0,0 @@
declare namespace _default {
export { defaultTheme as default }
export { freshGreen }
export { blueSky }
export { brainImpairedPink }
export { romanticPurple }
export { freshRed }
export { earthYellow }
export { classic }
export { classic2 }
export { classic3 }
export { classic4 }
export { dark }
export { classicGreen }
export { classicBlue }
export { minions }
export { pinkGrape }
export { mint }
export { gold }
export { vitalityOrange }
export { greenLeaf }
export { dark2 }
export { skyGreen }
export { simpleBlack }
export { courseGreen }
export { coffee }
export { redSpirit }
export { blackHumour }
export { lateNightOffice }
export { blackGold }
export { avocado }
export { autumn }
export { orangeJuice }
}
export default _default
import defaultTheme from './default'
import freshGreen from './freshGreen'
import blueSky from './blueSky'
import brainImpairedPink from './brainImpairedPink'
import romanticPurple from './romanticPurple'
import freshRed from './freshRed'
import earthYellow from './earthYellow'
import classic from './classic'
import classic2 from './classic2'
import classic3 from './classic3'
import classic4 from './classic4'
import dark from './dark'
import classicGreen from './classicGreen'
import classicBlue from './classicBlue'
import minions from './minions'
import pinkGrape from './pinkGrape'
import mint from './mint'
import gold from './gold'
import vitalityOrange from './vitalityOrange'
import greenLeaf from './greenLeaf'
import dark2 from './dark2'
import skyGreen from './skyGreen'
import simpleBlack from './simpleBlack'
import courseGreen from './courseGreen'
import coffee from './coffee'
import redSpirit from './redSpirit'
import blackHumour from './blackHumour'
import lateNightOffice from './lateNightOffice'
import blackGold from './blackGold'
import avocado from './avocado'
import autumn from './autumn'
import orangeJuice from './orangeJuice'

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

@ -1,2 +0,0 @@
declare const _default: any
export default _default

View File

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

View File

@ -1,10 +0,0 @@
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,81 +0,0 @@
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, removeId?: 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 checkHasSupSubRelation(list: any): boolean;
export function parseAddGeneralizationNodeList(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, createNewId?: boolean): any;
export function formatDataToArray(data: any): any[];
export function getNodeDataIndex(node: any): any;
export function getNodeIndexInNodeList(node: any, nodeList: any): any;
export function generateColorByContent(str: any): string;
export function htmlEscape(str: any): any;
export function isSameObject(a: any, b: any): boolean;
export function setDataToClipboard(data: any): void;
export function getDataFromClipboard(): Promise<{
text: string;
img: any;
}>;
export function removeFromParentNodeData(node: any): void;
export function handleSelfCloseTags(str: any): any;
export function checkNodeListIsEqual(list1: any, list2: any): boolean;

View File

@ -1,23 +0,0 @@
/**
* @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;
}