leafer-ui 1.0.0-beta.15 → 1.0.0-beta.17

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
@@ -4,7 +4,7 @@ Leafer UI 是基于 Leafer 开发的一套绚丽多彩的 UI 绘图框架,可
4
4
 
5
5
  提供了常用的 UI 绘图组件,和开箱即用的功能,方便与 Figma、Sketch 等产品进行数据交换,并为跨平台开发提供了统一、丰富的交互事件,如拖拽、旋转、缩放手势等。
6
6
 
7
- 1.0.0-beta.15 已发布 🎉🎉🎉,查看 [更新日志](https://leaferjs.com/ui/update/)。
7
+ 1.0.0-beta.17 已发布 🎉🎉🎉,查看 [更新日志](https://leaferjs.com/ui/update/)。
8
8
 
9
9
  目前产品已经逐步稳定,感谢所有参与的朋友们,下一步准备开启正式版的完善工作~
10
10
 
package/dist/web.js CHANGED
@@ -5617,8 +5617,8 @@ var LeaferUI = (function (exports) {
5617
5617
  waitLeafer(item) {
5618
5618
  this.leafer ? item() : (this.__leaferWait ? this.__leaferWait.push(item) : this.__leaferWait = [item]);
5619
5619
  }
5620
- waitRender(item) {
5621
- this.leafer ? this.leafer.waitRender(item) : this.waitLeafer(() => this.leafer.waitRender(item));
5620
+ nextRender(item) {
5621
+ this.leafer ? this.leafer.nextRender(item) : this.waitLeafer(() => this.leafer.nextRender(item));
5622
5622
  }
5623
5623
  __bindLeafer(leafer) {
5624
5624
  if (this.isLeafer) {
@@ -8758,7 +8758,7 @@ var LeaferUI = (function (exports) {
8758
8758
  this.__readyWait = [];
8759
8759
  this.__viewReadyWait = [];
8760
8760
  this.__viewCompletedWait = [];
8761
- this.__renderWait = [];
8761
+ this.__nextRenderWait = [];
8762
8762
  this.userConfig = userConfig;
8763
8763
  if (userConfig && (userConfig.view || userConfig.width))
8764
8764
  this.init(userConfig);
@@ -8937,7 +8937,7 @@ var LeaferUI = (function (exports) {
8937
8937
  if (completed)
8938
8938
  this.__onViewCompleted();
8939
8939
  this.viewCompleted = completed;
8940
- WaitHelper.run(this.__renderWait);
8940
+ WaitHelper.run(this.__nextRenderWait);
8941
8941
  }
8942
8942
  __checkViewCompleted() {
8943
8943
  return this.viewReady && !this.watcher.changed && ImageManager.isComplete;
@@ -8950,7 +8950,7 @@ var LeaferUI = (function (exports) {
8950
8950
  }
8951
8951
  __onWatchData() {
8952
8952
  if (this.watcher.childrenChanged && this.interaction) {
8953
- this.waitRender(() => this.interaction.updateCursor());
8953
+ this.nextRender(() => this.interaction.updateCursor());
8954
8954
  }
8955
8955
  }
8956
8956
  waitReady(item) {
@@ -8969,12 +8969,12 @@ var LeaferUI = (function (exports) {
8969
8969
  this.start();
8970
8970
  }
8971
8971
  }
8972
- waitRender(item) {
8972
+ nextRender(item) {
8973
8973
  if (this.watcher && !this.watcher.changed) {
8974
8974
  item();
8975
8975
  }
8976
8976
  else {
8977
- this.__renderWait.push(item);
8977
+ this.__nextRenderWait.push(item);
8978
8978
  }
8979
8979
  }
8980
8980
  __checkUpdateLayout() {