Skip to content

Commit

Permalink
fix: api of graph
Browse files Browse the repository at this point in the history
fix #62
  • Loading branch information
bubkoo committed Jan 6, 2020
1 parent 2a608d4 commit 59160c7
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -215,12 +215,12 @@ export namespace Commands {
{
name: 'collapse',
shortcut: `${ctrlKey}+Home`,
handler: (graph: Graph) => graph.foldCells(true),
handler: (graph: Graph) => graph.toggleCollapse(true),
},
{
name: 'expand',
shortcut: `${ctrlKey}+End`,
handler: (graph: Graph) => graph.foldCells(false),
handler: (graph: Graph) => graph.toggleCollapse(false),
},

// #endregion
Expand Down Expand Up @@ -491,7 +491,7 @@ export namespace Commands {
name: 'pageScale',
handler: (graph: Graph, val: number) => {
if (!isNaN(val) && val > 0) {
graph.updatePageScale(val / 100)
graph.setPageScale(val / 100)
}
},
},
Expand Down

0 comments on commit 59160c7

Please sign in to comment.