Skip to content

Commit

Permalink
打包0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglin2 committed Dec 5, 2023
1 parent 6a2ef60 commit 04ac658
Show file tree
Hide file tree
Showing 31 changed files with 133 additions and 42 deletions.
4 changes: 2 additions & 2 deletions dist/css/chunk-4f37a44e.css → dist/css/chunk-38caf5df.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file added dist/img/张扬.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/js/app.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/chunk-0c8a7f52.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0ab10b.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0c191e.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0d9fbc.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0dad5f.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d0f026c.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/chunk-2d208ffa.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/js/chunk-301aab1a.js

This file was deleted.

20 changes: 10 additions & 10 deletions dist/js/chunk-4f37a44e.js → dist/js/chunk-38caf5df.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/js/chunk-3debe345.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/js/chunk-73bda179.js

This file was deleted.

1 change: 1 addition & 0 deletions dist/js/chunk-7babbe51.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/js/chunk-b92c83ea.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -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({
Expand Down Expand Up @@ -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>
2 changes: 1 addition & 1 deletion simple-mind-map/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-mind-map",
"version": "0.9.0",
"version": "0.9.1",
"description": "一个简单的web在线思维导图",
"authors": [
{
Expand Down
7 changes: 7 additions & 0 deletions simple-mind-map/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions simple-mind-map/types/src/constants/constant.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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[];
8 changes: 8 additions & 0 deletions simple-mind-map/types/src/constants/defaultOptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
2 changes: 2 additions & 0 deletions simple-mind-map/types/src/core/command/KeyCommand.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 11 additions & 1 deletion simple-mind-map/types/src/core/render/Render.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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";
Expand Down
17 changes: 15 additions & 2 deletions simple-mind-map/types/src/core/render/TextEdit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
17 changes: 15 additions & 2 deletions simple-mind-map/types/src/core/render/node/Node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ declare class Node {
_tagData: any;
_noteData: any;
noteEl: any;
noteContentIsShow: boolean;
_expandBtn: any;
_lastExpandBtnType: any;
_showExpandBtn: boolean;
Expand All @@ -47,8 +48,7 @@ declare class Node {
_fillExpandNode: any;
_userListGroup: any;
_lines: any[];
_generalizationLine: any;
_generalizationNode: any;
_generalizationList: any[];
_unVisibleRectRegionNode: any;
_isMouseenter: boolean;
_rectInfo: {
Expand Down Expand Up @@ -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;
Expand All @@ -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";
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ declare namespace _default {
export { createHyperlinkNode };
export { createTagNode };
export { createNoteNode };
export { getNoteContentPosition };
export { measureCustomNodeContentSize };
export { isUseCustomNodeContent };
}
Expand Down Expand Up @@ -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;
Expand Down
28 changes: 17 additions & 11 deletions simple-mind-map/types/src/core/render/node/nodeGeneralization.d.ts
Original file line number Diff line number Diff line change
@@ -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 changes: 16 additions & 0 deletions simple-mind-map/types/src/layouts/Base.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
1 change: 1 addition & 0 deletions simple-mind-map/types/src/utils/BatchExecution.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 4 additions & 0 deletions simple-mind-map/types/src/utils/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

0 comments on commit 04ac658

Please sign in to comment.