@leafer/display 2.1.7 → 2.1.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/package.json +12 -12
- package/src/Branch.ts +1 -0
- package/src/Leaf.ts +2 -2
- package/types/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.9",
|
|
4
4
|
"description": "@leafer/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/math": "2.1.
|
|
26
|
-
"@leafer/data": "2.1.
|
|
27
|
-
"@leafer/layout": "2.1.
|
|
28
|
-
"@leafer/display-module": "2.1.
|
|
29
|
-
"@leafer/event": "2.1.
|
|
30
|
-
"@leafer/decorator": "2.1.
|
|
31
|
-
"@leafer/helper": "2.1.
|
|
32
|
-
"@leafer/image": "2.1.
|
|
33
|
-
"@leafer/debug": "2.1.
|
|
34
|
-
"@leafer/platform": "2.1.
|
|
25
|
+
"@leafer/math": "2.1.9",
|
|
26
|
+
"@leafer/data": "2.1.9",
|
|
27
|
+
"@leafer/layout": "2.1.9",
|
|
28
|
+
"@leafer/display-module": "2.1.9",
|
|
29
|
+
"@leafer/event": "2.1.9",
|
|
30
|
+
"@leafer/decorator": "2.1.9",
|
|
31
|
+
"@leafer/helper": "2.1.9",
|
|
32
|
+
"@leafer/image": "2.1.9",
|
|
33
|
+
"@leafer/debug": "2.1.9",
|
|
34
|
+
"@leafer/platform": "2.1.9"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@leafer/interface": "2.1.
|
|
37
|
+
"@leafer/interface": "2.1.9"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/Branch.ts
CHANGED
package/src/Leaf.ts
CHANGED
|
@@ -548,8 +548,8 @@ export interface Leaf {
|
|
|
548
548
|
|
|
549
549
|
// @leafer-in/resize rewrite
|
|
550
550
|
__scaleResize(scaleX: number, scaleY: number): void
|
|
551
|
-
resizeWidth(width: number): void
|
|
552
|
-
resizeHeight(height: number): void
|
|
551
|
+
resizeWidth(width: number, relative?: ILocationType): void
|
|
552
|
+
resizeHeight(height: number, relative?: ILocationType): void
|
|
553
553
|
|
|
554
554
|
// @leafer-ui/hit LeafHit rewrite
|
|
555
555
|
hit(world: IPointData, hitRadius?: number): boolean
|
package/types/index.d.ts
CHANGED
|
@@ -158,8 +158,8 @@ interface Leaf {
|
|
|
158
158
|
__onUpdateSize(): void;
|
|
159
159
|
__renderMask(canvas: ILeaferCanvas, options: IRenderOptions): void;
|
|
160
160
|
__scaleResize(scaleX: number, scaleY: number): void;
|
|
161
|
-
resizeWidth(width: number): void;
|
|
162
|
-
resizeHeight(height: number): void;
|
|
161
|
+
resizeWidth(width: number, relative?: ILocationType): void;
|
|
162
|
+
resizeHeight(height: number, relative?: ILocationType): void;
|
|
163
163
|
hit(world: IPointData, hitRadius?: number): boolean;
|
|
164
164
|
__hitWorld(point: IRadiusPointData, forceHitFill?: boolean): boolean;
|
|
165
165
|
__hit(local: IRadiusPointData, forceHitFill?: boolean): boolean;
|