Skip to content

Commit

Permalink
📝 docs(common): fix behavior document
Browse files Browse the repository at this point in the history
  • Loading branch information
萌萌的老胖子 committed Apr 14, 2020
1 parent 84bbd9d commit 9c86378
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,21 @@ register: {
nodeShape: (G6) => [{
name: "custom",
register: () => {
G6.registerNode("custom", () => {}) // see document of G6 registerNode for details
G6.registerNode("custom", {}) // see document of G6 registerNode for details
}
}],
edgeShape: (G6) => [{
name: "custom",
register: () => {
G6.registerEdge("custom", () => {}) // see document of G6 registerEdge for details
G6.registerEdge("custom", {}) // see document of G6 registerEdge for details
}
}],
behavior: (G6) => [{
mode: "default", // see document of G6 mode for details
options: {}
name: "custom",
register: () => {
G6.registerBehavior("custom", () => {}) // see document of G6 registerBehavior for details
G6.registerBehavior("custom", {}) // see document of G6 registerBehavior for details
}
}],
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@ register: {
nodeShape: (G6) => [{
name: "custom",
register: () => {
G6.registerNode("custom", () => {}) // 详见 G6 registerNode 文档
G6.registerNode("custom", {}) // 详见 G6 registerNode 文档
}
}],
edgeShape: (G6) => [{
name: "custom",
register: () => {
G6.registerEdge("custom", () => {}) // 详见 G6 registerEdge 文档
G6.registerEdge("custom", {}) // 详见 G6 registerEdge 文档
}
}],
behavior: (G6) => [{
mode: "default", // 详见 G6 的 mode 文档
options: {}
name: "custom",
register: () => {
G6.registerBehavior("custom", () => {}) // 详见 G6 registerBehavior 文档
G6.registerBehavior("custom", {}) // 详见 G6 registerBehavior 文档
}
}],
}
Expand Down

0 comments on commit 9c86378

Please sign in to comment.