@leafer/display 1.3.1 → 1.3.3
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 +11 -11
- package/src/Leaf.ts +5 -1
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "@leafer/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/math": "1.3.
|
|
26
|
-
"@leafer/data": "1.3.
|
|
27
|
-
"@leafer/layout": "1.3.
|
|
28
|
-
"@leafer/display-module": "1.3.
|
|
29
|
-
"@leafer/event": "1.3.
|
|
30
|
-
"@leafer/decorator": "1.3.
|
|
31
|
-
"@leafer/helper": "1.3.
|
|
32
|
-
"@leafer/debug": "1.3.
|
|
33
|
-
"@leafer/platform": "1.3.
|
|
25
|
+
"@leafer/math": "1.3.3",
|
|
26
|
+
"@leafer/data": "1.3.3",
|
|
27
|
+
"@leafer/layout": "1.3.3",
|
|
28
|
+
"@leafer/display-module": "1.3.3",
|
|
29
|
+
"@leafer/event": "1.3.3",
|
|
30
|
+
"@leafer/decorator": "1.3.3",
|
|
31
|
+
"@leafer/helper": "1.3.3",
|
|
32
|
+
"@leafer/debug": "1.3.3",
|
|
33
|
+
"@leafer/platform": "1.3.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@leafer/interface": "1.3.
|
|
36
|
+
"@leafer/interface": "1.3.3"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/src/Leaf.ts
CHANGED
|
@@ -86,7 +86,7 @@ export class Leaf implements ILeaf {
|
|
|
86
86
|
|
|
87
87
|
public get __onlyHitMask(): boolean { return this.__hasMask && !this.__.hitChildren }
|
|
88
88
|
public get __ignoreHitWorld(): boolean { return (this.__hasMask || this.__hasEraser) && this.__.hitChildren }
|
|
89
|
-
public get __inLazyBounds(): boolean {
|
|
89
|
+
public get __inLazyBounds(): boolean { return this.leaferIsCreated && this.leafer.lazyBounds.hit(this.__world) }
|
|
90
90
|
|
|
91
91
|
public get pathInputed(): boolean { return this.__.__pathInputed as unknown as boolean }
|
|
92
92
|
|
|
@@ -254,6 +254,10 @@ export class Leaf implements ILeaf {
|
|
|
254
254
|
this.forceUpdate('surface')
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
public __extraUpdate(): void {
|
|
258
|
+
if (this.leaferIsReady) this.leafer.layouter.addExtra(this) // add part 额外更新元素
|
|
259
|
+
}
|
|
260
|
+
|
|
257
261
|
// LeafMatrix rewrite
|
|
258
262
|
|
|
259
263
|
public __updateWorldMatrix(): void { }
|
package/types/index.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ declare class Leaf implements ILeaf {
|
|
|
84
84
|
updateLayout(): void;
|
|
85
85
|
forceUpdate(attrName?: string): void;
|
|
86
86
|
forceRender(_bounds?: IBoundsData, _sync?: boolean): void;
|
|
87
|
+
__extraUpdate(): void;
|
|
87
88
|
__updateWorldMatrix(): void;
|
|
88
89
|
__updateLocalMatrix(): void;
|
|
89
90
|
__updateWorldBounds(): void;
|