2.0.7 • Published 4 months ago

@types/three-dat.gui v2.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Installation

npm install --save @types/three-dat.gui

Summary

This package contains type definitions for three-dat.gui (https://github.com/SolalDR/three-dat.gui#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three-dat.gui.

index.d.ts

// Type definitions for three-dat.gui 2.0
// Project: https://github.com/SolalDR/three-dat.gui#readme
// Definitions by: hkleungai <https://github.com/hkleungai>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.7

import THREE from 'three';

declare module 'dat.gui' {
    interface GUI {
        addCamera(name: string, camera: THREE.Camera): GUI;
        addFog(name: string, fog: THREE.Fog | THREE.FogExp2): GUI;
        addLight(name: string, light: THREE.Light): GUI;
        addMaterial(name: string, material: THREE.Material): GUI;
        addMesh(name: string, mesh: THREE.Mesh, options?: { recursive?: boolean | undefined }): GUI;
        addScene(name: string, mesh: THREE.Scene | THREE.Object3D, options?: { recursive?: boolean | undefined }): GUI;
        addObject3D(name: string, mesh: THREE.Object3D, options?: {
            recursive?: boolean | undefined,
            inner?: boolean | undefined,
            stepPosition?: number | undefined,
            stepRotation?: number | undefined,
            stepScale?: number | undefined
        }): GUI;
        addVector(name: string, vector: THREE.Vector | THREE.Euler, options?: { step?: number | undefined }): GUI;
    }
}

// FIXME: Get rid of the "unknown" here.
declare function init(dat: { GUI: unknown }): void;

export = init;

Additional Details

  • Last updated: Fri, 02 Jul 2021 19:37:02 GMT
  • Dependencies: @types/three
  • Global values: none

Credits

These definitions were written by hkleungai.

2.0.7

4 months ago

2.0.5

7 months ago

2.0.4

8 months ago

2.0.6

6 months ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

3 years ago

2.0.0

3 years ago