Skip to content

Commit 2cac8bb

Browse files
committed
v1.0.8
1 parent 2e5caa6 commit 2cac8bb

File tree

37 files changed

+460
-65
lines changed

37 files changed

+460
-65
lines changed

src/contest/guide.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ LeaferJS 是一款好用的 Canvas 渲染引擎,提供革新的体验。可用
5454
<<< @/code/contest/dragon/dragon.ts
5555
:::
5656

57-
进行绘制:
58-
59-
::: code-group
60-
<<< @/code/contest/dragon/step2.ts
61-
:::
62-
6357
3. 点睛的交互功能,点击龙头加上龙眼,然后龙就活过来,开始按运动路径循环飞行。
6458

6559
::: code-group

src/contribute/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
## Demo
3232

33+
[Leafer + vue3 实现的画板](https://github.com/WHSnhcZDYRZC/drawingBoard) [@WHSnhcZDYRZC](https://github.com/WHSnhcZDYRZC)
34+
3335
[扫雷小游戏](https://github.com/yh4922/leaferjs-minesweeper) [@xjq7](https://github.com/xjq7)
3436

3537
[Minesweeper](https://github.com/yh4922/leaferjs-minesweeper) <badge>扫雷小游戏</badge> @杨 🐑🐑

src/create/leafer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ npm create leafer@latest update
6363
<span style="color:#5e9177;font-weight: 600;">Fetching Leafer version...</span>
6464
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#888;font-weight: 600;">The following Leafer dependencies can be updated:</span>
6565
<span style="color:#89DDFF;">{
66-
"leafer-editor": "^1.0.7",
67-
"@leafer-in/animate": "^1.0.7"
66+
"leafer-editor": "^1.0.8",
67+
"@leafer-in/animate": "^1.0.8"
6868
}</span>
6969
<span style="color:#888;font-weight: 600;">Do you want to update them? <span style="color:#888;">… <span style="color:#89DDFF;text-decoration:underline;">yes</span></span></span>
7070
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#888;font-weight: 600;">Dependencies updated successfully! Please run <span style="color:#5e9177;font-weight: 600;">npm install</span> to install the latest versions.</span>

src/guide/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434

3535
🚀 想马上在产品中使用,请安装 [leafer-ui](/guide/install/ui/start.md),开始你的探索之旅。
3636

37-
## 场景版
37+
## 场景包
3838

39-
编辑图形的场景,推荐安装更省心的 [leafer-editor](/guide/install/editor/start.md),已集成了图形编辑器相关插件
39+
高效绘图场景,推荐安装更轻量的 [leafer-draw](/guide/install/draw/start.md) (49KB min+gzip)
4040

41-
单纯绘图的场景,推荐安装更轻量的 [leafer-draw](/guide/install/draw/start.md) (49KB min+gzip)。
41+
游戏开发场景,推荐安装更省心的 [leafer-game](/guide/install/game/start.md),已集成了游戏相关插件。
42+
43+
图形编辑场景,推荐安装更省心的 [leafer-editor](/guide/install/editor/start.md),已集成了图形编辑器相关插件。
4244

4345
## 互动交流
4446

src/guide/install/draw/miniapp/start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ bun add @leafer-draw/miniapp
3232

3333
```sh
3434

35-
https://unpkg.com/@leafer-draw/[email protected].7/dist/miniapp.module.js
35+
https://unpkg.com/@leafer-draw/[email protected].8/dist/miniapp.module.js
3636

37-
https://unpkg.com/@leafer-draw/[email protected].7/dist/miniapp.module.min.js
37+
https://unpkg.com/@leafer-draw/[email protected].8/dist/miniapp.module.min.js
3838

3939

4040
```

src/guide/install/draw/start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ bun add leafer-draw
3232
::: code-group
3333

3434
```html [web.min]
35-
<script src="https://unpkg.com/[email protected].7/dist/web.min.js"></script>
35+
<script src="https://unpkg.com/[email protected].8/dist/web.min.js"></script>
3636
<script>
3737
const { Leafer } = LeaferUI
3838
// ...
3939
</script>
4040
```
4141

4242
```html [web]
43-
<script src="https://unpkg.com/[email protected].7/dist/web.js"></script>
43+
<script src="https://unpkg.com/[email protected].8/dist/web.js"></script>
4444
<script>
4545
const { Leafer } = LeaferUI
4646
// ...
@@ -49,14 +49,14 @@ bun add leafer-draw
4949

5050
```html [module.min]
5151
<script type="module">
52-
import { Leafer } from 'https://unpkg.com/[email protected].7/dist/web.module.min.js'
52+
import { Leafer } from 'https://unpkg.com/[email protected].8/dist/web.module.min.js'
5353
// ...
5454
</script>
5555
```
5656

5757
```html [module]
5858
<script type="module">
59-
import { Leafer } from 'https://unpkg.com/[email protected].7/dist/web.module.js'
59+
import { Leafer } from 'https://unpkg.com/[email protected].8/dist/web.module.js'
6060
// ...
6161
</script>
6262
```

src/guide/install/draw/worker/start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ bun add @leafer-draw/worker
3333
::: code-group
3434

3535
```js [worker.min.js]
36-
importScripts('https://unpkg.com/@leafer-draw/[email protected].7/dist/worker.min.js')
36+
importScripts('https://unpkg.com/@leafer-draw/[email protected].8/dist/worker.min.js')
3737
```
3838

3939
```js [worker.js]
40-
importScripts('https://unpkg.com/@leafer-draw/[email protected].7/dist/worker.js')
40+
importScripts('https://unpkg.com/@leafer-draw/[email protected].8/dist/worker.js')
4141
```
4242

4343
:::

src/guide/install/editor/miniapp/start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ bun add @leafer-editor/miniapp
3232

3333
```sh
3434

35-
https://unpkg.com/@leafer-editor/[email protected].7/dist/miniapp.module.js
35+
https://unpkg.com/@leafer-editor/[email protected].8/dist/miniapp.module.js
3636

37-
https://unpkg.com/@leafer-editor/[email protected].7/dist/miniapp.module.min.js
37+
https://unpkg.com/@leafer-editor/[email protected].8/dist/miniapp.module.min.js
3838

3939

4040
```

src/guide/install/editor/start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ bun add leafer-editor
3737
::: code-group
3838

3939
```html [web.min]
40-
<script src="https://unpkg.com/[email protected].7/dist/web.min.js"></script>
40+
<script src="https://unpkg.com/[email protected].8/dist/web.min.js"></script>
4141
<script>
4242
const { Leafer, Editor, Arrow } = LeaferUI
4343
// ...
4444
</script>
4545
```
4646

4747
```html [web]
48-
<script src="https://unpkg.com/[email protected].7/dist/web.js"></script>
48+
<script src="https://unpkg.com/[email protected].8/dist/web.js"></script>
4949
<script>
5050
const { Leafer, Editor, Arrow } = LeaferUI
5151
// ...
@@ -58,7 +58,7 @@ bun add leafer-editor
5858
Leafer,
5959
Editor,
6060
Arrow,
61-
} from 'https://unpkg.com/[email protected].7/dist/web.module.min.js'
61+
} from 'https://unpkg.com/[email protected].8/dist/web.module.min.js'
6262
// ...
6363
</script>
6464
```
@@ -69,7 +69,7 @@ bun add leafer-editor
6969
Leafer,
7070
Editor,
7171
Arrow,
72-
} from 'https://unpkg.com/[email protected].7/dist/web.module.js'
72+
} from 'https://unpkg.com/[email protected].8/dist/web.module.js'
7373
// ...
7474
</script>
7575
```

src/guide/install/editor/worker/start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ bun add @leafer-editor/worker
3434

3535
```js [worker.min.js]
3636
importScripts(
37-
'https://unpkg.com/@leafer-editor/[email protected].7/dist/worker.min.js'
37+
'https://unpkg.com/@leafer-editor/[email protected].8/dist/worker.min.js'
3838
)
3939
```
4040

4141
```js [worker.js]
42-
importScripts('https://unpkg.com/@leafer-editor/[email protected].7/dist/worker.js')
42+
importScripts('https://unpkg.com/@leafer-editor/[email protected].8/dist/worker.js')
4343
```
4444

4545
:::

0 commit comments

Comments
 (0)