leafer-ui 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,15 +20,33 @@ v1.0 正式版已发布 🎉🎉🎉
20
20
 
21
21
  如果你觉得不错,请帮我们点个 [Star](https://github.com/leaferjs/leafer-ui) 🌟 ,让这个库被更多的人看见 - [GitHub](https://github.com/leaferjs/leafer-ui) / [Gitee](https://gitee.com/leaferjs/ui) ✨ ✨ ✨
22
22
 
23
+ ## 快速入门
24
+
25
+ [1. 准备在线 Playground 环境](https://leaferjs.com/ui/guide/runtime.md)
26
+
27
+ 可通过 **Cloud Studio** 模版创建一个 **LeaferJS 项目**,用于运行、练习后续的示例代码。
28
+
29
+ [2. 学习 LeaferJS 快速入门教程](https://leaferjs.com/ui/guide/basic/app.md)
30
+
31
+ 跟随官网教程步骤(文档底部有下一步引导按钮)从浅到深的一步步学习。
32
+
33
+ 建议将教程中的示例代码复制到 **LeaferJS 项目** 的 index.ts 文件中运行、调试效果。
34
+
35
+ [3. 开发一个画龙点睛的小游戏](https://leaferjs.com/ui/contest/guide.md)
36
+
37
+ 给你一条会飞的龙,看你能做出什么好玩的小游戏分享给我们 ◠‿◠
38
+
23
39
  ## 快速安装
24
40
 
25
- 🚀 想马上使用,请安装 [leafer-ui](https://leaferjs.com/ui/guide/install/ui/start.html),开始你的探索之旅。
41
+ 🚀 想马上在产品中使用,请安装 [leafer-ui](https://leaferjs.com/ui/guide/install/ui/start.html),开始你的探索之旅。
42
+
43
+ ## 场景包
26
44
 
27
- ## 场景版
45
+ 高效绘图场景,推荐安装更轻量的 [leafer-draw](https://leaferjs.com/ui/guide/type/draw/start.html) (49KB min+gzip)。
28
46
 
29
- 编辑图形的场景,推荐安装更省心的 [leafer-editor](https://leaferjs.com/ui/guide/install/editor/start.html),已集成了图形编辑器相关插件。
47
+ 游戏开发场景,推荐安装更省心的 [leafer-game](https://leaferjs.com/ui/guide/install/game/start.md),已集成了游戏相关插件。
30
48
 
31
- 单纯绘图的场景,推荐安装更轻量的 [leafer-draw](https://leaferjs.com/ui/guide/type/draw/start.html) (49KB min+gzip)。
49
+ 图形编辑场景,推荐安装更省心的 [leafer-editor](https://leaferjs.com/ui/guide/install/editor/start.html),已集成了图形编辑器相关插件。
32
50
 
33
51
  ## 入门场景
34
52
 
package/dist/web.js CHANGED
@@ -5962,7 +5962,7 @@ var LeaferUI = (function (exports) {
5962
5962
  }
5963
5963
  }
5964
5964
 
5965
- const version = "1.0.8";
5965
+ const version = "1.0.9";
5966
5966
 
5967
5967
  const debug$7 = Debug.get('LeaferCanvas');
5968
5968
  class LeaferCanvas extends LeaferCanvasBase {
@@ -8784,7 +8784,6 @@ var LeaferUI = (function (exports) {
8784
8784
  this.__updateTextDrawData();
8785
8785
  const { bounds } = data.__textDrawData;
8786
8786
  const b = layout.boxBounds;
8787
- console.log(bounds, autoWidth, autoHeight);
8788
8787
  if (data.__lineHeight < fontSize)
8789
8788
  spread(bounds, fontSize / 2);
8790
8789
  if (autoWidth || autoHeight) {