@types/three-dat.gui
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

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

import THREE = require("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.Vector2 | THREE.Vector3 | THREE.Vector4 | 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: Mon, 08 Jan 2024 14:35:54 GMT
  • Dependencies: @types/three

Credits

These definitions were written by hkleungai.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/three-dat.gui

Weekly Downloads

33

Version

2.0.7

License

MIT

Unpacked Size

5 kB

Total Files

5

Last publish

Collaborators

  • types