Skip to content

Commit

Permalink
v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
leaferjs committed Jan 21, 2025
1 parent 1187611 commit eceafba
Show file tree
Hide file tree
Showing 35 changed files with 121 additions and 88 deletions.
2 changes: 2 additions & 0 deletions contribute/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@

## 产品

[边框水印精灵](https://frameelf.com) <badge>快速为您的照片添加水印</badge> @ozar

[fig2leafer](https://fig2leafer.netlify.app) <badge>leafer 渲染 figma 文件</badge> [@jianghanyue](https://github.com/jianghanyue)

[趣设计](https://www.leaferjs.com/ui/guide/install/ui/miniapp/start.html#%E9%87%87%E7%94%A8%E5%B0%8F%E7%A8%8B%E5%BA%8F-web-view-%E7%BB%84%E4%BB%B6%E5%AE%9E%E7%8E%B0%E7%9A%84%E6%A1%88%E4%BE%8B) <badge>PS 海报头像拼图 LOGO</badge> @BO
Expand Down
4 changes: 2 additions & 2 deletions create/leafer.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ npm create leafer@latest update
<span style="color:#5e9177;font-weight: 600;">Fetching Leafer version...</span>
<span style="color:var(--vt-c-green);">✔</span> <span style="color:#888;font-weight: 600;">The following Leafer dependencies can be updated:</span>
<span style="color:#89DDFF;">{
"leafer-editor": "^1.3.2",
"@leafer-in/animate": "^1.3.2"
"leafer-editor": "^1.3.3",
"@leafer-in/animate": "^1.3.3"
}</span>
<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>
<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>
Expand Down
8 changes: 4 additions & 4 deletions guide/framework/html.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Case from '/component/Case.vue'
::: code-group

```html [web.min]
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script>
<script>
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui 的所有功能
Expand All @@ -27,7 +27,7 @@ import Case from '/component/Case.vue'
```

```html [web]
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script>
<script>
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui的所有功能
Expand All @@ -40,14 +40,14 @@ import Case from '/component/Case.vue'

```html [module.min]
<script type="module">
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.min.js'
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.min.js'
// ...
</script>
```

```html [module]
<script type="module">
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.js'
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ LeaferJS 是一款好用的 Canvas 引擎,革新的开发体验,可用于高
::: tip 提交模版
**【Bug/建议】xxxxxxxxxxx 标题 xxxxxxxxxxxxxx**

环境:电脑 + window 11 + chrome 131 + leaferjs 1.3.2
环境:电脑 + window 11 + chrome 131 + leaferjs 1.3.3

:::

Expand All @@ -62,7 +62,7 @@ LeaferJS 是一款好用的 Canvas 引擎,革新的开发体验,可用于高
::: warning 提交模版
**【leaferjs】xxxxxxxxxxx 标题 xxxxxxxxxxxxxx**

环境:电脑 + window 11 + chrome 131 + leaferjs 1.3.2
环境:电脑 + window 11 + chrome 131 + leaferjs 1.3.3
:::

然后将链接发到 [技术交流群](https://leaferjs.com/#contact) 里,我和社区管理员们会安排固定的时间查看、回复大家的问题。
Expand Down
4 changes: 2 additions & 2 deletions guide/install/draw/miniapp/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ bun add @leafer-draw/miniapp

```sh

https://unpkg.com/@leafer-draw/[email protected].2/dist/miniapp.module.js
https://unpkg.com/@leafer-draw/[email protected].3/dist/miniapp.module.js

https://unpkg.com/@leafer-draw/[email protected].2/dist/miniapp.module.min.js
https://unpkg.com/@leafer-draw/[email protected].3/dist/miniapp.module.min.js


```
Expand Down
8 changes: 4 additions & 4 deletions guide/install/draw/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ bun add leafer-draw
::: code-group

```html [web.min]
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script>
<script>
const { Leafer } = LeaferUI
// ...
</script>
```

```html [web]
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script>
<script>
const { Leafer } = LeaferUI
// ...
Expand All @@ -49,14 +49,14 @@ bun add leafer-draw

```html [module.min]
<script type="module">
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.min.js'
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.min.js'
// ...
</script>
```

```html [module]
<script type="module">
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.js'
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions guide/install/draw/worker/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ bun add @leafer-draw/worker
::: code-group

```js [worker.min.js]
importScripts('https://unpkg.com/@leafer-draw/[email protected].2/dist/worker.min.js')
importScripts('https://unpkg.com/@leafer-draw/[email protected].3/dist/worker.min.js')
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-draw/[email protected].2/dist/worker.js')
importScripts('https://unpkg.com/@leafer-draw/[email protected].3/dist/worker.js')
```

:::
Expand Down
4 changes: 2 additions & 2 deletions guide/install/editor/miniapp/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ bun add @leafer-editor/miniapp

```sh

https://unpkg.com/@leafer-editor/[email protected].2/dist/miniapp.module.js
https://unpkg.com/@leafer-editor/[email protected].3/dist/miniapp.module.js

https://unpkg.com/@leafer-editor/[email protected].2/dist/miniapp.module.min.js
https://unpkg.com/@leafer-editor/[email protected].3/dist/miniapp.module.min.js


```
Expand Down
8 changes: 4 additions & 4 deletions guide/install/editor/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ bun add leafer-editor
::: code-group

```html [web.min]
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script>
<script>
const { Leafer, Editor, Arrow } = LeaferUI
// ...
</script>
```

```html [web]
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script>
<script>
const { Leafer, Editor, Arrow } = LeaferUI
// ...
Expand All @@ -58,7 +58,7 @@ bun add leafer-editor
Leafer,
Editor,
Arrow,
} from 'https://unpkg.com/[email protected].2/dist/web.module.min.js'
} from 'https://unpkg.com/[email protected].3/dist/web.module.min.js'
// ...
</script>
```
Expand All @@ -69,7 +69,7 @@ bun add leafer-editor
Leafer,
Editor,
Arrow,
} from 'https://unpkg.com/[email protected].2/dist/web.module.js'
} from 'https://unpkg.com/[email protected].3/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions guide/install/editor/worker/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ bun add @leafer-editor/worker

```js [worker.min.js]
importScripts(
'https://unpkg.com/@leafer-editor/[email protected].2/dist/worker.min.js'
'https://unpkg.com/@leafer-editor/[email protected].3/dist/worker.min.js'
)
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-editor/[email protected].2/dist/worker.js')
importScripts('https://unpkg.com/@leafer-editor/[email protected].3/dist/worker.js')
```

:::
Expand Down
4 changes: 2 additions & 2 deletions guide/install/game/miniapp/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ bun add @leafer-game/miniapp

```sh

https://unpkg.com/@leafer-game/[email protected].2/dist/miniapp.module.js
https://unpkg.com/@leafer-game/[email protected].3/dist/miniapp.module.js

https://unpkg.com/@leafer-game/[email protected].2/dist/miniapp.module.min.js
https://unpkg.com/@leafer-game/[email protected].3/dist/miniapp.module.min.js


```
Expand Down
8 changes: 4 additions & 4 deletions guide/install/game/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ bun add leafer-game
::: code-group

```html [web.min]
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script>
<script>
const { Leafer, Robot, Animate } = LeaferUI
// ...
</script>
```

```html [web]
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script>
<script>
const { Leafer, Robot, Animate } = LeaferUI
// ...
Expand All @@ -58,7 +58,7 @@ bun add leafer-game
Leafer,
Editor,
Arrow,
} from 'https://unpkg.com/[email protected].2/dist/web.module.min.js'
} from 'https://unpkg.com/[email protected].3/dist/web.module.min.js'
// ...
</script>
```
Expand All @@ -69,7 +69,7 @@ bun add leafer-game
Leafer,
Editor,
Arrow,
} from 'https://unpkg.com/[email protected].2/dist/web.module.js'
} from 'https://unpkg.com/[email protected].3/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions guide/install/game/worker/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ bun add @leafer-game/worker
::: code-group

