change type of `SkinViewer.domElement` to `Node`
`Node` is enough for use
This commit is contained in:
parent
14fabb3e02
commit
70c2b36339
|
|
@ -4,7 +4,7 @@ import { Animation } from "./animation";
|
||||||
import { PlayerObject } from "./model";
|
import { PlayerObject } from "./model";
|
||||||
|
|
||||||
interface SkinViewerOptions {
|
interface SkinViewerOptions {
|
||||||
domElement: Element;
|
domElement: Node;
|
||||||
animation?: Animation;
|
animation?: Animation;
|
||||||
slim?: boolean;
|
slim?: boolean;
|
||||||
skinUrl?: string;
|
skinUrl?: string;
|
||||||
|
|
@ -18,7 +18,7 @@ export class SkinViewer {
|
||||||
public capeUrl: string;
|
public capeUrl: string;
|
||||||
public width: number;
|
public width: number;
|
||||||
public height: number;
|
public height: number;
|
||||||
public readonly domElement: Element;
|
public readonly domElement: Node;
|
||||||
public animation: Animation;
|
public animation: Animation;
|
||||||
public animationPaused: boolean;
|
public animationPaused: boolean;
|
||||||
public animationTime: number;
|
public animationTime: number;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue