Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leaferjs committed Dec 9, 2024
1 parent 26a861b commit 4e02198
Show file tree
Hide file tree
Showing 35 changed files with 189 additions and 87 deletions.
4 changes: 2 additions & 2 deletions src/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.0.10",
"@leafer-in/animate": "^1.0.10"
"leafer-editor": "^1.1.0",
"@leafer-in/animate": "^1.1.0"
}</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
4 changes: 2 additions & 2 deletions src/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/miniapp@1.0.10/dist/miniapp.module.js
https://unpkg.com/@leafer-draw/miniapp@1.1.0/dist/miniapp.module.js

https://unpkg.com/@leafer-draw/miniapp@1.0.10/dist/miniapp.module.min.js
https://unpkg.com/@leafer-draw/miniapp@1.1.0/dist/miniapp.module.min.js


```
Expand Down
8 changes: 4 additions & 4 deletions src/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/leafer-draw@1.0.10/dist/web.min.js"></script>
<script src="https://unpkg.com/leafer-draw@1.1.0/dist/web.min.js"></script>
<script>
const { Leafer } = LeaferUI
// ...
</script>
```

```html [web]
<script src="https://unpkg.com/leafer-draw@1.0.10/dist/web.js"></script>
<script src="https://unpkg.com/leafer-draw@1.1.0/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/leafer-draw@1.0.10/dist/web.module.min.js'
import { Leafer } from 'https://unpkg.com/leafer-draw@1.1.0/dist/web.module.min.js'
// ...
</script>
```

```html [module]
<script type="module">
import { Leafer } from 'https://unpkg.com/leafer-draw@1.0.10/dist/web.module.js'
import { Leafer } from 'https://unpkg.com/leafer-draw@1.1.0/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions src/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/worker@1.0.10/dist/worker.min.js')
importScripts('https://unpkg.com/@leafer-draw/worker@1.1.0/dist/worker.min.js')
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-draw/worker@1.0.10/dist/worker.js')
importScripts('https://unpkg.com/@leafer-draw/worker@1.1.0/dist/worker.js')
```

:::
Expand Down
4 changes: 2 additions & 2 deletions src/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/miniapp@1.0.10/dist/miniapp.module.js
https://unpkg.com/@leafer-editor/miniapp@1.1.0/dist/miniapp.module.js

https://unpkg.com/@leafer-editor/miniapp@1.0.10/dist/miniapp.module.min.js
https://unpkg.com/@leafer-editor/miniapp@1.1.0/dist/miniapp.module.min.js


```
Expand Down
8 changes: 4 additions & 4 deletions src/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/leafer-editor@1.0.10/dist/web.min.js"></script>
<script src="https://unpkg.com/leafer-editor@1.1.0/dist/web.min.js"></script>
<script>
const { Leafer, Editor, Arrow } = LeaferUI
// ...
</script>
```

```html [web]
<script src="https://unpkg.com/leafer-editor@1.0.10/dist/web.js"></script>
<script src="https://unpkg.com/leafer-editor@1.1.0/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/leafer-editor@1.0.10/dist/web.module.min.js'
} from 'https://unpkg.com/leafer-editor@1.1.0/dist/web.module.min.js'
// ...
</script>
```
Expand All @@ -69,7 +69,7 @@ bun add leafer-editor
Leafer,
Editor,
Arrow,
} from 'https://unpkg.com/leafer-editor@1.0.10/dist/web.module.js'
} from 'https://unpkg.com/leafer-editor@1.1.0/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions src/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/worker@1.0.10/dist/worker.min.js'
'https://unpkg.com/@leafer-editor/worker@1.1.0/dist/worker.min.js'
)
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-editor/worker@1.0.10/dist/worker.js')
importScripts('https://unpkg.com/@leafer-editor/worker@1.1.0/dist/worker.js')
```

:::
Expand Down
4 changes: 2 additions & 2 deletions src/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/miniapp@1.0.10/dist/miniapp.module.js
https://unpkg.com/@leafer-game/miniapp@1.1.0/dist/miniapp.module.js

https://unpkg.com/@leafer-game/miniapp@1.0.10/dist/miniapp.module.min.js
https://unpkg.com/@leafer-game/miniapp@1.1.0/dist/miniapp.module.min.js


```
Expand Down
8 changes: 4 additions & 4 deletions src/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/leafer-game@1.0.10/dist/web.min.js"></script>
<script src="https://unpkg.com/leafer-game@1.1.0/dist/web.min.js"></script>
<script>
const { Leafer, Robot, Animate } = LeaferUI
// ...
</script>
```

```html [web]
<script src="https://unpkg.com/leafer-game@1.0.10/dist/web.js"></script>
<script src="https://unpkg.com/leafer-game@1.1.0/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/leafer-game@1.0.10/dist/web.module.min.js'
} from 'https://unpkg.com/leafer-game@1.1.0/dist/web.module.min.js'
// ...
</script>
```
Expand All @@ -69,7 +69,7 @@ bun add leafer-game
Leafer,
Editor,
Arrow,
} from 'https://unpkg.com/leafer-game@1.0.10/dist/web.module.js'
} from 'https://unpkg.com/leafer-game@1.1.0/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions src/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/worker@1.0.10/dist/worker.min.js')
importScripts('https://unpkg.com/@leafer-game/worker@1.1.0/dist/worker.min.js')
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-game/worker@1.0.10/dist/worker.js')
importScripts('https://unpkg.com/@leafer-game/worker@1.1.0/dist/worker.js')
```

