-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd8abfe
commit 42390d3
Showing
6 changed files
with
438 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1 @@ | ||
# 标尺(Ruler.js) {#ruler} | ||
|
||
## 简述 {#what-ruler} | ||
|
||
使用原生canvas绘制标尺,可以进行平移与缩放,适用于低代码平台作为背景画布,也可以以此基础制作2d图形编辑器,或与`Three.js` 结合制作场景编辑器 | ||
|
||
由于是js,所以不受前端框架限制,适用于各个项目中 | ||
|
||
## 安装 {#installation} | ||
```js | ||
|
||
``` | ||
|
||
::: code-group | ||
|
||
```sh [npm] | ||
$ npm i @night-tea/ruler.js | ||
``` | ||
|
||
```sh [pnpm] | ||
$ pnpm i @night-tea/ruler.js | ||
``` | ||
|
||
```sh [yarn] | ||
$ yarn add @night-tea/ruler.js | ||
``` | ||
|
||
::: | ||
|
||
### 使用 {#how-to-use} | ||
|
||
``` js | ||
|
||
import Ruler from '@night-tea/ruler' | ||
|
||
``` | ||
[说明文档](http://blog.nighttea.space/docs/Ruler/getting-started.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.