修改注释
This commit is contained in:
parent
7e1a43143d
commit
5a5c7702f5
@ -11,7 +11,7 @@ import {
|
|||||||
import associativeLineControlsMethods from './associativeLine/associativeLineControls'
|
import associativeLineControlsMethods from './associativeLine/associativeLineControls'
|
||||||
import associativeLineTextMethods from './associativeLine/associativeLineText'
|
import associativeLineTextMethods from './associativeLine/associativeLineText'
|
||||||
|
|
||||||
// 关联线类
|
// 关联线插件
|
||||||
class AssociativeLine {
|
class AssociativeLine {
|
||||||
constructor(opt = {}) {
|
constructor(opt = {}) {
|
||||||
this.mindMap = opt.mindMap
|
this.mindMap = opt.mindMap
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
import { bfsWalk, throttle } from '../utils'
|
import { bfsWalk, throttle } from '../utils'
|
||||||
import Base from '../layouts/Base'
|
import Base from '../layouts/Base'
|
||||||
|
|
||||||
// 节点拖动类
|
// 节点拖动插件
|
||||||
|
|
||||||
class Drag extends Base {
|
class Drag extends Base {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor({ mindMap }) {
|
constructor({ mindMap }) {
|
||||||
|
|||||||
@ -3,7 +3,7 @@ import { SVG } from '@svgdotjs/svg.js'
|
|||||||
import drawBackgroundImageToCanvas from '../utils/simulateCSSBackgroundInCanvas'
|
import drawBackgroundImageToCanvas from '../utils/simulateCSSBackgroundInCanvas'
|
||||||
import { transformToMarkdown } from '../parse/toMarkdown'
|
import { transformToMarkdown } from '../parse/toMarkdown'
|
||||||
|
|
||||||
// 导出类
|
// 导出插件
|
||||||
class Export {
|
class Export {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor(opt) {
|
constructor(opt) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import JsPDF from 'jspdf'
|
import JsPDF from 'jspdf'
|
||||||
|
|
||||||
// 导出PDF类,需要通过Export插件使用
|
// 导出PDF插件,需要通过Export插件使用
|
||||||
class ExportPDF {
|
class ExportPDF {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor(opt) {
|
constructor(opt) {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import xmind from '../parse/xmind'
|
import xmind from '../parse/xmind'
|
||||||
|
|
||||||
// 导出XMind类,需要通过Export插件使用
|
// 导出XMind插件,需要通过Export插件使用
|
||||||
class ExportXMind {
|
class ExportXMind {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor(opt) {
|
constructor(opt) {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { bfsWalk } from '../utils'
|
import { bfsWalk } from '../utils'
|
||||||
import { CONSTANTS } from '../constants/constant'
|
import { CONSTANTS } from '../constants/constant'
|
||||||
|
|
||||||
// 键盘导航类
|
// 键盘导航插件
|
||||||
class KeyboardNavigation {
|
class KeyboardNavigation {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor(opt) {
|
constructor(opt) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// 小地图类
|
// 小地图插件
|
||||||
class MiniMap {
|
class MiniMap {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor(opt) {
|
constructor(opt) {
|
||||||
|
|||||||
@ -28,7 +28,7 @@ let fontSizeList = new Array(100).fill(0).map((_, index) => {
|
|||||||
return index + 'px'
|
return index + 'px'
|
||||||
})
|
})
|
||||||
|
|
||||||
// 节点支持富文本编辑功能
|
// 富文本编辑插件
|
||||||
class RichText {
|
class RichText {
|
||||||
constructor({ mindMap, pluginOpt }) {
|
constructor({ mindMap, pluginOpt }) {
|
||||||
this.mindMap = mindMap
|
this.mindMap = mindMap
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { bfsWalk, throttle } from '../utils'
|
import { bfsWalk, throttle } from '../utils'
|
||||||
|
|
||||||
// 选择节点类
|
// 节点选择插件
|
||||||
|
|
||||||
class Select {
|
class Select {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor({ mindMap }) {
|
constructor({ mindMap }) {
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
// 手势事件支持类
|
// 手势事件支持插件
|
||||||
|
|
||||||
class TouchEvent {
|
class TouchEvent {
|
||||||
// 构造函数
|
// 构造函数
|
||||||
constructor({ mindMap }) {
|
constructor({ mindMap }) {
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import { Text, G } from '@svgdotjs/svg.js'
|
|||||||
import { degToRad, camelCaseToHyphen } from '../utils'
|
import { degToRad, camelCaseToHyphen } from '../utils'
|
||||||
import merge from 'deepmerge'
|
import merge from 'deepmerge'
|
||||||
|
|
||||||
// 水印类
|
// 水印插件
|
||||||
class Watermark {
|
class Watermark {
|
||||||
constructor(opt = {}) {
|
constructor(opt = {}) {
|
||||||
this.mindMap = opt.mindMap
|
this.mindMap = opt.mindMap
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user