Updated to the latest codebase and refactored the folder structure
This commit is contained in:
parent
4796f2fd5c
commit
13de2acf99
|
|
@ -1,63 +1,63 @@
|
||||||
# Logs
|
# Logs
|
||||||
logs
|
logs
|
||||||
*.log
|
*.log
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
|
||||||
# Runtime data
|
# Runtime data
|
||||||
pids
|
pids
|
||||||
*.pid
|
*.pid
|
||||||
*.seed
|
*.seed
|
||||||
*.pid.lock
|
*.pid.lock
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
lib-cov
|
lib-cov
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# Coverage directory used by tools like istanbul
|
||||||
coverage
|
coverage
|
||||||
|
|
||||||
# nyc test coverage
|
# nyc test coverage
|
||||||
.nyc_output
|
.nyc_output
|
||||||
|
|
||||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||||
.grunt
|
.grunt
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
# Bower dependency directory (https://bower.io/)
|
||||||
bower_components
|
bower_components
|
||||||
|
|
||||||
# node-waf configuration
|
# node-waf configuration
|
||||||
.lock-wscript
|
.lock-wscript
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||||
build/Release
|
build/Release
|
||||||
|
|
||||||
# Dependency directories
|
# Dependency directories
|
||||||
node_modules/
|
node_modules/
|
||||||
jspm_packages/
|
jspm_packages/
|
||||||
|
|
||||||
# Typescript v1 declaration files
|
# Typescript v1 declaration files
|
||||||
typings/
|
typings/
|
||||||
|
|
||||||
# Optional npm cache directory
|
# Optional npm cache directory
|
||||||
.npm
|
.npm
|
||||||
|
|
||||||
# Optional eslint cache
|
# Optional eslint cache
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
|
||||||
# Optional REPL history
|
# Optional REPL history
|
||||||
.node_repl_history
|
.node_repl_history
|
||||||
|
|
||||||
# Output of 'npm pack'
|
# Output of 'npm pack'
|
||||||
*.tgz
|
*.tgz
|
||||||
|
|
||||||
# Yarn Integrity file
|
# Yarn Integrity file
|
||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
# dotenv environment variables file
|
# dotenv environment variables file
|
||||||
.env
|
.env
|
||||||
|
|
||||||
build/
|
build/
|
||||||
_ignore/
|
_ignore/
|
||||||
|
|
||||||
package.json.lock
|
package.json.lock
|
||||||
110
README.md
110
README.md
|
|
@ -1,55 +1,55 @@
|
||||||
skinview3d
|
skinview3d
|
||||||
========
|
========
|
||||||
|
|
||||||
[](https://travis-ci.org/to2mbn/skinview3d)
|
[](https://travis-ci.org/to2mbn/skinview3d)
|
||||||
[](https://www.npmjs.com/package/skinview3d)
|
[](https://www.npmjs.com/package/skinview3d)
|
||||||
[](https://github.com/to2mbn/skinview3d/blob/master/LICENSE)
|
[](https://github.com/to2mbn/skinview3d/blob/master/LICENSE)
|
||||||
|
|
||||||
Three.js powered Minecraft skin viewer.
|
Three.js powered Minecraft skin viewer.
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
* 1.8 Skins
|
* 1.8 Skins
|
||||||
* HD Skins
|
* HD Skins
|
||||||
* Capes
|
* Capes
|
||||||
* Slim arms
|
* Slim arms
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
```html
|
```html
|
||||||
<div id="skin_container"></div>
|
<div id="skin_container"></div>
|
||||||
<script>
|
<script>
|
||||||
let skinViewer = new skinview3d.SkinViewer({
|
let skinViewer = new skinview3d.SkinViewer({
|
||||||
domElement: document.getElementById("skin_container"),
|
domElement: document.getElementById("skin_container"),
|
||||||
slim: true,
|
slim: true,
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 600,
|
height: 600,
|
||||||
skinUrl: "img/skin.png",
|
skinUrl: "img/skin.png",
|
||||||
capeUrl: "img/cape.png"
|
capeUrl: "img/cape.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
// change the skin and cape
|
// change the skin and cape
|
||||||
// skinViewer.skinUrl = "img/skin.png";
|
// skinViewer.skinUrl = "img/skin.png";
|
||||||
// skinViewer.capeUrl = "img/cape.png";
|
// skinViewer.capeUrl = "img/cape.png";
|
||||||
|
|
||||||
// change the width and height
|
// change the width and height
|
||||||
// skinViewer.width = 300;
|
// skinViewer.width = 300;
|
||||||
// skinViewer.height = 400;
|
// skinViewer.height = 400;
|
||||||
|
|
||||||
// enable the mouse control feature
|
// enable the mouse control feature
|
||||||
let control = new skinview3d.SkinControl(skinViewer);
|
let control = new skinview3d.SkinControl(skinViewer);
|
||||||
|
|
||||||
// disable the 'right click to play/pause' feature
|
// disable the 'right click to play/pause' feature
|
||||||
// control.enableAnimationControl = false;
|
// control.enableAnimationControl = false;
|
||||||
|
|
||||||
skinViewer.animation = new skinview3d.CompositeAnimation();
|
skinViewer.animation = new skinview3d.CompositeAnimation();
|
||||||
|
|
||||||
// add an animation
|
// add an animation
|
||||||
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
||||||
|
|
||||||
// set its speed and some others
|
// set its speed and some others
|
||||||
walk.speed = 1.5;
|
walk.speed = 1.5;
|
||||||
// walk.paused = true;
|
// walk.paused = true;
|
||||||
</script>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
`npm run build`
|
`npm run build`
|
||||||
|
|
|
||||||
108
examples/hd.html
108
examples/hd.html
|
|
@ -1,55 +1,55 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>skinpreview3d.js example using jQuery</title>
|
<title>skinpreview3d.js example using jQuery</title>
|
||||||
<style>
|
<style>
|
||||||
body, html{
|
body, html{
|
||||||
background: #444444;
|
background: #444444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h2>HD</h2>
|
<h2>HD</h2>
|
||||||
<div id="skin_container"></div>
|
<div id="skin_container"></div>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>
|
||||||
<script type="text/javascript" src="/js/skinview3d.min.js"></script>
|
<script type="text/javascript" src="/js/skinview3d.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
let skinViewer = new skinview3d.SkinViewer({
|
let skinViewer = new skinview3d.SkinViewer({
|
||||||
domElement: document.getElementById("skin_container"),
|
domElement: document.getElementById("skin_container"),
|
||||||
slim: true,
|
slim: true,
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 600,
|
height: 600,
|
||||||
skinUrl: "/img/ironman_hd.png"
|
skinUrl: "/img/ironman_hd.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
// change the skin and cape
|
// change the skin and cape
|
||||||
// skinViewer.skinUrl = "img/skin.png";
|
// skinViewer.skinUrl = "img/skin.png";
|
||||||
// skinViewer.capeUrl = "img/cape.png";
|
// skinViewer.capeUrl = "img/cape.png";
|
||||||
|
|
||||||
// change the width and height
|
// change the width and height
|
||||||
// skinViewer.width = 300;
|
// skinViewer.width = 300;
|
||||||
// skinViewer.height = 400;
|
// skinViewer.height = 400;
|
||||||
|
|
||||||
// enable the mouse control feature
|
// enable the mouse control feature
|
||||||
let control = new skinview3d.SkinControl(skinViewer);
|
let control = new skinview3d.SkinControl(skinViewer);
|
||||||
|
|
||||||
// disable the 'right click to play/pause' feature
|
// disable the 'right click to play/pause' feature
|
||||||
// control.enableAnimationControl = false;
|
// control.enableAnimationControl = false;
|
||||||
|
|
||||||
skinViewer.animation = new skinview3d.CompositeAnimation();
|
skinViewer.animation = new skinview3d.CompositeAnimation();
|
||||||
|
|
||||||
// add an animation
|
// add an animation
|
||||||
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
||||||
|
|
||||||
// set its speed and some others
|
// set its speed and some others
|
||||||
walk.speed = 1.5;
|
walk.speed = 1.5;
|
||||||
// walk.paused = true;
|
// walk.paused = true;
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,54 +1,54 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>skinpreview3d.js example using pure javascript</title>
|
<title>skinpreview3d.js example using pure javascript</title>
|
||||||
<style>
|
<style>
|
||||||
body, html{
|
body, html{
|
||||||
background: #444444;
|
background: #444444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>pure javascript</h2>
|
<h2>pure javascript</h2>
|
||||||
<div id="skin_container"></div>
|
<div id="skin_container"></div>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>
|
||||||
<script type="text/javascript" src="/js/skinview3d.min.js"></script>
|
<script type="text/javascript" src="/js/skinview3d.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
let skinViewer = new skinview3d.SkinViewer({
|
let skinViewer = new skinview3d.SkinViewer({
|
||||||
domElement: document.getElementById("skin_container"),
|
domElement: document.getElementById("skin_container"),
|
||||||
slim: true,
|
slim: true,
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 600,
|
height: 600,
|
||||||
skinUrl: "/img/hatsune_miku.png",
|
skinUrl: "/img/hatsune_miku.png",
|
||||||
capeUrl: "/img/mojang_cape.png"
|
capeUrl: "/img/mojang_cape.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
// change the skin and cape
|
// change the skin and cape
|
||||||
// skinViewer.skinUrl = "img/skin.png";
|
// skinViewer.skinUrl = "img/skin.png";
|
||||||
// skinViewer.capeUrl = "img/cape.png";
|
// skinViewer.capeUrl = "img/cape.png";
|
||||||
|
|
||||||
// change the width and height
|
// change the width and height
|
||||||
// skinViewer.width = 300;
|
// skinViewer.width = 300;
|
||||||
// skinViewer.height = 400;
|
// skinViewer.height = 400;
|
||||||
|
|
||||||
// enable the mouse control feature
|
// enable the mouse control feature
|
||||||
let control = new skinview3d.SkinControl(skinViewer);
|
let control = new skinview3d.SkinControl(skinViewer);
|
||||||
|
|
||||||
// disable the 'right click to play/pause' feature
|
// disable the 'right click to play/pause' feature
|
||||||
// control.enableAnimationControl = false;
|
// control.enableAnimationControl = false;
|
||||||
|
|
||||||
skinViewer.animation = new skinview3d.CompositeAnimation();
|
skinViewer.animation = new skinview3d.CompositeAnimation();
|
||||||
|
|
||||||
// add an animation
|
// add an animation
|
||||||
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
||||||
|
|
||||||
// set its speed and some others
|
// set its speed and some others
|
||||||
walk.speed = 1.5;
|
walk.speed = 1.5;
|
||||||
// walk.paused = true;
|
// walk.paused = true;
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -1,58 +1,58 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>skinpreview3d.js example using jQuery</title>
|
<title>skinpreview3d.js example using jQuery</title>
|
||||||
<style>
|
<style>
|
||||||
body, html{
|
body, html{
|
||||||
background: #444444;
|
background: #444444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h2>jQuery</h2>
|
<h2>jQuery</h2>
|
||||||
<div id="skin_container"></div>
|
<div id="skin_container"></div>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.min.js"></script>
|
||||||
<script type="text/javascript" src="/js/skinview3d.min.js"></script>
|
<script type="text/javascript" src="/js/skinview3d.min.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
let skinViewer = new skinview3d.SkinViewer({
|
let skinViewer = new skinview3d.SkinViewer({
|
||||||
domElement: $("#skin_container")[0],
|
domElement: $("#skin_container")[0],
|
||||||
slim: false,
|
slim: false,
|
||||||
width: 600,
|
width: 600,
|
||||||
height: 600,
|
height: 600,
|
||||||
skinUrl: "/img/Hacksore.png",
|
skinUrl: "/img/Hacksore.png",
|
||||||
capeUrl: "/img/mojang_cape.png"
|
capeUrl: "/img/mojang_cape.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
// change the skin and cape
|
// change the skin and cape
|
||||||
// skinViewer.skinUrl = "img/skin.png";
|
// skinViewer.skinUrl = "img/skin.png";
|
||||||
// skinViewer.capeUrl = "img/cape.png";
|
// skinViewer.capeUrl = "img/cape.png";
|
||||||
|
|
||||||
// change the width and height
|
// change the width and height
|
||||||
// skinViewer.width = 300;
|
// skinViewer.width = 300;
|
||||||
// skinViewer.height = 400;
|
// skinViewer.height = 400;
|
||||||
|
|
||||||
// enable the mouse control feature
|
// enable the mouse control feature
|
||||||
let control = new skinview3d.SkinControl(skinViewer);
|
let control = new skinview3d.SkinControl(skinViewer);
|
||||||
|
|
||||||
// disable the 'right click to play/pause' feature
|
// disable the 'right click to play/pause' feature
|
||||||
// control.enableAnimationControl = false;
|
// control.enableAnimationControl = false;
|
||||||
|
|
||||||
skinViewer.animation = new skinview3d.CompositeAnimation();
|
skinViewer.animation = new skinview3d.CompositeAnimation();
|
||||||
|
|
||||||
// add an animation
|
// add an animation
|
||||||
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
let walk = skinViewer.animation.add(skinview3d.WalkAnimation);
|
||||||
|
|
||||||
// set its speed and some others
|
// set its speed and some others
|
||||||
walk.speed = 1.5;
|
walk.speed = 1.5;
|
||||||
// walk.paused = true;
|
// walk.paused = true;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
134
index.html
134
index.html
|
|
@ -1,68 +1,68 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>skinpreview3d.js examples</title>
|
<title>skinpreview3d.js examples</title>
|
||||||
<style>
|
<style>
|
||||||
body, html{
|
body, html{
|
||||||
background: #444444;
|
background: #444444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn{
|
.btn{
|
||||||
font-family: Verdana;
|
font-family: Verdana;
|
||||||
padding: 32px 12px 32px 12px;
|
padding: 32px 12px 32px 12px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
background: #333333;
|
background: #333333;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover{
|
.btn:hover{
|
||||||
color: #a7c1e2;
|
color: #a7c1e2;
|
||||||
background: #2d2d2d;
|
background: #2d2d2d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description{
|
.description{
|
||||||
margin: 24px 0 12px 0;
|
margin: 24px 0 12px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a{
|
a{
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #6a90dd;
|
color: #6a90dd;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<a target="_blank" href="https://github.com/to2mbn/skinview3d">skinview3d</a> lets you display Minecraft charecters on the web with Three.js.
|
<a target="_blank" href="https://github.com/to2mbn/skinview3d">skinview3d</a> lets you display Minecraft charecters on the web with Three.js.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="examples/jquery.html" class="btn">
|
<a href="examples/jquery.html" class="btn">
|
||||||
jQuery
|
jQuery
|
||||||
</a>
|
</a>
|
||||||
<a href="examples/javascript.html" class="btn">
|
<a href="examples/javascript.html" class="btn">
|
||||||
Native javascript
|
Native javascript
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="examples/hd.html" class="btn">
|
<a href="examples/hd.html" class="btn">
|
||||||
HD Skin
|
HD Skin
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
108
js/skinview3d.js
108
js/skinview3d.js
|
|
@ -296,38 +296,38 @@
|
||||||
var OrbitControls = function (_THREE$EventDispatche) {
|
var OrbitControls = function (_THREE$EventDispatche) {
|
||||||
inherits(OrbitControls, _THREE$EventDispatche);
|
inherits(OrbitControls, _THREE$EventDispatche);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @preserve
|
* @preserve
|
||||||
* The code was originally from https://github.com/mrdoob/three.js/blob/d45a042cf962e9b1aa9441810ba118647b48aacb/examples/js/controls/OrbitControls.js
|
* The code was originally from https://github.com/mrdoob/three.js/blob/d45a042cf962e9b1aa9441810ba118647b48aacb/examples/js/controls/OrbitControls.js
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* Copyright (C) 2010-2017 three.js authors
|
* Copyright (C) 2010-2017 three.js authors
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
* in the Software without restriction, including without limitation the rights
|
* in the Software without restriction, including without limitation the rights
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
* copies of the Software, and to permit persons to whom the Software is
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
* furnished to do so, subject to the following conditions:
|
* furnished to do so, subject to the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice shall be included in
|
* The above copyright notice and this permission notice shall be included in
|
||||||
* all copies or substantial portions of the Software.
|
* all copies or substantial portions of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author qiao / https://github.com/qiao
|
* @author qiao / https://github.com/qiao
|
||||||
* @author mrdoob / http://mrdoob.com
|
* @author mrdoob / http://mrdoob.com
|
||||||
* @author alteredq / http://alteredqualia.com/
|
* @author alteredq / http://alteredqualia.com/
|
||||||
* @author WestLangley / http://github.com/WestLangley
|
* @author WestLangley / http://github.com/WestLangley
|
||||||
* @author erich666 / http://erichaines.com
|
* @author erich666 / http://erichaines.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This set of controls performs orbiting, dollying (zooming), and panning.
|
// This set of controls performs orbiting, dollying (zooming), and panning.
|
||||||
|
|
@ -1213,29 +1213,29 @@
|
||||||
return SkinControl;
|
return SkinControl;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* skinview3d <https://github.com/to2mbn/skinview3d>
|
* skinview3d <https://github.com/to2mbn/skinview3d>
|
||||||
*
|
*
|
||||||
* Copyright (C) 2017 the original author or authors
|
* Copyright (C) 2017 the original author or authors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author yushijinhun <https://github.com/yushijinhun>
|
* @author yushijinhun <https://github.com/yushijinhun>
|
||||||
* @author Hacksore <https://github.com/Hacksore>
|
* @author Hacksore <https://github.com/Hacksore>
|
||||||
* @author Kent Rasmussen <https://github.com/earthiverse>
|
* @author Kent Rasmussen <https://github.com/earthiverse>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
exports.SkinObject = SkinObject;
|
exports.SkinObject = SkinObject;
|
||||||
|
|
|
||||||
|
|
@ -292,38 +292,38 @@ var PlayerObject = function (_THREE$Group3) {
|
||||||
var OrbitControls = function (_THREE$EventDispatche) {
|
var OrbitControls = function (_THREE$EventDispatche) {
|
||||||
inherits(OrbitControls, _THREE$EventDispatche);
|
inherits(OrbitControls, _THREE$EventDispatche);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @preserve
|
* @preserve
|
||||||
* The code was originally from https://github.com/mrdoob/three.js/blob/d45a042cf962e9b1aa9441810ba118647b48aacb/examples/js/controls/OrbitControls.js
|
* The code was originally from https://github.com/mrdoob/three.js/blob/d45a042cf962e9b1aa9441810ba118647b48aacb/examples/js/controls/OrbitControls.js
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* Copyright (C) 2010-2017 three.js authors
|
* Copyright (C) 2010-2017 three.js authors
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
* in the Software without restriction, including without limitation the rights
|
* in the Software without restriction, including without limitation the rights
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
* copies of the Software, and to permit persons to whom the Software is
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
* furnished to do so, subject to the following conditions:
|
* furnished to do so, subject to the following conditions:
|
||||||
*
|
*
|
||||||
* The above copyright notice and this permission notice shall be included in
|
* The above copyright notice and this permission notice shall be included in
|
||||||
* all copies or substantial portions of the Software.
|
* all copies or substantial portions of the Software.
|
||||||
*
|
*
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author qiao / https://github.com/qiao
|
* @author qiao / https://github.com/qiao
|
||||||
* @author mrdoob / http://mrdoob.com
|
* @author mrdoob / http://mrdoob.com
|
||||||
* @author alteredq / http://alteredqualia.com/
|
* @author alteredq / http://alteredqualia.com/
|
||||||
* @author WestLangley / http://github.com/WestLangley
|
* @author WestLangley / http://github.com/WestLangley
|
||||||
* @author erich666 / http://erichaines.com
|
* @author erich666 / http://erichaines.com
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This set of controls performs orbiting, dollying (zooming), and panning.
|
// This set of controls performs orbiting, dollying (zooming), and panning.
|
||||||
|
|
@ -1209,29 +1209,29 @@ var SkinControl = function () {
|
||||||
return SkinControl;
|
return SkinControl;
|
||||||
}();
|
}();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* skinview3d <https://github.com/to2mbn/skinview3d>
|
* skinview3d <https://github.com/to2mbn/skinview3d>
|
||||||
*
|
*
|
||||||
* Copyright (C) 2017 the original author or authors
|
* Copyright (C) 2017 the original author or authors
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
* (at your option) any later version.
|
* (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author yushijinhun <https://github.com/yushijinhun>
|
* @author yushijinhun <https://github.com/yushijinhun>
|
||||||
* @author Hacksore <https://github.com/Hacksore>
|
* @author Hacksore <https://github.com/Hacksore>
|
||||||
* @author Kent Rasmussen <https://github.com/earthiverse>
|
* @author Kent Rasmussen <https://github.com/earthiverse>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export { SkinObject, CapeObject, PlayerObject, SkinViewer, SkinControl, CompositeAnimation, WalkAnimation };
|
export { SkinObject, CapeObject, PlayerObject, SkinViewer, SkinControl, CompositeAnimation, WalkAnimation };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue