Add .js extension to imports
This commit is contained in:
parent
58364c82d2
commit
5363e92822
|
|
@ -1,5 +1,5 @@
|
||||||
import { Clock } from "three";
|
import { Clock } from "three";
|
||||||
import { PlayerObject } from "./model";
|
import { PlayerObject } from "./model.js";
|
||||||
|
|
||||||
export interface IAnimation {
|
export interface IAnimation {
|
||||||
play(player: PlayerObject, time: number): void;
|
play(player: PlayerObject, time: number): void;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { EventDispatcher, MOUSE, OrthographicCamera, PerspectiveCamera, Quaternion, Spherical, Vector2, Vector3 } from "three";
|
import { EventDispatcher, MOUSE, OrthographicCamera, PerspectiveCamera, Quaternion, Spherical, Vector2, Vector3 } from "three";
|
||||||
import { SkinViewer } from "./viewer";
|
import { SkinViewer } from "./viewer.js";
|
||||||
|
|
||||||
const STATE = {
|
const STATE = {
|
||||||
NONE: - 1,
|
NONE: - 1,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
export * from "./model";
|
export * from "./model.js";
|
||||||
export * from "./viewer";
|
export * from "./viewer.js";
|
||||||
export * from "./orbit_controls";
|
export * from "./orbit_controls.js";
|
||||||
export * from "./animation";
|
export * from "./animation.js";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { NearestFilter, PerspectiveCamera, Scene, Texture, Vector2, WebGLRenderer } from "three";
|
import { NearestFilter, PerspectiveCamera, Scene, Texture, Vector2, WebGLRenderer } from "three";
|
||||||
import { RootAnimation } from "./animation";
|
import { RootAnimation } from "./animation.js";
|
||||||
import { PlayerObject } from "./model";
|
import { PlayerObject } from "./model.js";
|
||||||
import { isSlimSkin, loadCapeToCanvas, loadSkinToCanvas } from "skinview-utils";
|
import { isSlimSkin, loadCapeToCanvas, loadSkinToCanvas } from "skinview-utils";
|
||||||
|
|
||||||
export interface SkinViewerOptions {
|
export interface SkinViewerOptions {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue