mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 14:04:47 +08:00
打包0.9.1
This commit is contained in:
@@ -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?8e8e1abc19a80fd778db" rel="stylesheet"><link href="dist/css/app.css?8e8e1abc19a80fd778db" 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?7820598bfce2a2653e5c" rel="stylesheet"><link href="dist/css/app.css?7820598bfce2a2653e5c" 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?8e8e1abc19a80fd778db"></script><script src="dist/js/app.js?8e8e1abc19a80fd778db"></script></body></html>
|
||||
}</script><script src="dist/js/chunk-vendors.js?7820598bfce2a2653e5c"></script><script src="dist/js/app.js?7820598bfce2a2653e5c"></script></body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "simple-mind-map",
|
||||
"version": "0.9.0",
|
||||
"version": "0.9.1",
|
||||
"description": "一个简单的web在线思维导图",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
7
simple-mind-map/types/index.d.ts
vendored
7
simple-mind-map/types/index.d.ts
vendored
@@ -74,6 +74,7 @@ declare class MindMap {
|
||||
richTextEditFakeInPlace: boolean;
|
||||
customHandleClipboardText: any;
|
||||
disableMouseWheelZoom: boolean;
|
||||
disableTouchZoom: boolean;
|
||||
errorHandler: (code: any, error: any) => void;
|
||||
resetCss: string;
|
||||
enableDblclickBackToRootNode: boolean;
|
||||
@@ -103,6 +104,12 @@ declare class MindMap {
|
||||
defaultGeneralizationText: string;
|
||||
handleIsSplitByWrapOnPasteCreateNewNode: any;
|
||||
addHistoryTime: number;
|
||||
isDisableDrag: boolean;
|
||||
highlightNodeBoxStyle: {
|
||||
stroke: string;
|
||||
fill: string;
|
||||
};
|
||||
createNewNodeBehavior: string;
|
||||
});
|
||||
opt: any;
|
||||
el: any;
|
||||
|
||||
@@ -80,6 +80,11 @@ export namespace CONSTANTS {
|
||||
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;
|
||||
@@ -107,3 +112,4 @@ export namespace a4Size {
|
||||
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[];
|
||||
|
||||
@@ -70,6 +70,7 @@ export namespace defaultOpt {
|
||||
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;
|
||||
@@ -101,4 +102,11 @@ export namespace defaultOpt {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -11,6 +11,8 @@ export default class KeyCommand {
|
||||
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;
|
||||
|
||||
@@ -20,6 +20,9 @@ declare class Render {
|
||||
beingPasteText: string;
|
||||
beingPasteImgSize: number;
|
||||
currentBeingPasteType: string;
|
||||
highlightBoxNode: any;
|
||||
lastActiveNode: any;
|
||||
lastActiveNodeList: any[];
|
||||
setLayout(): void;
|
||||
layout: MindMap | CatalogOrganization | OrganizationStructure | Timeline | VerticalTimeline;
|
||||
setData(data: any): void;
|
||||
@@ -66,6 +69,7 @@ declare class Render {
|
||||
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;
|
||||
@@ -75,12 +79,17 @@ declare class Render {
|
||||
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;
|
||||
@@ -89,7 +98,8 @@ declare class Render {
|
||||
setRootNodeCenter(): void;
|
||||
expandToNodeUid(uid: any, callback?: () => void): void;
|
||||
findNodeByUid(uid: any): any;
|
||||
emitNodeActiveEvent(): void;
|
||||
highlightNode(node: any, range: any): void;
|
||||
closeHighlightNode(): void;
|
||||
}
|
||||
import TextEdit from "./TextEdit";
|
||||
import MindMap from "../../layouts/MindMap";
|
||||
|
||||
@@ -7,11 +7,24 @@ export default class TextEdit {
|
||||
showTextEdit: boolean;
|
||||
cacheEditingText: string;
|
||||
bindEvent(): void;
|
||||
show(node: any, e: any, isInserting?: boolean, isFromKeyDown?: boolean): Promise<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: any, rect: any, isInserting: any, isFromKeyDown: any): void;
|
||||
showEditTextBox({ node, rect, isInserting, isFromKeyDown, isFromScale }: {
|
||||
node: any;
|
||||
rect: any;
|
||||
isInserting: any;
|
||||
isFromKeyDown: any;
|
||||
isFromScale: any;
|
||||
}): void;
|
||||
getEditText(): any;
|
||||
hideEditTextBox(): any;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ declare class Node {
|
||||
_tagData: any;
|
||||
_noteData: any;
|
||||
noteEl: any;
|
||||
noteContentIsShow: boolean;
|
||||
_expandBtn: any;
|
||||
_lastExpandBtnType: any;
|
||||
_showExpandBtn: boolean;
|
||||
@@ -47,8 +48,7 @@ declare class Node {
|
||||
_fillExpandNode: any;
|
||||
_userListGroup: any;
|
||||
_lines: any[];
|
||||
_generalizationLine: any;
|
||||
_generalizationNode: any;
|
||||
_generalizationList: any[];
|
||||
_unVisibleRectRegionNode: any;
|
||||
_isMouseenter: boolean;
|
||||
_rectInfo: {
|
||||
@@ -102,11 +102,14 @@ declare class Node {
|
||||
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;
|
||||
@@ -117,7 +120,17 @@ declare class Node {
|
||||
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";
|
||||
|
||||
@@ -7,6 +7,7 @@ declare namespace _default {
|
||||
export { createHyperlinkNode };
|
||||
export { createTagNode };
|
||||
export { createNoteNode };
|
||||
export { getNoteContentPosition };
|
||||
export { measureCustomNodeContentSize };
|
||||
export { isUseCustomNodeContent };
|
||||
}
|
||||
@@ -38,6 +39,10 @@ declare function createNoteNode(): {
|
||||
declare class createNoteNode {
|
||||
noteEl: HTMLDivElement;
|
||||
}
|
||||
declare function getNoteContentPosition(): {
|
||||
left: any;
|
||||
top: any;
|
||||
};
|
||||
declare function measureCustomNodeContentSize(content: any): {
|
||||
width: any;
|
||||
height: any;
|
||||
|
||||
@@ -1,32 +1,38 @@
|
||||
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 {
|
||||
_generalizationLine: any;
|
||||
_generalizationNode: Node;
|
||||
_generalizationNodeWidth: any;
|
||||
_generalizationNodeHeight: any;
|
||||
}
|
||||
declare function updateGeneralization(): void;
|
||||
declare function renderGeneralization(): void;
|
||||
declare class renderGeneralization {
|
||||
_generalizationNodeWidth: number;
|
||||
_generalizationNodeHeight: number;
|
||||
}
|
||||
declare function updateGeneralization(): void;
|
||||
declare function updateGeneralizationData(): void;
|
||||
declare function renderGeneralization(): void;
|
||||
declare function removeGeneralization(): void;
|
||||
declare class removeGeneralization {
|
||||
_generalizationLine: any;
|
||||
_generalizationNode: any;
|
||||
_generalizationList: any[];
|
||||
}
|
||||
declare function hideGeneralization(): void;
|
||||
declare function showGeneralization(): void;
|
||||
import Node from "./Node";
|
||||
declare function setGeneralizationOpacity(val: any): void;
|
||||
declare function handleGeneralizationMouseenter(): void;
|
||||
declare function handleGeneralizationMouseleave(): void;
|
||||
|
||||
16
simple-mind-map/types/src/layouts/Base.d.ts
vendored
16
simple-mind-map/types/src/layouts/Base.d.ts
vendored
@@ -39,6 +39,22 @@ declare class Base {
|
||||
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";
|
||||
|
||||
@@ -4,5 +4,6 @@ declare class BatchExecution {
|
||||
queue: any[];
|
||||
nextTick: any;
|
||||
push(name: any, fn: any): void;
|
||||
replaceTask(name: any, fn: any): void;
|
||||
flush(): void;
|
||||
}
|
||||
|
||||
4
simple-mind-map/types/src/utils/index.d.ts
vendored
4
simple-mind-map/types/src/utils/index.d.ts
vendored
@@ -58,6 +58,8 @@ 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;
|
||||
@@ -75,3 +77,5 @@ export function getDataFromClipboard(): Promise<{
|
||||
img: any;
|
||||
}>;
|
||||
export function removeFromParentNodeData(node: any): void;
|
||||
export function handleSelfCloseTags(str: any): any;
|
||||
export function checkNodeListIsEqual(list1: any, list2: any): boolean;
|
||||
|
||||
Reference in New Issue
Block a user