@leafer/data
Advanced tools
+2
-2
| { | ||
| "name": "@leafer/data", | ||
| "version": "1.0.0-rc.28", | ||
| "version": "1.0.0-rc.30", | ||
| "description": "@leafer/data", | ||
@@ -25,4 +25,4 @@ "author": "Chao (Leafer) Wan", | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.28" | ||
| "@leafer/interface": "1.0.0-rc.30" | ||
| } | ||
| } |
+9
-2
@@ -1,2 +0,2 @@ | ||
| import { ILeafData, ILeaf, IObject, IValue, IPathCommandData } from '@leafer/interface' | ||
| import { ILeafData, ILeaf, IObject, IValue, IPathCommandData, IJSONOptions } from '@leafer/interface' | ||
@@ -72,3 +72,3 @@ | ||
| public __getInputData(names?: string[] | IObject): IObject { | ||
| public __getInputData(names?: string[] | IObject, options?: IJSONOptions): IObject { | ||
| const data: IObject = {} | ||
@@ -103,2 +103,9 @@ | ||
| if (options) { | ||
| if (options.matrix) { | ||
| const { a, b, c, d, e, f } = this.__leaf.__localMatrix | ||
| data.matrix = { a, b, c, d, e, f } | ||
| } | ||
| } | ||
| return data | ||
@@ -105,0 +112,0 @@ } |
+2
-2
@@ -1,2 +0,2 @@ | ||
| import { IObject, IBooleanMap, ILeafData, ILeaf, IPathCommandData } from '@leafer/interface'; | ||
| import { IObject, IBooleanMap, ILeafData, ILeaf, IPathCommandData, IJSONOptions } from '@leafer/interface'; | ||
@@ -29,3 +29,3 @@ declare const DataHelper: { | ||
| __removeInput(name: string): void; | ||
| __getInputData(names?: string[] | IObject): IObject; | ||
| __getInputData(names?: string[] | IObject, options?: IJSONOptions): IObject; | ||
| __setMiddle(name: string, value: any): void; | ||
@@ -32,0 +32,0 @@ __getMiddle(name: string): any; |
8671
3.34%192
3.23%