@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 +8 -8
- package/src/Box.ts +1 -1
- package/src/Leafer.ts +0 -1
- package/src/Text.ts +0 -1
- package/src/UI.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/display",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
26
|
-
"@leafer-ui/data": "1.0.
|
|
27
|
-
"@leafer-ui/display-module": "1.0.
|
|
28
|
-
"@leafer-ui/decorator": "1.0.
|
|
29
|
-
"@leafer-ui/external": "1.0.
|
|
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.
|
|
33
|
-
"@leafer-ui/interface": "1.0.
|
|
32
|
+
"@leafer/interface": "1.0.10",
|
|
33
|
+
"@leafer-ui/interface": "1.0.10"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/Box.ts
CHANGED
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
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
|
|