打包0.7.3-fix.1
This commit is contained in:
parent
3acd425c09
commit
745531f20f
@ -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?836f1a5a411debca138c" rel="stylesheet"><link href="dist/css/app.css?836f1a5a411debca138c" 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?ceeef97326ffc3ea9cba" rel="stylesheet"><link href="dist/css/app.css?ceeef97326ffc3ea9cba" 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?836f1a5a411debca138c"></script><script src="dist/js/app.js?836f1a5a411debca138c"></script></body></html>
|
}</script><script src="dist/js/chunk-vendors.js?ceeef97326ffc3ea9cba"></script><script src="dist/js/app.js?ceeef97326ffc3ea9cba"></script></body></html>
|
||||||
18
simple-mind-map/types/index.d.ts
vendored
18
simple-mind-map/types/index.d.ts
vendored
@ -95,6 +95,10 @@ declare class MindMap {
|
|||||||
beingDragNodeOpacity: number;
|
beingDragNodeOpacity: number;
|
||||||
};
|
};
|
||||||
tagsColorMap: {};
|
tagsColorMap: {};
|
||||||
|
cooperateStyle: {
|
||||||
|
avatarSize: number;
|
||||||
|
fontSize: number;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
opt: any;
|
opt: any;
|
||||||
el: any;
|
el: any;
|
||||||
@ -159,14 +163,14 @@ declare class MindMap {
|
|||||||
destroy(): void;
|
destroy(): void;
|
||||||
}
|
}
|
||||||
declare namespace MindMap {
|
declare namespace MindMap {
|
||||||
let pluginList: any[];
|
const 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";
|
||||||
|
|||||||
112
simple-mind-map/types/src/constants/constant.d.ts
vendored
112
simple-mind-map/types/src/constants/constant.d.ts
vendored
@ -4,81 +4,81 @@ export const themeList: {
|
|||||||
dark: boolean;
|
dark: boolean;
|
||||||
}[];
|
}[];
|
||||||
export namespace CONSTANTS {
|
export namespace CONSTANTS {
|
||||||
let CHANGE_THEME: string;
|
const CHANGE_THEME: string;
|
||||||
let CHANGE_LAYOUT: string;
|
const CHANGE_LAYOUT: string;
|
||||||
let SET_DATA: string;
|
const SET_DATA: string;
|
||||||
let TRANSFORM_TO_NORMAL_NODE: string;
|
const TRANSFORM_TO_NORMAL_NODE: string;
|
||||||
namespace MODE {
|
namespace MODE {
|
||||||
let READONLY: string;
|
const READONLY: string;
|
||||||
let EDIT: string;
|
const EDIT: string;
|
||||||
}
|
}
|
||||||
namespace LAYOUT {
|
namespace LAYOUT {
|
||||||
let LOGICAL_STRUCTURE: string;
|
const LOGICAL_STRUCTURE: string;
|
||||||
let MIND_MAP: string;
|
const MIND_MAP: string;
|
||||||
let ORGANIZATION_STRUCTURE: string;
|
const ORGANIZATION_STRUCTURE: string;
|
||||||
let CATALOG_ORGANIZATION: string;
|
const CATALOG_ORGANIZATION: string;
|
||||||
let TIMELINE: string;
|
const TIMELINE: string;
|
||||||
let TIMELINE2: string;
|
const TIMELINE2: string;
|
||||||
let FISHBONE: string;
|
const FISHBONE: string;
|
||||||
let VERTICAL_TIMELINE: string;
|
const VERTICAL_TIMELINE: string;
|
||||||
}
|
}
|
||||||
namespace DIR {
|
namespace DIR {
|
||||||
let UP: string;
|
const UP: string;
|
||||||
let LEFT: string;
|
const LEFT: string;
|
||||||
let DOWN: string;
|
const DOWN: string;
|
||||||
let RIGHT: string;
|
const RIGHT: string;
|
||||||
}
|
}
|
||||||
namespace KEY_DIR {
|
namespace KEY_DIR {
|
||||||
let LEFT_1: string;
|
const LEFT_1: string;
|
||||||
export { LEFT_1 as LEFT };
|
export { LEFT_1 as LEFT };
|
||||||
let UP_1: string;
|
const UP_1: string;
|
||||||
export { UP_1 as UP };
|
export { UP_1 as UP };
|
||||||
let RIGHT_1: string;
|
const RIGHT_1: string;
|
||||||
export { RIGHT_1 as RIGHT };
|
export { RIGHT_1 as RIGHT };
|
||||||
let DOWN_1: string;
|
const DOWN_1: string;
|
||||||
export { DOWN_1 as DOWN };
|
export { DOWN_1 as DOWN };
|
||||||
}
|
}
|
||||||
namespace SHAPE {
|
namespace SHAPE {
|
||||||
let RECTANGLE: string;
|
const RECTANGLE: string;
|
||||||
let DIAMOND: string;
|
const DIAMOND: string;
|
||||||
let PARALLELOGRAM: string;
|
const PARALLELOGRAM: string;
|
||||||
let ROUNDED_RECTANGLE: string;
|
const ROUNDED_RECTANGLE: string;
|
||||||
let OCTAGONAL_RECTANGLE: string;
|
const OCTAGONAL_RECTANGLE: string;
|
||||||
let OUTER_TRIANGULAR_RECTANGLE: string;
|
const OUTER_TRIANGULAR_RECTANGLE: string;
|
||||||
let INNER_TRIANGULAR_RECTANGLE: string;
|
const INNER_TRIANGULAR_RECTANGLE: string;
|
||||||
let ELLIPSE: string;
|
const ELLIPSE: string;
|
||||||
let CIRCLE: string;
|
const CIRCLE: string;
|
||||||
}
|
}
|
||||||
namespace MOUSE_WHEEL_ACTION {
|
namespace MOUSE_WHEEL_ACTION {
|
||||||
let ZOOM: string;
|
const ZOOM: string;
|
||||||
let MOVE: string;
|
const MOVE: string;
|
||||||
}
|
}
|
||||||
namespace INIT_ROOT_NODE_POSITION {
|
namespace INIT_ROOT_NODE_POSITION {
|
||||||
let LEFT_2: string;
|
const LEFT_2: string;
|
||||||
export { LEFT_2 as LEFT };
|
export { LEFT_2 as LEFT };
|
||||||
export let TOP: string;
|
export const TOP: string;
|
||||||
let RIGHT_2: string;
|
const RIGHT_2: string;
|
||||||
export { RIGHT_2 as RIGHT };
|
export { RIGHT_2 as RIGHT };
|
||||||
export let BOTTOM: string;
|
export const BOTTOM: string;
|
||||||
export let CENTER: string;
|
export const CENTER: string;
|
||||||
}
|
}
|
||||||
namespace LAYOUT_GROW_DIR {
|
namespace LAYOUT_GROW_DIR {
|
||||||
let LEFT_3: string;
|
const LEFT_3: string;
|
||||||
export { LEFT_3 as LEFT };
|
export { LEFT_3 as LEFT };
|
||||||
let TOP_1: string;
|
const TOP_1: string;
|
||||||
export { TOP_1 as TOP };
|
export { TOP_1 as TOP };
|
||||||
let RIGHT_3: string;
|
const RIGHT_3: string;
|
||||||
export { RIGHT_3 as RIGHT };
|
export { RIGHT_3 as RIGHT };
|
||||||
let BOTTOM_1: string;
|
const BOTTOM_1: string;
|
||||||
export { BOTTOM_1 as BOTTOM };
|
export { BOTTOM_1 as BOTTOM };
|
||||||
}
|
}
|
||||||
namespace PASTE_TYPE {
|
namespace PASTE_TYPE {
|
||||||
let CLIP_BOARD: string;
|
const CLIP_BOARD: string;
|
||||||
let CANVAS: string;
|
const CANVAS: string;
|
||||||
}
|
}
|
||||||
namespace SCROLL_BAR_DIR {
|
namespace SCROLL_BAR_DIR {
|
||||||
let VERTICAL: string;
|
const VERTICAL: string;
|
||||||
let HORIZONTAL: string;
|
const HORIZONTAL: string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export const initRootNodePositionMap: {
|
export const initRootNodePositionMap: {
|
||||||
@ -91,19 +91,19 @@ export const layoutList: {
|
|||||||
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;
|
const measureCustomNodeContentSizeEl: any;
|
||||||
let measureRichtextNodeTextSizeEl: any;
|
const measureRichtextNodeTextSizeEl: any;
|
||||||
}
|
}
|
||||||
export namespace ERROR_TYPES {
|
export namespace ERROR_TYPES {
|
||||||
let READ_CLIPBOARD_ERROR: string;
|
const READ_CLIPBOARD_ERROR: string;
|
||||||
let PARSE_PASTE_DATA_ERROR: string;
|
const PARSE_PASTE_DATA_ERROR: string;
|
||||||
let CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string;
|
const CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string;
|
||||||
let LOAD_CLIPBOARD_IMAGE_ERROR: string;
|
const LOAD_CLIPBOARD_IMAGE_ERROR: string;
|
||||||
let BEFORE_TEXT_EDIT_ERROR: string;
|
const BEFORE_TEXT_EDIT_ERROR: string;
|
||||||
let EXPORT_ERROR: string;
|
const EXPORT_ERROR: string;
|
||||||
}
|
}
|
||||||
export namespace a4Size {
|
export namespace a4Size {
|
||||||
let width: number;
|
const width: number;
|
||||||
let height: 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 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";
|
||||||
|
|||||||
@ -1,95 +1,100 @@
|
|||||||
export namespace defaultOpt {
|
export namespace defaultOpt {
|
||||||
let readonly: boolean;
|
const readonly: boolean;
|
||||||
let layout: string;
|
const layout: string;
|
||||||
let fishboneDeg: number;
|
const fishboneDeg: number;
|
||||||
let theme: string;
|
const theme: string;
|
||||||
let themeConfig: {};
|
const themeConfig: {};
|
||||||
let scaleRatio: number;
|
const scaleRatio: number;
|
||||||
let mouseScaleCenterUseMousePosition: boolean;
|
const mouseScaleCenterUseMousePosition: boolean;
|
||||||
let maxTag: number;
|
const maxTag: number;
|
||||||
let expandBtnSize: number;
|
const expandBtnSize: number;
|
||||||
let imgTextMargin: number;
|
const imgTextMargin: number;
|
||||||
let textContentMargin: number;
|
const textContentMargin: number;
|
||||||
let selectTranslateStep: number;
|
const selectTranslateStep: number;
|
||||||
let selectTranslateLimit: number;
|
const selectTranslateLimit: number;
|
||||||
let customNoteContentShow: any;
|
const customNoteContentShow: any;
|
||||||
let enableFreeDrag: boolean;
|
const enableFreeDrag: boolean;
|
||||||
namespace watermarkConfig {
|
namespace watermarkConfig {
|
||||||
let text: string;
|
const text: string;
|
||||||
let lineSpacing: number;
|
const lineSpacing: number;
|
||||||
let textSpacing: number;
|
const textSpacing: number;
|
||||||
let angle: number;
|
const angle: number;
|
||||||
namespace textStyle {
|
namespace textStyle {
|
||||||
let color: string;
|
const color: string;
|
||||||
let opacity: number;
|
const opacity: number;
|
||||||
let fontSize: number;
|
const fontSize: number;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let textAutoWrapWidth: number;
|
const textAutoWrapWidth: number;
|
||||||
let customHandleMousewheel: any;
|
const customHandleMousewheel: any;
|
||||||
let mousewheelAction: string;
|
const mousewheelAction: string;
|
||||||
let mousewheelMoveStep: number;
|
const mousewheelMoveStep: number;
|
||||||
let mousewheelZoomActionReverse: boolean;
|
const mousewheelZoomActionReverse: boolean;
|
||||||
let defaultInsertSecondLevelNodeText: string;
|
const defaultInsertSecondLevelNodeText: string;
|
||||||
let defaultInsertBelowSecondLevelNodeText: string;
|
const defaultInsertBelowSecondLevelNodeText: string;
|
||||||
namespace expandBtnStyle {
|
namespace expandBtnStyle {
|
||||||
let color_1: string;
|
const color_1: string;
|
||||||
export { color_1 as color };
|
export { color_1 as color };
|
||||||
export let fill: string;
|
export const fill: string;
|
||||||
let fontSize_1: number;
|
const fontSize_1: number;
|
||||||
export { fontSize_1 as fontSize };
|
export { fontSize_1 as fontSize };
|
||||||
export let strokeColor: string;
|
export const strokeColor: string;
|
||||||
}
|
}
|
||||||
namespace expandBtnIcon {
|
namespace expandBtnIcon {
|
||||||
let open: string;
|
const open: string;
|
||||||
let close: string;
|
const close: string;
|
||||||
}
|
}
|
||||||
function expandBtnNumHandler(num: any): any;
|
function expandBtnNumHandler(num: any): any;
|
||||||
let isShowExpandNum: boolean;
|
const isShowExpandNum: boolean;
|
||||||
let enableShortcutOnlyWhenMouseInSvg: boolean;
|
const enableShortcutOnlyWhenMouseInSvg: boolean;
|
||||||
let initRootNodePosition: any;
|
const initRootNodePosition: any;
|
||||||
let exportPaddingX: number;
|
const exportPaddingX: number;
|
||||||
let exportPaddingY: number;
|
const exportPaddingY: number;
|
||||||
let nodeTextEditZIndex: number;
|
const nodeTextEditZIndex: number;
|
||||||
let nodeNoteTooltipZIndex: number;
|
const nodeNoteTooltipZIndex: number;
|
||||||
let isEndNodeTextEditOnClickOuter: boolean;
|
const isEndNodeTextEditOnClickOuter: boolean;
|
||||||
let maxHistoryCount: number;
|
const maxHistoryCount: number;
|
||||||
let alwaysShowExpandBtn: boolean;
|
const alwaysShowExpandBtn: boolean;
|
||||||
let iconList: any[];
|
const iconList: any[];
|
||||||
let maxNodeCacheCount: number;
|
const maxNodeCacheCount: number;
|
||||||
let defaultAssociativeLineText: string;
|
const defaultAssociativeLineText: string;
|
||||||
let fitPadding: number;
|
const fitPadding: number;
|
||||||
let enableCtrlKeyNodeSelection: boolean;
|
const enableCtrlKeyNodeSelection: boolean;
|
||||||
let useLeftKeySelectionRightKeyDrag: boolean;
|
const useLeftKeySelectionRightKeyDrag: boolean;
|
||||||
let beforeTextEdit: any;
|
const beforeTextEdit: any;
|
||||||
let isUseCustomNodeContent: boolean;
|
const isUseCustomNodeContent: boolean;
|
||||||
let customCreateNodeContent: any;
|
const customCreateNodeContent: any;
|
||||||
let customInnerElsAppendTo: any;
|
const customInnerElsAppendTo: any;
|
||||||
let nodeDragPlaceholderMaxSize: number;
|
const nodeDragPlaceholderMaxSize: number;
|
||||||
let enableAutoEnterTextEditWhenKeydown: boolean;
|
const enableAutoEnterTextEditWhenKeydown: boolean;
|
||||||
let richTextEditFakeInPlace: boolean;
|
const richTextEditFakeInPlace: boolean;
|
||||||
let customHandleClipboardText: any;
|
const customHandleClipboardText: any;
|
||||||
let disableMouseWheelZoom: boolean;
|
const disableMouseWheelZoom: boolean;
|
||||||
function errorHandler(code: any, error: any): void;
|
function errorHandler(code: any, error: any): void;
|
||||||
let resetCss: string;
|
const resetCss: string;
|
||||||
let enableDblclickReset: boolean;
|
const enableDblclickReset: boolean;
|
||||||
let minExportImgCanvasScale: number;
|
const minExportImgCanvasScale: number;
|
||||||
let hoverRectColor: string;
|
const hoverRectColor: string;
|
||||||
let hoverRectPadding: number;
|
const hoverRectPadding: number;
|
||||||
let selectTextOnEnterEditText: boolean;
|
const selectTextOnEnterEditText: boolean;
|
||||||
let deleteNodeActive: boolean;
|
const deleteNodeActive: boolean;
|
||||||
let autoMoveWhenMouseInEdgeOnDrag: boolean;
|
const autoMoveWhenMouseInEdgeOnDrag: boolean;
|
||||||
let fit: boolean;
|
const fit: boolean;
|
||||||
namespace dragMultiNodeRectConfig {
|
namespace dragMultiNodeRectConfig {
|
||||||
export let width: number;
|
export const width: number;
|
||||||
export let height: number;
|
export const height: number;
|
||||||
let fill_1: string;
|
const fill_1: string;
|
||||||
export { fill_1 as fill };
|
export { fill_1 as fill };
|
||||||
}
|
}
|
||||||
let dragPlaceholderRectFill: string;
|
const dragPlaceholderRectFill: string;
|
||||||
namespace dragOpacityConfig {
|
namespace dragOpacityConfig {
|
||||||
let cloneNodeOpacity: number;
|
const cloneNodeOpacity: number;
|
||||||
let beingDragNodeOpacity: number;
|
const beingDragNodeOpacity: number;
|
||||||
|
}
|
||||||
|
const tagsColorMap: {};
|
||||||
|
namespace cooperateStyle {
|
||||||
|
export const avatarSize: number;
|
||||||
|
const fontSize_2: number;
|
||||||
|
export { fontSize_2 as fontSize };
|
||||||
}
|
}
|
||||||
let tagsColorMap: {};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,6 +22,7 @@ declare class Render {
|
|||||||
currentBeingPasteType: string;
|
currentBeingPasteType: string;
|
||||||
setLayout(): void;
|
setLayout(): void;
|
||||||
layout: MindMap | CatalogOrganization | OrganizationStructure | Timeline | VerticalTimeline;
|
layout: MindMap | CatalogOrganization | OrganizationStructure | Timeline | VerticalTimeline;
|
||||||
|
setData(data: any): void;
|
||||||
bindEvent(): void;
|
bindEvent(): void;
|
||||||
registerCommands(): void;
|
registerCommands(): void;
|
||||||
selectAll(): void;
|
selectAll(): void;
|
||||||
@ -87,9 +88,9 @@ declare class Render {
|
|||||||
expandToNodeUid(uid: any, callback?: () => void): void;
|
expandToNodeUid(uid: any, callback?: () => void): void;
|
||||||
findNodeByUid(uid: any): any;
|
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";
|
||||||
|
|||||||
@ -25,6 +25,7 @@ declare class Node {
|
|||||||
isDrag: boolean;
|
isDrag: boolean;
|
||||||
parent: any;
|
parent: any;
|
||||||
children: any;
|
children: any;
|
||||||
|
userList: any[];
|
||||||
group: any;
|
group: any;
|
||||||
shapeNode: any;
|
shapeNode: any;
|
||||||
hoverNode: any;
|
hoverNode: any;
|
||||||
@ -42,6 +43,7 @@ declare class Node {
|
|||||||
_openExpandNode: any;
|
_openExpandNode: any;
|
||||||
_closeExpandNode: any;
|
_closeExpandNode: any;
|
||||||
_fillExpandNode: any;
|
_fillExpandNode: any;
|
||||||
|
_userListGroup: any;
|
||||||
_lines: any[];
|
_lines: any[];
|
||||||
_generalizationLine: any;
|
_generalizationLine: any;
|
||||||
_generalizationNode: any;
|
_generalizationNode: any;
|
||||||
@ -114,5 +116,5 @@ declare class Node {
|
|||||||
getData(key: any): any;
|
getData(key: any): any;
|
||||||
hasCustomStyle(): boolean;
|
hasCustomStyle(): boolean;
|
||||||
}
|
}
|
||||||
import Style from './Style';
|
import Style from "./Style";
|
||||||
import Shape from './Shape';
|
import Shape from "./Shape";
|
||||||
|
|||||||
@ -32,5 +32,5 @@ declare class Style {
|
|||||||
hoverNode(node: any): void;
|
hoverNode(node: any): void;
|
||||||
}
|
}
|
||||||
declare namespace Style {
|
declare namespace Style {
|
||||||
let cacheStyle: any;
|
const cacheStyle: any;
|
||||||
}
|
}
|
||||||
|
|||||||
18
simple-mind-map/types/src/core/render/node/nodeCooperate.d.ts
vendored
Normal file
18
simple-mind-map/types/src/core/render/node/nodeCooperate.d.ts
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
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;
|
||||||
@ -29,4 +29,4 @@ declare class removeGeneralization {
|
|||||||
}
|
}
|
||||||
declare function hideGeneralization(): void;
|
declare function hideGeneralization(): void;
|
||||||
declare function showGeneralization(): void;
|
declare function showGeneralization(): void;
|
||||||
import Node from './Node';
|
import Node from "./Node";
|
||||||
|
|||||||
2
simple-mind-map/types/src/layouts/Base.d.ts
vendored
2
simple-mind-map/types/src/layouts/Base.d.ts
vendored
@ -40,4 +40,4 @@ declare class Base {
|
|||||||
};
|
};
|
||||||
getNodeActChildrenLength(node: any): any;
|
getNodeActChildrenLength(node: any): any;
|
||||||
}
|
}
|
||||||
import Lru from '../utils/Lru';
|
import Lru from "../utils/Lru";
|
||||||
|
|||||||
@ -1,15 +1,11 @@
|
|||||||
export default CatalogOrganization;
|
export default CatalogOrganization;
|
||||||
declare class CatalogOrganization extends Base {
|
declare class CatalogOrganization extends Base {
|
||||||
constructor(opt?: {});
|
constructor(opt?: {});
|
||||||
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[];
|
|
||||||
renderExpandBtn(node: any, btn: any): void;
|
|
||||||
renderGeneralization(node: any, gLine: any, gNode: any): void;
|
|
||||||
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
||||||
}
|
}
|
||||||
import Base from './Base';
|
import Base from "./Base";
|
||||||
|
|||||||
@ -3,7 +3,6 @@ declare class Fishbone extends Base {
|
|||||||
constructor(opt?: {});
|
constructor(opt?: {});
|
||||||
indent: number;
|
indent: number;
|
||||||
childIndent: number;
|
childIndent: number;
|
||||||
doLayout(callback: any): void;
|
|
||||||
computedBaseValue(): void;
|
computedBaseValue(): void;
|
||||||
computedLeftTopValue(): void;
|
computedLeftTopValue(): void;
|
||||||
adjustLeftTopValue(): void;
|
adjustLeftTopValue(): void;
|
||||||
@ -11,9 +10,6 @@ declare class Fishbone extends Base {
|
|||||||
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[];
|
|
||||||
renderExpandBtn(node: any, btn: any): void;
|
|
||||||
renderGeneralization(node: any, gLine: any, gNode: any): void;
|
|
||||||
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
||||||
}
|
}
|
||||||
import Base from './Base';
|
import Base from "./Base";
|
||||||
|
|||||||
@ -1,17 +1,13 @@
|
|||||||
export default LogicalStructure;
|
export default LogicalStructure;
|
||||||
declare class LogicalStructure extends Base {
|
declare class LogicalStructure extends Base {
|
||||||
constructor(opt?: {});
|
constructor(opt?: {});
|
||||||
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;
|
|
||||||
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;
|
|
||||||
renderGeneralization(node: any, gLine: any, gNode: any): void;
|
|
||||||
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
||||||
}
|
}
|
||||||
import Base from './Base';
|
import Base from "./Base";
|
||||||
|
|||||||
@ -1,17 +1,13 @@
|
|||||||
export default MindMap;
|
export default MindMap;
|
||||||
declare class MindMap extends Base {
|
declare class MindMap extends Base {
|
||||||
constructor(opt?: {});
|
constructor(opt?: {});
|
||||||
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;
|
|
||||||
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;
|
|
||||||
renderGeneralization(node: any, gLine: any, gNode: any): void;
|
|
||||||
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
||||||
}
|
}
|
||||||
import Base from './Base';
|
import Base from "./Base";
|
||||||
|
|||||||
@ -1,16 +1,12 @@
|
|||||||
export default OrganizationStructure;
|
export default OrganizationStructure;
|
||||||
declare class OrganizationStructure extends Base {
|
declare class OrganizationStructure extends Base {
|
||||||
constructor(opt?: {});
|
constructor(opt?: {});
|
||||||
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;
|
|
||||||
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;
|
|
||||||
renderGeneralization(node: any, gLine: any, gNode: any): void;
|
|
||||||
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
||||||
}
|
}
|
||||||
import Base from './Base';
|
import Base from "./Base";
|
||||||
|
|||||||
@ -2,16 +2,12 @@ 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;
|
|
||||||
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[];
|
|
||||||
renderExpandBtn(node: any, btn: any): void;
|
|
||||||
renderGeneralization(node: any, gLine: any, gNode: any): void;
|
|
||||||
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
||||||
}
|
}
|
||||||
import Base from './Base';
|
import Base from "./Base";
|
||||||
|
|||||||
@ -2,18 +2,14 @@ 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;
|
|
||||||
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;
|
|
||||||
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;
|
|
||||||
renderGeneralization(node: any, gLine: any, gNode: any): void;
|
|
||||||
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void;
|
||||||
}
|
}
|
||||||
import Base from './Base';
|
import Base from "./Base";
|
||||||
|
|||||||
@ -1,5 +1,14 @@
|
|||||||
declare namespace _default {
|
declare namespace _default {
|
||||||
namespace top {
|
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 }: {
|
function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: {
|
||||||
node: any;
|
node: any;
|
||||||
btn: any;
|
btn: any;
|
||||||
@ -20,11 +29,33 @@ declare namespace _default {
|
|||||||
maxy: any;
|
maxy: any;
|
||||||
ctx: any;
|
ctx: any;
|
||||||
}): void;
|
}): 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 }: {
|
function computedLeftTopValue({ layerIndex, node, ctx }: {
|
||||||
layerIndex: any;
|
layerIndex: any;
|
||||||
node: any;
|
node: any;
|
||||||
ctx: any;
|
ctx: any;
|
||||||
}): void;
|
}): 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 }: {
|
function adjustLeftTopValueBefore({ node, parent, ctx, layerIndex }: {
|
||||||
node: any;
|
node: any;
|
||||||
parent: any;
|
parent: any;
|
||||||
@ -36,8 +67,22 @@ declare namespace _default {
|
|||||||
node: any;
|
node: any;
|
||||||
ctx: any;
|
ctx: any;
|
||||||
}): void;
|
}): void;
|
||||||
|
function adjustLeftTopValueAfter({ parent, node, ctx }: {
|
||||||
|
parent: any;
|
||||||
|
node: any;
|
||||||
|
ctx: any;
|
||||||
|
}): void;
|
||||||
}
|
}
|
||||||
namespace bottom {
|
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 }: {
|
function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: {
|
||||||
node: any;
|
node: any;
|
||||||
btn: any;
|
btn: any;
|
||||||
@ -57,11 +102,31 @@ declare namespace _default {
|
|||||||
miny: any;
|
miny: any;
|
||||||
ctx: any;
|
ctx: any;
|
||||||
}): void;
|
}): 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 }: {
|
function computedLeftTopValue({ layerIndex, node, ctx }: {
|
||||||
layerIndex: any;
|
layerIndex: any;
|
||||||
node: any;
|
node: any;
|
||||||
ctx: any;
|
ctx: any;
|
||||||
}): void;
|
}): 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 }: {
|
function adjustLeftTopValueBefore({ node, ctx, layerIndex }: {
|
||||||
node: any;
|
node: any;
|
||||||
ctx: any;
|
ctx: any;
|
||||||
@ -72,6 +137,11 @@ declare namespace _default {
|
|||||||
node: any;
|
node: any;
|
||||||
ctx: any;
|
ctx: any;
|
||||||
}): void;
|
}): void;
|
||||||
|
function adjustLeftTopValueAfter({ parent, node, ctx }: {
|
||||||
|
parent: any;
|
||||||
|
node: any;
|
||||||
|
ctx: any;
|
||||||
|
}): void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|||||||
172
simple-mind-map/types/src/themes/default.d.ts
vendored
172
simple-mind-map/types/src/themes/default.d.ts
vendored
@ -1,139 +1,139 @@
|
|||||||
declare namespace _default {
|
declare namespace _default {
|
||||||
let paddingX: number;
|
const paddingX: number;
|
||||||
let paddingY: number;
|
const paddingY: number;
|
||||||
let imgMaxWidth: number;
|
const imgMaxWidth: number;
|
||||||
let imgMaxHeight: number;
|
const imgMaxHeight: number;
|
||||||
let iconSize: number;
|
const iconSize: number;
|
||||||
let lineWidth: number;
|
const lineWidth: number;
|
||||||
let lineColor: string;
|
const lineColor: string;
|
||||||
let lineDasharray: string;
|
const lineDasharray: string;
|
||||||
let lineStyle: string;
|
const lineStyle: string;
|
||||||
let rootLineKeepSameInCurve: boolean;
|
const rootLineKeepSameInCurve: boolean;
|
||||||
let generalizationLineWidth: number;
|
const generalizationLineWidth: number;
|
||||||
let generalizationLineColor: string;
|
const generalizationLineColor: string;
|
||||||
let generalizationLineMargin: number;
|
const generalizationLineMargin: number;
|
||||||
let generalizationNodeMargin: number;
|
const generalizationNodeMargin: number;
|
||||||
let associativeLineWidth: number;
|
const associativeLineWidth: number;
|
||||||
let associativeLineColor: string;
|
const associativeLineColor: string;
|
||||||
let associativeLineActiveWidth: number;
|
const associativeLineActiveWidth: number;
|
||||||
let associativeLineActiveColor: string;
|
const associativeLineActiveColor: string;
|
||||||
let associativeLineTextColor: string;
|
const associativeLineTextColor: string;
|
||||||
let associativeLineTextFontSize: number;
|
const associativeLineTextFontSize: number;
|
||||||
let associativeLineTextLineHeight: number;
|
const associativeLineTextLineHeight: number;
|
||||||
let associativeLineTextFontFamily: string;
|
const associativeLineTextFontFamily: string;
|
||||||
let backgroundColor: string;
|
const backgroundColor: string;
|
||||||
let backgroundImage: string;
|
const backgroundImage: string;
|
||||||
let backgroundRepeat: string;
|
const backgroundRepeat: string;
|
||||||
let backgroundPosition: string;
|
const backgroundPosition: string;
|
||||||
let backgroundSize: string;
|
const backgroundSize: string;
|
||||||
let nodeUseLineStyle: boolean;
|
const nodeUseLineStyle: boolean;
|
||||||
namespace root {
|
namespace root {
|
||||||
let shape: string;
|
const shape: string;
|
||||||
let fillColor: string;
|
const fillColor: string;
|
||||||
let fontFamily: string;
|
const fontFamily: string;
|
||||||
let color: string;
|
const color: string;
|
||||||
let fontSize: number;
|
const fontSize: number;
|
||||||
let fontWeight: string;
|
const fontWeight: string;
|
||||||
let fontStyle: string;
|
const fontStyle: string;
|
||||||
let lineHeight: number;
|
const lineHeight: number;
|
||||||
let borderColor: string;
|
const borderColor: string;
|
||||||
let borderWidth: number;
|
const borderWidth: number;
|
||||||
let borderDasharray: string;
|
const borderDasharray: string;
|
||||||
let borderRadius: number;
|
const borderRadius: number;
|
||||||
let textDecoration: string;
|
const textDecoration: string;
|
||||||
}
|
}
|
||||||
namespace second {
|
namespace second {
|
||||||
let shape_1: string;
|
const shape_1: string;
|
||||||
export { shape_1 as shape };
|
export { shape_1 as shape };
|
||||||
export let marginX: number;
|
export const marginX: number;
|
||||||
export let marginY: number;
|
export const marginY: number;
|
||||||
let fillColor_1: string;
|
const fillColor_1: string;
|
||||||
export { fillColor_1 as fillColor };
|
export { fillColor_1 as fillColor };
|
||||||
let fontFamily_1: string;
|
const fontFamily_1: string;
|
||||||
export { fontFamily_1 as fontFamily };
|
export { fontFamily_1 as fontFamily };
|
||||||
let color_1: string;
|
const color_1: string;
|
||||||
export { color_1 as color };
|
export { color_1 as color };
|
||||||
let fontSize_1: number;
|
const fontSize_1: number;
|
||||||
export { fontSize_1 as fontSize };
|
export { fontSize_1 as fontSize };
|
||||||
let fontWeight_1: string;
|
const fontWeight_1: string;
|
||||||
export { fontWeight_1 as fontWeight };
|
export { fontWeight_1 as fontWeight };
|
||||||
let fontStyle_1: string;
|
const fontStyle_1: string;
|
||||||
export { fontStyle_1 as fontStyle };
|
export { fontStyle_1 as fontStyle };
|
||||||
let lineHeight_1: number;
|
const lineHeight_1: number;
|
||||||
export { lineHeight_1 as lineHeight };
|
export { lineHeight_1 as lineHeight };
|
||||||
let borderColor_1: string;
|
const borderColor_1: string;
|
||||||
export { borderColor_1 as borderColor };
|
export { borderColor_1 as borderColor };
|
||||||
let borderWidth_1: number;
|
const borderWidth_1: number;
|
||||||
export { borderWidth_1 as borderWidth };
|
export { borderWidth_1 as borderWidth };
|
||||||
let borderDasharray_1: string;
|
const borderDasharray_1: string;
|
||||||
export { borderDasharray_1 as borderDasharray };
|
export { borderDasharray_1 as borderDasharray };
|
||||||
let borderRadius_1: number;
|
const borderRadius_1: number;
|
||||||
export { borderRadius_1 as borderRadius };
|
export { borderRadius_1 as borderRadius };
|
||||||
let textDecoration_1: string;
|
const textDecoration_1: string;
|
||||||
export { textDecoration_1 as textDecoration };
|
export { textDecoration_1 as textDecoration };
|
||||||
}
|
}
|
||||||
namespace node {
|
namespace node {
|
||||||
let shape_2: string;
|
const shape_2: string;
|
||||||
export { shape_2 as shape };
|
export { shape_2 as shape };
|
||||||
let marginX_1: number;
|
const marginX_1: number;
|
||||||
export { marginX_1 as marginX };
|
export { marginX_1 as marginX };
|
||||||
let marginY_1: number;
|
const marginY_1: number;
|
||||||
export { marginY_1 as marginY };
|
export { marginY_1 as marginY };
|
||||||
let fillColor_2: string;
|
const fillColor_2: string;
|
||||||
export { fillColor_2 as fillColor };
|
export { fillColor_2 as fillColor };
|
||||||
let fontFamily_2: string;
|
const fontFamily_2: string;
|
||||||
export { fontFamily_2 as fontFamily };
|
export { fontFamily_2 as fontFamily };
|
||||||
let color_2: string;
|
const color_2: string;
|
||||||
export { color_2 as color };
|
export { color_2 as color };
|
||||||
let fontSize_2: number;
|
const fontSize_2: number;
|
||||||
export { fontSize_2 as fontSize };
|
export { fontSize_2 as fontSize };
|
||||||
let fontWeight_2: string;
|
const fontWeight_2: string;
|
||||||
export { fontWeight_2 as fontWeight };
|
export { fontWeight_2 as fontWeight };
|
||||||
let fontStyle_2: string;
|
const fontStyle_2: string;
|
||||||
export { fontStyle_2 as fontStyle };
|
export { fontStyle_2 as fontStyle };
|
||||||
let lineHeight_2: number;
|
const lineHeight_2: number;
|
||||||
export { lineHeight_2 as lineHeight };
|
export { lineHeight_2 as lineHeight };
|
||||||
let borderColor_2: string;
|
const borderColor_2: string;
|
||||||
export { borderColor_2 as borderColor };
|
export { borderColor_2 as borderColor };
|
||||||
let borderWidth_2: number;
|
const borderWidth_2: number;
|
||||||
export { borderWidth_2 as borderWidth };
|
export { borderWidth_2 as borderWidth };
|
||||||
let borderRadius_2: number;
|
const borderRadius_2: number;
|
||||||
export { borderRadius_2 as borderRadius };
|
export { borderRadius_2 as borderRadius };
|
||||||
let borderDasharray_2: string;
|
const borderDasharray_2: string;
|
||||||
export { borderDasharray_2 as borderDasharray };
|
export { borderDasharray_2 as borderDasharray };
|
||||||
let textDecoration_2: string;
|
const textDecoration_2: string;
|
||||||
export { textDecoration_2 as textDecoration };
|
export { textDecoration_2 as textDecoration };
|
||||||
}
|
}
|
||||||
namespace generalization {
|
namespace generalization {
|
||||||
let shape_3: string;
|
const shape_3: string;
|
||||||
export { shape_3 as shape };
|
export { shape_3 as shape };
|
||||||
let marginX_2: number;
|
const marginX_2: number;
|
||||||
export { marginX_2 as marginX };
|
export { marginX_2 as marginX };
|
||||||
let marginY_2: number;
|
const marginY_2: number;
|
||||||
export { marginY_2 as marginY };
|
export { marginY_2 as marginY };
|
||||||
let fillColor_3: string;
|
const fillColor_3: string;
|
||||||
export { fillColor_3 as fillColor };
|
export { fillColor_3 as fillColor };
|
||||||
let fontFamily_3: string;
|
const fontFamily_3: string;
|
||||||
export { fontFamily_3 as fontFamily };
|
export { fontFamily_3 as fontFamily };
|
||||||
let color_3: string;
|
const color_3: string;
|
||||||
export { color_3 as color };
|
export { color_3 as color };
|
||||||
let fontSize_3: number;
|
const fontSize_3: number;
|
||||||
export { fontSize_3 as fontSize };
|
export { fontSize_3 as fontSize };
|
||||||
let fontWeight_3: string;
|
const fontWeight_3: string;
|
||||||
export { fontWeight_3 as fontWeight };
|
export { fontWeight_3 as fontWeight };
|
||||||
let fontStyle_3: string;
|
const fontStyle_3: string;
|
||||||
export { fontStyle_3 as fontStyle };
|
export { fontStyle_3 as fontStyle };
|
||||||
let lineHeight_3: number;
|
const lineHeight_3: number;
|
||||||
export { lineHeight_3 as lineHeight };
|
export { lineHeight_3 as lineHeight };
|
||||||
let borderColor_3: string;
|
const borderColor_3: string;
|
||||||
export { borderColor_3 as borderColor };
|
export { borderColor_3 as borderColor };
|
||||||
let borderWidth_3: number;
|
const borderWidth_3: number;
|
||||||
export { borderWidth_3 as borderWidth };
|
export { borderWidth_3 as borderWidth };
|
||||||
let borderDasharray_3: string;
|
const borderDasharray_3: string;
|
||||||
export { borderDasharray_3 as borderDasharray };
|
export { borderDasharray_3 as borderDasharray };
|
||||||
let borderRadius_3: number;
|
const borderRadius_3: number;
|
||||||
export { borderRadius_3 as borderRadius };
|
export { borderRadius_3 as borderRadius };
|
||||||
let textDecoration_3: string;
|
const textDecoration_3: string;
|
||||||
export { textDecoration_3 as textDecoration };
|
export { textDecoration_3 as textDecoration };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
5
simple-mind-map/types/src/utils/index.d.ts
vendored
5
simple-mind-map/types/src/utils/index.d.ts
vendored
@ -6,7 +6,7 @@ export function resizeImg(imgUrl: any, maxWidth: any, maxHeight: any): Promise<a
|
|||||||
export function getStrWithBrFromHtml(str: any): any;
|
export function getStrWithBrFromHtml(str: any): any;
|
||||||
export function simpleDeepClone(data: any): any;
|
export function simpleDeepClone(data: any): any;
|
||||||
export function copyRenderTree(tree: any, root: any, removeActiveState?: boolean): any;
|
export function copyRenderTree(tree: any, root: any, removeActiveState?: boolean): any;
|
||||||
export function copyNodeTree(tree: any, root: any, removeActiveState?: boolean, keepId?: boolean): any;
|
export function copyNodeTree(tree: any, root: any, removeActiveState?: boolean, removeId?: boolean): any;
|
||||||
export function imgToDataUrl(src: any): Promise<any>;
|
export function imgToDataUrl(src: any): Promise<any>;
|
||||||
export function parseDataUrl(data: any): any;
|
export function parseDataUrl(data: any): any;
|
||||||
export function downloadFile(file: any, fileName: any): void;
|
export function downloadFile(file: any, fileName: any): void;
|
||||||
@ -62,8 +62,9 @@ export function checkTwoRectIsOverlap(minx1: any, maxx1: any, miny1: any, maxy1:
|
|||||||
export function focusInput(el: any): void;
|
export function focusInput(el: any): void;
|
||||||
export function selectAllInput(el: any): void;
|
export function selectAllInput(el: any): void;
|
||||||
export function addDataToAppointNodes(appointNodes: any, data?: {}): any;
|
export function addDataToAppointNodes(appointNodes: any, data?: {}): any;
|
||||||
export function createUidForAppointNodes(appointNodes: any): any;
|
export function createUidForAppointNodes(appointNodes: any, createNewId?: boolean): any;
|
||||||
export function formatDataToArray(data: any): any[];
|
export function formatDataToArray(data: any): any[];
|
||||||
export function getNodeIndex(node: any): any;
|
export function getNodeIndex(node: any): any;
|
||||||
export function generateColorByContent(str: any): string;
|
export function generateColorByContent(str: any): string;
|
||||||
export function htmlEscape(str: any): any;
|
export function htmlEscape(str: any): any;
|
||||||
|
export function isSameObject(a: any, b: any): boolean;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user