add 'model' param to SkinViewerOptions (#84)

This commit is contained in:
Haowei Wen 2021-05-18 22:17:10 +08:00
parent 3de8b09730
commit 32cc449cc9
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ export interface SkinViewerOptions {
width?: number;
height?: number;
skin?: RemoteImage | TextureSource;
model?: ModelType | "auto-detect";
cape?: RemoteImage | TextureSource;
/**
@ -100,7 +101,7 @@ export class SkinViewer {
this.scene.add(this.playerObject);
if (options.skin !== undefined) {
this.loadSkin(options.skin);
this.loadSkin(options.skin, options.model);
}
if (options.cape !== undefined) {
this.loadCape(options.cape);