docs: fix typos
This commit is contained in:
@ -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()` 方法进行画布的销毁以及资源的回收。
|
||||
|
Reference in New Issue
Block a user