From 053102509c3ad1c8c2564888f175ead14a9cb329 Mon Sep 17 00:00:00 2001 From: leaferjs Date: Sun, 20 Oct 2024 22:59:49 +0800 Subject: [PATCH] v1.0.6 --- src/contribute/index.md | 2 ++ src/create/leafer.md | 4 +-- src/guide/basic/remove.md | 2 +- src/guide/install/draw/miniapp/start.md | 4 +-- src/guide/install/draw/start.md | 8 ++--- src/guide/install/draw/worker/start.md | 4 +-- src/guide/install/editor/miniapp/start.md | 4 +-- src/guide/install/editor/start.md | 8 ++--- src/guide/install/editor/worker/start.md | 4 +-- src/guide/install/ui/miniapp/start.md | 10 ++++--- src/guide/install/ui/start.md | 8 ++--- src/guide/install/ui/worker/start.md | 4 +-- src/guide/problem/index.md | 4 +++ src/plugin/in/animate/index.md | 4 +-- src/plugin/in/arrow/index.md | 4 +-- src/plugin/in/color/index.md | 4 +-- src/plugin/in/editor/index.md | 4 +-- src/plugin/in/flow/index.md | 4 +-- src/plugin/in/html/index.md | 4 +-- src/plugin/in/path/index.md | 4 +-- src/plugin/in/resize/index.md | 4 +-- src/plugin/in/robot/index.md | 4 +-- src/plugin/in/scroll/index.md | 4 +-- src/plugin/in/state/index.md | 4 +-- src/plugin/in/text-editor/index.md | 4 +-- src/plugin/in/view/index.md | 4 +-- src/reference/display/Leafer.md | 2 +- src/update/index.md | 36 +++++++++++++++++++++++ 28 files changed, 100 insertions(+), 56 deletions(-) diff --git a/src/contribute/index.md b/src/contribute/index.md index 1ca6ba3..fa71c44 100644 --- a/src/contribute/index.md +++ b/src/contribute/index.md @@ -30,6 +30,8 @@ ## Demo +[扫雷小游戏](https://github.com/yh4922/leaferjs-minesweeper) [@xjq7](https://github.com/xjq7) + [Minesweeper](https://github.com/yh4922/leaferjs-minesweeper) 扫雷小游戏 @杨 🐑🐑 [FlyCut](https://github.com/x007xyz/fly-cut) 在线视频剪辑工具 @x007xyz diff --git a/src/create/leafer.md b/src/create/leafer.md index 8ac3767..decb628 100644 --- a/src/create/leafer.md +++ b/src/create/leafer.md @@ -63,8 +63,8 @@ npm create leafer@latest update Fetching Leafer version... The following Leafer dependencies can be updated: { - "leafer-editor": "^1.0.5", - "@leafer-in/animate": "^1.0.5" + "leafer-editor": "^1.0.6", + "@leafer-in/animate": "^1.0.6" } Do you want to update them? yes Dependencies updated successfully! Please run npm install to install the latest versions. diff --git a/src/guide/basic/remove.md b/src/guide/basic/remove.md index 312946a..899bbd4 100644 --- a/src/guide/basic/remove.md +++ b/src/guide/basic/remove.md @@ -10,7 +10,7 @@ import Case from '/component/Case.vue' ## 条件移除 -支持所有 [find()](/reference/property/find.md) 条件参数 。 +同 [find()](/reference/property/find.md) 方法的参数一致,内部会先 find() 再批量移除。 <<< @/code/basic/display/remove-tag.ts diff --git a/src/guide/install/draw/miniapp/start.md b/src/guide/install/draw/miniapp/start.md index 8c409f3..43e0e45 100644 --- a/src/guide/install/draw/miniapp/start.md +++ b/src/guide/install/draw/miniapp/start.md @@ -32,9 +32,9 @@ bun add @leafer-draw/miniapp ```sh -https://unpkg.com/@leafer-draw/miniapp@1.0.5/dist/miniapp.module.js +https://unpkg.com/@leafer-draw/miniapp@1.0.6/dist/miniapp.module.js -https://unpkg.com/@leafer-draw/miniapp@1.0.5/dist/miniapp.module.min.js +https://unpkg.com/@leafer-draw/miniapp@1.0.6/dist/miniapp.module.min.js ``` diff --git a/src/guide/install/draw/start.md b/src/guide/install/draw/start.md index 8b3c6c3..5866879 100644 --- a/src/guide/install/draw/start.md +++ b/src/guide/install/draw/start.md @@ -32,7 +32,7 @@ bun add leafer-draw ::: code-group ```html [web.min] - + + ``` ```html [module] ``` diff --git a/src/guide/install/draw/worker/start.md b/src/guide/install/draw/worker/start.md index afaae1c..e4aa24e 100644 --- a/src/guide/install/draw/worker/start.md +++ b/src/guide/install/draw/worker/start.md @@ -33,11 +33,11 @@ bun add @leafer-draw/worker ::: code-group ```js [worker.min.js] -importScripts('https://unpkg.com/@leafer-draw/worker@1.0.5/dist/worker.min.js') +importScripts('https://unpkg.com/@leafer-draw/worker@1.0.6/dist/worker.min.js') ``` ```js [worker.js] -importScripts('https://unpkg.com/@leafer-draw/worker@1.0.5/dist/worker.js') +importScripts('https://unpkg.com/@leafer-draw/worker@1.0.6/dist/worker.js') ``` ::: diff --git a/src/guide/install/editor/miniapp/start.md b/src/guide/install/editor/miniapp/start.md index fd29e8b..797c5a3 100644 --- a/src/guide/install/editor/miniapp/start.md +++ b/src/guide/install/editor/miniapp/start.md @@ -32,9 +32,9 @@ bun add @leafer-editor/miniapp ```sh -https://unpkg.com/@leafer-editor/miniapp@1.0.5/dist/miniapp.module.js +https://unpkg.com/@leafer-editor/miniapp@1.0.6/dist/miniapp.module.js -https://unpkg.com/@leafer-editor/miniapp@1.0.5/dist/miniapp.module.min.js +https://unpkg.com/@leafer-editor/miniapp@1.0.6/dist/miniapp.module.min.js ``` diff --git a/src/guide/install/editor/start.md b/src/guide/install/editor/start.md index 0e59a7c..452348d 100644 --- a/src/guide/install/editor/start.md +++ b/src/guide/install/editor/start.md @@ -37,7 +37,7 @@ bun add leafer-editor ::: code-group ```html [web.min] - + + ``` @@ -69,7 +69,7 @@ bun add leafer-editor Leafer, Editor, Arrow, - } from 'https://unpkg.com/leafer-editor@1.0.5/dist/web.module.js' + } from 'https://unpkg.com/leafer-editor@1.0.6/dist/web.module.js' // ... ``` diff --git a/src/guide/install/editor/worker/start.md b/src/guide/install/editor/worker/start.md index ce6940e..6a5184f 100644 --- a/src/guide/install/editor/worker/start.md +++ b/src/guide/install/editor/worker/start.md @@ -34,12 +34,12 @@ bun add @leafer-editor/worker ```js [worker.min.js] importScripts( - 'https://unpkg.com/@leafer-editor/worker@1.0.5/dist/worker.min.js' + 'https://unpkg.com/@leafer-editor/worker@1.0.6/dist/worker.min.js' ) ``` ```js [worker.js] -importScripts('https://unpkg.com/@leafer-editor/worker@1.0.5/dist/worker.js') +importScripts('https://unpkg.com/@leafer-editor/worker@1.0.6/dist/worker.js') ``` ::: diff --git a/src/guide/install/ui/miniapp/start.md b/src/guide/install/ui/miniapp/start.md index 661e74e..5517a93 100644 --- a/src/guide/install/ui/miniapp/start.md +++ b/src/guide/install/ui/miniapp/start.md @@ -46,9 +46,9 @@ var __TEMP2__ =__TEMP__; Object.defineProperty(exports, k, { enumerable: true, c ```sh -https://unpkg.com/@leafer-ui/miniapp@1.0.5/dist/miniapp.module.js +https://unpkg.com/@leafer-ui/miniapp@1.0.6/dist/miniapp.module.js -https://unpkg.com/@leafer-ui/miniapp@1.0.5/dist/miniapp.module.min.js +https://unpkg.com/@leafer-ui/miniapp@1.0.6/dist/miniapp.module.min.js ``` ## 环境 @@ -59,9 +59,11 @@ https://unpkg.com/@leafer-ui/miniapp@1.0.5/dist/miniapp.module.min.js ## 注意 -微信小程序自身加载 svg 图片有问题。 +1. 微信小程序自身加载 svg 图片有问题。 -阴影、遮罩(iOS 端 path 类型可用)等正在适配兼容性。 +2. 阴影、遮罩(iOS 端 path 类型可用)等正在适配兼容性。 + +3. 在 [web-view](https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html) 组件中使用时,微信 JS-SDK 上传 PNG 图片会变成 JPG 格式,请使用 HTML5 原生的 input 框上传。 ::: warning 温馨提示 微信小程序 iOS 端 3.0.0 之后 view 中的 canvas drawImage 无法绘制离屏画布,已找到办法绕过此限制,但仍有部分高级功能用不了(后续会继续适配)。 diff --git a/src/guide/install/ui/start.md b/src/guide/install/ui/start.md index a51cf67..0aa0ddb 100644 --- a/src/guide/install/ui/start.md +++ b/src/guide/install/ui/start.md @@ -45,7 +45,7 @@ bun add leafer-ui ::: code-group ```html [web.min] - + + ``` ```html [module] ``` diff --git a/src/guide/install/ui/worker/start.md b/src/guide/install/ui/worker/start.md index 3388325..9d80ee0 100644 --- a/src/guide/install/ui/worker/start.md +++ b/src/guide/install/ui/worker/start.md @@ -33,11 +33,11 @@ bun add @leafer-ui/worker ::: code-group ```js [worker.min.js] -importScripts('https://unpkg.com/@leafer-ui/worker@1.0.5/dist/worker.min.js') +importScripts('https://unpkg.com/@leafer-ui/worker@1.0.6/dist/worker.min.js') ``` ```js [worker.js] -importScripts('https://unpkg.com/@leafer-ui/worker@1.0.5/dist/worker.js') +importScripts('https://unpkg.com/@leafer-ui/worker@1.0.6/dist/worker.js') ``` ::: diff --git a/src/guide/problem/index.md b/src/guide/problem/index.md index 69b3e04..34fb7a9 100644 --- a/src/guide/problem/index.md +++ b/src/guide/problem/index.md @@ -31,3 +31,7 @@ https://nextjs.org/docs/pages/building-your-application/optimizing/lazy-loading# ### 画布不断自动扩大导致的卡顿问题 自动布局时,当父容器的宽度或高度为 100%,同时设置 padding 或 border, 会导致画布不断 resize 扩大。 + +### 微信 JS-SDK 上传 PNG 图片会变成 JPG 格式 + +请使用 HTML5 原生的 input 框上传。 diff --git a/src/plugin/in/animate/index.md b/src/plugin/in/animate/index.md index ebcf83b..2255e85 100644 --- a/src/plugin/in/animate/index.md +++ b/src/plugin/in/animate/index.md @@ -42,14 +42,14 @@ bun add @leafer-in/animate ::: code-group ```html [animate.min] - + ``` ```html [animate] - + diff --git a/src/plugin/in/arrow/index.md b/src/plugin/in/arrow/index.md index 18e1065..c106c88 100644 --- a/src/plugin/in/arrow/index.md +++ b/src/plugin/in/arrow/index.md @@ -42,14 +42,14 @@ bun add @leafer-in/arrow ::: code-group ```html [arrow.min] - + ``` ```html [arrow] - + diff --git a/src/plugin/in/color/index.md b/src/plugin/in/color/index.md index 06f71e3..e69efe6 100644 --- a/src/plugin/in/color/index.md +++ b/src/plugin/in/color/index.md @@ -36,11 +36,11 @@ bun add @leafer-in/resize ::: code-group ```html [resize.min] - + ``` ```html [resize] - + ``` https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm diff --git a/src/plugin/in/editor/index.md b/src/plugin/in/editor/index.md index d43f6b2..b7e570d 100644 --- a/src/plugin/in/editor/index.md +++ b/src/plugin/in/editor/index.md @@ -42,14 +42,14 @@ bun add @leafer-in/editor ::: code-group ```html [editor.min] - + ``` ```html [editor] - + diff --git a/src/plugin/in/flow/index.md b/src/plugin/in/flow/index.md index a9f829d..962fc90 100644 --- a/src/plugin/in/flow/index.md +++ b/src/plugin/in/flow/index.md @@ -38,14 +38,14 @@ bun add @leafer-in/flow ::: code-group ```html [flow.min] - + ``` ```html [flow] - + diff --git a/src/plugin/in/html/index.md b/src/plugin/in/html/index.md index 85fc255..5305581 100644 --- a/src/plugin/in/html/index.md +++ b/src/plugin/in/html/index.md @@ -42,14 +42,14 @@ bun add @leafer-in/html ::: code-group ```html [html.min] - + ``` ```html [html] - + diff --git a/src/plugin/in/path/index.md b/src/plugin/in/path/index.md index f54972a..6ed239b 100644 --- a/src/plugin/in/path/index.md +++ b/src/plugin/in/path/index.md @@ -36,11 +36,11 @@ bun add @leafer-in/resize ::: code-group ```html [resize.min] - + ``` ```html [resize] - + ``` https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm diff --git a/src/plugin/in/resize/index.md b/src/plugin/in/resize/index.md index 912563e..2077814 100644 --- a/src/plugin/in/resize/index.md +++ b/src/plugin/in/resize/index.md @@ -36,11 +36,11 @@ bun add @leafer-in/resize ::: code-group ```html [resize.min] - + ``` ```html [resize] - + ``` https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm diff --git a/src/plugin/in/robot/index.md b/src/plugin/in/robot/index.md index 635074e..196ebb2 100644 --- a/src/plugin/in/robot/index.md +++ b/src/plugin/in/robot/index.md @@ -44,14 +44,14 @@ bun add @leafer-in/robot ::: code-group ```html [robot.min] - + ``` ```html [robot] - + diff --git a/src/plugin/in/scroll/index.md b/src/plugin/in/scroll/index.md index 0ff60f3..01b2ccd 100644 --- a/src/plugin/in/scroll/index.md +++ b/src/plugin/in/scroll/index.md @@ -36,14 +36,14 @@ bun add @leafer-in/scroll ::: code-group ```html [scroll.min] - + ``` ```html [scroll] - + diff --git a/src/plugin/in/state/index.md b/src/plugin/in/state/index.md index 07b699a..e9634ef 100644 --- a/src/plugin/in/state/index.md +++ b/src/plugin/in/state/index.md @@ -40,11 +40,11 @@ bun add @leafer-in/state ::: code-group ```html [state.min] - + ``` ```html [state] - + ``` https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm diff --git a/src/plugin/in/text-editor/index.md b/src/plugin/in/text-editor/index.md index cd5abff..7502831 100644 --- a/src/plugin/in/text-editor/index.md +++ b/src/plugin/in/text-editor/index.md @@ -44,14 +44,14 @@ bun add @leafer-in/text-editor ::: code-group ```html [text-editor.min] - + ``` ```html [text-editor] - + diff --git a/src/plugin/in/view/index.md b/src/plugin/in/view/index.md index 0d539bb..04a0346 100644 --- a/src/plugin/in/view/index.md +++ b/src/plugin/in/view/index.md @@ -36,11 +36,11 @@ bun add @leafer-in/view ::: code-group ```html [view.min] - + ``` ```html [view] - + ``` https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm diff --git a/src/reference/display/Leafer.md b/src/reference/display/Leafer.md index 0872d5e..63d40f8 100644 --- a/src/reference/display/Leafer.md +++ b/src/reference/display/Leafer.md @@ -10,7 +10,7 @@ ## 版本号 -当前的版本号,默认为 `1.0.5`。 +当前的版本号,默认为 `1.0.6`。 ```ts import { version } from 'leafer-ui' diff --git a/src/update/index.md b/src/update/index.md index aadfb9a..0c90f41 100644 --- a/src/update/index.md +++ b/src/update/index.md @@ -12,6 +12,42 @@ import Case from '/component/Case.vue' ::: +## 2024 / 10 / 20 + +> v1.0.6 + +更新内容继续完善中... + +#### 🍍 社区 + +\- 🌸 **[扫雷小游戏](https://canvas.xjq.icu/minesweeper)** [@xjq7](https://github.com/xjq7) + +\- 🌸 **[微信表情包制作器](https://canvas.xjq.icu/minesweeper)** 微信小程序 @goosen + +#### 🌱 新增 + +\- 🌸 组元素的 add()、addAt()、addBefore()、addAfter() 方法支持添加数组(多个元素) + +\- Line/ Polygon 元素及 路径的 drawPoints() 的 points 属性支持 point 对象数组,可读性更高 + +\- Path 元素的 path 属性支持 路径命令对象数组, 可读性更高 + +#### 🪲 修复 + +\- Image、Canvas、Leafer 导出 JSON 的 matrix 可选项不生效 + +\- 特定情况下 resize Canvas 报错 + +\- 特定情况下 销毁 Editor 报错 + +#### 🌿 优化 + +\- 优化 Box / Canvas 的 drawAfterFill 绘制 + +#### 🌷 感谢反馈 + +[@daLeiStrive](https://github.com/daLeiStrive) [@kooriookami](https://github.com/kooriookami) [@zhangsai521314](https://github.com/zhangsai521314) [@leidao](https://github.com/leidao) [@yurande](https://github.com/yurande) @岁月 @黄某人 @测试用户 @goosen + ## 2024 / 10 / 10 > v1.0.5