Socket
Socket
Sign inDemoInstall

@loaders.gl/gltf

Package Overview
Dependencies
19
Maintainers
9
Versions
324
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.2.0-alpha.6 to 4.2.0-beta.1

24

dist/glb-loader.d.ts

@@ -1,2 +0,2 @@

import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils';
import type { LoaderOptions } from '@loaders.gl/loader-utils';
import type { GLB } from "./lib/types/glb-types.js";

@@ -15,3 +15,23 @@ import type { ParseGLBOptions } from "./lib/parsers/parse-glb.js";

*/
export declare const GLBLoader: LoaderWithParser<GLB, never, GLBLoaderOptions>;
export declare const GLBLoader: {
readonly dataType: GLB;
readonly batchType: never;
readonly name: "GLB";
readonly id: "glb";
readonly module: "gltf";
readonly version: any;
readonly extensions: ["glb"];
readonly mimeTypes: ["model/gltf-binary"];
readonly binary: true;
readonly parse: typeof parse;
readonly parseSync: typeof parseSync;
readonly options: {
readonly glb: {
readonly strict: false;
};
};
};
declare function parse(arrayBuffer: ArrayBuffer, options?: GLBLoaderOptions): Promise<GLB>;
declare function parseSync(arrayBuffer: ArrayBuffer, options?: GLBLoaderOptions): GLB;
export {};
//# sourceMappingURL=glb-loader.d.ts.map

@@ -8,2 +8,4 @@ import { VERSION } from "./lib/utils/version.js";

