docs: fix typos

This commit is contained in:
Chaoqi ZHANG
2021-03-04 19:53:30 +08:00
committed by vector
parent eb4ececa6d
commit d51e885062

View File

@ -54,7 +54,7 @@ graph.zoom(-0.2) // 在原来缩放级别上减少 0.2
常用的就是将画布内容中心与视口中心对齐,使用方式:
```ts
garah.centerContent()
graph.centerContent()
```
更多的居中方法可以查看 [Transform](../../api/graph/transform)
@ -176,4 +176,4 @@ this.graph.toSVG((dataUri: string) => {
## 销毁画布
我们可以调用 `graph.dispose()` 方法进行画布的销毁以及资源的回收。
我们可以调用 `graph.dispose()` 方法进行画布的销毁以及资源的回收。