bump skinview-utils to 0.5.3

This commit is contained in:
yushijinhun 2020-06-17 11:10:30 +08:00
parent 943d1d3c5a
commit 68ee9181b7
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
3 changed files with 7 additions and 15 deletions

6
package-lock.json generated
View File

@ -2637,9 +2637,9 @@
"dev": true
},
"skinview-utils": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/skinview-utils/-/skinview-utils-0.5.1.tgz",
"integrity": "sha512-6HUspYq2s1cWm7ZiiyfYanGEJ8rUAHC/qChBqFD2m5WGQ4Oy2FkInSFB8u1sB0oM49cmEFye09LUwdL6ev/72Q=="
"version": "0.5.3",
"resolved": "https://registry.npmjs.org/skinview-utils/-/skinview-utils-0.5.3.tgz",
"integrity": "sha512-abvsUEiHjeUWGPmrTpVv4a2J6EhxTpdZAWg7kGHncKJyH91JKPqxnt8JvuehfO7d5J92pBLMiDV6F2IZaHZOdg=="
},
"slice-ansi": {
"version": "2.1.0",

View File

@ -38,7 +38,7 @@
"bundles"
],
"dependencies": {
"skinview-utils": "^0.5.1",
"skinview-utils": "^0.5.3",
"three": "^0.117.1"
},
"devDependencies": {

View File

@ -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 { RootAnimation } from "./animation.js";
import { PlayerObject } from "./model.js";
@ -73,18 +73,10 @@ class SkinViewer {
window.requestAnimationFrame(() => this.draw());
if (options.skin !== undefined) {
if (isTextureSource(options.skin)) {
this.loadSkin(options.skin);
} else {
this.loadSkin(options.skin);
}
this.loadSkin(options.skin);
}
if (options.cape !== undefined) {
if (isTextureSource(options.cape)) {
this.loadCape(options.cape);
} else {
this.loadCape(options.cape);
}
this.loadCape(options.cape);
}
if (options.width !== undefined) {
this.width = options.width;