Skip to content

Commit 1389439

Browse files
committed
fix: add a workaround for jsdoc
1 parent 092f117 commit 1389439

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

src/index.lite.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -132,23 +132,6 @@ export interface Options {
132132
mobileMenu?: boolean,
133133
}
134134
const $d = document
135-
/**
136-
* @class MindElixir
137-
* @example
138-
* let mind = new MindElixir({
139-
el: '#map',
140-
direction: 2,
141-
data: data,
142-
draggable: true,
143-
editable: true,
144-
contextMenu: true,
145-
toolBar: true,
146-
nodeMenu: true,
147-
keypress: true,
148-
})
149-
mind.init()
150-
*
151-
*/
152135
function MindElixir(this: MindElixirInstance, {
153136
el,
154137
data,

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export interface Options {
167167
}
168168
const $d = document
169169
/**
170-
* @class MindElixir
170+
* @export MindElixir
171171
* @example
172172
* let mind = new MindElixir({
173173
el: '#map',

src/interact.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { findEle } from './utils/dom'
22
/**
3+
* @exports -
4+
* workaround for jsdoc
5+
*/
6+
/**
7+
* @exports MapInteraction
38
* @namespace MapInteraction
49
*/
510
function getData(instance) {

src/nodeOperation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { LEFT, RIGHT, SIDE } from './const'
1919
const $d = document
2020

2121
/**
22+
* @exports NodeOperation
2223
* @namespace NodeOperation
2324
*/
2425
export const updateNodeStyle = function(object) {

0 commit comments

Comments
 (0)