@leafer/display 1.0.0-rc.5 → 1.0.0-rc.6
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 +10 -10
- package/src/Leaf.ts +16 -2
- package/types/index.d.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.6",
|
|
4
4
|
"description": "@leafer/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/math": "1.0.0-rc.
|
|
26
|
-
"@leafer/data": "1.0.0-rc.
|
|
27
|
-
"@leafer/layout": "1.0.0-rc.
|
|
28
|
-
"@leafer/display-module": "1.0.0-rc.
|
|
29
|
-
"@leafer/event": "1.0.0-rc.
|
|
30
|
-
"@leafer/decorator": "1.0.0-rc.
|
|
31
|
-
"@leafer/helper": "1.0.0-rc.
|
|
32
|
-
"@leafer/platform": "1.0.0-rc.
|
|
25
|
+
"@leafer/math": "1.0.0-rc.6",
|
|
26
|
+
"@leafer/data": "1.0.0-rc.6",
|
|
27
|
+
"@leafer/layout": "1.0.0-rc.6",
|
|
28
|
+
"@leafer/display-module": "1.0.0-rc.6",
|
|
29
|
+
"@leafer/event": "1.0.0-rc.6",
|
|
30
|
+
"@leafer/decorator": "1.0.0-rc.6",
|
|
31
|
+
"@leafer/helper": "1.0.0-rc.6",
|
|
32
|
+
"@leafer/platform": "1.0.0-rc.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@leafer/interface": "1.0.0-rc.
|
|
35
|
+
"@leafer/interface": "1.0.0-rc.6"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/Leaf.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILeafer, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IMatrixWithBoundsData, __Number, __Boolean, __Value, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerOptions, IEventListenerId, IEvent, IObject, IFunction, __String, IPointData, IMatrixDecompositionAttr, ILayoutBoundsType, ILayoutLocationType, IBoundsData, IBranch, IMatrixWithLayoutData } from '@leafer/interface'
|
|
1
|
+
import { ILeafer, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IMatrixWithBoundsData, __Number, __Boolean, __Value, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerOptions, IEventListenerId, IEvent, IObject, IFunction, __String, IPointData, IMatrixDecompositionAttr, ILayoutBoundsType, ILayoutLocationType, IBoundsData, IBranch, IMatrixWithLayoutData, IFindMethod, ILeafDataOptions } from '@leafer/interface'
|
|
2
2
|
import { IncrementId, MatrixHelper, PointHelper } from '@leafer/math'
|
|
3
3
|
import { LeafData } from '@leafer/data'
|
|
4
4
|
import { LeafLayout } from '@leafer/layout'
|
|
@@ -158,6 +158,7 @@ export class Leaf implements ILeaf {
|
|
|
158
158
|
// data
|
|
159
159
|
|
|
160
160
|
public set(_data: IObject): void { }
|
|
161
|
+
get(_options?: ILeafDataOptions): ILeafInputData { return undefined }
|
|
161
162
|
|
|
162
163
|
public toJSON(): IObject {
|
|
163
164
|
return this.__.__getInputData()
|
|
@@ -173,6 +174,19 @@ export class Leaf implements ILeaf {
|
|
|
173
174
|
|
|
174
175
|
public __getAttr(_attrName: string): __Value { return undefined }
|
|
175
176
|
|
|
177
|
+
public setProxyAttr(_attrName: string, _newValue: __Value): void { }
|
|
178
|
+
|
|
179
|
+
public getProxyAttr(_attrName: string): __Value { return undefined }
|
|
180
|
+
|
|
181
|
+
// ---
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
// find
|
|
185
|
+
|
|
186
|
+
public find(_condition: number | string | IFindMethod): ILeaf[] { return undefined }
|
|
187
|
+
|
|
188
|
+
public findOne(_condition: number | string | IFindMethod): ILeaf { return undefined }
|
|
189
|
+
|
|
176
190
|
// ---
|
|
177
191
|
|
|
178
192
|
public forceUpdate(attrName?: string): void {
|
|
@@ -230,7 +244,7 @@ export class Leaf implements ILeaf {
|
|
|
230
244
|
|
|
231
245
|
public __updateMask(_value?: boolean): void { }
|
|
232
246
|
|
|
233
|
-
public __renderMask(_canvas: ILeaferCanvas, _content: ILeaferCanvas, _mask: ILeaferCanvas): void { }
|
|
247
|
+
public __renderMask(_canvas: ILeaferCanvas, _content: ILeaferCanvas, _mask: ILeaferCanvas, _recycle?: boolean): void { }
|
|
234
248
|
|
|
235
249
|
public __removeMask(_child?: ILeaf): void { }
|
|
236
250
|
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILeaf, InnerId, ILeafer, ILeafData, ILeafLayout, IMatrixWithLayoutData, IMatrixWithBoundsData, IBoundsData, IHitCanvas, IEventListenerMap, IFunction, ILeafInputData, IObject, __Value, ILeaferCanvas, IMatrixDecompositionAttr, ILayoutBoundsType, ILayoutLocationType, IPointData, IRadiusPointData, IRenderOptions, IEventListener, IEventListenerOptions, IEventListenerId, IEvent } from '@leafer/interface';
|
|
1
|
+
import { ILeaf, InnerId, ILeafer, ILeafData, ILeafLayout, IMatrixWithLayoutData, IMatrixWithBoundsData, IBoundsData, IHitCanvas, IEventListenerMap, IFunction, ILeafInputData, IObject, ILeafDataOptions, __Value, IFindMethod, ILeaferCanvas, IMatrixDecompositionAttr, ILayoutBoundsType, ILayoutLocationType, IPointData, IRadiusPointData, IRenderOptions, IEventListener, IEventListenerOptions, IEventListenerId, IEvent } from '@leafer/interface';
|
|
2
2
|
import { LeafData } from '@leafer/data';
|
|
3
3
|
import { LeafLayout } from '@leafer/layout';
|
|
4
4
|
|
|
@@ -50,10 +50,15 @@ declare class Leaf implements ILeaf {
|
|
|
50
50
|
nextRender(item: IFunction): void;
|
|
51
51
|
__bindLeafer(leafer: ILeafer | null): void;
|
|
52
52
|
set(_data: IObject): void;
|
|
53
|
+
get(_options?: ILeafDataOptions): ILeafInputData;
|
|
53
54
|
toJSON(): IObject;
|
|
54
55
|
toString(): string;
|
|
55
56
|
__setAttr(_attrName: string, _newValue: __Value): void;
|
|
56
57
|
__getAttr(_attrName: string): __Value;
|
|
58
|
+
setProxyAttr(_attrName: string, _newValue: __Value): void;
|
|
59
|
+
getProxyAttr(_attrName: string): __Value;
|
|
60
|
+
find(_condition: number | string | IFindMethod): ILeaf[];
|
|
61
|
+
findOne(_condition: number | string | IFindMethod): ILeaf;
|
|
57
62
|
forceUpdate(attrName?: string): void;
|
|
58
63
|
__updateWorldMatrix(): void;
|
|
59
64
|
__updateLocalMatrix(): void;
|
|
@@ -70,7 +75,7 @@ declare class Leaf implements ILeaf {
|
|
|
70
75
|
__onUpdateSize(): void;
|
|
71
76
|
__updateEraser(_value?: boolean): void;
|
|
72
77
|
__updateMask(_value?: boolean): void;
|
|
73
|
-
__renderMask(_canvas: ILeaferCanvas, _content: ILeaferCanvas, _mask: ILeaferCanvas): void;
|
|
78
|
+
__renderMask(_canvas: ILeaferCanvas, _content: ILeaferCanvas, _mask: ILeaferCanvas, _recycle?: boolean): void;
|
|
74
79
|
__removeMask(_child?: ILeaf): void;
|
|
75
80
|
getWorld(attrName: IMatrixDecompositionAttr): number;
|
|
76
81
|
getBounds(type: ILayoutBoundsType, locationType?: ILayoutLocationType): IBoundsData;
|