@types/dat-gui
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -5,89 +5,88 @@ // Type definitions for dat.GUI v0.6.1 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export as namespace dat; | ||
declare namespace dat { | ||
export class GUI { | ||
constructor(option?: GUIParams); | ||
export class GUI { | ||
constructor(option?: GUIParams); | ||
__controllers: GUIController[]; | ||
__folders: GUI[]; | ||
domElement: HTMLElement; | ||
__controllers: GUIController[]; | ||
__folders: GUI[]; | ||
domElement: HTMLElement; | ||
add(target: Object, propName:string): GUIController; | ||
add(target: Object, propName:string, min: number, max: number): GUIController; | ||
add(target: Object, propName:string, status: boolean): GUIController; | ||
add(target: Object, propName:string, items:string[]): GUIController; | ||
add(target: Object, propName:string, items:number[]): GUIController; | ||
add(target: Object, propName:string, items:Object): GUIController; | ||
add(target: Object, propName:string): GUIController; | ||
add(target: Object, propName:string, min: number, max: number): GUIController; | ||
add(target: Object, propName:string, status: boolean): GUIController; | ||
add(target: Object, propName:string, items:string[]): GUIController; | ||
add(target: Object, propName:string, items:number[]): GUIController; | ||
add(target: Object, propName:string, items:Object): GUIController; | ||
addColor(target: Object, propName:string): GUIController; | ||
addColor(target: Object, propName:string, color: string): GUIController; | ||
addColor(target: Object, propName:string, rgba: number[]): GUIController; // rgb or rgba | ||
addColor(target: Object, propName:string, hsv:{h:number; s:number; v:number}): GUIController; | ||
addColor(target: Object, propName:string): GUIController; | ||
addColor(target: Object, propName:string, color: string): GUIController; | ||
addColor(target: Object, propName:string, rgba: number[]): GUIController; // rgb or rgba | ||
addColor(target: Object, propName:string, hsv:{h:number; s:number; v:number}): GUIController; | ||
remove(controller: GUIController): void; | ||
destroy(): void; | ||
remove(controller: GUIController): void; | ||
destroy(): void; | ||
addFolder(propName:string): GUI; | ||
addFolder(propName:string): GUI; | ||
open(): void; | ||
close(): void; | ||
open(): void; | ||
close(): void; | ||
remember(target: Object, ...additionalTargets: Object[]): void; | ||
getRoot(): GUI; | ||
remember(target: Object, ...additionalTargets: Object[]): void; | ||
getRoot(): GUI; | ||
getSaveObject(): Object; | ||
save(): void; | ||
saveAs(presetName:string): void; | ||
revert(gui:GUI): void; | ||
getSaveObject(): Object; | ||
save(): void; | ||
saveAs(presetName:string): void; | ||
revert(gui:GUI): void; | ||
listen(controller: GUIController): void; | ||
updateDisplay(): void; | ||
listen(controller: GUIController): void; | ||
updateDisplay(): void; | ||
// gui properties in dat/gui/GUI.js | ||
readonly parent: GUI; | ||
readonly scrollable: boolean; | ||
readonly autoPlace: boolean; | ||
preset: string; | ||
width: number; | ||
name: string; | ||
closed: boolean; | ||
readonly load: Object; | ||
useLocalStorage: boolean; | ||
} | ||
// gui properties in dat/gui/GUI.js | ||
readonly parent: GUI; | ||
readonly scrollable: boolean; | ||
readonly autoPlace: boolean; | ||
preset: string; | ||
width: number; | ||
name: string; | ||
closed: boolean; | ||
readonly load: Object; | ||
useLocalStorage: boolean; | ||
} | ||
export interface GUIParams{ | ||
autoPlace?: boolean; | ||
closed?: boolean; | ||
load?: any; | ||
name?: string; | ||
preset?: string; | ||
width?: number; | ||
} | ||
export interface GUIParams{ | ||
autoPlace?: boolean; | ||
closed?: boolean; | ||
load?: any; | ||
name?: string; | ||
preset?: string; | ||
width?: number; | ||
} | ||
export class GUIController { | ||
destroy(): void; | ||
export class GUIController { | ||
destroy(): void; | ||
// Controller | ||
onChange: (value?: any) => void; | ||
onFinishChange: (value?: any) => void; | ||
// Controller | ||
onChange: (value?: any) => void; | ||
onFinishChange: (value?: any) => void; | ||
setValue(value: any): GUIController; | ||
getValue(): any; | ||
updateDisplay(): void; | ||
isModified(): boolean; | ||
setValue(value: any): GUIController; | ||
getValue(): any; | ||
updateDisplay(): void; | ||
isModified(): boolean; | ||
// NumberController | ||
min(n: number): GUIController; | ||
max(n: number): GUIController; | ||
step(n: number): GUIController; | ||
// NumberController | ||
min(n: number): GUIController; | ||
max(n: number): GUIController; | ||
step(n: number): GUIController; | ||
// FunctionController | ||
fire(): GUIController; | ||
// FunctionController | ||
fire(): GUIController; | ||
// augmentController in dat/gui/GUI.js | ||
options(option:any):GUIController; | ||
name(s: string): GUIController; | ||
listen(): GUIController; | ||
remove(): GUIController; | ||
} | ||
// augmentController in dat/gui/GUI.js | ||
options(option:any):GUIController; | ||
name(s: string): GUIController; | ||
listen(): GUIController; | ||
remove(): GUIController; | ||
} |
{ | ||
"name": "@types/dat-gui", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "TypeScript definitions for dat.GUI", | ||
@@ -15,4 +15,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "b6ecde49a4e17603c62c5fafc43c42aff56862363fba7801b7bff8f4bf8c860d" | ||
"typesPublisherContentHash": "3a31f56a1035b088188dc4a54152975513602d90028a8dc2b4ea2caef12ab2d2", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,7 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/dat-gui | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/dat-gui | ||
Additional Details | ||
* Last updated: Mon, 28 Nov 2016 16:28:39 GMT | ||
* File structure: Global | ||
* Last updated: Sat, 07 Jan 2017 15:53:48 GMT | ||
* Library Dependencies: none | ||
@@ -15,0 +14,0 @@ * Module Dependencies: none |
{ | ||
"authors": "Satoru Kimura <https://github.com/gyohk>, ZongJing Lu <https://github.com/sonic3d>", | ||
"definitionFilename": "index.d.ts", | ||
"libraryDependencies": [], | ||
@@ -8,2 +7,3 @@ "moduleDependencies": [], | ||
"libraryMinorVersion": 6, | ||
"typeScriptVersion": "2.0", | ||
"libraryName": "dat.GUI", | ||
@@ -13,8 +13,9 @@ "typingsPackageName": "dat-gui", | ||
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
"sourceBranch": "types-2.0", | ||
"kind": "Global", | ||
"sourceBranch": "master", | ||
"globals": [ | ||
"dat" | ||
], | ||
"declaredModules": [], | ||
"declaredModules": [ | ||
"dat-gui" | ||
], | ||
"files": [ | ||
@@ -24,3 +25,3 @@ "index.d.ts" | ||
"hasPackageJson": false, | ||
"contentHash": "b6ecde49a4e17603c62c5fafc43c42aff56862363fba7801b7bff8f4bf8c860d" | ||
"contentHash": "3a31f56a1035b088188dc4a54152975513602d90028a8dc2b4ea2caef12ab2d2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4630
18