export const GLBLoader = {
dataType: null,
batchType: null,
name: 'GLB',

@@ -10,0 +12,0 @@ id: 'glb',

@@ -1,2 +0,2 @@

import type { WriterWithEncoder, WriterOptions } from '@loaders.gl/loader-utils';
import type { WriterOptions } from '@loaders.gl/loader-utils';
import type { GLB } from "./lib/types/glb-types.js";

@@ -11,3 +11,18 @@ import type { GLBEncodeOptions } from "./lib/encoders/encode-glb.js";

*/
export declare const GLBWriter: WriterWithEncoder<GLB, never, GLBWriterOptions>;
export declare const GLBWriter: {
readonly name: "GLB";
readonly id: "glb";
readonly module: "gltf";
readonly version: any;
readonly extensions: ["glb"];
readonly mimeTypes: ["model/gltf-binary"];
readonly binary: true;
readonly options: {
readonly glb: {};
};
readonly encode: (glb: GLB, options?: GLBWriterOptions) => Promise<ArrayBuffer>;
readonly encodeSync: typeof encodeSync;
};
declare function encodeSync(glb: any, options: any): ArrayBuffer;
export {};
//# sourceMappingURL=glb-writer.d.ts.map

@@ -1,2 +0,2 @@

import type { LoaderWithParser, LoaderOptions } from '@loaders.gl/loader-utils';
import type { LoaderOptions } from '@loaders.gl/loader-utils';
import type { DracoLoaderOptions } from '@loaders.gl/draco';

@@ -17,4 +17,26 @@ import type { ImageLoaderOptions } from '@loaders.gl/images';

*/
export declare const GLTFLoader: LoaderWithParser<GLTFWithBuffers, never, GLBLoaderOptions>;
export declare const GLTFLoader: {
readonly dataType: GLTFWithBuffers;
readonly batchType: never;
readonly name: "glTF";
readonly id: "gltf";
readonly module: "gltf";
readonly version: any;
readonly extensions: ["gltf", "glb"];
readonly mimeTypes: ["model/gltf+json", "model/gltf-binary"];
readonly text: true;
readonly binary: true;
readonly tests: ["glTF"];
readonly parse: typeof parse;
readonly options: {
readonly gltf: {
readonly normalize: true;
readonly loadBuffers: true;
readonly loadImages: true;
readonly decompressMeshes: true;
};
readonly log: Console;
};
};
export declare function parse(arrayBuffer: any, options: GLTFLoaderOptions | undefined, context: any): Promise<GLTFWithBuffers>;
//# sourceMappingURL=gltf-loader.d.ts.map

@@ -7,2 +7,4 @@ import { VERSION } from "./lib/utils/version.js";

export const GLTFLoader = {
dataType: null,
batchType: null,
name: 'glTF',

@@ -9,0 +11,0 @@ id: 'gltf',

20

dist/gltf-writer.d.ts

@@ -1,2 +0,2 @@

import type { Writer, WriterOptions } from '@loaders.gl/loader-utils';
import type { WriterOptions, WriterWithEncoder } from '@loaders.gl/loader-utils';
export type GLTFWriterOptions = WriterOptions & {

@@ -9,19 +9,3 @@ gltf?: {};

*/
export declare const GLTFWriter: {
name: string;
id: string;
module: string;
version: any;
extensions: string[];
mimeTypes: string[];
binary: boolean;
options: {
gltf: {};
};
encode: (gltf: any, options?: GLTFWriterOptions) => Promise<ArrayBuffer>;
encodeSync: typeof encodeSync;
};
declare function encodeSync(gltf: any, options?: GLTFWriterOptions): ArrayBuffer;
export declare const _TypecheckGLBLoader: Writer;
export {};
export declare const GLTFWriter: WriterWithEncoder<any, never, GLTFWriterOptions>;
//# sourceMappingURL=gltf-writer.d.ts.map

@@ -7,2 +7,4 @@ import { VERSION } from "./lib/utils/version.js";

export const GLTFWriter = {
dataType: null,
batchType: null,
name: 'glTF',

@@ -30,3 +32,1 @@ id: 'gltf',

}
// TYPE TESTS - TODO find a better way than exporting junk
export const _TypecheckGLBLoader = GLTFWriter;
// Version constant cannot be imported, it needs to correspond to the build version of **this** module.
// __VERSION__ is injected by babel-plugin-version-inline
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
export const VERSION = typeof "4.2.0-alpha.5" !== 'undefined' ? "4.2.0-alpha.5" : 'latest';
export const VERSION = typeof "4.2.0-alpha.6" !== 'undefined' ? "4.2.0-alpha.6" : 'latest';
{
"name": "@loaders.gl/gltf",
"version": "4.2.0-alpha.6",
"version": "4.2.0-beta.1",
"description": "Framework-independent loader for the glTF format",

@@ -46,7 +46,7 @@ "license": "MIT",

"dependencies": {
"@loaders.gl/draco": "4.2.0-alpha.6",
"@loaders.gl/images": "4.2.0-alpha.6",
"@loaders.gl/loader-utils": "4.2.0-alpha.6",
"@loaders.gl/schema": "4.2.0-alpha.6",
"@loaders.gl/textures": "4.2.0-alpha.6",
"@loaders.gl/draco": "4.2.0-beta.1",
"@loaders.gl/images": "4.2.0-beta.1",
"@loaders.gl/loader-utils": "4.2.0-beta.1",
"@loaders.gl/schema": "4.2.0-beta.1",
"@loaders.gl/textures": "4.2.0-beta.1",
"@math.gl/core": "^4.0.0"

@@ -57,3 +57,3 @@ },

},
"gitHead": "37bd8ca71763529f18727ee4bf29dd176aa914ca"
"gitHead": "c386a9196516fe3ff24847b40e6c77be039cf905"
}

@@ -19,3 +19,5 @@ import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';

*/
export const GLBLoader: LoaderWithParser<GLB, never, GLBLoaderOptions> = {
export const GLBLoader = {
dataType: null as unknown as GLB,
batchType: null as never,
name: 'GLB',

@@ -35,3 +37,3 @@ id: 'glb',

}
};
} as const satisfies LoaderWithParser<GLB, never, GLBLoaderOptions>;

@@ -38,0 +40,0 @@ async function parse(arrayBuffer: ArrayBuffer, options?: GLBLoaderOptions): Promise<GLB> {

@@ -19,3 +19,3 @@ // loaders.gl

*/
export const GLBWriter: WriterWithEncoder<GLB, never, GLBWriterOptions> = {
export const GLBWriter = {
name: 'GLB',

@@ -35,3 +35,3 @@ id: 'glb',

encodeSync
};
} as const satisfies WriterWithEncoder<GLB, never, GLBWriterOptions>;

@@ -38,0 +38,0 @@ function encodeSync(glb, options) {

@@ -25,3 +25,5 @@ import type {LoaderWithParser, LoaderOptions} from '@loaders.gl/loader-utils';

*/
export const GLTFLoader: LoaderWithParser<GLTFWithBuffers, never, GLBLoaderOptions> = {
export const GLTFLoader = {
dataType: null as unknown as GLTFWithBuffers,
batchType: null as never,
name: 'glTF',

@@ -50,3 +52,3 @@ id: 'gltf',

}
};
} as const satisfies LoaderWithParser<GLTFWithBuffers, never, GLBLoaderOptions>;

@@ -53,0 +55,0 @@ export async function parse(

@@ -1,2 +0,2 @@

import type {Writer, WriterOptions} from '@loaders.gl/loader-utils';
import type {WriterOptions, WriterWithEncoder} from '@loaders.gl/loader-utils';
import {VERSION} from './lib/utils/version';

@@ -14,2 +14,5 @@ import {encodeGLTFSync} from './lib/encoders/encode-gltf';

export const GLTFWriter = {
dataType: null as unknown as any,
batchType: null as never,
name: 'glTF',

@@ -29,3 +32,3 @@ id: 'gltf',

encodeSync
};
} as WriterWithEncoder<any, never, GLTFWriterOptions>;

@@ -43,4 +46,1 @@ function encodeSync(gltf, options: GLTFWriterOptions = {}) {

}
// TYPE TESTS - TODO find a better way than exporting junk
export const _TypecheckGLBLoader: Writer = GLTFWriter;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc