@leafer-ui/display 1.0.8 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/display",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "@leafer-ui/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,14 +22,14 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.8",
26
- "@leafer-ui/data": "1.0.8",
27
- "@leafer-ui/display-module": "1.0.8",
28
- "@leafer-ui/decorator": "1.0.8",
29
- "@leafer-ui/external": "1.0.8"
25
+ "@leafer/core": "1.0.10",
26
+ "@leafer-ui/data": "1.0.10",
27
+ "@leafer-ui/display-module": "1.0.10",
28
+ "@leafer-ui/decorator": "1.0.10",
29
+ "@leafer-ui/external": "1.0.10"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.0.8",
33
- "@leafer-ui/interface": "1.0.8"
32
+ "@leafer/interface": "1.0.10",
33
+ "@leafer-ui/interface": "1.0.10"
34
34
  }
35
35
  }
package/src/Box.ts CHANGED
@@ -26,7 +26,7 @@ export class Box extends Group implements IBox {
26
26
  @dataType(false)
27
27
  public resizeChildren?: IBoolean
28
28
 
29
- @dataType(false)
29
+ // @leafer-in/editor rewrite
30
30
  public textBox?: IBoolean
31
31
 
32
32
  @affectRenderBoundsType('show')
package/src/Leafer.ts CHANGED
@@ -223,7 +223,6 @@ export class Leafer extends Group implements ILeafer {
223
223
  protected __onResize(event: IResizeEvent): void {
224
224
  this.emitEvent(event)
225
225
  DataHelper.copyAttrs(this.__, event, canvasSizeAttrs)
226
- if (!event.width || !event.height) debug.warn('w = 0 or h = 0')
227
226
  setTimeout(() => { if (this.canvasManager) this.canvasManager.clearRecycled() }, 0)
228
227
  }
229
228
 
package/src/Text.ts CHANGED
@@ -141,7 +141,6 @@ export class Text extends UI implements IText {
141
141
 
142
142
  const { bounds } = data.__textDrawData
143
143
  const b = layout.boxBounds
144
- console.log(bounds, autoWidth, autoHeight)
145
144
 
146
145
  if (data.__lineHeight < fontSize) spread(bounds, fontSize / 2)
147
146
 
package/src/UI.ts CHANGED
@@ -169,12 +169,15 @@ export class UI extends Leaf implements IUI { // tip: rewrited Box
169
169
 
170
170
  public autoHeight?: IAutoSize
171
171
 
172
+ @boundsType(false)
172
173
  public lockRatio?: IBoolean
173
174
 
174
175
  public autoBox?: IAutoBoxData | IConstraint
175
176
 
177
+ @boundsType()
176
178
  public widthRange?: IRangeSize
177
179
 
180
+ @boundsType()
178
181
  public heightRange?: IRangeSize
179
182
 
180
183