```js [worker.min.js]
importScripts('https://unpkg.com/@leafer-game/[email protected].2/dist/worker.min.js')
importScripts('https://unpkg.com/@leafer-game/[email protected].3/dist/worker.min.js')
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-game/[email protected].2/dist/worker.js')
importScripts('https://unpkg.com/@leafer-game/[email protected].3/dist/worker.js')
```

:::
Expand Down
4 changes: 2 additions & 2 deletions guide/install/ui/miniapp/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ var __TEMP2__ =__TEMP__; Object.defineProperty(exports, k, { enumerable: true, c
```sh

https://unpkg.com/@leafer-ui/[email protected].2/dist/miniapp.module.js
https://unpkg.com/@leafer-ui/[email protected].3/dist/miniapp.module.js

https://unpkg.com/@leafer-ui/[email protected].2/dist/miniapp.module.min.js
https://unpkg.com/@leafer-ui/[email protected].3/dist/miniapp.module.min.js
```
## 环境
Expand Down
8 changes: 4 additions & 4 deletions guide/install/ui/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ bun add leafer-ui
::: code-group

```html [web.min]
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script>
<script>
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui 的所有功能
Expand All @@ -57,7 +57,7 @@ bun add leafer-ui
```

```html [web]
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script>
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script>
<script>
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui的所有功能
Expand All @@ -70,14 +70,14 @@ bun add leafer-ui

```html [module.min]
<script type="module">
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.min.js'
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.min.js'
// ...
</script>
```

```html [module]
<script type="module">
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.js'
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions guide/install/ui/worker/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ bun add @leafer-ui/worker
::: code-group

```js [worker.min.js]
importScripts('https://unpkg.com/@leafer-ui/[email protected].2/dist/worker.min.js')
importScripts('https://unpkg.com/@leafer-ui/[email protected].3/dist/worker.min.js')
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-ui/[email protected].2/dist/worker.js')
importScripts('https://unpkg.com/@leafer-ui/[email protected].3/dist/worker.js')
```

:::
Expand Down
8 changes: 4 additions & 4 deletions plugin/in/animate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ bun add @leafer-in/color
::: code-group

```html [animate.min]
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/animate.min.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.min.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/animate.min.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.min.js"></script>
<script>
const { Animate } = LeaferIN.animate
</script>
```

```html [animate]
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/animate.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/animate.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.js"></script>
<script>
const { Animate } = LeaferIN.animate
</script>
Expand Down
4 changes: 2 additions & 2 deletions plugin/in/arrow/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ bun add @leafer-in/arrow
::: code-group

```html [arrow.min]
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/arrow.min.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/arrow.min.js"></script>
<script>
const { Arrow } = LeaferIN.arrow
</script>
```

```html [arrow]
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/arrow.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/arrow.js"></script>
<script>
const { Arrow } = LeaferIN.arrow
</script>
Expand Down
4 changes: 2 additions & 2 deletions plugin/in/color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ bun add @leafer-in/color
::: code-group

```html [color.min]
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.min.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.min.js"></script>
```

```html [color]
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.js"></script>
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.js"></script>
```

https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm
Expand Down
Loading

0 comments on commit eceafba

Please sign in to comment.