bump skinview-utils to 0.5.3
This commit is contained in:
parent
943d1d3c5a
commit
68ee9181b7
|
|
@ -2637,9 +2637,9 @@
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"skinview-utils": {
|
"skinview-utils": {
|
||||||
"version": "0.5.1",
|
"version": "0.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/skinview-utils/-/skinview-utils-0.5.1.tgz",
|
"resolved": "https://registry.npmjs.org/skinview-utils/-/skinview-utils-0.5.3.tgz",
|
||||||
"integrity": "sha512-6HUspYq2s1cWm7ZiiyfYanGEJ8rUAHC/qChBqFD2m5WGQ4Oy2FkInSFB8u1sB0oM49cmEFye09LUwdL6ev/72Q=="
|
"integrity": "sha512-abvsUEiHjeUWGPmrTpVv4a2J6EhxTpdZAWg7kGHncKJyH91JKPqxnt8JvuehfO7d5J92pBLMiDV6F2IZaHZOdg=="
|
||||||
},
|
},
|
||||||
"slice-ansi": {
|
"slice-ansi": {
|
||||||
"version": "2.1.0",
|
"version": "2.1.0",
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
"bundles"
|
"bundles"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"skinview-utils": "^0.5.1",
|
"skinview-utils": "^0.5.3",
|
||||||
"three": "^0.117.1"
|
"three": "^0.117.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { applyMixins, CapeContainer, ModelType, SkinContainer, RemoteImage, TextureSource, isTextureSource } from "skinview-utils";
|
import { applyMixins, CapeContainer, ModelType, SkinContainer, RemoteImage, TextureSource } from "skinview-utils";
|
||||||
import { NearestFilter, PerspectiveCamera, Scene, Texture, Vector2, WebGLRenderer } from "three";
|
import { NearestFilter, PerspectiveCamera, Scene, Texture, Vector2, WebGLRenderer } from "three";
|
||||||
import { RootAnimation } from "./animation.js";
|
import { RootAnimation } from "./animation.js";
|
||||||
import { PlayerObject } from "./model.js";
|
import { PlayerObject } from "./model.js";
|
||||||
|
|
@ -73,18 +73,10 @@ class SkinViewer {
|
||||||
window.requestAnimationFrame(() => this.draw());
|
window.requestAnimationFrame(() => this.draw());
|
||||||
|
|
||||||
if (options.skin !== undefined) {
|
if (options.skin !== undefined) {
|
||||||
if (isTextureSource(options.skin)) {
|
|
||||||
this.loadSkin(options.skin);
|
this.loadSkin(options.skin);
|
||||||
} else {
|
|
||||||
this.loadSkin(options.skin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (options.cape !== undefined) {
|
if (options.cape !== undefined) {
|
||||||
if (isTextureSource(options.cape)) {
|
|
||||||
this.loadCape(options.cape);
|
this.loadCape(options.cape);
|
||||||
} else {
|
|
||||||
this.loadCape(options.cape);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (options.width !== undefined) {
|
if (options.width !== undefined) {
|
||||||
this.width = options.width;
|
this.width = options.width;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue