🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@gltf-transform/view

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gltf-transform/view - npm Package Compare versions

Comparing version
4.1.2
to
4.1.3
+43
-43
package.json
{
"name": "@gltf-transform/view",
"version": "4.1.2",
"repository": "github:donmccurdy/glTF-Transform-View",
"homepage": "https://gltf-transform.dev/",
"description": "Syncs a glTF-Transform Document with a three.js scene graph",
"author": "Don McCurdy <dm@donmccurdy.com>",
"license": "BlueOak-1.0.0",
"funding": "https://github.com/sponsors/donmccurdy",
"type": "module",
"sideEffects": false,
"exports": {
"types": "./dist/index.d.ts",
"default": "./dist/view.modern.js"
},
"types": "./dist/index.d.ts",
"module": "./dist/view.modern.js",
"source": "./src/index.ts",
"browserslist": [
"last 2 and_chr versions",
"last 2 chrome versions",
"last 2 opera versions",
"last 2 ios_saf versions",
"last 2 safari versions",
"last 2 firefox versions"
],
"scripts": {
"dist": "microbundle --no-compress --format modern",
"watch": "microbundle watch --no-compress --format modern",
"dev": "vite -c examples/vite.config.js"
},
"files": [
"dist/",
"src/",
"README.md",
"LICENSE.md"
],
"peerDependencies": {
"@gltf-transform/core": ">=4.0.0",
"@gltf-transform/extensions": ">=4.0.0",
"@types/three": ">=0.155.0",
"three": ">=0.155.0"
},
"gitHead": "a743985ddfa2b9890e4849d951f966e028412387"
"name": "@gltf-transform/view",
"version": "4.1.3",
"repository": "github:donmccurdy/glTF-Transform-View",
"homepage": "https://gltf-transform.dev/",
"description": "Syncs a glTF-Transform Document with a three.js scene graph",
"author": "Don McCurdy <dm@donmccurdy.com>",
"license": "BlueOak-1.0.0",
"funding": "https://github.com/sponsors/donmccurdy",
"type": "module",
"sideEffects": false,
"exports": {
"types": "./dist/index.d.ts",
"default": "./dist/view.modern.js"
},
"types": "./dist/index.d.ts",
"module": "./dist/view.modern.js",
"source": "./src/index.ts",
"browserslist": [
"last 2 and_chr versions",
"last 2 chrome versions",
"last 2 opera versions",
"last 2 ios_saf versions",
"last 2 safari versions",
"last 2 firefox versions"
],
"scripts": {
"build": "microbundle --no-compress --format modern",
"build:watch": "microbundle watch --no-compress --format modern",
"dev": "vite -c examples/vite.config.js"
},
"files": [
"dist/",
"src/",
"README.md",
"LICENSE.md"
],
"peerDependencies": {
"@gltf-transform/core": ">=4.0.0",
"@gltf-transform/extensions": ">=4.0.0",
"@types/three": ">=0.155.0",
"three": ">=0.155.0"
},
"gitHead": "2b41e357da051b2326a549fd7a581fa1f9853ad9"
}

@@ -67,3 +67,3 @@ import { Group, Material, Object3D, Texture } from 'three';

assert(this._ready);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
return this._impl.findValues(source as any);

@@ -80,3 +80,3 @@ }

assert(this._ready);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
return this._impl.findDef(view as any);

@@ -83,0 +83,0 @@ }

@@ -58,5 +58,5 @@ import { PropertyType, ExtensionProperty as ExtensionPropertyDef } from '@gltf-transform/core';

bind(def: SkinDef): SkinSubject;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
bind(def: PropertyDef): Subject<PropertyDef, any>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
bind(def: PropertyDef | null): Subject<PropertyDef, any> | null;

@@ -77,3 +77,3 @@

private _disposed = false;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
private _subjects = new Map<PropertyDef, Subject<PropertyDef, any>>();

@@ -101,3 +101,3 @@ private _outputValues = new WeakMap<PropertyDef, Set<object>>();

// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
private _addSubject(subject: Subject<PropertyDef, any>): void {

@@ -121,5 +121,5 @@ const def = subject.def;

bind(def: SkinDef): SkinSubject;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
bind(def: PropertyDef): Subject<PropertyDef, any>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
bind(def: PropertyDef | null): Subject<PropertyDef, any> | null {

@@ -129,3 +129,3 @@ if (!def) return null;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
// biome-ignore lint/suspicious/noExplicitAny: TODO
let subject: Subject<PropertyDef, any>;

@@ -257,3 +257,2 @@ switch (def.propertyType) {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
for (const [_, subject] of this._subjects) subject.dispose();

@@ -260,0 +259,0 @@ this._subjects.clear();

@@ -27,6 +27,4 @@ import { Texture as TextureDef } from '@gltf-transform/core';

const NULL_IMAGE_URI =
// eslint-disable-next-line max-len
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAABNJREFUGFdj/M9w9z8DEmAkXQAAyCMLcU6pckIAAAAASUVORK5CYII=';
const LOADING_IMAGE_URI =
// eslint-disable-next-line max-len
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=';

@@ -88,3 +86,2 @@

clear(): void {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
for (const [_, texture] of this._cache) {

@@ -91,0 +88,0 @@ texture.dispose();

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

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