@leafer/display 1.1.2 → 1.2.1
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 +4 -4
- package/types/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
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.1
|
|
26
|
-
"@leafer/data": "1.1
|
|
27
|
-
"@leafer/layout": "1.1
|
|
28
|
-
"@leafer/display-module": "1.1
|
|
29
|
-
"@leafer/event": "1.1
|
|
30
|
-
"@leafer/decorator": "1.1
|
|
31
|
-
"@leafer/helper": "1.1
|
|
32
|
-
"@leafer/debug": "1.1
|
|
33
|
-
"@leafer/platform": "1.1
|
|
25
|
+
"@leafer/math": "1.2.1",
|
|
26
|
+
"@leafer/data": "1.2.1",
|
|
27
|
+
"@leafer/layout": "1.2.1",
|
|
28
|
+
"@leafer/display-module": "1.2.1",
|
|
29
|
+
"@leafer/event": "1.2.1",
|
|
30
|
+
"@leafer/decorator": "1.2.1",
|
|
31
|
+
"@leafer/helper": "1.2.1",
|
|
32
|
+
"@leafer/debug": "1.2.1",
|
|
33
|
+
"@leafer/platform": "1.2.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@leafer/interface": "1.1
|
|
36
|
+
"@leafer/interface": "1.2.1"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/src/Leaf.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { LeafDataProxy, LeafMatrix, LeafBounds, LeafEventer, LeafRender } from '
|
|
|
6
6
|
import { boundsType, useModule, defineDataProcessor } from '@leafer/decorator'
|
|
7
7
|
import { LeafHelper } from '@leafer/helper'
|
|
8
8
|
import { ChildEvent } from '@leafer/event'
|
|
9
|
-
import {
|
|
9
|
+
import { Plugin } from '@leafer/debug'
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
const { LEAF, create } = IncrementId
|
|
@@ -250,7 +250,7 @@ export class Leaf implements ILeaf {
|
|
|
250
250
|
(this as any)[attrName] = value
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
public forceRender(_bounds?: IBoundsData): void {
|
|
253
|
+
public forceRender(_bounds?: IBoundsData, _sync?: boolean): void {
|
|
254
254
|
this.forceUpdate('surface')
|
|
255
255
|
}
|
|
256
256
|
|
|
@@ -588,11 +588,11 @@ export class Leaf implements ILeaf {
|
|
|
588
588
|
// @leafer-in/motion-path rewrite
|
|
589
589
|
|
|
590
590
|
public getMotionPathData(): IMotionPathData {
|
|
591
|
-
return
|
|
591
|
+
return Plugin.need('path')
|
|
592
592
|
}
|
|
593
593
|
|
|
594
594
|
public getMotionPoint(_motionDistance: number | IUnitData): IRotationPointData {
|
|
595
|
-
return
|
|
595
|
+
return Plugin.need('path')
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
public getMotionTotal(): number {
|
package/types/index.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ declare class Leaf implements ILeaf {
|
|
|
83
83
|
updateState(): void;
|
|
84
84
|
updateLayout(): void;
|
|
85
85
|
forceUpdate(attrName?: string): void;
|
|
86
|
-
forceRender(_bounds?: IBoundsData): void;
|
|
86
|
+
forceRender(_bounds?: IBoundsData, _sync?: boolean): void;
|
|
87
87
|
__updateWorldMatrix(): void;
|
|
88
88
|
__updateLocalMatrix(): void;
|
|
89
89
|
__updateWorldBounds(): void;
|