@types/obj-file-parser
TypeScript icon, indicating that this package has built-in type declarations

0.5.2 • Public • Published

Installation

npm install --save @types/obj-file-parser

Summary

This package contains type definitions for obj-file-parser (https://github.com/wesunwin/obj-file-parser).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/obj-file-parser.

index.d.ts

export as namespace ObjFileParser;

/* Class module */
declare class ObjFileParser {
    constructor(fileContents: any, defaultModelName?: any);
    parse(): ObjFileParser.ObjFile;
}

/* Additional exported interfaces */
declare namespace ObjFileParser {
    interface ObjFile {
        models: ObjModel[];
        materialLibraries: any[];
    }

    interface ObjModel {
        name: string;
        vertices: Vertex[];
        textureCoords: VertexTexture[];
        vertexNormals: Vertex[];
        faces: Face[];
    }

    interface Face {
        material: any;
        group: string;
        smoothingGroup: number;
        vertices: FaceVertex[];
    }

    interface FaceVertex {
        vertexIndex: number;
        textureCoordsIndex: number;
        vertexNormalIndex: number;
    }

    interface Vertex {
        x: number;
        y: number;
        z: number;
    }

    interface VertexTexture {
        u: number;
        v: number;
        w: number;
    }
}

export = ObjFileParser;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Ben Coleman.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.2513ts5.7
0.5.2513ts5.6
0.5.2513latest
0.5.2513ts4.5
0.5.2513ts4.6
0.5.2513ts4.7
0.5.2513ts4.8
0.5.2513ts4.9
0.5.2513ts5.0
0.5.2513ts5.1
0.5.2513ts5.2
0.5.2513ts5.3
0.5.2513ts5.4
0.5.2513ts5.5
0.5.2513ts5.8
0.5.02ts2.0
0.5.02ts2.1
0.5.02ts2.2
0.5.02ts2.3
0.5.02ts2.4
0.5.02ts2.5
0.5.02ts2.6
0.5.02ts2.7
0.5.02ts2.8
0.5.02ts2.9
0.5.02ts3.0
0.5.02ts3.1
0.5.02ts3.2
0.5.02ts3.3
0.5.02ts3.4
0.5.02ts3.5
0.5.02ts3.6
0.5.02ts3.7
0.5.02ts3.8
0.5.02ts3.9
0.5.02ts4.0
0.5.02ts4.1
0.5.02ts4.2
0.5.02ts4.3
0.5.02ts4.4

Version History

VersionDownloads (Last 7 Days)Published
0.5.2513
0.5.10
0.5.02

Package Sidebar

Install

npm i @types/obj-file-parser

Weekly Downloads

515

Version

0.5.2

License

MIT

Unpacked Size

4.59 kB

Total Files

5

Last publish

Collaborators

  • types