Skip to content

Commit

Permalink
feat: add linkDiv Event
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Oct 19, 2024
1 parent abe32fa commit 29b451e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mind-elixir",
"version": "4.2.0",
"version": "4.2.1",
"type": "module",
"description": "Mind elixir is a free open source mind map core.",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions src/linkDiv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const linkDiv = function (this: MindElixirInstance, mainNode?: Wrapper) {
this.renderArrow()
this.renderSummary()
console.timeEnd('linkDiv')
this.bus.fire('linkDiv')
}

// core function of generate subLines
Expand Down
1 change: 1 addition & 0 deletions src/utils/pubsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export type EventMap = {
unselectNode: () => void
unselectNodes: () => void
expandNode: (nodeObj: NodeObj) => void
linkDiv: () => void
}

const Bus = {
Expand Down

0 comments on commit 29b451e

Please sign in to comment.