@leafer/display 1.9.9 → 1.9.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 +12 -12
- package/src/Leaf.ts +2 -1
- package/types/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.10",
|
|
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": "1.9.
|
|
26
|
-
"@leafer/data": "1.9.
|
|
27
|
-
"@leafer/layout": "1.9.
|
|
28
|
-
"@leafer/display-module": "1.9.
|
|
29
|
-
"@leafer/event": "1.9.
|
|
30
|
-
"@leafer/decorator": "1.9.
|
|
31
|
-
"@leafer/helper": "1.9.
|
|
32
|
-
"@leafer/image": "1.9.
|
|
33
|
-
"@leafer/debug": "1.9.
|
|
34
|
-
"@leafer/platform": "1.9.
|
|
25
|
+
"@leafer/math": "1.9.10",
|
|
26
|
+
"@leafer/data": "1.9.10",
|
|
27
|
+
"@leafer/layout": "1.9.10",
|
|
28
|
+
"@leafer/display-module": "1.9.10",
|
|
29
|
+
"@leafer/event": "1.9.10",
|
|
30
|
+
"@leafer/decorator": "1.9.10",
|
|
31
|
+
"@leafer/helper": "1.9.10",
|
|
32
|
+
"@leafer/image": "1.9.10",
|
|
33
|
+
"@leafer/debug": "1.9.10",
|
|
34
|
+
"@leafer/platform": "1.9.10"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@leafer/interface": "1.9.
|
|
37
|
+
"@leafer/interface": "1.9.10"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/Leaf.ts
CHANGED
|
@@ -190,7 +190,8 @@ export class Leaf<TInputData = ILeafInputData> implements ILeaf {
|
|
|
190
190
|
// data
|
|
191
191
|
|
|
192
192
|
public set(_data: IObject, _isTemp?: boolean): void { }
|
|
193
|
-
|
|
193
|
+
|
|
194
|
+
public get<K extends keyof this>(_name?: K | K[] | ILeafInputData): ILeafInputData | this[K] { return undefined }
|
|
194
195
|
|
|
195
196
|
public setAttr(name: string, value: any): void { (this as IObject)[name] = value }
|
|
196
197
|
public getAttr(name: string): any { return (this as IObject)[name] }
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILeafInputData, ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, IFunction, IObject,
|
|
1
|
+
import { ILeafInputData, ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, IFunction, IObject, IJSONOptions, IValue, IFindMethod, IFourNumber, ILeaferCanvas, IRenderOptions, IScaleFixed, IScaleData, ILocationType, IBoundsType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventParams, IEventListener, IEventOption, IEventListenerId, IEvent, IValueFunction, IAttrDecorator } from '@leafer/interface';
|
|
2
2
|
import { LeafData } from '@leafer/data';
|
|
3
3
|
import { LeafLayout } from '@leafer/layout';
|
|
4
4
|
|
|
@@ -66,7 +66,7 @@ declare class Leaf<TInputData = ILeafInputData> implements ILeaf {
|
|
|
66
66
|
removeNextRender(item: IFunction): void;
|
|
67
67
|
__bindLeafer(leafer: ILeaferBase | null): void;
|
|
68
68
|
set(_data: IObject, _isTemp?: boolean): void;
|
|
69
|
-
get(_name?:
|
|
69
|
+
get<K extends keyof this>(_name?: K | K[] | ILeafInputData): ILeafInputData | this[K];
|
|
70
70
|
setAttr(name: string, value: any): void;
|
|
71
71
|
getAttr(name: string): any;
|
|
72
72
|
getComputedAttr(name: string): any;
|