:::
Expand Down
4 changes: 2 additions & 2 deletions src/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/miniapp@1.0.10/dist/miniapp.module.js
https://unpkg.com/@leafer-ui/miniapp@1.1.0/dist/miniapp.module.js

https://unpkg.com/@leafer-ui/miniapp@1.0.10/dist/miniapp.module.min.js
https://unpkg.com/@leafer-ui/miniapp@1.1.0/dist/miniapp.module.min.js
```
## 环境
Expand Down
8 changes: 4 additions & 4 deletions src/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/leafer-ui@1.0.10/dist/web.min.js"></script>
<script src="https://unpkg.com/leafer-ui@1.1.0/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/leafer-ui@1.0.10/dist/web.js"></script>
<script src="https://unpkg.com/leafer-ui@1.1.0/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/leafer-ui@1.0.10/dist/web.module.min.js'
import { Leafer } from 'https://unpkg.com/leafer-ui@1.1.0/dist/web.module.min.js'
// ...
</script>
```

```html [module]
<script type="module">
import { Leafer } from 'https://unpkg.com/leafer-ui@1.0.10/dist/web.module.js'
import { Leafer } from 'https://unpkg.com/leafer-ui@1.1.0/dist/web.module.js'
// ...
</script>
```
Expand Down
4 changes: 2 additions & 2 deletions src/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/worker@1.0.10/dist/worker.min.js')
importScripts('https://unpkg.com/@leafer-ui/worker@1.1.0/dist/worker.min.js')
```

```js [worker.js]
importScripts('https://unpkg.com/@leafer-ui/worker@1.0.10/dist/worker.js')
importScripts('https://unpkg.com/@leafer-ui/worker@1.1.0/dist/worker.js')
```

:::
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/in/animate/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ bun add @leafer-in/animate
::: code-group

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

```html [animate]
<script src="https://unpkg.com/@leafer-in/animate@1.0.10/dist/animate.js"></script>
<script src="https://unpkg.com/@leafer-in/animate@1.1.0/dist/animate.js"></script>
<script>
const { Animate } = LeaferIN.animate
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/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/arrow@1.0.10/dist/arrow.min.js"></script>
<script src="https://unpkg.com/@leafer-in/arrow@1.1.0/dist/arrow.min.js"></script>
<script>
const { Arrow } = LeaferIN.arrow
</script>
```

```html [arrow]
<script src="https://unpkg.com/@leafer-in/arrow@1.0.10/dist/arrow.js"></script>
<script src="https://unpkg.com/@leafer-in/arrow@1.1.0/dist/arrow.js"></script>
<script>
const { Arrow } = LeaferIN.arrow
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/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/resize
::: code-group

```html [resize.min]
<script src="https://unpkg.com/@leafer-in/resize@1.0.10/dist/resize.min.js"></script>
<script src="https://unpkg.com/@leafer-in/resize@1.1.0/dist/resize.min.js"></script>
```

```html [resize]
<script src="https://unpkg.com/@leafer-in/resize@1.0.10/dist/resize.js"></script>
<script src="https://unpkg.com/@leafer-in/resize@1.1.0/dist/resize.js"></script>
```

https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm
Expand Down
29 changes: 29 additions & 0 deletions src/plugin/in/editor/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,35 @@ press 为鼠标按下触发, tap 为单击触发。

是否启用倾斜, 默认启用。

## 内部编辑器属性

### textEditor: `object`

文本编辑器的自定义配置。

```ts
// 内部通过此方式访问
app.editor.mergeConfig.textEditor
```

### pathEditor: `object`

路径编辑器的自定义配置。

```ts
// 内部通过此方式访问
app.editor.mergeConfig.pathEditor
```

### ...Editor

可依次扩展自定义配置对象。

```ts
// 内部通过此方式访问
app.editor.mergeConfig.anyEditor
```

## 示例

<case name="EditorConfig" index=4 x=20></case>
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/in/editor/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ bun add @leafer-in/editor
::: code-group

```html [editor.min]
<script src="https://unpkg.com/@leafer-in/editor@1.0.10/dist/editor.min.js"></script>
<script src="https://unpkg.com/@leafer-in/editor@1.1.0/dist/editor.min.js"></script>
<script>
const { Editor } = LeaferIN.editor
</script>
```

```html [editor]
<script src="https://unpkg.com/@leafer-in/editor@1.0.10/dist/editor.js"></script>
<script src="https://unpkg.com/@leafer-in/editor@1.1.0/dist/editor.js"></script>
<script>
const { Editor } = LeaferIN.editor
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/in/flow/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ bun add @leafer-in/flow
::: code-group

```html [flow.min]
<script src="https://unpkg.com/@leafer-in/flow@1.0.10/dist/flow.min.js"></script>
<script src="https://unpkg.com/@leafer-in/flow@1.1.0/dist/flow.min.js"></script>
<script>
const { Flow } = LeaferIN.flow
</script>
```

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

```html [html.min]
<script src="https://unpkg.com/@leafer-in/html@1.0.10/dist/html.min.js"></script>
<script src="https://unpkg.com/@leafer-in/html@1.1.0/dist/html.min.js"></script>
<script>
const { HTMLText } = LeaferIN.html
</script>
```

```html [html]
<script src="https://unpkg.com/@leafer-in/html@1.0.10/dist/html.js"></script>
<script src="https://unpkg.com/@leafer-in/html@1.1.0/dist/html.js"></script>
<script>
const { HTMLText } = LeaferIN.html
</script>
Expand Down
Loading

0 comments on commit 4e02198

Please sign in to comment.