Initial commit — jibo-cli v3.0.7 with bundled node_modules
11
node_modules/animation-utilities/LICENSE.txt
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
animation-utilities - Animation utilities for Jibo's coordinated expression output
|
||||
@version v2.8.3
|
||||
|
||||
IFR components: Copyright (c) 2011-2017, IF Robots LLC. All rights reserved.
|
||||
Other components: Copyright (c) 2012-2017, Jibo, Inc. All rights reserved.
|
||||
|
||||
IFR components provided to Jibo, Inc. by IF Robots LLC for use only in the Jibo SDK.
|
||||
|
||||
All use of the Jibo SDK is subject to the Jibo SDK End User License Agreement (EULA)
|
||||
distributed herewith. If you did not receive a copy of the EULA, you may view a
|
||||
copy at https://developers.jibo.com/license.
|
||||
30
node_modules/animation-utilities/README.md
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# animation-utilities
|
||||
|
||||
Animation utilities for Jibo's coordinated expression output.
|
||||
|
||||
This module is composed of a number of useful libraries:
|
||||
- **animation-animate:** Implementation classes for the animate API: animation builders, look-ats, transitions, etc.
|
||||
- **animation-body:** Classes for connecting animation-utilities to Jibo's body services/simulator.
|
||||
- **animation-macros:** Helper macros for common animation API setup tasks.
|
||||
- **animation-visualize:** Implementation of the visualize API: WebGL canvases for Jibo's eye and body.
|
||||
- **geometry-info:** Utility classes for working with robot configuration and geometry info.
|
||||
- **geometry-config:** Content files specifying robot geometry, kinematics, and related config.
|
||||
- **ifr-core:** IFR core utility classes.
|
||||
- **ifr-geometry:** IFR base classes for 3D geometry/graphics.
|
||||
- **ifr-motion:** IFR tools for working with robot degrees-of-freedom, procedural motions, and animations.
|
||||
- **ifr-visualizer:** IFR utility classes for working with 3D scenes.
|
||||
|
||||
## Authors
|
||||
|
||||
Jesse Gray and Matt Berlin @ IF Robots LLC
|
||||
|
||||
## License
|
||||
|
||||
IFR components: Copyright (c) 2011-2016, IF Robots LLC. All rights reserved.
|
||||
Other components: Copyright (c) 2012-2016, Jibo, Inc. All rights reserved.
|
||||
|
||||
IFR components provided to Jibo, Inc. by IF Robots LLC for use only in the Jibo SDK.
|
||||
|
||||
All use of the Jibo SDK is subject to the Jibo SDK End User License Agreement (EULA)
|
||||
distributed herewith. If you did not receive a copy of the EULA, you may view a
|
||||
copy at https://developers.jibo.com/license.
|
||||
204
node_modules/animation-utilities/dts/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,204 @@
|
||||
declare class DOFInfo {
|
||||
getControlType():string;
|
||||
getDOFName():string;
|
||||
getLimit(limitName:string):number;
|
||||
getMax():number;
|
||||
getMin():number;
|
||||
isCyclic():boolean;
|
||||
isMetric():boolean;
|
||||
}
|
||||
declare class DOFSet {
|
||||
getDOFs():string[];
|
||||
hasDOF(dofName:string):boolean;
|
||||
minus(otherSet:DOFSet):DOFSet;
|
||||
plus(otherSet:DOFSet):DOFSet;
|
||||
}
|
||||
export declare namespace Animate {
|
||||
export const AnimationEventType:{
|
||||
STARTED: "STARTED",
|
||||
STOPPED: "STOPPED",
|
||||
CANCELLED: "CANCELLED",
|
||||
EVENT: "EVENT"
|
||||
};
|
||||
export const dofs:{
|
||||
ALL: DOFSet,
|
||||
BASE: DOFSet,
|
||||
BODY: DOFSet,
|
||||
EYE: DOFSet,
|
||||
LED: DOFSet,
|
||||
OVERLAY: DOFSet,
|
||||
SCREEN: DOFSet,
|
||||
EYE_ROOT: DOFSet,
|
||||
EYE_DEFORM: DOFSet,
|
||||
EYE_RENDER: DOFSet,
|
||||
EYE_TRANSLATE: DOFSet,
|
||||
EYE_ROTATE: DOFSet,
|
||||
EYE_COLOR: DOFSet,
|
||||
EYE_TEXTURE: DOFSet,
|
||||
OVERLAY_ROOT: DOFSet,
|
||||
OVERLAY_DEFORM: DOFSet,
|
||||
OVERLAY_RENDER: DOFSet,
|
||||
OVERLAY_TRANSLATE: DOFSet,
|
||||
OVERLAY_ROTATE: DOFSet,
|
||||
OVERLAY_COLOR: DOFSet,
|
||||
OVERLAY_TEXTURE: DOFSet,
|
||||
SCREEN_BG_RENDER: DOFSet,
|
||||
SCREEN_BG_COLOR: DOFSet,
|
||||
SCREEN_BG_TEXTURE: DOFSet
|
||||
};
|
||||
export const LookatEventType: {
|
||||
STARTED: "STARTED",
|
||||
TARGET_REACHED: "TARGET_REACHED",
|
||||
TARGET_SUPERSEDED: "TARGET_SUPERSEDED",
|
||||
STOPPED: "STOPPED",
|
||||
CANCELLED: "CANCELLED"
|
||||
};
|
||||
export function getRobotInfo():RobotInfo;
|
||||
export function getClock():Clock;
|
||||
export function createAnimationBuilder(uri:string, callback:(builder:AnimationBuilder)=>void, forceReload?:boolean):void;
|
||||
export function createAnimationBuilderFromData(animationData:any, parentDirectoryURI?:string, cacheKey?:string):AnimationBuilder;
|
||||
export function createLookatBuilder():LookatBuilder;
|
||||
export function blink(interrupt?:boolean):void;
|
||||
export function setEyeVisible(visible:boolean):void;
|
||||
export function setEyeScale(scale:number):void;
|
||||
export function setEyeScaleXY(xScale:number, yScale:number):void;
|
||||
export function setEyePosition(x:number, y:number):void;
|
||||
export function setLEDColor(color:number[]):void;
|
||||
export function centerRobot(whichDOFs:DOFSet, centerGlobally?:boolean, completionCallback?:()=>void):void;
|
||||
export function setDefaultTransition(transition:TransitionBuilder):void;
|
||||
export function getDefaultTransition():TransitionBuilder;
|
||||
export function createLinearTransitionBuilder():LinearTransitionBuilder;
|
||||
export function createAccelerationTransitionBuilder(defaultMaxVelocity:number, defaultMaxAcceleration:number):AccelerationTransitionBuilder;
|
||||
export function installRenderPlugin(renderPlugin:RenderPlugin):void;
|
||||
export function removeRenderPlugin(renderPluginName:string):void;
|
||||
export function getInstalledRenderPluginNames():string[];
|
||||
|
||||
//stuff exported for typing of variables
|
||||
export class AnimationInstance {
|
||||
stop():void;
|
||||
getTransitionStartTime():Time;
|
||||
getAnimationStartTime():Time;
|
||||
getAnimationEndTime():Time;
|
||||
getBuilder():AnimationBuilder;
|
||||
}
|
||||
type AnimationEventCallback = (eventName:string, animationInstance:AnimationInstance, payload:any)=>void;
|
||||
export class AnimationBuilder {
|
||||
play():AnimationInstance;
|
||||
on(eventName:string, callback:AnimationEventCallback):void;
|
||||
off(eventName:string, callback:AnimationEventCallback):void;
|
||||
setSpeed(speed:number):void;
|
||||
setNumLoops(numLoops:number):void;
|
||||
setDOFs(dofNames:DOFSet|string[]):void;
|
||||
getDOFs():string[];
|
||||
setPlayBounds(inPoint:number, outPoint:number):void;
|
||||
getSourceAnimationDuration():number;
|
||||
getConfiguredAnimationDuration():number;
|
||||
setTransitionIn(transition:TransitionBuilder):void;
|
||||
getTransitionIn():TransitionBuilder;
|
||||
setStopOrient(stopOrient:boolean):void;
|
||||
setLayer(layerName:string):void;
|
||||
getCleanCopy():AnimationBuilder;
|
||||
}
|
||||
export class TransitionBuilder {
|
||||
clone():TransitionBuilder;
|
||||
}
|
||||
type Vector3 = {
|
||||
x:number,
|
||||
y:number,
|
||||
z:number
|
||||
};
|
||||
export class LookatInstance {
|
||||
stop():void;
|
||||
updateTarget(target:Vector3|number[]):void;
|
||||
getTarget():Vector3;
|
||||
getBuilder():LookatBuilder;
|
||||
}
|
||||
type LookatEventCallback = (eventName:string, lookatInstance:LookatInstance)=>void;
|
||||
export class LookatBuilder {
|
||||
startLookat(target:Vector3|number[]):LookatInstance;
|
||||
on(eventName:string, callback:LookatEventCallback):void
|
||||
off(eventName:string, callback:LookatEventCallback):void
|
||||
setDOFs(dofNames:DOFSet|string[]):void;
|
||||
getDOFs():string[];
|
||||
setOrientFully(orientFully:boolean):void;
|
||||
setContinuousMode(isContinuous:boolean):void;
|
||||
}
|
||||
export class LinearTransitionBuilder extends TransitionBuilder {
|
||||
setTransitionTime(time:number):void;
|
||||
setMaxVelocity(defaultMaxVelocity:number, maxVelocityByDOFMap:{[dof:string]:number}):void;
|
||||
clone():LinearTransitionBuilder;
|
||||
}
|
||||
export class AccelerationTransitionBuilder extends TransitionBuilder {
|
||||
setDefaultLimits(defaultMaxVelocity:number, defaultMaxAcceleration:number):void
|
||||
setMinTransitionTime(time:number):void;
|
||||
setLimits(dofNames:string[], maxVelocity:number, maxAcceleration:number):void;
|
||||
clone():AccelerationTransitionBuilder;
|
||||
}
|
||||
class RenderPlugin {
|
||||
// TODO: Docs for this class reference Three.js scenes - is it still in use?
|
||||
// Are we stripping out all the three.js everythings?
|
||||
}
|
||||
export class RobotInfo {
|
||||
getBodyDOFNames():string[];
|
||||
getDefaultDOFValues():{[name:string]:any};
|
||||
getDOFInfo(dofName:string):DOFInfo;
|
||||
getDOFNames():string[];
|
||||
getDOFSet(dofSetName:string):DOFSet;
|
||||
getDOFSetNames():string[];
|
||||
getEyeDOFNames():string[];
|
||||
}
|
||||
}
|
||||
|
||||
export class AnimationUtilities {
|
||||
static createAnimationUtilities(timeline?:any, robotInfo?:any): typeof Animate;
|
||||
}
|
||||
|
||||
export var body:any;
|
||||
export var LEDOutput:any;
|
||||
export var animate: typeof AnimationUtilities;
|
||||
export var visualize:any;
|
||||
export var MouseCoordinateWrangler:any;
|
||||
export var MouseTargetPositioner:any;
|
||||
export var JiboConfig:any;
|
||||
export var RobotInfo:any;
|
||||
export var EyeKinematicsHelper:any;
|
||||
export var TimelineBuilder:any;
|
||||
|
||||
export type Timestamp = [number, number];
|
||||
export class Time {
|
||||
_timestamp: Timestamp;
|
||||
static createFromTimestamp(timestamp:Timestamp):Time;
|
||||
add(seconds:number):Time;
|
||||
equals(otherTime:Time):boolean;
|
||||
isGreater(otherTime:Time):boolean;
|
||||
isGreaterOrEqual(otherTime:Time):boolean;
|
||||
subtract(subtrahendTime:Time):number;
|
||||
toString():string;
|
||||
}
|
||||
export class Clock {
|
||||
static currentTime():Time;
|
||||
}
|
||||
export class TrajectoryControllerSim {
|
||||
constructor(initialPosition:number, initialVelocity:number, initialTime:Time);
|
||||
}
|
||||
export class PosVelControllerSim {
|
||||
constructor(initialPosition:number, initialVelocity:number, initialTime:Time);
|
||||
}
|
||||
export namespace THREE {
|
||||
export class Vector3 {
|
||||
constructor(x?:number, y?:number, z?:number);
|
||||
set (x:number, y:number, z:number):void;
|
||||
setFromMatrixPosition(positionOrMatrix:any):void;
|
||||
}
|
||||
export var Mesh:any;
|
||||
export var MeshBasicMaterial:any;
|
||||
export var SphereGeometry:any;
|
||||
export var Color:any;
|
||||
export var Raycaster:any;
|
||||
export var Vector2:any;
|
||||
export var Matrix4:any;
|
||||
export var BoxGeometry:any;
|
||||
export var AxisHelper:any;
|
||||
export var BoundingBoxHelper:any;
|
||||
export var WireframeHelper:any;
|
||||
}
|
||||
22
node_modules/animation-utilities/lib/animation-utilities.js
generated
vendored
Normal file
21
node_modules/animation-utilities/node_modules/stats-js/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2009-2012 Mr.doob
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
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
|
||||
THE SOFTWARE.
|
||||
123
node_modules/animation-utilities/node_modules/stats-js/README.md
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
stats.js
|
||||
========
|
||||
|
||||
#### JavaScript Performance Monitor ####
|
||||
|
||||
This class provides a simple info box that will help you monitor your code performance.
|
||||
|
||||
* **FPS** Frames rendered in the last second. The higher the number the better.
|
||||
* **MS** Milliseconds needed to render a frame. The lower the number the better.
|
||||
|
||||
|
||||
### Screenshots ###
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
### Usage ###
|
||||
|
||||
```javascript
|
||||
var stats = new Stats();
|
||||
stats.setMode(1); // 0: fps, 1: ms
|
||||
|
||||
// Align top-left
|
||||
stats.domElement.style.position = 'absolute';
|
||||
stats.domElement.style.left = '0px';
|
||||
stats.domElement.style.top = '0px';
|
||||
|
||||
document.body.appendChild( stats.domElement );
|
||||
|
||||
setInterval( function () {
|
||||
|
||||
stats.begin();
|
||||
|
||||
// your code goes here
|
||||
|
||||
stats.end();
|
||||
|
||||
}, 1000 / 60 );
|
||||
```
|
||||
|
||||
|
||||
### Bookmarklet ###
|
||||
|
||||
Albeit theorically not as accurate the widget can also be easily inserted to **any site** using a bookmarklet.
|
||||
[Follow the instructions](http://ricardocabello.com/blog/post/707).
|
||||
|
||||
|
||||
### Change Log ###
|
||||
|
||||
2014 08 11 - **r12** (2,310 KB, gzip: 1,087 B)
|
||||
|
||||
* Browserify support. (@Miha-ha)
|
||||
|
||||
|
||||
2012 09 01 - **r11** (2,243 KB, gzip: 903 B)
|
||||
|
||||
* Renamed `build/Stats.js` to `build/stats.min.js`.
|
||||
|
||||
|
||||
2012 05 10 - **r10** (2,243 KB, gzip: 903 B)
|
||||
|
||||
* Changed `.getDomElement()` to `.domElement` back.
|
||||
* Removed `.getFps()`, `.getFpsMin()`, `.getFpsMax()`, `.getMs()`, `.getMsMin()`, `.getMsMax()`.
|
||||
* Added `.begin()` and `.end()`.
|
||||
* Added `.setMode()`.
|
||||
* Themeable with CSS.
|
||||
|
||||
|
||||
2012 01 18 - **r9** (2,872 KB, gzip: 1,038 KB)
|
||||
|
||||
* Changed `.domElement` to `.getDomElement()`
|
||||
* Added `.getFps()`, `.getFpsMin()`, `.getFpsMax()`, `.getMs()`, `.getMsMin()`, `.getMsMax()`.
|
||||
|
||||
|
||||
2011 10 16 - **r8** (2.670 KB, gzip: 987 B)
|
||||
|
||||
* Performance and size optimizations.
|
||||
* Removed memory mode.
|
||||
|
||||
|
||||
2011 10 13 - **r7** (4.083 KB, gzip: 1.377 KB)
|
||||
|
||||
* Replaced `new Date().getTime()` with `Date.now()`.
|
||||
|
||||
|
||||
2011 05 28 - **r6** (4.103 KB, gzip: 1.384 KB)
|
||||
|
||||
* Updated check for memory accesible browsers.
|
||||
* Renamed MEM to MB for consistency reasons.
|
||||
|
||||
|
||||
2010 09 21 - **r5** (3.800 KB)
|
||||
|
||||
* Different color per mode.
|
||||
* Added MEM mode. (Webkit-based browsers only)
|
||||
* Force text left aligned.
|
||||
|
||||
|
||||
2010 06 11 - **r4** (2.235 KB)
|
||||
|
||||
* Added MS mode.
|
||||
|
||||
|
||||
2010 05 12 - **r3** (1.241 KB)
|
||||
|
||||
* Switched to module pattern code style.
|
||||
* Removed `position = 'absolute'`.
|
||||
|
||||
|
||||
2010 03 01 - **r2** (2.177 KB)
|
||||
|
||||
* Simplified.
|
||||
|
||||
|
||||
2010 02 21 - **r1**
|
||||
|
||||
* Accurate FPS calculation. (thx @spite!)
|
||||
|
||||
|
||||
2009 08 09 - **r0**
|
||||
|
||||
* Base code.
|
||||
6
node_modules/animation-utilities/node_modules/stats-js/build/stats.min.js
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
// stats.js - http://github.com/mrdoob/stats.js
|
||||
var Stats=function(){var l=Date.now(),m=l,g=0,n=Infinity,o=0,h=0,p=Infinity,q=0,r=0,s=0,f=document.createElement("div");f.id="stats";f.addEventListener("mousedown",function(b){b.preventDefault();t(++s%2)},!1);f.style.cssText="width:80px;opacity:0.9;cursor:pointer";var a=document.createElement("div");a.id="fps";a.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#002";f.appendChild(a);var i=document.createElement("div");i.id="fpsText";i.style.cssText="color:#0ff;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px";
|
||||
i.innerHTML="FPS";a.appendChild(i);var c=document.createElement("div");c.id="fpsGraph";c.style.cssText="position:relative;width:74px;height:30px;background-color:#0ff";for(a.appendChild(c);74>c.children.length;){var j=document.createElement("span");j.style.cssText="width:1px;height:30px;float:left;background-color:#113";c.appendChild(j)}var d=document.createElement("div");d.id="ms";d.style.cssText="padding:0 0 3px 3px;text-align:left;background-color:#020;display:none";f.appendChild(d);var k=document.createElement("div");
|
||||
k.id="msText";k.style.cssText="color:#0f0;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px";k.innerHTML="MS";d.appendChild(k);var e=document.createElement("div");e.id="msGraph";e.style.cssText="position:relative;width:74px;height:30px;background-color:#0f0";for(d.appendChild(e);74>e.children.length;)j=document.createElement("span"),j.style.cssText="width:1px;height:30px;float:left;background-color:#131",e.appendChild(j);var t=function(b){s=b;switch(s){case 0:a.style.display=
|
||||
"block";d.style.display="none";break;case 1:a.style.display="none",d.style.display="block"}};return{REVISION:12,domElement:f,setMode:t,begin:function(){l=Date.now()},end:function(){var b=Date.now();g=b-l;n=Math.min(n,g);o=Math.max(o,g);k.textContent=g+" MS ("+n+"-"+o+")";var a=Math.min(30,30-30*(g/200));e.appendChild(e.firstChild).style.height=a+"px";r++;b>m+1E3&&(h=Math.round(1E3*r/(b-m)),p=Math.min(p,h),q=Math.max(q,h),i.textContent=h+" FPS ("+p+"-"+q+")",a=Math.min(30,30-30*(h/100)),c.appendChild(c.firstChild).style.height=
|
||||
a+"px",m=b,r=0);return b},update:function(){l=this.end()}}};"object"===typeof module&&(module.exports=Stats);
|
||||
53
node_modules/animation-utilities/node_modules/stats-js/examples/basic.html
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>stats.js - basic example</title>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<style>
|
||||
body {
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../build/stats.min.js"></script>
|
||||
<script>
|
||||
|
||||
var stats = new Stats();
|
||||
stats.setMode( 1 );
|
||||
document.body.appendChild( stats.domElement );
|
||||
|
||||
var canvas = document.createElement( 'canvas' );
|
||||
canvas.width = 512;
|
||||
canvas.height = 512;
|
||||
document.body.appendChild( canvas );
|
||||
|
||||
var context = canvas.getContext( '2d' );
|
||||
context.fillStyle = 'rgba(127,0,255,0.05)';
|
||||
setInterval( function () {
|
||||
|
||||
var time = Date.now() * 0.001;
|
||||
|
||||
context.clearRect( 0, 0, 512, 512 );
|
||||
|
||||
stats.begin();
|
||||
|
||||
for ( var i = 0; i < 2000; i ++ ) {
|
||||
|
||||
var x = Math.cos( time + i * 0.01 ) * 196 + 256;
|
||||
var y = Math.sin( time + i * 0.01234 ) * 196 + 256;
|
||||
|
||||
context.beginPath();
|
||||
context.arc( x, y, 10, 0, Math.PI * 2, true );
|
||||
context.fill();
|
||||
|
||||
}
|
||||
|
||||
stats.end();
|
||||
|
||||
}, 1000 / 60 );
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
125
node_modules/animation-utilities/node_modules/stats-js/examples/theming.html
generated
vendored
Normal file
@@ -0,0 +1,125 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>stats.js - theming example</title>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<style>
|
||||
body {
|
||||
margin: 0px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/*
|
||||
* theme by: daformat / http://mathieujouhet.com/
|
||||
*/
|
||||
|
||||
#stats #fps {
|
||||
padding: 1px !important;
|
||||
box-shadow: 1px 1px 3px rgba(0,0,0,.95) inset, 0px 0px 0px rgba(0,0,0,.75), 1px 1px 0px rgba(255,255,255,.25);
|
||||
}
|
||||
|
||||
#stats #fps #fpsText {
|
||||
left: 1px;
|
||||
color: #80ccff !important;
|
||||
background-image: -o-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -webkit-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -ms-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
padding: 0 1px;
|
||||
}
|
||||
|
||||
#stats #fps #fpsGraph {
|
||||
left: 1px;
|
||||
padding: 1px;
|
||||
margin-bottom:1px;
|
||||
background-color: rgba(0,155,255,0.5) !important;
|
||||
background-image: -o-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -webkit-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -ms-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
}
|
||||
|
||||
#stats #fps #fpsGraph span {
|
||||
border-bottom: 1px solid !important;
|
||||
border-color: rgba(0,155,255,0.9) !important;
|
||||
background-color: rgba(0,0,20,0.8) !important;
|
||||
}
|
||||
|
||||
#stats #ms {
|
||||
padding: 1px !important;
|
||||
box-shadow: 1px 1px 3px rgba(0,0,0,.95) inset, 0px 0px 0px rgba(0,0,0,.75), 1px 1px 0px rgba(255,255,255,.25);
|
||||
}
|
||||
|
||||
#stats #ms #msText {
|
||||
left: 1px;
|
||||
color: #80ff80 !important;
|
||||
background-image: -o-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -webkit-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -ms-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
padding: 0 1px;
|
||||
}
|
||||
|
||||
#stats #ms #msGraph {
|
||||
left: 1px;
|
||||
padding: 1px;
|
||||
margin-bottom:1px;
|
||||
background-color: rgba(0,255,0,0.5) !important;
|
||||
background-image: -o-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -moz-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -webkit-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: -ms-linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
background-image: linear-gradient(top, rgba(255,255,255,.4) 0%, rgba(0,0,0,.35) 100%);
|
||||
}
|
||||
|
||||
#stats #ms #msGraph span {
|
||||
border-bottom: 1px solid !important;
|
||||
border-color: rgba(0,255,0,0.9) !important;
|
||||
background-color: rgba(0,20,0,0.8) !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script src="../build/stats.min.js"></script>
|
||||
<script>
|
||||
|
||||
var stats = new Stats();
|
||||
document.body.appendChild( stats.domElement );
|
||||
|
||||
var canvas = document.createElement( 'canvas' );
|
||||
canvas.width = 512;
|
||||
canvas.height = 512;
|
||||
document.body.appendChild( canvas );
|
||||
|
||||
var context = canvas.getContext( '2d' );
|
||||
context.fillStyle = 'rgba(127,0,255,0.05)';
|
||||
setInterval( function () {
|
||||
|
||||
var time = Date.now() * 0.001;
|
||||
|
||||
context.clearRect( 0, 0, 512, 512 );
|
||||
|
||||
stats.begin();
|
||||
|
||||
for ( var i = 0; i < 2000; i ++ ) {
|
||||
|
||||
var x = Math.cos( time + i * 0.01 ) * 196 + 256;
|
||||
var y = Math.sin( time + i * 0.01234 ) * 196 + 256;
|
||||
|
||||
context.beginPath();
|
||||
context.arc( x, y, 10, 0, Math.PI * 2, true );
|
||||
context.fill();
|
||||
|
||||
}
|
||||
|
||||
stats.end();
|
||||
|
||||
}, 1000 / 60 );
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
54
node_modules/animation-utilities/node_modules/stats-js/package.json
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"_from": "stats-js@1.0.0-alpha1",
|
||||
"_id": "stats-js@1.0.0-alpha1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-BKrDAFE/YuRRWNrKBL6rRykJWx0LBxZJeJCcKeidpGlfqmTYhMEi/YfLZ8GoA5/KVWaIgPZnoApPli1LX0QQ8A==",
|
||||
"_location": "/animation-utilities/stats-js",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "stats-js@1.0.0-alpha1",
|
||||
"name": "stats-js",
|
||||
"escapedName": "stats-js",
|
||||
"rawSpec": "1.0.0-alpha1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.0.0-alpha1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/animation-utilities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/stats-js/-/stats-js-1.0.0-alpha1.tgz",
|
||||
"_shasum": "44ae82e6421123bab99750d95c3f5526b8f257db",
|
||||
"_spec": "stats-js@1.0.0-alpha1",
|
||||
"_where": "/tmp/jibo-npm/jibo-cli-3.0.7",
|
||||
"author": {
|
||||
"name": "Kevin Isom",
|
||||
"email": "kevin.isom@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Kevnz/stats.js/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "JavaScript Performance Monitor",
|
||||
"directories": {
|
||||
"example": "examples"
|
||||
},
|
||||
"homepage": "https://github.com/Kevnz/stats.js",
|
||||
"keywords": [
|
||||
"stats",
|
||||
"webgl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "build/stats.min.js",
|
||||
"name": "stats-js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/Kevnz/stats.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"version": "1.0.0-alpha1"
|
||||
}
|
||||
149
node_modules/animation-utilities/node_modules/stats-js/src/Stats.js
generated
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
/**
|
||||
* @author mrdoob / http://mrdoob.com/
|
||||
*/
|
||||
|
||||
var Stats = function () {
|
||||
|
||||
var startTime = Date.now(), prevTime = startTime;
|
||||
var ms = 0, msMin = Infinity, msMax = 0;
|
||||
var fps = 0, fpsMin = Infinity, fpsMax = 0;
|
||||
var frames = 0, mode = 0;
|
||||
|
||||
var container = document.createElement( 'div' );
|
||||
container.id = 'stats';
|
||||
container.addEventListener( 'mousedown', function ( event ) { event.preventDefault(); setMode( ++ mode % 2 ) }, false );
|
||||
container.style.cssText = 'width:80px;opacity:0.9;cursor:pointer';
|
||||
|
||||
var fpsDiv = document.createElement( 'div' );
|
||||
fpsDiv.id = 'fps';
|
||||
fpsDiv.style.cssText = 'padding:0 0 3px 3px;text-align:left;background-color:#002';
|
||||
container.appendChild( fpsDiv );
|
||||
|
||||
var fpsText = document.createElement( 'div' );
|
||||
fpsText.id = 'fpsText';
|
||||
fpsText.style.cssText = 'color:#0ff;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px';
|
||||
fpsText.innerHTML = 'FPS';
|
||||
fpsDiv.appendChild( fpsText );
|
||||
|
||||
var fpsGraph = document.createElement( 'div' );
|
||||
fpsGraph.id = 'fpsGraph';
|
||||
fpsGraph.style.cssText = 'position:relative;width:74px;height:30px;background-color:#0ff';
|
||||
fpsDiv.appendChild( fpsGraph );
|
||||
|
||||
while ( fpsGraph.children.length < 74 ) {
|
||||
|
||||
var bar = document.createElement( 'span' );
|
||||
bar.style.cssText = 'width:1px;height:30px;float:left;background-color:#113';
|
||||
fpsGraph.appendChild( bar );
|
||||
|
||||
}
|
||||
|
||||
var msDiv = document.createElement( 'div' );
|
||||
msDiv.id = 'ms';
|
||||
msDiv.style.cssText = 'padding:0 0 3px 3px;text-align:left;background-color:#020;display:none';
|
||||
container.appendChild( msDiv );
|
||||
|
||||
var msText = document.createElement( 'div' );
|
||||
msText.id = 'msText';
|
||||
msText.style.cssText = 'color:#0f0;font-family:Helvetica,Arial,sans-serif;font-size:9px;font-weight:bold;line-height:15px';
|
||||
msText.innerHTML = 'MS';
|
||||
msDiv.appendChild( msText );
|
||||
|
||||
var msGraph = document.createElement( 'div' );
|
||||
msGraph.id = 'msGraph';
|
||||
msGraph.style.cssText = 'position:relative;width:74px;height:30px;background-color:#0f0';
|
||||
msDiv.appendChild( msGraph );
|
||||
|
||||
while ( msGraph.children.length < 74 ) {
|
||||
|
||||
var bar = document.createElement( 'span' );
|
||||
bar.style.cssText = 'width:1px;height:30px;float:left;background-color:#131';
|
||||
msGraph.appendChild( bar );
|
||||
|
||||
}
|
||||
|
||||
var setMode = function ( value ) {
|
||||
|
||||
mode = value;
|
||||
|
||||
switch ( mode ) {
|
||||
|
||||
case 0:
|
||||
fpsDiv.style.display = 'block';
|
||||
msDiv.style.display = 'none';
|
||||
break;
|
||||
case 1:
|
||||
fpsDiv.style.display = 'none';
|
||||
msDiv.style.display = 'block';
|
||||
break;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
var updateGraph = function ( dom, value ) {
|
||||
|
||||
var child = dom.appendChild( dom.firstChild );
|
||||
child.style.height = value + 'px';
|
||||
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
REVISION: 12,
|
||||
|
||||
domElement: container,
|
||||
|
||||
setMode: setMode,
|
||||
|
||||
begin: function () {
|
||||
|
||||
startTime = Date.now();
|
||||
|
||||
},
|
||||
|
||||
end: function () {
|
||||
|
||||
var time = Date.now();
|
||||
|
||||
ms = time - startTime;
|
||||
msMin = Math.min( msMin, ms );
|
||||
msMax = Math.max( msMax, ms );
|
||||
|
||||
msText.textContent = ms + ' MS (' + msMin + '-' + msMax + ')';
|
||||
updateGraph( msGraph, Math.min( 30, 30 - ( ms / 200 ) * 30 ) );
|
||||
|
||||
frames ++;
|
||||
|
||||
if ( time > prevTime + 1000 ) {
|
||||
|
||||
fps = Math.round( ( frames * 1000 ) / ( time - prevTime ) );
|
||||
fpsMin = Math.min( fpsMin, fps );
|
||||
fpsMax = Math.max( fpsMax, fps );
|
||||
|
||||
fpsText.textContent = fps + ' FPS (' + fpsMin + '-' + fpsMax + ')';
|
||||
updateGraph( fpsGraph, Math.min( 30, 30 - ( fps / 100 ) * 30 ) );
|
||||
|
||||
prevTime = time;
|
||||
frames = 0;
|
||||
|
||||
}
|
||||
|
||||
return time;
|
||||
|
||||
},
|
||||
|
||||
update: function () {
|
||||
|
||||
startTime = this.end();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
if ( typeof module === 'object' ) {
|
||||
|
||||
module.exports = Stats;
|
||||
|
||||
}
|
||||
9
node_modules/animation-utilities/node_modules/stats-js/utils/builder.py
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import os
|
||||
|
||||
source = '../src/Stats.js'
|
||||
output = '../build/stats.min.js'
|
||||
|
||||
os.system('java -jar compiler/compiler.jar --language_in=ECMASCRIPT5 --js ' + source + ' --js_output_file ' + output)
|
||||
|
||||
with open(output,'r') as f: text = f.read()
|
||||
with open(output,'w') as f: f.write("// stats.js - http://github.com/mrdoob/stats.js\n" + text)
|
||||
202
node_modules/animation-utilities/node_modules/stats-js/utils/compiler/COPYING
generated
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
292
node_modules/animation-utilities/node_modules/stats-js/utils/compiler/README
generated
vendored
Normal file
@@ -0,0 +1,292 @@
|
||||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
//
|
||||
// Contents
|
||||
//
|
||||
|
||||
The Closure Compiler performs checking, instrumentation, and
|
||||
optimizations on JavaScript code. The purpose of this README is to
|
||||
explain how to build and run the Closure Compiler.
|
||||
|
||||
The Closure Compiler requires Java 6 or higher.
|
||||
http://www.java.com/
|
||||
|
||||
|
||||
//
|
||||
// Building The Closure Compiler
|
||||
//
|
||||
|
||||
There are three ways to get a Closure Compiler executable.
|
||||
|
||||
1) Use one we built for you.
|
||||
|
||||
Pre-built Closure binaries can be found at
|
||||
http://code.google.com/p/closure-compiler/downloads/list
|
||||
|
||||
|
||||
2) Check out the source and build it with Apache Ant.
|
||||
|
||||
First, check out the full source tree of the Closure Compiler. There
|
||||
are instructions on how to do this at the project site.
|
||||
http://code.google.com/p/closure-compiler/source/checkout
|
||||
|
||||
Apache Ant is a cross-platform build tool.
|
||||
http://ant.apache.org/
|
||||
|
||||
At the root of the source tree, there is an Ant file named
|
||||
build.xml. To use it, navigate to the same directory and type the
|
||||
command
|
||||
|
||||
ant jar
|
||||
|
||||
This will produce a jar file called "build/compiler.jar".
|
||||
|
||||
|
||||
3) Check out the source and build it with Eclipse.
|
||||
|
||||
Eclipse is a cross-platform IDE.
|
||||
http://www.eclipse.org/
|
||||
|
||||
Under Eclipse's File menu, click "New > Project ..." and create a
|
||||
"Java Project." You will see an options screen. Give the project a
|
||||
name, select "Create project from existing source," and choose the
|
||||
root of the checked-out source tree as the existing directory. Verify
|
||||
that you are using JRE version 6 or higher.
|
||||
|
||||
Eclipse can use the build.xml file to discover rules. When you
|
||||
navigate to the build.xml file, you will see all the build rules in
|
||||
the "Outline" pane. Run the "jar" rule to build the compiler in
|
||||
build/compiler.jar.
|
||||
|
||||
|
||||
//
|
||||
// Running The Closure Compiler
|
||||
//
|
||||
|
||||
Once you have the jar binary, running the Closure Compiler is straightforward.
|
||||
|
||||
On the command line, type
|
||||
|
||||
java -jar compiler.jar
|
||||
|
||||
This starts the compiler in interactive mode. Type
|
||||
|
||||
var x = 17 + 25;
|
||||
|
||||
then hit "Enter", then hit "Ctrl-Z" (on Windows) or "Ctrl-D" (on Mac or Linux)
|
||||
and "Enter" again. The Compiler will respond:
|
||||
|
||||
var x=42;
|
||||
|
||||
The Closure Compiler has many options for reading input from a file,
|
||||
writing output to a file, checking your code, and running
|
||||
optimizations. To learn more, type
|
||||
|
||||
java -jar compiler.jar --help
|
||||
|
||||
You can read more detailed documentation about the many flags at
|
||||
http://code.google.com/closure/compiler/docs/gettingstarted_app.html
|
||||
|
||||
|
||||
//
|
||||
// Compiling Multiple Scripts
|
||||
//
|
||||
|
||||
If you have multiple scripts, you should compile them all together with
|
||||
one compile command.
|
||||
|
||||
java -jar compiler.jar --js=in1.js --js=in2.js ... --js_output_file=out.js
|
||||
|
||||
The Closure Compiler will concatenate the files in the order they're
|
||||
passed at the command line.
|
||||
|
||||
If you need to compile many, many scripts together, you may start to
|
||||
run into problems with managing dependencies between scripts. You
|
||||
should check out the Closure Library. It contains functions for
|
||||
enforcing dependencies between scripts, and a tool called calcdeps.py
|
||||
that knows how to give scripts to the Closure Compiler in the right
|
||||
order.
|
||||
|
||||
http://code.google.com/p/closure-library/
|
||||
|
||||
//
|
||||
// Licensing
|
||||
//
|
||||
|
||||
Unless otherwise stated, all source files are licensed under
|
||||
the Apache License, Version 2.0.
|
||||
|
||||
|
||||
-----
|
||||
Code under:
|
||||
src/com/google/javascript/rhino
|
||||
test/com/google/javascript/rhino
|
||||
|
||||
URL: http://www.mozilla.org/rhino
|
||||
Version: 1.5R3, with heavy modifications
|
||||
License: Netscape Public License and MPL / GPL dual license
|
||||
|
||||
Description: A partial copy of Mozilla Rhino. Mozilla Rhino is an
|
||||
implementation of JavaScript for the JVM. The JavaScript parser and
|
||||
the parse tree data structures were extracted and modified
|
||||
significantly for use by Google's JavaScript compiler.
|
||||
|
||||
Local Modifications: The packages have been renamespaced. All code not
|
||||
relevant to parsing has been removed. A JsDoc parser and static typing
|
||||
system have been added.
|
||||
|
||||
|
||||
-----
|
||||
Code in:
|
||||
lib/rhino
|
||||
|
||||
Rhino
|
||||
URL: http://www.mozilla.org/rhino
|
||||
Version: Trunk
|
||||
License: Netscape Public License and MPL / GPL dual license
|
||||
|
||||
Description: Mozilla Rhino is an implementation of JavaScript for the JVM.
|
||||
|
||||
Local Modifications: Minor changes to parsing JSDoc that usually get pushed
|
||||
up-stream to Rhino trunk.
|
||||
|
||||
|
||||
-----
|
||||
Code in:
|
||||
lib/args4j.jar
|
||||
|
||||
Args4j
|
||||
URL: https://args4j.dev.java.net/
|
||||
Version: 2.0.12
|
||||
License: MIT
|
||||
|
||||
Description:
|
||||
args4j is a small Java class library that makes it easy to parse command line
|
||||
options/arguments in your CUI application.
|
||||
|
||||
Local Modifications: None.
|
||||
|
||||
|
||||
-----
|
||||
Code in:
|
||||
lib/guava.jar
|
||||
|
||||
Guava Libraries
|
||||
URL: http://code.google.com/p/guava-libraries/
|
||||
Version: r08
|
||||
License: Apache License 2.0
|
||||
|
||||
Description: Google's core Java libraries.
|
||||
|
||||
Local Modifications: None.
|
||||
|
||||
|
||||
-----
|
||||
Code in:
|
||||
lib/jsr305.jar
|
||||
|
||||
Annotations for software defect detection
|
||||
URL: http://code.google.com/p/jsr-305/
|
||||
Version: svn revision 47
|
||||
License: BSD License
|
||||
|
||||
Description: Annotations for software defect detection.
|
||||
|
||||
Local Modifications: None.
|
||||
|
||||
|
||||
-----
|
||||
Code in:
|
||||
lib/jarjar.jar
|
||||
|
||||
Jar Jar Links
|
||||
URL: http://jarjar.googlecode.com/
|
||||
Version: 1.1
|
||||
License: Apache License 2.0
|
||||
|
||||
Description:
|
||||
A utility for repackaging Java libraries.
|
||||
|
||||
Local Modifications: None.
|
||||
|
||||
|
||||
----
|
||||
Code in:
|
||||
lib/junit.jar
|
||||
|
||||
JUnit
|
||||
URL: http://sourceforge.net/projects/junit/
|
||||
Version: 4.8.2
|
||||
License: Common Public License 1.0
|
||||
|
||||
Description: A framework for writing and running automated tests in Java.
|
||||
|
||||
Local Modifications: None.
|
||||
|
||||
|
||||
---
|
||||
Code in:
|
||||
lib/protobuf-java.jar
|
||||
|
||||
Protocol Buffers
|
||||
URL: http://code.google.com/p/protobuf/
|
||||
Version: 2.3.0
|
||||
License: New BSD License
|
||||
|
||||
Description: Supporting libraries for protocol buffers,
|
||||
an encoding of structured data.
|
||||
|
||||
Local Modifications: None
|
||||
|
||||
|
||||
---
|
||||
Code in:
|
||||
lib/ant.jar
|
||||
lib/ant-launcher.jar
|
||||
|
||||
URL: http://ant.apache.org/bindownload.cgi
|
||||
Version: 1.8.1
|
||||
License: Apache License 2.0
|
||||
Description:
|
||||
Ant is a Java based build tool. In theory it is kind of like "make"
|
||||
without make's wrinkles and with the full portability of pure java code.
|
||||
|
||||
Local Modifications: None
|
||||
|
||||
|
||||
---
|
||||
Code in:
|
||||
lib/json.jar
|
||||
URL: http://json.org/java/index.html
|
||||
Version: JSON version 20090211
|
||||
License: MIT license
|
||||
Description:
|
||||
JSON is a set of java files for use in transmitting data in JSON format.
|
||||
|
||||
Local Modifications: None
|
||||
|
||||
---
|
||||
Code in:
|
||||
tools/maven-ant-tasks-2.1.1.jar
|
||||
URL: http://maven.apache.org
|
||||
Version 2.1.1
|
||||
License: Apache License 2.0
|
||||
Description:
|
||||
Maven Ant tasks are used to manage dependencies and to install/deploy to
|
||||
maven repositories.
|
||||
|
||||
Local Modifications: None
|
||||
BIN
node_modules/animation-utilities/node_modules/stats-js/utils/compiler/compiler.jar
generated
vendored
Normal file
68
node_modules/animation-utilities/node_modules/three/README.md
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
three.js
|
||||
========
|
||||
|
||||
#### JavaScript 3D library ####
|
||||
|
||||
The aim of the project is to create a lightweight 3D library with a very low level of complexity — in other words, for dummies. The library provides <canvas>, <svg>, CSS3D and WebGL renderers.
|
||||
|
||||
[Examples](http://threejs.org/examples/) — [Documentation](http://threejs.org/docs/) — [Migrating](https://github.com/mrdoob/three.js/wiki/Migration) — [Help](http://stackoverflow.com/questions/tagged/three.js)
|
||||
|
||||
|
||||
### Usage ###
|
||||
|
||||
Download the [minified library](http://threejs.org/build/three.min.js) and include it in your html.
|
||||
Alternatively see [how to build the library yourself](https://github.com/mrdoob/three.js/wiki/build.py,-or-how-to-generate-a-compressed-Three.js-file).
|
||||
|
||||
```html
|
||||
<script src="js/three.min.js"></script>
|
||||
```
|
||||
|
||||
This code creates a scene, a camera, and a geometric cube, and it adds the cube to the scene. It then creates a <canvas> renderer for the scene and camera, and it adds that viewport to the document.body element. Finally it animates the cube within the scene for the camera.
|
||||
|
||||
```html
|
||||
<script>
|
||||
|
||||
var scene, camera, renderer;
|
||||
var geometry, material, mesh;
|
||||
|
||||
init();
|
||||
animate();
|
||||
|
||||
function init() {
|
||||
|
||||
scene = new THREE.Scene();
|
||||
|
||||
camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 1, 10000 );
|
||||
camera.position.z = 1000;
|
||||
|
||||
geometry = new THREE.BoxGeometry( 200, 200, 200 );
|
||||
material = new THREE.MeshBasicMaterial( { color: 0xff0000, wireframe: true } );
|
||||
|
||||
mesh = new THREE.Mesh( geometry, material );
|
||||
scene.add( mesh );
|
||||
|
||||
renderer = new THREE.WebGLRenderer();
|
||||
renderer.setSize( window.innerWidth, window.innerHeight );
|
||||
|
||||
document.body.appendChild( renderer.domElement );
|
||||
|
||||
}
|
||||
|
||||
function animate() {
|
||||
|
||||
requestAnimationFrame( animate );
|
||||
|
||||
mesh.rotation.x += 0.01;
|
||||
mesh.rotation.y += 0.02;
|
||||
|
||||
renderer.render( scene, camera );
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
```
|
||||
If everything went well you should see [this](http://jsfiddle.net/f17Lz5ux/).
|
||||
|
||||
### Change log ###
|
||||
|
||||
[releases](https://github.com/mrdoob/three.js/releases)
|
||||
63
node_modules/animation-utilities/node_modules/three/package.json
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"_from": "three@0.70.1",
|
||||
"_id": "three@0.70.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-TaFp4HJl7XoiqfoXAe6wlbiMkOCRjduz7Wvr9SszNJeXAQNncDhGiNPriS+xE9cWBi+SsX3fGlk/x8Bbr3NwNA==",
|
||||
"_location": "/animation-utilities/three",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "three@0.70.1",
|
||||
"name": "three",
|
||||
"escapedName": "three",
|
||||
"rawSpec": "0.70.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.70.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/animation-utilities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/three/-/three-0.70.1.tgz",
|
||||
"_shasum": "459e5eabf2240bda58ea4ba412c14d0b3e4a250d",
|
||||
"_spec": "three@0.70.1",
|
||||
"_where": "/tmp/jibo-npm/jibo-cli-3.0.7",
|
||||
"author": {
|
||||
"name": "three.js contributors"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/mrdoob/three.js/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "JavaScript 3D library",
|
||||
"engines": {
|
||||
"node": "*"
|
||||
},
|
||||
"help": {
|
||||
"web": "http://stackoverflow.com/questions/tagged/three.js"
|
||||
},
|
||||
"homepage": "http://threejs.org/",
|
||||
"keywords": [
|
||||
"3D",
|
||||
"WebGL",
|
||||
"Three",
|
||||
"ThreeJS",
|
||||
"CSS",
|
||||
"engine",
|
||||
"rendering",
|
||||
"geometry",
|
||||
"math"
|
||||
],
|
||||
"license": {
|
||||
"type": "The MIT License",
|
||||
"url": "https://raw.github.com/mrdoob/three.js/master/LICENSE"
|
||||
},
|
||||
"main": "./three.js",
|
||||
"name": "three",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/mrdoob/three.js.git"
|
||||
},
|
||||
"version": "0.70.1"
|
||||
}
|
||||
34558
node_modules/animation-utilities/node_modules/three/three.js
generated
vendored
Normal file
834
node_modules/animation-utilities/node_modules/three/three.min.js
generated
vendored
Normal file
315
node_modules/animation-utilities/node_modules/urijs/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,315 @@
|
||||
# URI.js - Changelog #
|
||||
|
||||
The release notes tracked in this document are also made available on the [releases page](https://github.com/medialize/URI.js/releases)
|
||||
|
||||
### 1.17.1 (February 25th 2016) ###
|
||||
|
||||
* fixing [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to properly handle percent-encoded dot segments and leading dots in basename - [Issue #264](https://github.com/medialize/URI.js/issues/264), by [JordanMilne](https://github.com/JordanMilne)
|
||||
* fixing [`.hasQuery()`](http://medialize.github.io/URI.js/docs.html#search-has) to accept `RegExp` for name argument - [Issue #274](https://github.com/medialize/URI.js/issues/274), [Issue #277](https://github.com/medialize/URI.js/issues/277) by [mbrodala](https://github.com/mbrodala)
|
||||
|
||||
### 1.17.0 (November 13th 2015) ###
|
||||
|
||||
* fixing [`URI.removeQuery()`](http://medialize.github.io/URI.js/docs.html#search-remove) to cast values to string before matching - [Issue #250](https://github.com/medialize/URI.js/pull/250), [Issue #252](https://github.com/medialize/URI.js/pull/252), by [ryanelian](https://github.com/ryanelian) and [Siltaar](https://github.com/Siltaar)
|
||||
* fixing [`.segment()`](http://medialize.github.io/URI.js/docs.html#accessors-segment) to allow appending an empty element - [Issue #236](https://github.com/medialize/URI.js/issues/236), [Issue #253](https://github.com/medialize/URI.js/pull/253), by [orlando](https://github.com/orlando)
|
||||
* adding [`.origin()`](http://medialize.github.io/URI.js/docs.html#accessors-origin) to get protocol and authority, counter-part to `.resource()` - [Issue #210](https://github.com/medialize/URI.js/issues/210), [Issue #263](https://github.com/medialize/URI.js/pull/263), by [justinmchase](https://github.com/justinmchase)
|
||||
|
||||
### 1.16.1 (September 19th 2015) ###
|
||||
|
||||
Package Management Cleanup - no changes to source code!
|
||||
|
||||
* renaming package to "urijs", was "URIjs" (because npm decided to go lower-case at some point and maintaining capitals in your package name poses all sorts of stupid issues)
|
||||
* removing [jam](http://jamjs.org/), [spm](http://spmjs.org/), `component.json` and `URI.jquery.json` as nobody cared that URI.js was stuck on 1.14 for a year
|
||||
|
||||
### 1.16.0 (July 24th 2015) ###
|
||||
|
||||
* **SECURITY** fixing [`URI.parseHost()`](http://medialize.github.io/URI.js/docs.html#static-parseHost) to rewrite `\` to `/` as Node and Browsers do - [Issue #233](https://github.com/medialize/URI.js/pull/233)
|
||||
* fixing [`.host()`](http://medialize.github.io/URI.js/docs.html#accessors-host) and [`.authority()`](http://medialize.github.io/URI.js/docs.html#accessors-authority) to raise an error if they contain a path segment (extending [Issue #233](https://github.com/medialize/URI.js/pull/233))
|
||||
|
||||
### 1.15.2 (July 2nd 2015) ###
|
||||
|
||||
* fixing [`URI.parseQuery()`](http://medialize.github.io/URI.js/docs.html#static-parseQuery) to accept `?foo&foo=bar` - [Issue #220](https://github.com/medialize/URI.js/issues/220)
|
||||
* fixing [`.segmentCoded()`](http://medialize.github.io/URI.js/docs.html#accessors-segmentCoded) to encode (instead of decode) array input - [Issue #223](https://github.com/medialize/URI.js/issues/223)
|
||||
* fixing [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to properly resolve `/foo/..` to `/` - [Issue #224](https://github.com/medialize/URI.js/issues/224)
|
||||
* fixing [`.relativeTo()`](http://medialize.github.io/URI.js/docs.html#relativeto) to resolve `/foo/` and `/foo/bar` to `./` instead of empty string - [Issue #226](https://github.com/medialize/URI.js/issues/226)
|
||||
* fixing `bower.json`'s `"main": "src/URI.js"` - [Issue #227](https://github.com/medialize/URI.js/issues/227)
|
||||
|
||||
### 1.15.1 (April 5th 2015) ###
|
||||
|
||||
* fixing `URI()` to match behavior of `new URI()` (caused by [#196](https://github.com/medialize/URI.js/issues/196)) - [Issue #205](https://github.com/medialize/URI.js/issues/205)
|
||||
* fixing [`URI.removeQuery()`](http://medialize.github.io/URI.js/docs.html#search-remove) to accept RegExp for name and value arguments - ([Issue #204](https://github.com/medialize/URI.js/issues/204), [peterwillis](https://github.com/peterwillis))
|
||||
|
||||
### 1.15.0 (April 1st 2015 - no joke, promise!) ###
|
||||
|
||||
* fixing `URI(undefined)` to throw TypeError - ([Issue #189](https://github.com/medialize/URI.js/issues/189), [Issue #196](https://github.com/medialize/URI.js/issues/196), [eakron](https://github.com/eakron)) - *tiny backward-compatibility-break*
|
||||
* fixing [`.absoluteTo()`](http://medialize.github.io/URI.js/docs.html#absoluteto) - ([Issue #200](https://github.com/medialize/URI.js/issues/200), [giltayar](https://github.com/giltayar))
|
||||
* fixing [`.pathname()`](http://medialize.github.io/URI.js/docs.html#accessors-pathname) to properly en/decode URN paths - ([Issue #201](https://github.com/medialize/URI.js/pull/201), [mlefoster](https://github.com/mlefoster))
|
||||
* fixing URI normalization to properly handle URN paths based on [RFC 2141](https://www.ietf.org/rfc/rfc2141.txt) syntax - ([Issue #201](https://github.com/medialize/URI.js/pull/201), [mlefoster](https://github.com/mlefoster))
|
||||
* fixing [`.normalize()`](http://medialize.github.io/URI.js/docs.html#normalize) and [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to properly normalize URN paths
|
||||
* adding `URI.encodeUrnPathSegment()`
|
||||
* adding `URI.decodeUrnPathSegment()`
|
||||
* adding `URI.decodeUrnPath()`
|
||||
* adding `URI.recodeUrnPath()`
|
||||
|
||||
### 1.14.2 (February 25th 2015) ###
|
||||
|
||||
* fixing inclusion of LICENSE in packages - ([Issue #174](https://github.com/medialize/URI.js/issues/174))
|
||||
* fixing [`URI.parseHost()`](http://medialize.github.io/URI.js/docs.html#static-parseHost) to not interpret colon in path as IPv6 hostname - ([Issue #190](https://github.com/medialize/URI.js/issues/190))
|
||||
* adding meta data for [SPM](http://www.spmjs.io/) package manager - ([Issue #176](https://github.com/medialize/URI.js/issues/176))
|
||||
* adding license meta to `bower.json`
|
||||
|
||||
### 1.14.1 (October 1st 2014) ###
|
||||
|
||||
* fixing handling of String instances (not string primitives) - ([Issue #146](https://github.com/medialize/URI.js/issues/146))
|
||||
* fixing Firefox [`.watch()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch) interfering with `.parseQuery()` - ([Issue #169](https://github.com/medialize/URI.js/issues/169))
|
||||
* fixing [`addQuery()`](http://medialize.github.io/URI.js/docs.html#search-add) to not throw error on null value - ([Issue #171](https://github.com/medialize/URI.js/issues/171))
|
||||
|
||||
### 1.14.0 (September 8th 2014) ###
|
||||
|
||||
* adding Hungarian second level domains - ([Issue #159](https://github.com/medialize/URI.js/issues/159))
|
||||
* adding `<audio src="…">` and `<video src="…">` to supported DOM attributes - ([Issue #160](https://github.com/medialize/URI.js/issues/160)), ([Issue #161](https://github.com/medialize/URI.js/issues/161))
|
||||
* fixing `file://hostname/path` parsing - ([Issue #158](https://github.com/medialize/URI.js/issues/158))
|
||||
* fixing `.decodePathSegment()` to not throw malformed URI error - ([Issue #163](https://github.com/medialize/URI.js/issues/163))
|
||||
|
||||
### 1.13.2 (May 29th 2014) ###
|
||||
|
||||
* changes to package management manifests only
|
||||
|
||||
### 1.13.1 (April 16th 2014) ###
|
||||
|
||||
* fixing IPv6 normalization (bad variable name) - ([Issue #145](https://github.com/medialize/URI.js/issues/145))
|
||||
* adding grunt and jshint
|
||||
* changing code style to 2 spaces indentation, single quote strings
|
||||
* applying `'use strict';` everywhere
|
||||
* fixing jshint warnings
|
||||
|
||||
### 1.13.0 (April 15th 2014) ###
|
||||
|
||||
* fixing [`URI.parseHost()`](http://medialize.github.io/URI.js/docs.html#static-parseHost) and [`URI.buildHost()`](http://medialize.github.io/URI.js/docs.html#static-buildHost) to properly parse and build the IPv6 examples given in [RFC2732 Format for Literal IPv6 Addresses in URL's](http://tools.ietf.org/html/rfc2732#section-2) - ([Issue #144](https://github.com/medialize/URI.js/issues/144))
|
||||
* adding performance improvements to SecondLevelDomain - ([PR #122](https://github.com/medialize/URI.js/pull/122), [gorhill](https://github.com/gorhill))
|
||||
|
||||
### 1.12.1 (March 8th 2014) ###
|
||||
|
||||
* fixing [`.encodeQuery()`](http://medialize.github.io/URI.js/docs.html#static-encodeQuery) and [`.decodeQuery()`](http://medialize.github.io/URI.js/docs.html#static-decodeQuery) to respect [`URI.escapeQuerySpace`](http://medialize.github.io/URI.js/docs.html#setting-escapeQuerySpace) - ([Issue #137](https://github.com/medialize/URI.js/issues/137))
|
||||
* fixing fragment plugins to return URI for simpler loading - ([Issue #139](https://github.com/medialize/URI.js/issues/139))
|
||||
|
||||
### 1.12.0 (January 23rd 2014) ###
|
||||
|
||||
* fixing [`.absoluteTo()`](http://medialize.github.io/URI.js/docs.html#absoluteto) to comply with [RFC3986 Reference Resolution Examples](http://tools.ietf.org/html/rfc3986#section-5.4) - ([Issue #113](https://github.com/medialize/URI.js/issues/113))
|
||||
* fixing [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to maintain leading parent references (`../`) for relative paths, while removing them for absolute paths - ([Issue #133](https://github.com/medialize/URI.js/issues/133))
|
||||
* fixing `URI.protocol_expression` to properly accept `.` in compliance with [RFC 3986 - Scheme](http://tools.ietf.org/html/rfc3986#section-3.1) - ([Issue #132](https://github.com/medialize/URI.js/issues/132))
|
||||
* fixing [`URI.withinString()`](http://medialize.github.io/URI.js/docs.html#static-withinString) to not use backtracking prone regular expression `URI.find_uri_expression` anymore - ([Issue #131](https://github.com/medialize/URI.js/issues/131))
|
||||
* fixing [`URI.withinString()`](http://medialize.github.io/URI.js/docs.html#static-withinString) to accept options `ignore` and `ignoreHtml` to allow better control over which detected URLs get handled - ([Issue #117](https://github.com/medialize/URI.js/issues/117))
|
||||
* fixing [`URI.withinString()`](http://medialize.github.io/URI.js/docs.html#static-withinString) to accept option `start` to specify the RegExp used for finding the beginning of an URL (defaults to `/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi`) - ([Issue #115](https://github.com/medialize/URI.js/issues/115))
|
||||
|
||||
### 1.11.2 (August 14th 2013) ###
|
||||
|
||||
* fixing regression for Node.js introduced by `fixing unsafe eval by using UMD's root` - ([Issue #107](https://github.com/medialize/URI.js/issues/107))
|
||||
* fixing parser to accept malformed userinfo (non-encoded email address) - ([Issue #108](https://github.com/medialize/URI.js/issues/108))
|
||||
|
||||
### 1.11.1 (August 13th 2013) ###
|
||||
|
||||
* fixing inconsistent [`.relativeTo()`](http://medialize.github.io/URI.js/docs.html#relativeto) results caused by inconsistent URI component handling - ([Issue #103](https://github.com/medialize/URI.js/issues/103))
|
||||
* fixing unsafe eval by using UMD's root - ([Issue #105](https://github.com/medialize/URI.js/issues/105))
|
||||
* fixing [`.segment()`](http://medialize.github.io/URI.js/docs.html#accessors-segment) to allow appending an empty element - ([Issue #106](https://github.com/medialize/URI.js/issues/106))
|
||||
* fixing [`.segment()`](http://medialize.github.io/URI.js/docs.html#accessors-segment) to collapse empty elements in array notation
|
||||
|
||||
### 1.11.0 (August 6th 2013) ###
|
||||
|
||||
* adding [`.segmentCoded()`](http://medialize.github.io/URI.js/docs.html#accessors-segmentCoded) to provide en/decoding interface to `.segment()` - ([Issue #79](https://github.com/medialize/URI.js/issues/79))
|
||||
* optimize [`.relativeTo()`](http://medialize.github.io/URI.js/docs.html#relativeto) results - ([Issue #78](https://github.com/medialize/URI.js/issues/78), [Issue #95](https://github.com/medialize/URI.js/issues/95))
|
||||
* removing obsolete code fragments from `URI.parse()` and `relativeTo()` - ([Issue #100](https://github.com/medialize/URI.js/issues/100))
|
||||
* adding setting [`URI.escapeQuerySpace`](http://medialize.github.io/URI.js/docs.html#setting-escapeQuerySpace) to control if query string should escape spaces using `+` or `%20` - ([Issue #74](https://github.com/medialize/URI.js/issues/74))
|
||||
* updating [Punycode.js](https://github.com/bestiejs/punycode.js/) to version 1.2.3
|
||||
* fixing internal `strictEncodeURIComponent()` to work in Firefox 3.6 - ([Issue #91](https://github.com/medialize/URI.js/issues/91))
|
||||
* fixing [`.normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to properly resolve `/.` and `/.//` to `/` - ([Issue #97](https://github.com/medialize/URI.js/issues/97))
|
||||
* fixing [`.path()`](http://medialize.github.io/URI.js/docs.html#accessors-pathname) to return empty string if there is no path - ([Issue #82](https://github.com/medialize/URI.js/issues/82))
|
||||
* fixing crashing of `URI.decodeQuery()` on malformed input - now returns original undecoded data - ([Issue #87](https://github.com/medialize/URI.js/issues/87), [Issue #92](https://github.com/medialize/URI.js/issues/92))
|
||||
* fixing build tool - ([Issue #83](https://github.com/medialize/URI.js/issues/83))
|
||||
* fixing for-loop to make closure compiler happy - ([Issue #93](https://github.com/medialize/URI.js/issues/93))
|
||||
* adding [`URI.noConflict()`](http://medialize.github.io/URI.js/docs.html#static-noConflict) - ([Issue #84](https://github.com/medialize/URI.js/issue/84))
|
||||
* fixing whitespace in code - ([Issue #84](https://github.com/medialize/URI.js/issue/84))
|
||||
* fixing [`.readable()`](http://medialize.github.io/URI.js/docs.html#readable) to decode the hash value as well - ([Issue #90](https://github.com/medialize/URI.js/issue/90))
|
||||
* prevent `jquery.URI.js` from temporarily using `window.location` as the `href` of an empty attribute of a DOM element - ([Issue #94](https://github.com/medialize/URI.js/issues/94))
|
||||
* fixing internal `getType()` for IE8 with undefined value - ([Issue #96](https://github.com/medialize/URI.js/issues/96))
|
||||
* adding DOM elements to [URI constructor](http://medialize.github.io/URI.js/docs.html#constructor) - ([Issue #77](https://github.com/medialize/URI.js/issues/77)):
|
||||
* [`<a href="...">`](http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-a-element)
|
||||
* [`<blockquote cite="...">`](http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-blockquote-element)
|
||||
* [`<link href="...">`](http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#the-link-element)
|
||||
* [`<base href="...">`](http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#the-base-element)
|
||||
* [`<script src="...">`](http://www.w3.org/html/wg/drafts/html/master/scripting-1.html#script)
|
||||
* [`<form action="...">`](http://www.w3.org/html/wg/drafts/html/master/forms.html#the-form-element)
|
||||
* [`<input type="image" src="...">`](http://www.w3.org/html/wg/drafts/html/master/forms.html#the-input-element)
|
||||
* [`<img src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-img-element)
|
||||
* [`<area href="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-area-element)
|
||||
* [`<iframe src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-iframe-element)
|
||||
* [`<embed src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-embed-element)
|
||||
* [`<source src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-source-element)
|
||||
* [`<track src="...">`](http://www.w3.org/html/wg/drafts/html/master/embedded-content-0.html#the-track-element)
|
||||
* optimize `jquery.URI.js` to use new DOM element infrastructure
|
||||
|
||||
### 1.10.2 (April 15th 2013) ###
|
||||
|
||||
* fixing [`relativeTo()`](http://medialize.github.io/URI.js/docs.html#relativeto) - ([Issue #75](https://github.com/medialize/URI.js/issues/75))
|
||||
* fixing [`normalizePath()`](http://medialize.github.io/URI.js/docs.html#normalize-path) to not prepend `./` to relative paths - ([Issue #76](https://github.com/medialize/URI.js/issues/76))
|
||||
|
||||
### 1.10.1 (April 2nd 2013) ###
|
||||
|
||||
* adding [`absoluteTo()`](http://medialize.github.io/URI.js/docs.html#absoluteto) to properly resolve relative scheme - ([Issue #71](https://github.com/medialize/URI.js/issues/73))
|
||||
|
||||
### 1.10.0 (March 16th 2013) ###
|
||||
|
||||
* adding [`hasQuery()`](http://medialize.github.io/URI.js/docs.html#search-has) - ([Issue #71](https://github.com/medialize/URI.js/issues/71))
|
||||
* fixing URI property detection to return 'src' if none was detected (`jquery.URI.js`) - ([Issue #69](https://github.com/medialize/URI.js/issues/69))
|
||||
|
||||
### 1.9.1 (February 12th 2013) ###
|
||||
|
||||
* fixing IE9 compatibility with location import: `URI(location)`
|
||||
* fixing string character access for IE7 - ([Issue #67](https://github.com/medialize/URI.js/issues/67)), ([Issue #68](https://github.com/medialize/URI.js/issues/68))
|
||||
|
||||
### 1.9.0 (February 11th 2013) ###
|
||||
|
||||
* adding [`.setQuery()`](http://medialize.github.io/URI.js/docs.html#search-set) - ([Issue #64](https://github.com/medialize/URI.js/issues/64))
|
||||
* adding callback argument to [`.query()`](http://medialize.github.io/URI.js/docs.html#accessors-search)
|
||||
* adding jQuery 1.9.1 to the test suite
|
||||
|
||||
### 1.8.3 (January 9th 2013) ###
|
||||
|
||||
* fixing [UglifyJS2](https://github.com/mishoo/UglifyJS2) compression - ([Issue #60](https://github.com/medialize/URI.js/issues/60), [fidian](https://github.com/fidian))
|
||||
|
||||
### 1.8.2 (December 27th 2012) ###
|
||||
|
||||
* adding `.fragmentPrefix()` to configure prefix of fragmentURI and fragmentQuery extensions - ([Issue #55](https://github.com/medialize/URI.js/issues/55))
|
||||
* adding docs for [`.toString()`, `.valueOf()`](http://medialize.github.io/URI.js/docs.html#toString) and [`.href()`](http://medialize.github.io/URI.js/docs.html#href) - ([Issue #56](https://github.com/medialize/URI.js/issues/56))
|
||||
* fixing [`.relativeTo()`](http://medialize.github.io/URI.js/docs.html#relativeto) for descendants - ([Issue #57](https://github.com/medialize/URI.js/issues/57))
|
||||
|
||||
### 1.8.1 (November 15th 2012) ###
|
||||
|
||||
* fixing build() to properly omit empty query and fragment ([Issue #53](https://github.com/medialize/URI.js/issues/53))
|
||||
|
||||
### 1.8.0 (November 13th 2012) ###
|
||||
|
||||
* adding [`.resource()`](http://medialize.github.io/URI.js/docs.html#accessors-resource) as compound of [path, query, fragment]
|
||||
* adding jQuery 1.8.x compatibility for jQuery.URI.js (remaining backwards compatibility!)
|
||||
* adding default ports for gopher, ws, wss
|
||||
* adding [`.duplicateQueryParameters()`](http://medialize.github.io/URI.js/docs.html#setting-duplicateQueryParameters) to control if `key=value` duplicates have to be preserved or reduced ([Issue #51](https://github.com/medialize/URI.js/issues/51))
|
||||
* updating [Punycode.js](https://github.com/bestiejs/punycode.js/) to version 1.1.1
|
||||
* improving AMD/Node using [UMD returnExports](https://github.com/umdjs/umd/blob/master/returnExports.js) - ([Issue #44](https://github.com/medialize/URI.js/issues/44), [Issue #47](https://github.com/medialize/URI.js/issues/47))
|
||||
* fixing `.addQuery("empty")` to properly add `?empty` - ([Issue #46](https://github.com/medialize/URI.js/issues/46))
|
||||
* fixing parsing of badly formatted userinfo `http://username:pass:word@hostname`
|
||||
* fixing parsing of Windows-Drive-Letter paths `file://C:/WINDOWS/foo.txt`
|
||||
* fixing `URI(location)` to properly parse the URL - ([Issue #52](https://github.com/medialize/URI.js/issues/52))
|
||||
* fixing type error for fragment abuse demos - ([Issue #50](https://github.com/medialize/URI.js/issues/50))
|
||||
* adding documentation for various [encode/decode functions](http://medialize.github.io/URI.js/docs.html#encoding-decoding)
|
||||
* adding some pointers on possible problems with URLs to [About URIs](http://medialize.github.io/URI.js/about-uris.html)
|
||||
* adding tests for fragment abuse and splitting tests into separate scopes
|
||||
* adding meta-data for [Jam](http://jamjs.org/) and [Bower](http://twitter.github.com/bower/)
|
||||
|
||||
Note: QUnit seems to be having some difficulties on IE8. While the jQuery-plugin tests fail, the plugin itself works. We're still trying to figure out what's making QUnit "lose its config state".
|
||||
|
||||
### 1.7.4 (October 21st 2012) ###
|
||||
|
||||
* fixing parsing of `/wiki/Help:IPA` - ([Issue #49](https://github.com/medialize/URI.js/issues/49))
|
||||
|
||||
### 1.7.3 (October 11th 2012) ###
|
||||
|
||||
* fixing `strictEncodeURIComponent()` to properly encode `*` to `%2A`
|
||||
* fixing IE9's incorrect report of `img.href` being available - ([Issue #48](https://github.com/medialize/URI.js/issues/48))
|
||||
|
||||
### 1.7.2 (August 28th 2012) ###
|
||||
|
||||
* fixing SLD detection in [`.tld()`](http://medialize.github.io/URI.js/docs.html#accessors-tld) - `foot.se` would detect `t.se` - ([Issue #42](https://github.com/medialize/URI.js/issues/42))
|
||||
* fixing [`.absoluteTo()`](http://medialize.github.io/URI.js/docs.html#absoluteto) to comply with [RFC 3986 Section 5.2.2](http://tools.ietf.org/html/rfc3986#section-5.2.2) - ([Issue #41](https://github.com/medialize/URI.js/issues/41))
|
||||
* fixing `location` not being available in non-browser environments like node.js ([Issue #45](https://github.com/medialize/URI.js/issues/45) [grimen](https://github.com/grimen))
|
||||
|
||||
### 1.7.1 (August 14th 2012) ###
|
||||
|
||||
* fixing [`.segment()`](http://medialize.github.io/URI.js/docs.html#accessors-segment)'s append operation - ([Issue #39](https://github.com/medialize/URI.js/issues/39))
|
||||
|
||||
### 1.7.0 (August 11th 2012) ###
|
||||
|
||||
* fixing URI() constructor passing of `base` - ([Issue #33](https://github.com/medialize/URI.js/issues/33) [LarryBattle](https://github.com/LarryBattle))
|
||||
* adding [`.segment()`](http://medialize.github.io/URI.js/docs.html#accessors-segment) accessor - ([Issue #34](https://github.com/medialize/URI.js/issues/34))
|
||||
* upgrading `URI.encode()` to strict URI encoding according to RFC3986
|
||||
* adding `URI.encodeReserved()` to exclude reserved characters (according to RFC3986) from being encoded
|
||||
* adding [URI Template (RFC 6570)](http://tools.ietf.org/html/rfc6570) support with [`URITemplate()`](http://medialize.github.io/URI.js/uri-template.html)
|
||||
|
||||
### 1.6.3 (June 24th 2012) ###
|
||||
|
||||
* fixing [`.absoluteTo()`](http://medialize.github.io/URI.js/docs.html#absoluteto) to join two relative paths properly - ([Issue #29](https://github.com/medialize/URI.js/issues/29))
|
||||
* adding [`.clone()`](http://medialize.github.io/URI.js/docs.html#clone) to copy an URI instance
|
||||
|
||||
### 1.6.2 (June 23rd 2012) ###
|
||||
|
||||
* [`.directory()`](http://medialize.github.io/URI.js/docs.html#accessors-directory) now returns empty string if there is no directory
|
||||
* fixing [`.absoluteTo()`](http://medialize.github.io/URI.js/docs.html#absoluteto) to join two relative paths properly - ([Issue #29](https://github.com/medialize/URI.js/issues/29))
|
||||
|
||||
### 1.6.1 (May 19th 2012) ###
|
||||
|
||||
* fixing TypeError on [`.domain()`](http://medialize.github.io/URI.js/docs.html#accessors-domain) with dot-less hostnames - ([Issue #27](https://github.com/medialize/URI.js/issues/27))
|
||||
|
||||
### 1.6.0 (March 19th 2012) ###
|
||||
|
||||
* adding [URN](http://tools.ietf.org/html/rfc3986#section-3) (`javascript:`, `mailto:`, ...) support
|
||||
* adding [`.scheme()`](http://medialize.github.io/URI.js/docs.html#accessors-protocol) as alias of [`.protocol()`](http://medialize.github.io/URI.js/docs.html#accessors-protocol)
|
||||
* adding [`.userinfo()`](http://medialize.github.io/URI.js/docs.html#accessors-userinfo) to comply with terminology of [RFC 3986](http://tools.ietf.org/html/rfc3986#section-3.2.1)
|
||||
* adding [jQuery Plugin](http://medialize.github.io/URI.js/jquery-uri-plugin.html) `src/jquery.URI.js`
|
||||
* fixing relative scheme URLs - ([Issue #19](https://github.com/medialize/URI.js/issues/19) [byroot](https://github.com/byroot))
|
||||
|
||||
### 1.5.0 (February 19th 2012) ###
|
||||
|
||||
* adding Second Level Domain (SLD) Support - ([Issue #17](https://github.com/medialize/URI.js/issues/17))
|
||||
|
||||
### 1.4.3 (January 28th 2012) ###
|
||||
|
||||
* fixing global scope leakage - ([Issue #15](https://github.com/medialize/URI.js/issues/15) [mark-rushakoff](https://github.com/mark-rushakoff))
|
||||
|
||||
### 1.4.2 (January 25th 2012) ###
|
||||
|
||||
* improving CommonJS compatibility - ([Issue #14](https://github.com/medialize/URI.js/issues/14) [FGRibreau](https://github.com/FGRibreau))
|
||||
|
||||
### 1.4.1 (January 21st 2012) ###
|
||||
|
||||
* adding CommonJS compatibility - ([Issue #11](https://github.com/medialize/URI.js/issues/11), [Evangenieur](https://github.com/Evangenieur))
|
||||
|
||||
### 1.4.0 (January 12th 2012) ###
|
||||
|
||||
* adding [`URI.iso8859()`](http://medialize.github.io/URI.js/docs.html#static-iso8859) and [`URI.unicode()`](http://medialize.github.io/URI.js/docs.html#static-unicode) to switch base charsets - ([Issue #10](https://github.com/medialize/URI.js/issues/10), [mortenn](https://github.com/))
|
||||
* adding [`.iso8859()`](http://medialize.github.io/URI.js/docs.html#iso8859) and [`.unicode()`](http://medialize.github.io/URI.js/docs.html#unicode) to convert an URI's escape encoding
|
||||
|
||||
### 1.3.1 (January 3rd 2011) ###
|
||||
|
||||
* updating Punycode.js to version 0.3.0
|
||||
* adding edge-case tests ("jim")
|
||||
* fixing edge-cases in .protocol(), .port(), .subdomain(), .domain(), .tld(), .filename()
|
||||
* fixing parsing of hostname in [`.hostname()`](http://medialize.github.io/URI.js/docs.html#accessors-hostname)
|
||||
|
||||
### 1.3.0 (December 30th 2011) ###
|
||||
|
||||
* adding [`.subdomain()`](http://medialize.github.io/URI.js/docs.html#accessors-subdomain) convenience accessor
|
||||
* improving internal deferred build handling
|
||||
* fixing thrown Error for `URI("http://example.org").query(true)` - ([Issue #6](https://github.com/medialize/URI.js/issues/6))
|
||||
* adding examples for extending URI.js for [fragment abuse](http://medialize.github.io/URI.js/docs.html#fragment-abuse), see src/URI.fragmentQuery.js and src/URI.fragmentURI.js - ([Issue #2](https://github.com/medialize/URI.js/issues/2))
|
||||
|
||||
### 1.2.0 (December 29th 2011) ###
|
||||
|
||||
* adding [`.equals()`](http://medialize.github.io/URI.js/docs.html#equals) for URL comparison
|
||||
* fixing encoding/decoding for [`.pathname()`](http://medialize.github.io/URI.js/docs.html#accessors-pathname), [`.directory()`](http://medialize.github.io/URI.js/docs.html#accessors-directory), [`.filename()`](http://medialize.github.io/URI.js/docs.html#accessors-filename) and [`.suffix()`](http://medialize.github.io/URI.js/docs.html#accessors-suffix) according to [RFC 3986 3.3](http://tools.ietf.org/html/rfc3986#section-3.3)
|
||||
* fixing escape spaces in query strings with `+` according to [application/x-www-form-urlencoded](http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type)
|
||||
* fixing to allow [`URI.buildQuery()`](http://medialize.github.io/URI.js/docs.html#static-buildQuery) to build duplicate key=value combinations
|
||||
* fixing [`URI(string, string)`](http://medialize.github.io/URI.js/docs.html#constructor) constructor to conform with the [specification](http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#constructor)
|
||||
* adding [`.readable()`](http://medialize.github.io/URI.js/docs.html#readable) for humanly readable representation of encoded URIs
|
||||
* fixing bug where @ in pathname would be parsed as part of the authority
|
||||
|
||||
### 1.1.0 (December 28th 2011) ###
|
||||
|
||||
* adding [`URI.withinString()`](http://medialize.github.io/URI.js/docs.html#static-withinString)
|
||||
* adding [`.normalizeProtocol()`](http://medialize.github.io/URI.js/docs.html#normalize-protocol) to lowercase protocols
|
||||
* fixing [`.normalizeHostname()`](http://medialize.github.io/URI.js/docs.html#normalize-host) to lowercase hostnames
|
||||
* fixing String.substr() to be replaced by String.substring() - ([Issue #1](https://github.com/medialize/URI.js/issues/1))
|
||||
* fixing parsing "?foo" to `{foo: null}` [Algorithm for collecting URL parameters](http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters)
|
||||
* fixing building `{foo: null, bar: ""}` to "?foo&bar=" [Algorithm for serializing URL parameters](http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#url-parameter-serialization)
|
||||
* fixing RegExp escaping
|
||||
|
||||
### 1.0.0 (December 27th 2011) ###
|
||||
|
||||
* Initial URI.js
|
||||
21
node_modules/animation-utilities/node_modules/urijs/LICENSE.txt
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2011 Rodney Rehm
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
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
|
||||
THE SOFTWARE.
|
||||
244
node_modules/animation-utilities/node_modules/urijs/README.md
generated
vendored
Normal file
@@ -0,0 +1,244 @@
|
||||
# URI.js #
|
||||
|
||||
* [About](http://medialize.github.io/URI.js/)
|
||||
* [Understanding URIs](http://medialize.github.io/URI.js/about-uris.html)
|
||||
* [Documentation](http://medialize.github.io/URI.js/docs.html)
|
||||
* [jQuery URI Plugin](http://medialize.github.io/URI.js/jquery-uri-plugin.html)
|
||||
* [Author](http://rodneyrehm.de/en/)
|
||||
* [Changelog](./CHANGELOG.md)
|
||||
|
||||
---
|
||||
|
||||
> **NOTE:** The npm package name changed to `urijs`
|
||||
|
||||
---
|
||||
|
||||
I always want to shoot myself in the head when looking at code like the following:
|
||||
|
||||
```javascript
|
||||
var url = "http://example.org/foo?bar=baz";
|
||||
var separator = url.indexOf('?') > -1 ? '&' : '?';
|
||||
|
||||
url += separator + encodeURIComponent("foo") + "=" + encodeURIComponent("bar");
|
||||
```
|
||||
|
||||
Things are looking up with [URL](https://developer.mozilla.org/en/docs/Web/API/URL) and the [URL spec](http://url.spec.whatwg.org/) but until we can safely rely on that API, have a look at URI.js for a clean and simple API for mutating URIs:
|
||||
|
||||
```javascript
|
||||
var url = new URI("http://example.org/foo?bar=baz");
|
||||
url.addQuery("foo", "bar");
|
||||
```
|
||||
|
||||
URI.js is here to help with that.
|
||||
|
||||
|
||||
## API Example ##
|
||||
|
||||
```javascript
|
||||
// mutating URLs
|
||||
URI("http://example.org/foo.html?hello=world")
|
||||
.username("rodneyrehm")
|
||||
// -> http://rodneyrehm@example.org/foo.html?hello=world
|
||||
.username("")
|
||||
// -> http://example.org/foo.html?hello=world
|
||||
.directory("bar")
|
||||
// -> http://example.org/bar/foo.html?hello=world
|
||||
.suffix("xml")
|
||||
// -> http://example.org/bar/foo.xml?hello=world
|
||||
.query("")
|
||||
// -> http://example.org/bar/foo.xml
|
||||
.tld("com")
|
||||
// -> http://example.com/bar/foo.xml
|
||||
.query({ foo: "bar", hello: ["world", "mars"] });
|
||||
// -> http://example.com/bar/foo.xml?foo=bar&hello=world&hello=mars
|
||||
|
||||
// cleaning things up
|
||||
URI("?&foo=bar&&foo=bar&foo=baz&")
|
||||
.normalizeQuery();
|
||||
// -> ?foo=bar&foo=baz
|
||||
|
||||
// working with relative paths
|
||||
URI("/foo/bar/baz.html")
|
||||
.relativeTo("/foo/bar/world.html");
|
||||
// -> ./baz.html
|
||||
|
||||
URI("/foo/bar/baz.html")
|
||||
.relativeTo("/foo/bar/sub/world.html")
|
||||
// -> ../baz.html
|
||||
.absoluteTo("/foo/bar/sub/world.html");
|
||||
// -> /foo/bar/baz.html
|
||||
|
||||
// URI Templates
|
||||
URI.expand("/foo/{dir}/{file}", {
|
||||
dir: "bar",
|
||||
file: "world.html"
|
||||
});
|
||||
// -> /foo/bar/world.html
|
||||
```
|
||||
|
||||
See the [About Page](http://medialize.github.io/URI.js/) and [API Docs](http://medialize.github.io/URI.js/docs.html) for more stuff.
|
||||
|
||||
## Using URI.js ##
|
||||
|
||||
URI.js (without plugins) has a gzipped weight of about 7KB - if you include all extensions you end up at about 13KB. So unless you *need* second level domain support and use URI templates, we suggest you don't include them in your build. If you don't need a full featured URI mangler, it may be worth looking into the much smaller parser-only alternatives [listed below](#alternatives).
|
||||
|
||||
URI.js is available through [npm](https://www.npmjs.com/package/urijs), [bower](http://bower.io/search/?q=urijs), [bowercdn](http://bowercdn.net/package/urijs), [cdnjs](https://cdnjs.com/libraries/URI.js) and manually from the [build page](http://medialize.github.io/URI.js/build.html):
|
||||
|
||||
```bash
|
||||
# using bower
|
||||
bower install uri.js
|
||||
|
||||
# using npm
|
||||
npm install urijs
|
||||
```
|
||||
|
||||
### Browser ###
|
||||
|
||||
I guess you'll manage to use the [build tool](http://medialize.github.io/URI.js/build.html) or follow the [instructions below](#minify) to combine and minify the various files into URI.min.js - and I'm fairly certain you know how to `<script src=".../URI.min.js"></script>` that sucker, too.
|
||||
|
||||
### Node.js and NPM ###
|
||||
|
||||
Install with `npm install urijs` or add `"urijs"` to the dependencies in your `package.json`.
|
||||
|
||||
```javascript
|
||||
// load URI.js
|
||||
var URI = require('urijs');
|
||||
// load an optional module (e.g. URITemplate)
|
||||
var URITemplate = require('urijs/src/URITemplate');
|
||||
|
||||
URI("/foo/bar/baz.html")
|
||||
.relativeTo("/foo/bar/sub/world.html")
|
||||
// -> ../baz.html
|
||||
```
|
||||
|
||||
### RequireJS ###
|
||||
|
||||
Clone the URI.js repository or use a package manager to get URI.js into your project.
|
||||
|
||||
```javascript
|
||||
require.config({
|
||||
paths: {
|
||||
urijs: 'where-you-put-uri.js/src'
|
||||
}
|
||||
});
|
||||
|
||||
require(['urijs/URI'], function(URI) {
|
||||
console.log("URI.js and dependencies: ", URI("//amazon.co.uk").is('sld') ? 'loaded' : 'failed');
|
||||
});
|
||||
require(['urijs/URITemplate'], function(URITemplate) {
|
||||
console.log("URITemplate.js and dependencies: ", URITemplate._cache ? 'loaded' : 'failed');
|
||||
});
|
||||
```
|
||||
|
||||
## Minify ##
|
||||
|
||||
See the [build tool](http://medialize.github.io/URI.js/build.html) or use [Google Closure Compiler](http://closure-compiler.appspot.com/home):
|
||||
|
||||
```
|
||||
// ==ClosureCompiler==
|
||||
// @compilation_level SIMPLE_OPTIMIZATIONS
|
||||
// @output_file_name URI.min.js
|
||||
// @code_url http://medialize.github.io/URI.js/src/IPv6.js
|
||||
// @code_url http://medialize.github.io/URI.js/src/punycode.js
|
||||
// @code_url http://medialize.github.io/URI.js/src/SecondLevelDomains.js
|
||||
// @code_url http://medialize.github.io/URI.js/src/URI.js
|
||||
// @code_url http://medialize.github.io/URI.js/src/URITemplate.js
|
||||
// ==/ClosureCompiler==
|
||||
```
|
||||
|
||||
|
||||
## Resources ##
|
||||
|
||||
Documents specifying how URLs work:
|
||||
|
||||
* [URL - Living Standard](http://url.spec.whatwg.org/)
|
||||
* [RFC 3986 - Uniform Resource Identifier (URI): Generic Syntax](http://tools.ietf.org/html/rfc3986)
|
||||
* [RFC 3987 - Internationalized Resource Identifiers (IRI)](http://tools.ietf.org/html/rfc3987)
|
||||
* [RFC 2732 - Format for Literal IPv6 Addresses in URL's](http://tools.ietf.org/html/rfc2732)
|
||||
* [RFC 2368 - The `mailto:` URL Scheme](https://www.ietf.org/rfc/rfc2368.txt)
|
||||
* [RFC 2141 - URN Syntax](https://www.ietf.org/rfc/rfc2141.txt)
|
||||
* [IANA URN Namespace Registry](http://www.iana.org/assignments/urn-namespaces/urn-namespaces.xhtml)
|
||||
* [Punycode: A Bootstring encoding of Unicode for Internationalized Domain Names in Applications (IDNA)](http://tools.ietf.org/html/rfc3492)
|
||||
* [application/x-www-form-urlencoded](http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type) (Query String Parameters) and [application/x-www-form-urlencoded encoding algorithm](http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#application/x-www-form-urlencoded-encoding-algorithm)
|
||||
* [What every web developer must know about URL encoding](http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding)
|
||||
|
||||
Informal stuff
|
||||
|
||||
* [Parsing URLs for Fun and Profit](http://tools.ietf.org/html/draft-abarth-url-01)
|
||||
* [Naming URL components](http://tantek.com/2011/238/b1/many-ways-slice-url-name-pieces)
|
||||
|
||||
How other environments do things
|
||||
|
||||
* [Java URI Class](http://docs.oracle.com/javase/7/docs/api/java/net/URI.html)
|
||||
* [Java Inet6Address Class](http://docs.oracle.com/javase/1.5.0/docs/api/java/net/Inet6Address.html)
|
||||
* [Node.js URL API](http://nodejs.org/docs/latest/api/url.html)
|
||||
|
||||
[Discussion on Hacker News](https://news.ycombinator.com/item?id=3398837)
|
||||
|
||||
### Forks / Code-borrow ###
|
||||
|
||||
* [node-dom-urls](https://github.com/passy/node-dom-urls) passy's partial implementation of the W3C URL Spec Draft for Node
|
||||
* [urlutils](https://github.com/cofounders/urlutils) cofounders' `window.URL` constructor for Node
|
||||
|
||||
### Alternatives ###
|
||||
|
||||
If you don't like URI.js, you may like one of the following libraries. (If yours is not listed, drop me a line…)
|
||||
|
||||
#### Polyfill ####
|
||||
|
||||
* [DOM-URL-Polyfill](https://github.com/arv/DOM-URL-Polyfill/) arv's polyfill of the [DOM URL spec](https://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#interface-urlutils) for browsers
|
||||
* [inexorabletash](https://github.com/inexorabletash/polyfill/#whatwg-url-api) inexorabletash's [WHATWG URL API](http://url.spec.whatwg.org/)
|
||||
|
||||
#### URL Manipulation ####
|
||||
|
||||
* [The simple <a> URL Mutation "Hack"](http://jsfiddle.net/rodneyrehm/KkGUJ/) ([jsPerf comparison](http://jsperf.com/idl-attributes-vs-uri-js))
|
||||
* [URL.js](https://github.com/ericf/urljs)
|
||||
* [furl (Python)](https://github.com/gruns/furl)
|
||||
* [mediawiki Uri](https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/mediawiki/mediawiki.Uri.js?view=markup) (needs mw and jQuery)
|
||||
* [jurlp](https://github.com/tombonner/jurlp)
|
||||
* [jsUri](https://github.com/derek-watson/jsUri)
|
||||
|
||||
#### URL Parsers ####
|
||||
|
||||
* [The simple <a> URL Mutation "Hack"](http://jsfiddle.net/rodneyrehm/KkGUJ/) ([jsPerf comparison](http://jsperf.com/idl-attributes-vs-uri-js))
|
||||
* [URI Parser](http://blog.stevenlevithan.com/archives/parseuri)
|
||||
* [jQuery-URL-Parser](https://github.com/allmarkedup/jQuery-URL-Parser)
|
||||
* [Google Closure Uri](https://google.github.io/closure-library/api/class_goog_Uri.html)
|
||||
* [URI.js by Gary Court](https://github.com/garycourt/uri-js)
|
||||
|
||||
#### URI Template ####
|
||||
|
||||
* [uri-template](https://github.com/rezigned/uri-template.js) (supporting extraction as well) by Rezigne
|
||||
* [uri-templates](https://github.com/geraintluff/uri-templates) (supporting extraction as well) by Geraint Luff
|
||||
* [uri-templates](https://github.com/marc-portier/uri-templates) by Marc Portier
|
||||
* [uri-templates](https://github.com/geraintluff/uri-templates) by Geraint Luff (including reverse operation)
|
||||
* [URI Template JS](https://github.com/fxa/uritemplate-js) by Franz Antesberger
|
||||
* [Temple](https://github.com/brettstimmerman/temple) by Brett Stimmerman
|
||||
* ([jsperf comparison](http://jsperf.com/uri-templates/2))
|
||||
|
||||
#### Various ####
|
||||
|
||||
* [TLD.js](https://github.com/oncletom/tld.js) - second level domain names
|
||||
* [Public Suffix](http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1) - second level domain names
|
||||
* [uri-collection](https://github.com/scivey/uri-collection) - underscore based utility for working with many URIs
|
||||
|
||||
## Authors ##
|
||||
|
||||
* [Rodney Rehm](https://github.com/rodneyrehm)
|
||||
* [Various Contributors](https://github.com/medialize/URI.js/graphs/contributors)
|
||||
|
||||
|
||||
## Contains Code From ##
|
||||
|
||||
* [punycode.js](http://mths.be/punycode) - Mathias Bynens
|
||||
* [IPv6.js](http://intermapper.com/support/tools/IPV6-Validator.aspx) - Rich Brown - (rewrite of the original)
|
||||
|
||||
|
||||
## License ##
|
||||
|
||||
URI.js is published under the [MIT license](http://www.opensource.org/licenses/mit-license). Until version 1.13.2 URI.js was also published under the [GPL v3](http://opensource.org/licenses/GPL-3.0) license - but as this dual-licensing causes more questions than helps anyone, it was dropped with version 1.14.0.
|
||||
|
||||
|
||||
## Changelog ##
|
||||
|
||||
moved to [Changelog](./CHANGELOG.md)
|
||||
114
node_modules/animation-utilities/node_modules/urijs/package.json
generated
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"_from": "urijs@1.17.1",
|
||||
"_id": "urijs@1.17.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-vG1NrwxlfideDDpZAbV3sitGyPW4UORs1Y4MDwHtvpWO8n/W0CPNpemvAvgrt9oy4F7MmMWGpu3lz+BZFke+Bw==",
|
||||
"_location": "/animation-utilities/urijs",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "urijs@1.17.1",
|
||||
"name": "urijs",
|
||||
"escapedName": "urijs",
|
||||
"rawSpec": "1.17.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.17.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/animation-utilities"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/urijs/-/urijs-1.17.1.tgz",
|
||||
"_shasum": "0a28bf2e00dfc24eeb0974feb8268a238c7bac2d",
|
||||
"_spec": "urijs@1.17.1",
|
||||
"_where": "/tmp/jibo-npm/jibo-cli-3.0.7",
|
||||
"author": {
|
||||
"name": "Rodney Rehm",
|
||||
"url": "http://rodneyrehm.de"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/medialize/URI.js/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"categories": [
|
||||
"Parsers & Compilers",
|
||||
"Utilities"
|
||||
],
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Francois-Guillaume Ribreau",
|
||||
"email": "npm@fgribreau.com",
|
||||
"url": "http://fgribreau.com"
|
||||
},
|
||||
{
|
||||
"name": "Justin Chase",
|
||||
"email": "justin.m.chase@gmail.com",
|
||||
"url": "http://justinmchase.com"
|
||||
}
|
||||
],
|
||||
"deprecated": false,
|
||||
"description": "URI.js is a Javascript library for working with URLs.",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.2",
|
||||
"grunt-contrib-jshint": "~0.8.0",
|
||||
"jshint-stylish": "~0.1.5"
|
||||
},
|
||||
"files": [
|
||||
"src/URI.js",
|
||||
"src/IPv6.js",
|
||||
"src/SecondLevelDomains.js",
|
||||
"src/punycode.js",
|
||||
"src/URITemplate.js",
|
||||
"src/jquery.URI.js",
|
||||
"src/URI.min.js",
|
||||
"src/jquery.URI.min.js",
|
||||
"src/URI.fragmentQuery.js",
|
||||
"src/URI.fragmentURI.js",
|
||||
"LICENSE.txt"
|
||||
],
|
||||
"homepage": "http://medialize.github.io/URI.js/",
|
||||
"keywords": [
|
||||
"uri",
|
||||
"url",
|
||||
"urn",
|
||||
"uri mutation",
|
||||
"url mutation",
|
||||
"uri manipulation",
|
||||
"url manipulation",
|
||||
"uri template",
|
||||
"url template",
|
||||
"unified resource locator",
|
||||
"unified resource identifier",
|
||||
"query string",
|
||||
"RFC 3986",
|
||||
"RFC3986",
|
||||
"RFC 6570",
|
||||
"RFC6570",
|
||||
"jquery-plugin",
|
||||
"ecosystem:jquery"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./src/URI",
|
||||
"name": "urijs",
|
||||
"npmFileMap": [
|
||||
{
|
||||
"basePath": "/src/",
|
||||
"files": [
|
||||
"*.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"basePath": "/",
|
||||
"files": [
|
||||
"LICENSE.txt"
|
||||
]
|
||||
}
|
||||
],
|
||||
"npmName": "urijs",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/medialize/URI.js.git"
|
||||
},
|
||||
"title": "URI.js - Mutating URLs",
|
||||
"version": "1.17.1"
|
||||
}
|
||||
187
node_modules/animation-utilities/node_modules/urijs/src/IPv6.js
generated
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
/*!
|
||||
* URI.js - Mutating URLs
|
||||
* IPv6 Support
|
||||
*
|
||||
* Version: 1.17.1
|
||||
*
|
||||
* Author: Rodney Rehm
|
||||
* Web: http://medialize.github.io/URI.js/
|
||||
*
|
||||
* Licensed under
|
||||
* MIT License http://www.opensource.org/licenses/mit-license
|
||||
*
|
||||
*/
|
||||
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
if (typeof exports === 'object') {
|
||||
// Node
|
||||
module.exports = factory();
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(factory);
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
root.IPv6 = factory(root);
|
||||
}
|
||||
}(this, function (root) {
|
||||
'use strict';
|
||||
|
||||
/*
|
||||
var _in = "fe80:0000:0000:0000:0204:61ff:fe9d:f156";
|
||||
var _out = IPv6.best(_in);
|
||||
var _expected = "fe80::204:61ff:fe9d:f156";
|
||||
|
||||
console.log(_in, _out, _expected, _out === _expected);
|
||||
*/
|
||||
|
||||
// save current IPv6 variable, if any
|
||||
var _IPv6 = root && root.IPv6;
|
||||
|
||||
function bestPresentation(address) {
|
||||
// based on:
|
||||
// Javascript to test an IPv6 address for proper format, and to
|
||||
// present the "best text representation" according to IETF Draft RFC at
|
||||
// http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04
|
||||
// 8 Feb 2010 Rich Brown, Dartware, LLC
|
||||
// Please feel free to use this code as long as you provide a link to
|
||||
// http://www.intermapper.com
|
||||
// http://intermapper.com/support/tools/IPV6-Validator.aspx
|
||||
// http://download.dartware.com/thirdparty/ipv6validator.js
|
||||
|
||||
var _address = address.toLowerCase();
|
||||
var segments = _address.split(':');
|
||||
var length = segments.length;
|
||||
var total = 8;
|
||||
|
||||
// trim colons (:: or ::a:b:c… or …a:b:c::)
|
||||
if (segments[0] === '' && segments[1] === '' && segments[2] === '') {
|
||||
// must have been ::
|
||||
// remove first two items
|
||||
segments.shift();
|
||||
segments.shift();
|
||||
} else if (segments[0] === '' && segments[1] === '') {
|
||||
// must have been ::xxxx
|
||||
// remove the first item
|
||||
segments.shift();
|
||||
} else if (segments[length - 1] === '' && segments[length - 2] === '') {
|
||||
// must have been xxxx::
|
||||
segments.pop();
|
||||
}
|
||||
|
||||
length = segments.length;
|
||||
|
||||
// adjust total segments for IPv4 trailer
|
||||
if (segments[length - 1].indexOf('.') !== -1) {
|
||||
// found a "." which means IPv4
|
||||
total = 7;
|
||||
}
|
||||
|
||||
// fill empty segments them with "0000"
|
||||
var pos;
|
||||
for (pos = 0; pos < length; pos++) {
|
||||
if (segments[pos] === '') {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (pos < total) {
|
||||
segments.splice(pos, 1, '0000');
|
||||
while (segments.length < total) {
|
||||
segments.splice(pos, 0, '0000');
|
||||
}
|
||||
|
||||
length = segments.length;
|
||||
}
|
||||
|
||||
// strip leading zeros
|
||||
var _segments;
|
||||
for (var i = 0; i < total; i++) {
|
||||
_segments = segments[i].split('');
|
||||
for (var j = 0; j < 3 ; j++) {
|
||||
if (_segments[0] === '0' && _segments.length > 1) {
|
||||
_segments.splice(0,1);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
segments[i] = _segments.join('');
|
||||
}
|
||||
|
||||
// find longest sequence of zeroes and coalesce them into one segment
|
||||
var best = -1;
|
||||
var _best = 0;
|
||||
var _current = 0;
|
||||
var current = -1;
|
||||
var inzeroes = false;
|
||||
// i; already declared
|
||||
|
||||
for (i = 0; i < total; i++) {
|
||||
if (inzeroes) {
|
||||
if (segments[i] === '0') {
|
||||
_current += 1;
|
||||
} else {
|
||||
inzeroes = false;
|
||||
if (_current > _best) {
|
||||
best = current;
|
||||
_best = _current;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (segments[i] === '0') {
|
||||
inzeroes = true;
|
||||
current = i;
|
||||
_current = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (_current > _best) {
|
||||
best = current;
|
||||
_best = _current;
|
||||
}
|
||||
|
||||
if (_best > 1) {
|
||||
segments.splice(best, _best, '');
|
||||
}
|
||||
|
||||
length = segments.length;
|
||||
|
||||
// assemble remaining segments
|
||||
var result = '';
|
||||
if (segments[0] === '') {
|
||||
result = ':';
|
||||
}
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
result += segments[i];
|
||||
if (i === length - 1) {
|
||||
break;
|
||||
}
|
||||
|
||||
result += ':';
|
||||
}
|
||||
|
||||
if (segments[length - 1] === '') {
|
||||
result += ':';
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function noConflict() {
|
||||
/*jshint validthis: true */
|
||||
if (root.IPv6 === this) {
|
||||
root.IPv6 = _IPv6;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
return {
|
||||
best: bestPresentation,
|
||||
noConflict: noConflict
|
||||
};
|
||||
}));
|
||||
240
node_modules/animation-utilities/node_modules/urijs/src/SecondLevelDomains.js
generated
vendored
Normal file
@@ -0,0 +1,240 @@
|
||||
/*!
|
||||
* URI.js - Mutating URLs
|
||||
* Second Level Domain (SLD) Support
|
||||
*
|
||||
* Version: 1.17.1
|
||||
*
|
||||
* Author: Rodney Rehm
|
||||
* Web: http://medialize.github.io/URI.js/
|
||||
*
|
||||
* Licensed under
|
||||
* MIT License http://www.opensource.org/licenses/mit-license
|
||||
*
|
||||
*/
|
||||
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
if (typeof exports === 'object') {
|
||||
// Node
|
||||
module.exports = factory();
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(factory);
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
root.SecondLevelDomains = factory(root);
|
||||
}
|
||||
}(this, function (root) {
|
||||
'use strict';
|
||||
|
||||
// save current SecondLevelDomains variable, if any
|
||||
var _SecondLevelDomains = root && root.SecondLevelDomains;
|
||||
|
||||
var SLD = {
|
||||
// list of known Second Level Domains
|
||||
// converted list of SLDs from https://github.com/gavingmiller/second-level-domains
|
||||
// ----
|
||||
// publicsuffix.org is more current and actually used by a couple of browsers internally.
|
||||
// downside is it also contains domains like "dyndns.org" - which is fine for the security
|
||||
// issues browser have to deal with (SOP for cookies, etc) - but is way overboard for URI.js
|
||||
// ----
|
||||
list: {
|
||||
'ac':' com gov mil net org ',
|
||||
'ae':' ac co gov mil name net org pro sch ',
|
||||
'af':' com edu gov net org ',
|
||||
'al':' com edu gov mil net org ',
|
||||
'ao':' co ed gv it og pb ',
|
||||
'ar':' com edu gob gov int mil net org tur ',
|
||||
'at':' ac co gv or ',
|
||||
'au':' asn com csiro edu gov id net org ',
|
||||
'ba':' co com edu gov mil net org rs unbi unmo unsa untz unze ',
|
||||
'bb':' biz co com edu gov info net org store tv ',
|
||||
'bh':' biz cc com edu gov info net org ',
|
||||
'bn':' com edu gov net org ',
|
||||
'bo':' com edu gob gov int mil net org tv ',
|
||||
'br':' adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ',
|
||||
'bs':' com edu gov net org ',
|
||||
'bz':' du et om ov rg ',
|
||||
'ca':' ab bc mb nb nf nl ns nt nu on pe qc sk yk ',
|
||||
'ck':' biz co edu gen gov info net org ',
|
||||
'cn':' ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ',
|
||||
'co':' com edu gov mil net nom org ',
|
||||
'cr':' ac c co ed fi go or sa ',
|
||||
'cy':' ac biz com ekloges gov ltd name net org parliament press pro tm ',
|
||||
'do':' art com edu gob gov mil net org sld web ',
|
||||
'dz':' art asso com edu gov net org pol ',
|
||||
'ec':' com edu fin gov info med mil net org pro ',
|
||||
'eg':' com edu eun gov mil name net org sci ',
|
||||
'er':' com edu gov ind mil net org rochest w ',
|
||||
'es':' com edu gob nom org ',
|
||||
'et':' biz com edu gov info name net org ',
|
||||
'fj':' ac biz com info mil name net org pro ',
|
||||
'fk':' ac co gov net nom org ',
|
||||
'fr':' asso com f gouv nom prd presse tm ',
|
||||
'gg':' co net org ',
|
||||
'gh':' com edu gov mil org ',
|
||||
'gn':' ac com gov net org ',
|
||||
'gr':' com edu gov mil net org ',
|
||||
'gt':' com edu gob ind mil net org ',
|
||||
'gu':' com edu gov net org ',
|
||||
'hk':' com edu gov idv net org ',
|
||||
'hu':' 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ',
|
||||
'id':' ac co go mil net or sch web ',
|
||||
'il':' ac co gov idf k12 muni net org ',
|
||||
'in':' ac co edu ernet firm gen gov i ind mil net nic org res ',
|
||||
'iq':' com edu gov i mil net org ',
|
||||
'ir':' ac co dnssec gov i id net org sch ',
|
||||
'it':' edu gov ',
|
||||
'je':' co net org ',
|
||||
'jo':' com edu gov mil name net org sch ',
|
||||
'jp':' ac ad co ed go gr lg ne or ',
|
||||
'ke':' ac co go info me mobi ne or sc ',
|
||||
'kh':' com edu gov mil net org per ',
|
||||
'ki':' biz com de edu gov info mob net org tel ',
|
||||
'km':' asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ',
|
||||
'kn':' edu gov net org ',
|
||||
'kr':' ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ',
|
||||
'kw':' com edu gov net org ',
|
||||
'ky':' com edu gov net org ',
|
||||
'kz':' com edu gov mil net org ',
|
||||
'lb':' com edu gov net org ',
|
||||
'lk':' assn com edu gov grp hotel int ltd net ngo org sch soc web ',
|
||||
'lr':' com edu gov net org ',
|
||||
'lv':' asn com conf edu gov id mil net org ',
|
||||
'ly':' com edu gov id med net org plc sch ',
|
||||
'ma':' ac co gov m net org press ',
|
||||
'mc':' asso tm ',
|
||||
'me':' ac co edu gov its net org priv ',
|
||||
'mg':' com edu gov mil nom org prd tm ',
|
||||
'mk':' com edu gov inf name net org pro ',
|
||||
'ml':' com edu gov net org presse ',
|
||||
'mn':' edu gov org ',
|
||||
'mo':' com edu gov net org ',
|
||||
'mt':' com edu gov net org ',
|
||||
'mv':' aero biz com coop edu gov info int mil museum name net org pro ',
|
||||
'mw':' ac co com coop edu gov int museum net org ',
|
||||
'mx':' com edu gob net org ',
|
||||
'my':' com edu gov mil name net org sch ',
|
||||
'nf':' arts com firm info net other per rec store web ',
|
||||
'ng':' biz com edu gov mil mobi name net org sch ',
|
||||
'ni':' ac co com edu gob mil net nom org ',
|
||||
'np':' com edu gov mil net org ',
|
||||
'nr':' biz com edu gov info net org ',
|
||||
'om':' ac biz co com edu gov med mil museum net org pro sch ',
|
||||
'pe':' com edu gob mil net nom org sld ',
|
||||
'ph':' com edu gov i mil net ngo org ',
|
||||
'pk':' biz com edu fam gob gok gon gop gos gov net org web ',
|
||||
'pl':' art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ',
|
||||
'pr':' ac biz com edu est gov info isla name net org pro prof ',
|
||||
'ps':' com edu gov net org plo sec ',
|
||||
'pw':' belau co ed go ne or ',
|
||||
'ro':' arts com firm info nom nt org rec store tm www ',
|
||||
'rs':' ac co edu gov in org ',
|
||||
'sb':' com edu gov net org ',
|
||||
'sc':' com edu gov net org ',
|
||||
'sh':' co com edu gov net nom org ',
|
||||
'sl':' com edu gov net org ',
|
||||
'st':' co com consulado edu embaixada gov mil net org principe saotome store ',
|
||||
'sv':' com edu gob org red ',
|
||||
'sz':' ac co org ',
|
||||
'tr':' av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ',
|
||||
'tt':' aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ',
|
||||
'tw':' club com ebiz edu game gov idv mil net org ',
|
||||
'mu':' ac co com gov net or org ',
|
||||
'mz':' ac co edu gov org ',
|
||||
'na':' co com ',
|
||||
'nz':' ac co cri geek gen govt health iwi maori mil net org parliament school ',
|
||||
'pa':' abo ac com edu gob ing med net nom org sld ',
|
||||
'pt':' com edu gov int net nome org publ ',
|
||||
'py':' com edu gov mil net org ',
|
||||
'qa':' com edu gov mil net org ',
|
||||
're':' asso com nom ',
|
||||
'ru':' ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ',
|
||||
'rw':' ac co com edu gouv gov int mil net ',
|
||||
'sa':' com edu gov med net org pub sch ',
|
||||
'sd':' com edu gov info med net org tv ',
|
||||
'se':' a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ',
|
||||
'sg':' com edu gov idn net org per ',
|
||||
'sn':' art com edu gouv org perso univ ',
|
||||
'sy':' com edu gov mil net news org ',
|
||||
'th':' ac co go in mi net or ',
|
||||
'tj':' ac biz co com edu go gov info int mil name net nic org test web ',
|
||||
'tn':' agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ',
|
||||
'tz':' ac co go ne or ',
|
||||
'ua':' biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ',
|
||||
'ug':' ac co go ne or org sc ',
|
||||
'uk':' ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ',
|
||||
'us':' dni fed isa kids nsn ',
|
||||
'uy':' com edu gub mil net org ',
|
||||
've':' co com edu gob info mil net org web ',
|
||||
'vi':' co com k12 net org ',
|
||||
'vn':' ac biz com edu gov health info int name net org pro ',
|
||||
'ye':' co com gov ltd me net org plc ',
|
||||
'yu':' ac co edu gov org ',
|
||||
'za':' ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ',
|
||||
'zm':' ac co com edu gov net org sch '
|
||||
},
|
||||
// gorhill 2013-10-25: Using indexOf() instead Regexp(). Significant boost
|
||||
// in both performance and memory footprint. No initialization required.
|
||||
// http://jsperf.com/uri-js-sld-regex-vs-binary-search/4
|
||||
// Following methods use lastIndexOf() rather than array.split() in order
|
||||
// to avoid any memory allocations.
|
||||
has: function(domain) {
|
||||
var tldOffset = domain.lastIndexOf('.');
|
||||
if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
|
||||
return false;
|
||||
}
|
||||
var sldOffset = domain.lastIndexOf('.', tldOffset-1);
|
||||
if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
|
||||
return false;
|
||||
}
|
||||
var sldList = SLD.list[domain.slice(tldOffset+1)];
|
||||
if (!sldList) {
|
||||
return false;
|
||||
}
|
||||
return sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') >= 0;
|
||||
},
|
||||
is: function(domain) {
|
||||
var tldOffset = domain.lastIndexOf('.');
|
||||
if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
|
||||
return false;
|
||||
}
|
||||
var sldOffset = domain.lastIndexOf('.', tldOffset-1);
|
||||
if (sldOffset >= 0) {
|
||||
return false;
|
||||
}
|
||||
var sldList = SLD.list[domain.slice(tldOffset+1)];
|
||||
if (!sldList) {
|
||||
return false;
|
||||
}
|
||||
return sldList.indexOf(' ' + domain.slice(0, tldOffset) + ' ') >= 0;
|
||||
},
|
||||
get: function(domain) {
|
||||
var tldOffset = domain.lastIndexOf('.');
|
||||
if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
|
||||
return null;
|
||||
}
|
||||
var sldOffset = domain.lastIndexOf('.', tldOffset-1);
|
||||
if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
|
||||
return null;
|
||||
}
|
||||
var sldList = SLD.list[domain.slice(tldOffset+1)];
|
||||
if (!sldList) {
|
||||
return null;
|
||||
}
|
||||
if (sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') < 0) {
|
||||
return null;
|
||||
}
|
||||
return domain.slice(sldOffset+1);
|
||||
},
|
||||
noConflict: function(){
|
||||
if (root.SecondLevelDomains === this) {
|
||||
root.SecondLevelDomains = _SecondLevelDomains;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
};
|
||||
|
||||
return SLD;
|
||||
}));
|
||||
104
node_modules/animation-utilities/node_modules/urijs/src/URI.fragmentQuery.js
generated
vendored
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Extending URI.js for fragment abuse
|
||||
*/
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
// EXAMPLE: storing application/x-www-form-urlencoded data in the fragment
|
||||
// possibly helpful for Google's hashbangs
|
||||
// see http://code.google.com/web/ajaxcrawling/
|
||||
// --------------------------------------------------------------------------------
|
||||
|
||||
// Note: make sure this is the last file loaded!
|
||||
|
||||
// USAGE:
|
||||
// var uri = URI("http://example.org/#?foo=bar");
|
||||
// uri.fragment(true) === {foo: "bar"};
|
||||
// uri.fragment({bar: "foo"});
|
||||
// uri.toString() === "http://example.org/#?bar=foo";
|
||||
// uri.addFragment("name", "value");
|
||||
// uri.toString() === "http://example.org/#?bar=foo&name=value";
|
||||
// uri.removeFragment("name");
|
||||
// uri.toString() === "http://example.org/#?bar=foo";
|
||||
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
if (typeof exports === 'object') {
|
||||
// Node
|
||||
module.exports = factory(require('./URI'));
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['./URI'], factory);
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.URI);
|
||||
}
|
||||
}(this, function (URI) {
|
||||
'use strict';
|
||||
|
||||
var p = URI.prototype;
|
||||
// old fragment handler we need to wrap
|
||||
var f = p.fragment;
|
||||
|
||||
// make fragmentPrefix configurable
|
||||
URI.fragmentPrefix = '?';
|
||||
var _parts = URI._parts;
|
||||
URI._parts = function() {
|
||||
var parts = _parts();
|
||||
parts.fragmentPrefix = URI.fragmentPrefix;
|
||||
return parts;
|
||||
};
|
||||
p.fragmentPrefix = function(v) {
|
||||
this._parts.fragmentPrefix = v;
|
||||
return this;
|
||||
};
|
||||
|
||||
// add fragment(true) and fragment({key: value}) signatures
|
||||
p.fragment = function(v, build) {
|
||||
var prefix = this._parts.fragmentPrefix;
|
||||
var fragment = this._parts.fragment || '';
|
||||
|
||||
if (v === true) {
|
||||
if (fragment.substring(0, prefix.length) !== prefix) {
|
||||
return {};
|
||||
}
|
||||
|
||||
return URI.parseQuery(fragment.substring(prefix.length));
|
||||
} else if (v !== undefined && typeof v !== 'string') {
|
||||
this._parts.fragment = prefix + URI.buildQuery(v);
|
||||
this.build(!build);
|
||||
return this;
|
||||
} else {
|
||||
return f.call(this, v, build);
|
||||
}
|
||||
};
|
||||
p.addFragment = function(name, value, build) {
|
||||
var prefix = this._parts.fragmentPrefix;
|
||||
var data = URI.parseQuery((this._parts.fragment || '').substring(prefix.length));
|
||||
URI.addQuery(data, name, value);
|
||||
this._parts.fragment = prefix + URI.buildQuery(data);
|
||||
if (typeof name !== 'string') {
|
||||
build = value;
|
||||
}
|
||||
|
||||
this.build(!build);
|
||||
return this;
|
||||
};
|
||||
p.removeFragment = function(name, value, build) {
|
||||
var prefix = this._parts.fragmentPrefix;
|
||||
var data = URI.parseQuery((this._parts.fragment || '').substring(prefix.length));
|
||||
URI.removeQuery(data, name, value);
|
||||
this._parts.fragment = prefix + URI.buildQuery(data);
|
||||
if (typeof name !== 'string') {
|
||||
build = value;
|
||||
}
|
||||
|
||||
this.build(!build);
|
||||
return this;
|
||||
};
|
||||
p.addHash = p.addFragment;
|
||||
p.removeHash = p.removeFragment;
|
||||
|
||||
// extending existing object rather than defining something new
|
||||
return URI;
|
||||
}));
|
||||
97
node_modules/animation-utilities/node_modules/urijs/src/URI.fragmentURI.js
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Extending URI.js for fragment abuse
|
||||
*/
|
||||
|
||||
// --------------------------------------------------------------------------------
|
||||
// EXAMPLE: storing a relative URL in the fragment ("FragmentURI")
|
||||
// possibly helpful when working with backbone.js or sammy.js
|
||||
// inspired by https://github.com/medialize/URI.js/pull/2
|
||||
// --------------------------------------------------------------------------------
|
||||
|
||||
// Note: make sure this is the last file loaded!
|
||||
|
||||
// USAGE:
|
||||
// var uri = URI("http://example.org/#!/foo/bar/baz.html");
|
||||
// var furi = uri.fragment(true);
|
||||
// furi.pathname() === '/foo/bar/baz.html';
|
||||
// furi.pathname('/hello.html');
|
||||
// uri.toString() === "http://example.org/#!/hello.html"
|
||||
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
if (typeof exports === 'object') {
|
||||
// Node
|
||||
module.exports = factory(require('./URI'));
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['./URI'], factory);
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.URI);
|
||||
}
|
||||
}(this, function (URI) {
|
||||
'use strict';
|
||||
|
||||
var p = URI.prototype;
|
||||
// old handlers we need to wrap
|
||||
var f = p.fragment;
|
||||
var b = p.build;
|
||||
|
||||
// make fragmentPrefix configurable
|
||||
URI.fragmentPrefix = '!';
|
||||
var _parts = URI._parts;
|
||||
URI._parts = function() {
|
||||
var parts = _parts();
|
||||
parts.fragmentPrefix = URI.fragmentPrefix;
|
||||
return parts;
|
||||
};
|
||||
p.fragmentPrefix = function(v) {
|
||||
this._parts.fragmentPrefix = v;
|
||||
return this;
|
||||
};
|
||||
|
||||
// add fragment(true) and fragment(URI) signatures
|
||||
p.fragment = function(v, build) {
|
||||
var prefix = this._parts.fragmentPrefix;
|
||||
var fragment = this._parts.fragment || '';
|
||||
var furi;
|
||||
|
||||
if (v === true) {
|
||||
if (fragment.substring(0, prefix.length) !== prefix) {
|
||||
furi = URI('');
|
||||
} else {
|
||||
furi = new URI(fragment.substring(prefix.length));
|
||||
}
|
||||
|
||||
this._fragmentURI = furi;
|
||||
furi._parentURI = this;
|
||||
return furi;
|
||||
} else if (v !== undefined && typeof v !== 'string') {
|
||||
this._fragmentURI = v;
|
||||
v._parentURI = v;
|
||||
this._parts.fragment = prefix + v.toString();
|
||||
this.build(!build);
|
||||
return this;
|
||||
} else if (typeof v === 'string') {
|
||||
this._fragmentURI = undefined;
|
||||
}
|
||||
|
||||
return f.call(this, v, build);
|
||||
};
|
||||
|
||||
// make .build() of the actual URI aware of the FragmentURI
|
||||
p.build = function(deferBuild) {
|
||||
var t = b.call(this, deferBuild);
|
||||
|
||||
if (deferBuild !== false && this._parentURI) {
|
||||
// update the parent
|
||||
this._parentURI.fragment(this);
|
||||
}
|
||||
|
||||
return t;
|
||||
};
|
||||
|
||||
// extending existing object rather than defining something new
|
||||
return URI;
|
||||
}));
|
||||
2179
node_modules/animation-utilities/node_modules/urijs/src/URI.js
generated
vendored
Normal file
79
node_modules/animation-utilities/node_modules/urijs/src/URI.min.js
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
/*! URI.js v1.17.1 http://medialize.github.io/URI.js/ */
|
||||
/* build contains: IPv6.js, punycode.js, SecondLevelDomains.js, URI.js */
|
||||
(function(k,n){"object"===typeof exports?module.exports=n():"function"===typeof define&&define.amd?define(n):k.IPv6=n(k)})(this,function(k){var n=k&&k.IPv6;return{best:function(g){g=g.toLowerCase().split(":");var f=g.length,d=8;""===g[0]&&""===g[1]&&""===g[2]?(g.shift(),g.shift()):""===g[0]&&""===g[1]?g.shift():""===g[f-1]&&""===g[f-2]&&g.pop();f=g.length;-1!==g[f-1].indexOf(".")&&(d=7);var h;for(h=0;h<f&&""!==g[h];h++);if(h<d)for(g.splice(h,1,"0000");g.length<d;)g.splice(h,0,"0000");for(h=0;h<d;h++){for(var f=
|
||||
g[h].split(""),k=0;3>k;k++)if("0"===f[0]&&1<f.length)f.splice(0,1);else break;g[h]=f.join("")}var f=-1,p=k=0,n=-1,u=!1;for(h=0;h<d;h++)u?"0"===g[h]?p+=1:(u=!1,p>k&&(f=n,k=p)):"0"===g[h]&&(u=!0,n=h,p=1);p>k&&(f=n,k=p);1<k&&g.splice(f,k,"");f=g.length;d="";""===g[0]&&(d=":");for(h=0;h<f;h++){d+=g[h];if(h===f-1)break;d+=":"}""===g[f-1]&&(d+=":");return d},noConflict:function(){k.IPv6===this&&(k.IPv6=n);return this}}});
|
||||
(function(k){function n(d){throw new RangeError(e[d]);}function g(d,e){for(var f=d.length,h=[];f--;)h[f]=e(d[f]);return h}function f(d,e){var f=d.split("@"),h="";1<f.length&&(h=f[0]+"@",d=f[1]);d=d.replace(H,".");f=d.split(".");f=g(f,e).join(".");return h+f}function d(d){for(var e=[],f=0,h=d.length,g,a;f<h;)g=d.charCodeAt(f++),55296<=g&&56319>=g&&f<h?(a=d.charCodeAt(f++),56320==(a&64512)?e.push(((g&1023)<<10)+(a&1023)+65536):(e.push(g),f--)):e.push(g);return e}function h(d){return g(d,function(d){var e=
|
||||
"";65535<d&&(d-=65536,e+=t(d>>>10&1023|55296),d=56320|d&1023);return e+=t(d)}).join("")}function w(d,e){return d+22+75*(26>d)-((0!=e)<<5)}function p(d,e,f){var h=0;d=f?r(d/700):d>>1;for(d+=r(d/e);455<d;h+=36)d=r(d/35);return r(h+36*d/(d+38))}function D(d){var e=[],f=d.length,g,k=0,a=128,b=72,c,l,m,q,y;c=d.lastIndexOf("-");0>c&&(c=0);for(l=0;l<c;++l)128<=d.charCodeAt(l)&&n("not-basic"),e.push(d.charCodeAt(l));for(c=0<c?c+1:0;c<f;){l=k;g=1;for(m=36;;m+=36){c>=f&&n("invalid-input");q=d.charCodeAt(c++);
|
||||
q=10>q-48?q-22:26>q-65?q-65:26>q-97?q-97:36;(36<=q||q>r((2147483647-k)/g))&&n("overflow");k+=q*g;y=m<=b?1:m>=b+26?26:m-b;if(q<y)break;q=36-y;g>r(2147483647/q)&&n("overflow");g*=q}g=e.length+1;b=p(k-l,g,0==l);r(k/g)>2147483647-a&&n("overflow");a+=r(k/g);k%=g;e.splice(k++,0,a)}return h(e)}function u(e){var f,g,h,k,a,b,c,l,m,q=[],y,E,I;e=d(e);y=e.length;f=128;g=0;a=72;for(b=0;b<y;++b)m=e[b],128>m&&q.push(t(m));for((h=k=q.length)&&q.push("-");h<y;){c=2147483647;for(b=0;b<y;++b)m=e[b],m>=f&&m<c&&(c=m);
|
||||
E=h+1;c-f>r((2147483647-g)/E)&&n("overflow");g+=(c-f)*E;f=c;for(b=0;b<y;++b)if(m=e[b],m<f&&2147483647<++g&&n("overflow"),m==f){l=g;for(c=36;;c+=36){m=c<=a?1:c>=a+26?26:c-a;if(l<m)break;I=l-m;l=36-m;q.push(t(w(m+I%l,0)));l=r(I/l)}q.push(t(w(l,0)));a=p(g,E,h==k);g=0;++h}++g;++f}return q.join("")}var B="object"==typeof exports&&exports&&!exports.nodeType&&exports,C="object"==typeof module&&module&&!module.nodeType&&module,z="object"==typeof global&&global;if(z.global===z||z.window===z||z.self===z)k=
|
||||
z;var v,A=/^xn--/,F=/[^\x20-\x7E]/,H=/[\x2E\u3002\uFF0E\uFF61]/g,e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},r=Math.floor,t=String.fromCharCode,x;v={version:"1.3.2",ucs2:{decode:d,encode:h},decode:D,encode:u,toASCII:function(d){return f(d,function(d){return F.test(d)?"xn--"+u(d):d})},toUnicode:function(d){return f(d,function(d){return A.test(d)?D(d.slice(4).toLowerCase()):d})}};if("function"==
|
||||
typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return v});else if(B&&C)if(module.exports==B)C.exports=v;else for(x in v)v.hasOwnProperty(x)&&(B[x]=v[x]);else k.punycode=v})(this);
|
||||
(function(k,n){"object"===typeof exports?module.exports=n():"function"===typeof define&&define.amd?define(n):k.SecondLevelDomains=n(k)})(this,function(k){var n=k&&k.SecondLevelDomains,g={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",
|
||||
bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",
|
||||
ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ","do":" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",
|
||||
es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",
|
||||
id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ","in":" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",
|
||||
kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",
|
||||
mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",
|
||||
ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",
|
||||
ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",
|
||||
tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",
|
||||
rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",
|
||||
tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",
|
||||
us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch "},has:function(f){var d=f.lastIndexOf(".");if(0>=d||d>=f.length-1)return!1;
|
||||
var h=f.lastIndexOf(".",d-1);if(0>=h||h>=d-1)return!1;var k=g.list[f.slice(d+1)];return k?0<=k.indexOf(" "+f.slice(h+1,d)+" "):!1},is:function(f){var d=f.lastIndexOf(".");if(0>=d||d>=f.length-1||0<=f.lastIndexOf(".",d-1))return!1;var h=g.list[f.slice(d+1)];return h?0<=h.indexOf(" "+f.slice(0,d)+" "):!1},get:function(f){var d=f.lastIndexOf(".");if(0>=d||d>=f.length-1)return null;var h=f.lastIndexOf(".",d-1);if(0>=h||h>=d-1)return null;var k=g.list[f.slice(d+1)];return!k||0>k.indexOf(" "+f.slice(h+
|
||||
1,d)+" ")?null:f.slice(h+1)},noConflict:function(){k.SecondLevelDomains===this&&(k.SecondLevelDomains=n);return this}};return g});
|
||||
(function(k,n){"object"===typeof exports?module.exports=n(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):"function"===typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],n):k.URI=n(k.punycode,k.IPv6,k.SecondLevelDomains,k)})(this,function(k,n,g,f){function d(a,b){var c=1<=arguments.length,l=2<=arguments.length;if(!(this instanceof d))return c?l?new d(a,b):new d(a):new d;if(void 0===a){if(c)throw new TypeError("undefined is not a valid argument for URI");
|
||||
a="undefined"!==typeof location?location.href+"":""}this.href(a);return void 0!==b?this.absoluteTo(b):this}function h(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function w(a){return void 0===a?"Undefined":String(Object.prototype.toString.call(a)).slice(8,-1)}function p(a){return"Array"===w(a)}function D(a,b){var c={},d,m;if("RegExp"===w(b))c=null;else if(p(b))for(d=0,m=b.length;d<m;d++)c[b[d]]=!0;else c[b]=!0;d=0;for(m=a.length;d<m;d++)if(c&&void 0!==c[a[d]]||!c&&b.test(a[d]))a.splice(d,
|
||||
1),m--,d--;return a}function u(a,b){var c,d;if(p(b)){c=0;for(d=b.length;c<d;c++)if(!u(a,b[c]))return!1;return!0}var m=w(b);c=0;for(d=a.length;c<d;c++)if("RegExp"===m){if("string"===typeof a[c]&&a[c].match(b))return!0}else if(a[c]===b)return!0;return!1}function B(a,b){if(!p(a)||!p(b)||a.length!==b.length)return!1;a.sort();b.sort();for(var c=0,d=a.length;c<d;c++)if(a[c]!==b[c])return!1;return!0}function C(a){return a.replace(/^\/+|\/+$/g,"")}function z(a){return escape(a)}function v(a){return encodeURIComponent(a).replace(/[!'()*]/g,
|
||||
z).replace(/\*/g,"%2A")}function A(a){return function(b,c){if(void 0===b)return this._parts[a]||"";this._parts[a]=b||null;this.build(!c);return this}}function F(a,b){return function(c,d){if(void 0===c)return this._parts[a]||"";null!==c&&(c+="",c.charAt(0)===b&&(c=c.substring(1)));this._parts[a]=c;this.build(!d);return this}}var H=f&&f.URI;d.version="1.17.1";var e=d.prototype,r=Object.prototype.hasOwnProperty;d._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,
|
||||
port:null,path:null,query:null,fragment:null,duplicateQueryParameters:d.duplicateQueryParameters,escapeQuerySpace:d.escapeQuerySpace}};d.duplicateQueryParameters=!1;d.escapeQuerySpace=!0;d.protocol_expression=/^[a-z][a-z0-9.+-]*$/i;d.idn_expression=/[^a-z0-9\.-]/i;d.punycode_expression=/(xn--)/i;d.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;d.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
|
||||
d.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u2018\u2019]))/ig;d.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?\u00ab\u00bb\u201c\u201d\u201e\u2018\u2019]+$/};d.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};d.invalid_hostname_characters=
|
||||
/[^a-zA-Z0-9\.-]/;d.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"};d.getDomAttribute=function(a){if(a&&a.nodeName){var b=a.nodeName.toLowerCase();return"input"===b&&"image"!==a.type?void 0:d.domAttributes[b]}};d.encode=v;d.decode=decodeURIComponent;d.iso8859=function(){d.encode=escape;d.decode=unescape};d.unicode=function(){d.encode=v;d.decode=
|
||||
decodeURIComponent};d.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",",
|
||||
"%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}};d.encodeQuery=function(a,b){var c=d.encode(a+"");void 0===b&&(b=d.escapeQuerySpace);return b?c.replace(/%20/g,"+"):c};d.decodeQuery=function(a,b){a+="";void 0===b&&(b=d.escapeQuerySpace);try{return d.decode(b?a.replace(/\+/g,
|
||||
"%20"):a)}catch(c){return a}};var t={encode:"encode",decode:"decode"},x,G=function(a,b){return function(c){try{return d[b](c+"").replace(d.characters[a][b].expression,function(c){return d.characters[a][b].map[c]})}catch(l){return c}}};for(x in t)d[x+"PathSegment"]=G("pathname",t[x]),d[x+"UrnPathSegment"]=G("urnpath",t[x]);t=function(a,b,c){return function(l){var m;m=c?function(a){return d[b](d[c](a))}:d[b];l=(l+"").split(a);for(var e=0,f=l.length;e<f;e++)l[e]=m(l[e]);return l.join(a)}};d.decodePath=
|
||||
t("/","decodePathSegment");d.decodeUrnPath=t(":","decodeUrnPathSegment");d.recodePath=t("/","encodePathSegment","decode");d.recodeUrnPath=t(":","encodeUrnPathSegment","decode");d.encodeReserved=G("reserved","encode");d.parse=function(a,b){var c;b||(b={});c=a.indexOf("#");-1<c&&(b.fragment=a.substring(c+1)||null,a=a.substring(0,c));c=a.indexOf("?");-1<c&&(b.query=a.substring(c+1)||null,a=a.substring(0,c));"//"===a.substring(0,2)?(b.protocol=null,a=a.substring(2),a=d.parseAuthority(a,b)):(c=a.indexOf(":"),
|
||||
-1<c&&(b.protocol=a.substring(0,c)||null,b.protocol&&!b.protocol.match(d.protocol_expression)?b.protocol=void 0:"//"===a.substring(c+1,c+3)?(a=a.substring(c+3),a=d.parseAuthority(a,b)):(a=a.substring(c+1),b.urn=!0)));b.path=a;return b};d.parseHost=function(a,b){a=a.replace(/\\/g,"/");var c=a.indexOf("/"),d;-1===c&&(c=a.length);if("["===a.charAt(0))d=a.indexOf("]"),b.hostname=a.substring(1,d)||null,b.port=a.substring(d+2,c)||null,"/"===b.port&&(b.port=null);else{var m=a.indexOf(":");d=a.indexOf("/");
|
||||
m=a.indexOf(":",m+1);-1!==m&&(-1===d||m<d)?(b.hostname=a.substring(0,c)||null,b.port=null):(d=a.substring(0,c).split(":"),b.hostname=d[0]||null,b.port=d[1]||null)}b.hostname&&"/"!==a.substring(c).charAt(0)&&(c++,a="/"+a);return a.substring(c)||"/"};d.parseAuthority=function(a,b){a=d.parseUserinfo(a,b);return d.parseHost(a,b)};d.parseUserinfo=function(a,b){var c=a.indexOf("/"),l=a.lastIndexOf("@",-1<c?c:a.length-1);-1<l&&(-1===c||l<c)?(c=a.substring(0,l).split(":"),b.username=c[0]?d.decode(c[0]):null,
|
||||
c.shift(),b.password=c[0]?d.decode(c.join(":")):null,a=a.substring(l+1)):(b.username=null,b.password=null);return a};d.parseQuery=function(a,b){if(!a)return{};a=a.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!a)return{};for(var c={},l=a.split("&"),m=l.length,e,f,g=0;g<m;g++)if(e=l[g].split("="),f=d.decodeQuery(e.shift(),b),e=e.length?d.decodeQuery(e.join("="),b):null,r.call(c,f)){if("string"===typeof c[f]||null===c[f])c[f]=[c[f]];c[f].push(e)}else c[f]=e;return c};d.build=function(a){var b="";
|
||||
a.protocol&&(b+=a.protocol+":");a.urn||!b&&!a.hostname||(b+="//");b+=d.buildAuthority(a)||"";"string"===typeof a.path&&("/"!==a.path.charAt(0)&&"string"===typeof a.hostname&&(b+="/"),b+=a.path);"string"===typeof a.query&&a.query&&(b+="?"+a.query);"string"===typeof a.fragment&&a.fragment&&(b+="#"+a.fragment);return b};d.buildHost=function(a){var b="";if(a.hostname)b=d.ip6_expression.test(a.hostname)?b+("["+a.hostname+"]"):b+a.hostname;else return"";a.port&&(b+=":"+a.port);return b};d.buildAuthority=
|
||||
function(a){return d.buildUserinfo(a)+d.buildHost(a)};d.buildUserinfo=function(a){var b="";a.username&&(b+=d.encode(a.username),a.password&&(b+=":"+d.encode(a.password)),b+="@");return b};d.buildQuery=function(a,b,c){var l="",m,e,f,g;for(e in a)if(r.call(a,e)&&e)if(p(a[e]))for(m={},f=0,g=a[e].length;f<g;f++)void 0!==a[e][f]&&void 0===m[a[e][f]+""]&&(l+="&"+d.buildQueryParameter(e,a[e][f],c),!0!==b&&(m[a[e][f]+""]=!0));else void 0!==a[e]&&(l+="&"+d.buildQueryParameter(e,a[e],c));return l.substring(1)};
|
||||
d.buildQueryParameter=function(a,b,c){return d.encodeQuery(a,c)+(null!==b?"="+d.encodeQuery(b,c):"")};d.addQuery=function(a,b,c){if("object"===typeof b)for(var l in b)r.call(b,l)&&d.addQuery(a,l,b[l]);else if("string"===typeof b)void 0===a[b]?a[b]=c:("string"===typeof a[b]&&(a[b]=[a[b]]),p(c)||(c=[c]),a[b]=(a[b]||[]).concat(c));else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");};d.removeQuery=function(a,b,c){var l;if(p(b))for(c=0,l=b.length;c<l;c++)a[b[c]]=
|
||||
void 0;else if("RegExp"===w(b))for(l in a)b.test(l)&&(a[l]=void 0);else if("object"===typeof b)for(l in b)r.call(b,l)&&d.removeQuery(a,l,b[l]);else if("string"===typeof b)void 0!==c?"RegExp"===w(c)?!p(a[b])&&c.test(a[b])?a[b]=void 0:a[b]=D(a[b],c):a[b]!==String(c)||p(c)&&1!==c.length?p(a[b])&&(a[b]=D(a[b],c)):a[b]=void 0:a[b]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");};d.hasQuery=function(a,b,c,l){switch(w(b)){case "String":break;
|
||||
case "RegExp":for(var e in a)if(r.call(a,e)&&b.test(e)&&(void 0===c||d.hasQuery(a,e,c)))return!0;return!1;case "Object":for(var f in b)if(r.call(b,f)&&!d.hasQuery(a,f,b[f]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter");}switch(w(c)){case "Undefined":return b in a;case "Boolean":return a=!(p(a[b])?!a[b].length:!a[b]),c===a;case "Function":return!!c(a[b],b,a);case "Array":return p(a[b])?(l?u:B)(a[b],c):!1;case "RegExp":return p(a[b])?
|
||||
l?u(a[b],c):!1:!(!a[b]||!a[b].match(c));case "Number":c=String(c);case "String":return p(a[b])?l?u(a[b],c):!1:a[b]===c;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter");}};d.commonPath=function(a,b){var c=Math.min(a.length,b.length),d;for(d=0;d<c;d++)if(a.charAt(d)!==b.charAt(d)){d--;break}if(1>d)return a.charAt(0)===b.charAt(0)&&"/"===a.charAt(0)?"/":"";if("/"!==a.charAt(d)||"/"!==b.charAt(d))d=a.substring(0,d).lastIndexOf("/");
|
||||
return a.substring(0,d+1)};d.withinString=function(a,b,c){c||(c={});var l=c.start||d.findUri.start,e=c.end||d.findUri.end,f=c.trim||d.findUri.trim,g=/[a-z0-9-]=["']?$/i;for(l.lastIndex=0;;){var h=l.exec(a);if(!h)break;h=h.index;if(c.ignoreHtml){var k=a.slice(Math.max(h-3,0),h);if(k&&g.test(k))continue}var k=h+a.slice(h).search(e),n=a.slice(h,k).replace(f,"");c.ignore&&c.ignore.test(n)||(k=h+n.length,n=b(n,h,k,a),a=a.slice(0,h)+n+a.slice(k),l.lastIndex=h+n.length)}l.lastIndex=0;return a};d.ensureValidHostname=
|
||||
function(a){if(a.match(d.invalid_hostname_characters)){if(!k)throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(k.toASCII(a).match(d.invalid_hostname_characters))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-]');}};d.noConflict=function(a){if(a)return a={URI:this.noConflict()},f.URITemplate&&"function"===typeof f.URITemplate.noConflict&&(a.URITemplate=f.URITemplate.noConflict()),f.IPv6&&"function"===
|
||||
typeof f.IPv6.noConflict&&(a.IPv6=f.IPv6.noConflict()),f.SecondLevelDomains&&"function"===typeof f.SecondLevelDomains.noConflict&&(a.SecondLevelDomains=f.SecondLevelDomains.noConflict()),a;f.URI===this&&(f.URI=H);return this};e.build=function(a){if(!0===a)this._deferred_build=!0;else if(void 0===a||this._deferred_build)this._string=d.build(this._parts),this._deferred_build=!1;return this};e.clone=function(){return new d(this)};e.valueOf=e.toString=function(){return this.build(!1)._string};e.protocol=
|
||||
A("protocol");e.username=A("username");e.password=A("password");e.hostname=A("hostname");e.port=A("port");e.query=F("query","?");e.fragment=F("fragment","#");e.search=function(a,b){var c=this.query(a,b);return"string"===typeof c&&c.length?"?"+c:c};e.hash=function(a,b){var c=this.fragment(a,b);return"string"===typeof c&&c.length?"#"+c:c};e.pathname=function(a,b){if(void 0===a||!0===a){var c=this._parts.path||(this._parts.hostname?"/":"");return a?(this._parts.urn?d.decodeUrnPath:d.decodePath)(c):c}this._parts.path=
|
||||
this._parts.urn?a?d.recodeUrnPath(a):"":a?d.recodePath(a):"/";this.build(!b);return this};e.path=e.pathname;e.href=function(a,b){var c;if(void 0===a)return this.toString();this._string="";this._parts=d._parts();var l=a instanceof d,e="object"===typeof a&&(a.hostname||a.path||a.pathname);a.nodeName&&(e=d.getDomAttribute(a),a=a[e]||"",e=!1);!l&&e&&void 0!==a.pathname&&(a=a.toString());if("string"===typeof a||a instanceof String)this._parts=d.parse(String(a),this._parts);else if(l||e)for(c in l=l?a._parts:
|
||||
a,l)r.call(this._parts,c)&&(this._parts[c]=l[c]);else throw new TypeError("invalid input");this.build(!b);return this};e.is=function(a){var b=!1,c=!1,e=!1,f=!1,h=!1,k=!1,n=!1,p=!this._parts.urn;this._parts.hostname&&(p=!1,c=d.ip4_expression.test(this._parts.hostname),e=d.ip6_expression.test(this._parts.hostname),b=c||e,h=(f=!b)&&g&&g.has(this._parts.hostname),k=f&&d.idn_expression.test(this._parts.hostname),n=f&&d.punycode_expression.test(this._parts.hostname));switch(a.toLowerCase()){case "relative":return p;
|
||||
case "absolute":return!p;case "domain":case "name":return f;case "sld":return h;case "ip":return b;case "ip4":case "ipv4":case "inet4":return c;case "ip6":case "ipv6":case "inet6":return e;case "idn":return k;case "url":return!this._parts.urn;case "urn":return!!this._parts.urn;case "punycode":return n}return null};var J=e.protocol,K=e.port,L=e.hostname;e.protocol=function(a,b){if(void 0!==a&&a&&(a=a.replace(/:(\/\/)?$/,""),!a.match(d.protocol_expression)))throw new TypeError('Protocol "'+a+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");
|
||||
return J.call(this,a,b)};e.scheme=e.protocol;e.port=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0!==a&&(0===a&&(a=null),a&&(a+="",":"===a.charAt(0)&&(a=a.substring(1)),a.match(/[^0-9]/))))throw new TypeError('Port "'+a+'" contains characters other than [0-9]');return K.call(this,a,b)};e.hostname=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0!==a){var c={};if("/"!==d.parseHost(a,c))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-]');
|
||||
a=c.hostname}return L.call(this,a,b)};e.origin=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){var c=this.protocol();return this.authority()?(c?c+"://":"")+this.authority():""}c=d(a);this.protocol(c.protocol()).authority(c.authority()).build(!b);return this};e.host=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a)return this._parts.hostname?d.buildHost(this._parts):"";if("/"!==d.parseHost(a,this._parts))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-]');
|
||||
this.build(!b);return this};e.authority=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a)return this._parts.hostname?d.buildAuthority(this._parts):"";if("/"!==d.parseAuthority(a,this._parts))throw new TypeError('Hostname "'+a+'" contains characters other than [A-Z0-9.-]');this.build(!b);return this};e.userinfo=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){if(!this._parts.username)return"";var c=d.buildUserinfo(this._parts);return c.substring(0,c.length-
|
||||
1)}"@"!==a[a.length-1]&&(a+="@");d.parseUserinfo(a,this._parts);this.build(!b);return this};e.resource=function(a,b){var c;if(void 0===a)return this.path()+this.search()+this.hash();c=d.parse(a);this._parts.path=c.path;this._parts.query=c.query;this._parts.fragment=c.fragment;this.build(!b);return this};e.subdomain=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,
|
||||
c)||""}c=this._parts.hostname.length-this.domain().length;c=this._parts.hostname.substring(0,c);c=new RegExp("^"+h(c));a&&"."!==a.charAt(a.length-1)&&(a+=".");a&&d.ensureValidHostname(a);this._parts.hostname=this._parts.hostname.replace(c,a);this.build(!b);return this};e.domain=function(a,b){if(this._parts.urn)return void 0===a?"":this;"boolean"===typeof a&&(b=a,a=void 0);if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.match(/\./g);if(c&&2>c.length)return this._parts.hostname;
|
||||
c=this._parts.hostname.length-this.tld(b).length-1;c=this._parts.hostname.lastIndexOf(".",c-1)+1;return this._parts.hostname.substring(c)||""}if(!a)throw new TypeError("cannot set domain empty");d.ensureValidHostname(a);!this._parts.hostname||this.is("IP")?this._parts.hostname=a:(c=new RegExp(h(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(c,a));this.build(!b);return this};e.tld=function(a,b){if(this._parts.urn)return void 0===a?"":this;"boolean"===typeof a&&(b=a,a=void 0);
|
||||
if(void 0===a){if(!this._parts.hostname||this.is("IP"))return"";var c=this._parts.hostname.lastIndexOf("."),c=this._parts.hostname.substring(c+1);return!0!==b&&g&&g.list[c.toLowerCase()]?g.get(this._parts.hostname)||c:c}if(a)if(a.match(/[^a-zA-Z0-9-]/))if(g&&g.is(a))c=new RegExp(h(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(c,a);else throw new TypeError('TLD "'+a+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");
|
||||
c=new RegExp(h(this.tld())+"$");this._parts.hostname=this._parts.hostname.replace(c,a)}else throw new TypeError("cannot set TLD empty");this.build(!b);return this};e.directory=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var c=this._parts.path.length-this.filename().length-1,c=this._parts.path.substring(0,c)||(this._parts.hostname?"/":"");return a?d.decodePath(c):c}c=this._parts.path.length-
|
||||
this.filename().length;c=this._parts.path.substring(0,c);c=new RegExp("^"+h(c));this.is("relative")||(a||(a="/"),"/"!==a.charAt(0)&&(a="/"+a));a&&"/"!==a.charAt(a.length-1)&&(a+="/");a=d.recodePath(a);this._parts.path=this._parts.path.replace(c,a);this.build(!b);return this};e.filename=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path||"/"===this._parts.path)return"";var c=this._parts.path.lastIndexOf("/"),c=this._parts.path.substring(c+1);return a?
|
||||
d.decodePathSegment(c):c}c=!1;"/"===a.charAt(0)&&(a=a.substring(1));a.match(/\.?\//)&&(c=!0);var e=new RegExp(h(this.filename())+"$");a=d.recodePath(a);this._parts.path=this._parts.path.replace(e,a);c?this.normalizePath(b):this.build(!b);return this};e.suffix=function(a,b){if(this._parts.urn)return void 0===a?"":this;if(void 0===a||!0===a){if(!this._parts.path||"/"===this._parts.path)return"";var c=this.filename(),e=c.lastIndexOf(".");if(-1===e)return"";c=c.substring(e+1);c=/^[a-z0-9%]+$/i.test(c)?
|
||||
c:"";return a?d.decodePathSegment(c):c}"."===a.charAt(0)&&(a=a.substring(1));if(c=this.suffix())e=a?new RegExp(h(c)+"$"):new RegExp(h("."+c)+"$");else{if(!a)return this;this._parts.path+="."+d.recodePath(a)}e&&(a=d.recodePath(a),this._parts.path=this._parts.path.replace(e,a));this.build(!b);return this};e.segment=function(a,b,c){var d=this._parts.urn?":":"/",e=this.path(),f="/"===e.substring(0,1),e=e.split(d);void 0!==a&&"number"!==typeof a&&(c=b,b=a,a=void 0);if(void 0!==a&&"number"!==typeof a)throw Error('Bad segment "'+
|
||||
a+'", must be 0-based integer');f&&e.shift();0>a&&(a=Math.max(e.length+a,0));if(void 0===b)return void 0===a?e:e[a];if(null===a||void 0===e[a])if(p(b)){e=[];a=0;for(var g=b.length;a<g;a++)if(b[a].length||e.length&&e[e.length-1].length)e.length&&!e[e.length-1].length&&e.pop(),e.push(C(b[a]))}else{if(b||"string"===typeof b)b=C(b),""===e[e.length-1]?e[e.length-1]=b:e.push(b)}else b?e[a]=C(b):e.splice(a,1);f&&e.unshift("");return this.path(e.join(d),c)};e.segmentCoded=function(a,b,c){var e,f;"number"!==
|
||||
typeof a&&(c=b,b=a,a=void 0);if(void 0===b){a=this.segment(a,b,c);if(p(a))for(e=0,f=a.length;e<f;e++)a[e]=d.decode(a[e]);else a=void 0!==a?d.decode(a):void 0;return a}if(p(b))for(e=0,f=b.length;e<f;e++)b[e]=d.encode(b[e]);else b="string"===typeof b||b instanceof String?d.encode(b):b;return this.segment(a,b,c)};var M=e.query;e.query=function(a,b){if(!0===a)return d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"===typeof a){var c=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace),
|
||||
e=a.call(this,c);this._parts.query=d.buildQuery(e||c,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);this.build(!b);return this}return void 0!==a&&"string"!==typeof a?(this._parts.query=d.buildQuery(a,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!b),this):M.call(this,a,b)};e.setQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"===typeof a||a instanceof String)e[a]=void 0!==b?b:null;else if("object"===
|
||||
typeof a)for(var f in a)r.call(a,f)&&(e[f]=a[f]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");this._parts.query=d.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};e.addQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);d.addQuery(e,a,void 0===b?null:b);this._parts.query=d.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);
|
||||
"string"!==typeof a&&(c=b);this.build(!c);return this};e.removeQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);d.removeQuery(e,a,b);this._parts.query=d.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace);"string"!==typeof a&&(c=b);this.build(!c);return this};e.hasQuery=function(a,b,c){var e=d.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return d.hasQuery(e,a,b,c)};e.setSearch=e.setQuery;e.addSearch=e.addQuery;e.removeSearch=
|
||||
e.removeQuery;e.hasSearch=e.hasQuery;e.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()};e.normalizeProtocol=function(a){"string"===typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!a));return this};e.normalizeHostname=function(a){this._parts.hostname&&
|
||||
(this.is("IDN")&&k?this._parts.hostname=k.toASCII(this._parts.hostname):this.is("IPv6")&&n&&(this._parts.hostname=n.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!a));return this};e.normalizePort=function(a){"string"===typeof this._parts.protocol&&this._parts.port===d.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!a));return this};e.normalizePath=function(a){var b=this._parts.path;if(!b)return this;if(this._parts.urn)return this._parts.path=
|
||||
d.recodeUrnPath(this._parts.path),this.build(!a),this;if("/"===this._parts.path)return this;var b=d.recodePath(b),c,e="",f,g;"/"!==b.charAt(0)&&(c=!0,b="/"+b);if("/.."===b.slice(-3)||"/."===b.slice(-2))b+="/";b=b.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/");c&&(e=b.substring(1).match(/^(\.\.\/)+/)||"")&&(e=e[0]);for(;;){f=b.search(/\/\.\.(\/|$)/);if(-1===f)break;else if(0===f){b=b.substring(3);continue}g=b.substring(0,f).lastIndexOf("/");-1===g&&(g=f);b=b.substring(0,g)+b.substring(f+
|
||||
3)}c&&this.is("relative")&&(b=e+b.substring(1));this._parts.path=b;this.build(!a);return this};e.normalizePathname=e.normalizePath;e.normalizeQuery=function(a){"string"===typeof this._parts.query&&(this._parts.query.length?this.query(d.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!a));return this};e.normalizeFragment=function(a){this._parts.fragment||(this._parts.fragment=null,this.build(!a));return this};e.normalizeSearch=e.normalizeQuery;e.normalizeHash=
|
||||
e.normalizeFragment;e.iso8859=function(){var a=d.encode,b=d.decode;d.encode=escape;d.decode=decodeURIComponent;try{this.normalize()}finally{d.encode=a,d.decode=b}return this};e.unicode=function(){var a=d.encode,b=d.decode;d.encode=v;d.decode=unescape;try{this.normalize()}finally{d.encode=a,d.decode=b}return this};e.readable=function(){var a=this.clone();a.username("").password("").normalize();var b="";a._parts.protocol&&(b+=a._parts.protocol+"://");a._parts.hostname&&(a.is("punycode")&&k?(b+=k.toUnicode(a._parts.hostname),
|
||||
a._parts.port&&(b+=":"+a._parts.port)):b+=a.host());a._parts.hostname&&a._parts.path&&"/"!==a._parts.path.charAt(0)&&(b+="/");b+=a.path(!0);if(a._parts.query){for(var c="",e=0,f=a._parts.query.split("&"),g=f.length;e<g;e++){var h=(f[e]||"").split("="),c=c+("&"+d.decodeQuery(h[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"));void 0!==h[1]&&(c+="="+d.decodeQuery(h[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}b+="?"+c.substring(1)}return b+=d.decodeQuery(a.hash(),!0)};e.absoluteTo=function(a){var b=
|
||||
this.clone(),c=["protocol","username","password","hostname","port"],e,f;if(this._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a instanceof d||(a=new d(a));b._parts.protocol||(b._parts.protocol=a._parts.protocol);if(this._parts.hostname)return b;for(e=0;f=c[e];e++)b._parts[f]=a._parts[f];b._parts.path?".."===b._parts.path.substring(-2)&&(b._parts.path+="/"):(b._parts.path=a._parts.path,b._parts.query||(b._parts.query=a._parts.query));"/"!==b.path().charAt(0)&&
|
||||
(c=(c=a.directory())?c:0===a.path().indexOf("/")?"/":"",b._parts.path=(c?c+"/":"")+b._parts.path,b.normalizePath());b.build();return b};e.relativeTo=function(a){var b=this.clone().normalize(),c,e,f;if(b._parts.urn)throw Error("URNs do not have any generally defined hierarchical components");a=(new d(a)).normalize();c=b._parts;e=a._parts;f=b.path();a=a.path();if("/"!==f.charAt(0))throw Error("URI is already relative");if("/"!==a.charAt(0))throw Error("Cannot calculate a URI relative to another relative URI");
|
||||
c.protocol===e.protocol&&(c.protocol=null);if(c.username===e.username&&c.password===e.password&&null===c.protocol&&null===c.username&&null===c.password&&c.hostname===e.hostname&&c.port===e.port)c.hostname=null,c.port=null;else return b.build();if(f===a)return c.path="",b.build();f=d.commonPath(f,a);if(!f)return b.build();e=e.path.substring(f.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");c.path=e+c.path.substring(f.length)||"./";return b.build()};e.equals=function(a){var b=this.clone();a=new d(a);
|
||||
var c={},e={},f={},g;b.normalize();a.normalize();if(b.toString()===a.toString())return!0;c=b.query();e=a.query();b.query("");a.query("");if(b.toString()!==a.toString()||c.length!==e.length)return!1;c=d.parseQuery(c,this._parts.escapeQuerySpace);e=d.parseQuery(e,this._parts.escapeQuerySpace);for(g in c)if(r.call(c,g)){if(!p(c[g])){if(c[g]!==e[g])return!1}else if(!B(c[g],e[g]))return!1;f[g]=!0}for(g in e)if(r.call(e,g)&&!f[g])return!1;return!0};e.duplicateQueryParameters=function(a){this._parts.duplicateQueryParameters=
|
||||
!!a;return this};e.escapeQuerySpace=function(a){this._parts.escapeQuerySpace=!!a;return this};return d});
|
||||
498
node_modules/animation-utilities/node_modules/urijs/src/URITemplate.js
generated
vendored
Normal file
@@ -0,0 +1,498 @@
|
||||
/*!
|
||||
* URI.js - Mutating URLs
|
||||
* URI Template Support - http://tools.ietf.org/html/rfc6570
|
||||
*
|
||||
* Version: 1.17.1
|
||||
*
|
||||
* Author: Rodney Rehm
|
||||
* Web: http://medialize.github.io/URI.js/
|
||||
*
|
||||
* Licensed under
|
||||
* MIT License http://www.opensource.org/licenses/mit-license
|
||||
*
|
||||
*/
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
if (typeof exports === 'object') {
|
||||
// Node
|
||||
module.exports = factory(require('./URI'));
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['./URI'], factory);
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
root.URITemplate = factory(root.URI, root);
|
||||
}
|
||||
}(this, function (URI, root) {
|
||||
'use strict';
|
||||
// FIXME: v2.0.0 renamce non-camelCase properties to uppercase
|
||||
/*jshint camelcase: false */
|
||||
|
||||
// save current URITemplate variable, if any
|
||||
var _URITemplate = root && root.URITemplate;
|
||||
|
||||
var hasOwn = Object.prototype.hasOwnProperty;
|
||||
function URITemplate(expression) {
|
||||
// serve from cache where possible
|
||||
if (URITemplate._cache[expression]) {
|
||||
return URITemplate._cache[expression];
|
||||
}
|
||||
|
||||
// Allow instantiation without the 'new' keyword
|
||||
if (!(this instanceof URITemplate)) {
|
||||
return new URITemplate(expression);
|
||||
}
|
||||
|
||||
this.expression = expression;
|
||||
URITemplate._cache[expression] = this;
|
||||
return this;
|
||||
}
|
||||
|
||||
function Data(data) {
|
||||
this.data = data;
|
||||
this.cache = {};
|
||||
}
|
||||
|
||||
var p = URITemplate.prototype;
|
||||
// list of operators and their defined options
|
||||
var operators = {
|
||||
// Simple string expansion
|
||||
'' : {
|
||||
prefix: '',
|
||||
separator: ',',
|
||||
named: false,
|
||||
empty_name_separator: false,
|
||||
encode : 'encode'
|
||||
},
|
||||
// Reserved character strings
|
||||
'+' : {
|
||||
prefix: '',
|
||||
separator: ',',
|
||||
named: false,
|
||||
empty_name_separator: false,
|
||||
encode : 'encodeReserved'
|
||||
},
|
||||
// Fragment identifiers prefixed by '#'
|
||||
'#' : {
|
||||
prefix: '#',
|
||||
separator: ',',
|
||||
named: false,
|
||||
empty_name_separator: false,
|
||||
encode : 'encodeReserved'
|
||||
},
|
||||
// Name labels or extensions prefixed by '.'
|
||||
'.' : {
|
||||
prefix: '.',
|
||||
separator: '.',
|
||||
named: false,
|
||||
empty_name_separator: false,
|
||||
encode : 'encode'
|
||||
},
|
||||
// Path segments prefixed by '/'
|
||||
'/' : {
|
||||
prefix: '/',
|
||||
separator: '/',
|
||||
named: false,
|
||||
empty_name_separator: false,
|
||||
encode : 'encode'
|
||||
},
|
||||
// Path parameter name or name=value pairs prefixed by ';'
|
||||
';' : {
|
||||
prefix: ';',
|
||||
separator: ';',
|
||||
named: true,
|
||||
empty_name_separator: false,
|
||||
encode : 'encode'
|
||||
},
|
||||
// Query component beginning with '?' and consisting
|
||||
// of name=value pairs separated by '&'; an
|
||||
'?' : {
|
||||
prefix: '?',
|
||||
separator: '&',
|
||||
named: true,
|
||||
empty_name_separator: true,
|
||||
encode : 'encode'
|
||||
},
|
||||
// Continuation of query-style &name=value pairs
|
||||
// within a literal query component.
|
||||
'&' : {
|
||||
prefix: '&',
|
||||
separator: '&',
|
||||
named: true,
|
||||
empty_name_separator: true,
|
||||
encode : 'encode'
|
||||
}
|
||||
|
||||
// The operator characters equals ("="), comma (","), exclamation ("!"),
|
||||
// at sign ("@"), and pipe ("|") are reserved for future extensions.
|
||||
};
|
||||
|
||||
// storage for already parsed templates
|
||||
URITemplate._cache = {};
|
||||
// pattern to identify expressions [operator, variable-list] in template
|
||||
URITemplate.EXPRESSION_PATTERN = /\{([^a-zA-Z0-9%_]?)([^\}]+)(\}|$)/g;
|
||||
// pattern to identify variables [name, explode, maxlength] in variable-list
|
||||
URITemplate.VARIABLE_PATTERN = /^([^*:]+)((\*)|:(\d+))?$/;
|
||||
// pattern to verify variable name integrity
|
||||
URITemplate.VARIABLE_NAME_PATTERN = /[^a-zA-Z0-9%_]/;
|
||||
|
||||
// expand parsed expression (expression, not template!)
|
||||
URITemplate.expand = function(expression, data) {
|
||||
// container for defined options for the given operator
|
||||
var options = operators[expression.operator];
|
||||
// expansion type (include keys or not)
|
||||
var type = options.named ? 'Named' : 'Unnamed';
|
||||
// list of variables within the expression
|
||||
var variables = expression.variables;
|
||||
// result buffer for evaluating the expression
|
||||
var buffer = [];
|
||||
var d, variable, i;
|
||||
|
||||
for (i = 0; (variable = variables[i]); i++) {
|
||||
// fetch simplified data source
|
||||
d = data.get(variable.name);
|
||||
if (!d.val.length) {
|
||||
if (d.type) {
|
||||
// empty variables (empty string)
|
||||
// still lead to a separator being appended!
|
||||
buffer.push('');
|
||||
}
|
||||
// no data, no action
|
||||
continue;
|
||||
}
|
||||
|
||||
// expand the given variable
|
||||
buffer.push(URITemplate['expand' + type](
|
||||
d,
|
||||
options,
|
||||
variable.explode,
|
||||
variable.explode && options.separator || ',',
|
||||
variable.maxlength,
|
||||
variable.name
|
||||
));
|
||||
}
|
||||
|
||||
if (buffer.length) {
|
||||
return options.prefix + buffer.join(options.separator);
|
||||
} else {
|
||||
// prefix is not prepended for empty expressions
|
||||
return '';
|
||||
}
|
||||
};
|
||||
// expand a named variable
|
||||
URITemplate.expandNamed = function(d, options, explode, separator, length, name) {
|
||||
// variable result buffer
|
||||
var result = '';
|
||||
// peformance crap
|
||||
var encode = options.encode;
|
||||
var empty_name_separator = options.empty_name_separator;
|
||||
// flag noting if values are already encoded
|
||||
var _encode = !d[encode].length;
|
||||
// key for named expansion
|
||||
var _name = d.type === 2 ? '': URI[encode](name);
|
||||
var _value, i, l;
|
||||
|
||||
// for each found value
|
||||
for (i = 0, l = d.val.length; i < l; i++) {
|
||||
if (length) {
|
||||
// maxlength must be determined before encoding can happen
|
||||
_value = URI[encode](d.val[i][1].substring(0, length));
|
||||
if (d.type === 2) {
|
||||
// apply maxlength to keys of objects as well
|
||||
_name = URI[encode](d.val[i][0].substring(0, length));
|
||||
}
|
||||
} else if (_encode) {
|
||||
// encode value
|
||||
_value = URI[encode](d.val[i][1]);
|
||||
if (d.type === 2) {
|
||||
// encode name and cache encoded value
|
||||
_name = URI[encode](d.val[i][0]);
|
||||
d[encode].push([_name, _value]);
|
||||
} else {
|
||||
// cache encoded value
|
||||
d[encode].push([undefined, _value]);
|
||||
}
|
||||
} else {
|
||||
// values are already encoded and can be pulled from cache
|
||||
_value = d[encode][i][1];
|
||||
if (d.type === 2) {
|
||||
_name = d[encode][i][0];
|
||||
}
|
||||
}
|
||||
|
||||
if (result) {
|
||||
// unless we're the first value, prepend the separator
|
||||
result += separator;
|
||||
}
|
||||
|
||||
if (!explode) {
|
||||
if (!i) {
|
||||
// first element, so prepend variable name
|
||||
result += URI[encode](name) + (empty_name_separator || _value ? '=' : '');
|
||||
}
|
||||
|
||||
if (d.type === 2) {
|
||||
// without explode-modifier, keys of objects are returned comma-separated
|
||||
result += _name + ',';
|
||||
}
|
||||
|
||||
result += _value;
|
||||
} else {
|
||||
// only add the = if it is either default (?&) or there actually is a value (;)
|
||||
result += _name + (empty_name_separator || _value ? '=' : '') + _value;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
// expand an unnamed variable
|
||||
URITemplate.expandUnnamed = function(d, options, explode, separator, length) {
|
||||
// variable result buffer
|
||||
var result = '';
|
||||
// performance crap
|
||||
var encode = options.encode;
|
||||
var empty_name_separator = options.empty_name_separator;
|
||||
// flag noting if values are already encoded
|
||||
var _encode = !d[encode].length;
|
||||
var _name, _value, i, l;
|
||||
|
||||
// for each found value
|
||||
for (i = 0, l = d.val.length; i < l; i++) {
|
||||
if (length) {
|
||||
// maxlength must be determined before encoding can happen
|
||||
_value = URI[encode](d.val[i][1].substring(0, length));
|
||||
} else if (_encode) {
|
||||
// encode and cache value
|
||||
_value = URI[encode](d.val[i][1]);
|
||||
d[encode].push([
|
||||
d.type === 2 ? URI[encode](d.val[i][0]) : undefined,
|
||||
_value
|
||||
]);
|
||||
} else {
|
||||
// value already encoded, pull from cache
|
||||
_value = d[encode][i][1];
|
||||
}
|
||||
|
||||
if (result) {
|
||||
// unless we're the first value, prepend the separator
|
||||
result += separator;
|
||||
}
|
||||
|
||||
if (d.type === 2) {
|
||||
if (length) {
|
||||
// maxlength also applies to keys of objects
|
||||
_name = URI[encode](d.val[i][0].substring(0, length));
|
||||
} else {
|
||||
// at this point the name must already be encoded
|
||||
_name = d[encode][i][0];
|
||||
}
|
||||
|
||||
result += _name;
|
||||
if (explode) {
|
||||
// explode-modifier separates name and value by "="
|
||||
result += (empty_name_separator || _value ? '=' : '');
|
||||
} else {
|
||||
// no explode-modifier separates name and value by ","
|
||||
result += ',';
|
||||
}
|
||||
}
|
||||
|
||||
result += _value;
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
URITemplate.noConflict = function() {
|
||||
if (root.URITemplate === URITemplate) {
|
||||
root.URITemplate = _URITemplate;
|
||||
}
|
||||
|
||||
return URITemplate;
|
||||
};
|
||||
|
||||
// expand template through given data map
|
||||
p.expand = function(data) {
|
||||
var result = '';
|
||||
|
||||
if (!this.parts || !this.parts.length) {
|
||||
// lazilyy parse the template
|
||||
this.parse();
|
||||
}
|
||||
|
||||
if (!(data instanceof Data)) {
|
||||
// make given data available through the
|
||||
// optimized data handling thingie
|
||||
data = new Data(data);
|
||||
}
|
||||
|
||||
for (var i = 0, l = this.parts.length; i < l; i++) {
|
||||
/*jshint laxbreak: true */
|
||||
result += typeof this.parts[i] === 'string'
|
||||
// literal string
|
||||
? this.parts[i]
|
||||
// expression
|
||||
: URITemplate.expand(this.parts[i], data);
|
||||
/*jshint laxbreak: false */
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
// parse template into action tokens
|
||||
p.parse = function() {
|
||||
// performance crap
|
||||
var expression = this.expression;
|
||||
var ePattern = URITemplate.EXPRESSION_PATTERN;
|
||||
var vPattern = URITemplate.VARIABLE_PATTERN;
|
||||
var nPattern = URITemplate.VARIABLE_NAME_PATTERN;
|
||||
// token result buffer
|
||||
var parts = [];
|
||||
// position within source template
|
||||
var pos = 0;
|
||||
var variables, eMatch, vMatch;
|
||||
|
||||
// RegExp is shared accross all templates,
|
||||
// which requires a manual reset
|
||||
ePattern.lastIndex = 0;
|
||||
// I don't like while(foo = bar()) loops,
|
||||
// to make things simpler I go while(true) and break when required
|
||||
while (true) {
|
||||
eMatch = ePattern.exec(expression);
|
||||
if (eMatch === null) {
|
||||
// push trailing literal
|
||||
parts.push(expression.substring(pos));
|
||||
break;
|
||||
} else {
|
||||
// push leading literal
|
||||
parts.push(expression.substring(pos, eMatch.index));
|
||||
pos = eMatch.index + eMatch[0].length;
|
||||
}
|
||||
|
||||
if (!operators[eMatch[1]]) {
|
||||
throw new Error('Unknown Operator "' + eMatch[1] + '" in "' + eMatch[0] + '"');
|
||||
} else if (!eMatch[3]) {
|
||||
throw new Error('Unclosed Expression "' + eMatch[0] + '"');
|
||||
}
|
||||
|
||||
// parse variable-list
|
||||
variables = eMatch[2].split(',');
|
||||
for (var i = 0, l = variables.length; i < l; i++) {
|
||||
vMatch = variables[i].match(vPattern);
|
||||
if (vMatch === null) {
|
||||
throw new Error('Invalid Variable "' + variables[i] + '" in "' + eMatch[0] + '"');
|
||||
} else if (vMatch[1].match(nPattern)) {
|
||||
throw new Error('Invalid Variable Name "' + vMatch[1] + '" in "' + eMatch[0] + '"');
|
||||
}
|
||||
|
||||
variables[i] = {
|
||||
name: vMatch[1],
|
||||
explode: !!vMatch[3],
|
||||
maxlength: vMatch[4] && parseInt(vMatch[4], 10)
|
||||
};
|
||||
}
|
||||
|
||||
if (!variables.length) {
|
||||
throw new Error('Expression Missing Variable(s) "' + eMatch[0] + '"');
|
||||
}
|
||||
|
||||
parts.push({
|
||||
expression: eMatch[0],
|
||||
operator: eMatch[1],
|
||||
variables: variables
|
||||
});
|
||||
}
|
||||
|
||||
if (!parts.length) {
|
||||
// template doesn't contain any expressions
|
||||
// so it is a simple literal string
|
||||
// this probably should fire a warning or something?
|
||||
parts.push(expression);
|
||||
}
|
||||
|
||||
this.parts = parts;
|
||||
return this;
|
||||
};
|
||||
|
||||
// simplify data structures
|
||||
Data.prototype.get = function(key) {
|
||||
// performance crap
|
||||
var data = this.data;
|
||||
// cache for processed data-point
|
||||
var d = {
|
||||
// type of data 0: undefined/null, 1: string, 2: object, 3: array
|
||||
type: 0,
|
||||
// original values (except undefined/null)
|
||||
val: [],
|
||||
// cache for encoded values (only for non-maxlength expansion)
|
||||
encode: [],
|
||||
encodeReserved: []
|
||||
};
|
||||
var i, l, value;
|
||||
|
||||
if (this.cache[key] !== undefined) {
|
||||
// we've already processed this key
|
||||
return this.cache[key];
|
||||
}
|
||||
|
||||
this.cache[key] = d;
|
||||
|
||||
if (String(Object.prototype.toString.call(data)) === '[object Function]') {
|
||||
// data itself is a callback (global callback)
|
||||
value = data(key);
|
||||
} else if (String(Object.prototype.toString.call(data[key])) === '[object Function]') {
|
||||
// data is a map of callbacks (local callback)
|
||||
value = data[key](key);
|
||||
} else {
|
||||
// data is a map of data
|
||||
value = data[key];
|
||||
}
|
||||
|
||||
// generalize input into [ [name1, value1], [name2, value2], … ]
|
||||
// so expansion has to deal with a single data structure only
|
||||
if (value === undefined || value === null) {
|
||||
// undefined and null values are to be ignored completely
|
||||
return d;
|
||||
} else if (String(Object.prototype.toString.call(value)) === '[object Array]') {
|
||||
for (i = 0, l = value.length; i < l; i++) {
|
||||
if (value[i] !== undefined && value[i] !== null) {
|
||||
// arrays don't have names
|
||||
d.val.push([undefined, String(value[i])]);
|
||||
}
|
||||
}
|
||||
|
||||
if (d.val.length) {
|
||||
// only treat non-empty arrays as arrays
|
||||
d.type = 3; // array
|
||||
}
|
||||
} else if (String(Object.prototype.toString.call(value)) === '[object Object]') {
|
||||
for (i in value) {
|
||||
if (hasOwn.call(value, i) && value[i] !== undefined && value[i] !== null) {
|
||||
// objects have keys, remember them for named expansion
|
||||
d.val.push([i, String(value[i])]);
|
||||
}
|
||||
}
|
||||
|
||||
if (d.val.length) {
|
||||
// only treat non-empty objects as objects
|
||||
d.type = 2; // object
|
||||
}
|
||||
} else {
|
||||
d.type = 1; // primitive string (could've been string, number, boolean and objects with a toString())
|
||||
// arrays don't have names
|
||||
d.val.push([undefined, String(value)]);
|
||||
}
|
||||
|
||||
return d;
|
||||
};
|
||||
|
||||
// hook into URI for fluid access
|
||||
URI.expand = function(expression, data) {
|
||||
var template = new URITemplate(expression);
|
||||
var expansion = template.expand(data);
|
||||
|
||||
return new URI(expansion);
|
||||
};
|
||||
|
||||
return URITemplate;
|
||||
}));
|
||||
234
node_modules/animation-utilities/node_modules/urijs/src/jquery.URI.js
generated
vendored
Normal file
@@ -0,0 +1,234 @@
|
||||
/*!
|
||||
* URI.js - Mutating URLs
|
||||
* jQuery Plugin
|
||||
*
|
||||
* Version: 1.17.1
|
||||
*
|
||||
* Author: Rodney Rehm
|
||||
* Web: http://medialize.github.io/URI.js/jquery-uri-plugin.html
|
||||
*
|
||||
* Licensed under
|
||||
* MIT License http://www.opensource.org/licenses/mit-license
|
||||
*
|
||||
*/
|
||||
(function (root, factory) {
|
||||
'use strict';
|
||||
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
if (typeof exports === 'object') {
|
||||
// Node
|
||||
module.exports = factory(require('jquery', './URI'));
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(['jquery', './URI'], factory);
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
factory(root.jQuery, root.URI);
|
||||
}
|
||||
}(this, function ($, URI) {
|
||||
'use strict';
|
||||
// FIXME: v2.0.0 renamce non-camelCase properties to uppercase
|
||||
/*jshint camelcase: false */
|
||||
|
||||
var comparable = {};
|
||||
var compare = {
|
||||
// equals
|
||||
'=': function(value, target) {
|
||||
return value === target;
|
||||
},
|
||||
// ~= translates to value.match((?:^|\s)target(?:\s|$)) which is useless for URIs
|
||||
// |= translates to value.match((?:\b)target(?:-|\s|$)) which is useless for URIs
|
||||
// begins with
|
||||
'^=': function(value, target) {
|
||||
return !!(value + '').match(new RegExp('^' + escapeRegEx(target), 'i'));
|
||||
},
|
||||
// ends with
|
||||
'$=': function(value, target) {
|
||||
return !!(value + '').match(new RegExp(escapeRegEx(target) + '$', 'i'));
|
||||
},
|
||||
// contains
|
||||
'*=': function(value, target, property) {
|
||||
if (property === 'directory') {
|
||||
// add trailing slash so /dir/ will match the deep-end as well
|
||||
value += '/';
|
||||
}
|
||||
|
||||
return !!(value + '').match(new RegExp(escapeRegEx(target), 'i'));
|
||||
},
|
||||
'equals:': function(uri, target) {
|
||||
return uri.equals(target);
|
||||
},
|
||||
'is:': function(uri, target) {
|
||||
return uri.is(target);
|
||||
}
|
||||
};
|
||||
|
||||
function escapeRegEx(string) {
|
||||
// https://github.com/medialize/URI.js/commit/85ac21783c11f8ccab06106dba9735a31a86924d#commitcomment-821963
|
||||
return string.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
|
||||
}
|
||||
|
||||
function getUriProperty(elem) {
|
||||
var nodeName = elem.nodeName.toLowerCase();
|
||||
var property = URI.domAttributes[nodeName];
|
||||
if (nodeName === 'input' && elem.type !== 'image') {
|
||||
// compensate ambiguous <input> that is not an image
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// NOTE: as we use a static mapping from element to attribute,
|
||||
// the HTML5 attribute issue should not come up again
|
||||
// https://github.com/medialize/URI.js/issues/69
|
||||
return property;
|
||||
}
|
||||
|
||||
function generateAccessor(property) {
|
||||
return {
|
||||
get: function(elem) {
|
||||
return $(elem).uri()[property]();
|
||||
},
|
||||
set: function(elem, value) {
|
||||
$(elem).uri()[property](value);
|
||||
return value;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// populate lookup table and register $.attr('uri:accessor') handlers
|
||||
$.each('origin authority directory domain filename fragment hash host hostname href password path pathname port protocol query resource scheme search subdomain suffix tld username'.split(' '), function(k, v) {
|
||||
comparable[v] = true;
|
||||
$.attrHooks['uri:' + v] = generateAccessor(v);
|
||||
});
|
||||
|
||||
// pipe $.attr('src') and $.attr('href') through URI.js
|
||||
var _attrHooks = {
|
||||
get: function(elem) {
|
||||
return $(elem).uri();
|
||||
},
|
||||
set: function(elem, value) {
|
||||
return $(elem).uri().href(value).toString();
|
||||
}
|
||||
};
|
||||
$.each(['src', 'href', 'action', 'uri', 'cite'], function(k, v) {
|
||||
$.attrHooks[v] = {
|
||||
set: _attrHooks.set
|
||||
};
|
||||
});
|
||||
$.attrHooks.uri.get = _attrHooks.get;
|
||||
|
||||
// general URI accessor
|
||||
$.fn.uri = function(uri) {
|
||||
var $this = this.first();
|
||||
var elem = $this.get(0);
|
||||
var property = getUriProperty(elem);
|
||||
|
||||
if (!property) {
|
||||
throw new Error('Element "' + elem.nodeName + '" does not have either property: href, src, action, cite');
|
||||
}
|
||||
|
||||
if (uri !== undefined) {
|
||||
var old = $this.data('uri');
|
||||
if (old) {
|
||||
return old.href(uri);
|
||||
}
|
||||
|
||||
if (!(uri instanceof URI)) {
|
||||
uri = URI(uri || '');
|
||||
}
|
||||
} else {
|
||||
uri = $this.data('uri');
|
||||
if (uri) {
|
||||
return uri;
|
||||
} else {
|
||||
uri = URI($this.attr(property) || '');
|
||||
}
|
||||
}
|
||||
|
||||
uri._dom_element = elem;
|
||||
uri._dom_attribute = property;
|
||||
uri.normalize();
|
||||
$this.data('uri', uri);
|
||||
return uri;
|
||||
};
|
||||
|
||||
// overwrite URI.build() to update associated DOM element if necessary
|
||||
URI.prototype.build = function(deferBuild) {
|
||||
if (this._dom_element) {
|
||||
// cannot defer building when hooked into a DOM element
|
||||
this._string = URI.build(this._parts);
|
||||
this._deferred_build = false;
|
||||
this._dom_element.setAttribute(this._dom_attribute, this._string);
|
||||
this._dom_element[this._dom_attribute] = this._string;
|
||||
} else if (deferBuild === true) {
|
||||
this._deferred_build = true;
|
||||
} else if (deferBuild === undefined || this._deferred_build) {
|
||||
this._string = URI.build(this._parts);
|
||||
this._deferred_build = false;
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
// add :uri() pseudo class selector to sizzle
|
||||
var uriSizzle;
|
||||
var pseudoArgs = /^([a-zA-Z]+)\s*([\^\$*]?=|:)\s*(['"]?)(.+)\3|^\s*([a-zA-Z0-9]+)\s*$/;
|
||||
function uriPseudo (elem, text) {
|
||||
var match, property, uri;
|
||||
|
||||
// skip anything without src|href|action and bad :uri() syntax
|
||||
if (!getUriProperty(elem) || !text) {
|
||||
return false;
|
||||
}
|
||||
|
||||
match = text.match(pseudoArgs);
|
||||
|
||||
if (!match || (!match[5] && match[2] !== ':' && !compare[match[2]])) {
|
||||
// abort because the given selector cannot be executed
|
||||
// filers seem to fail silently
|
||||
return false;
|
||||
}
|
||||
|
||||
uri = $(elem).uri();
|
||||
|
||||
if (match[5]) {
|
||||
return uri.is(match[5]);
|
||||
} else if (match[2] === ':') {
|
||||
property = match[1].toLowerCase() + ':';
|
||||
if (!compare[property]) {
|
||||
// filers seem to fail silently
|
||||
return false;
|
||||
}
|
||||
|
||||
return compare[property](uri, match[4]);
|
||||
} else {
|
||||
property = match[1].toLowerCase();
|
||||
if (!comparable[property]) {
|
||||
// filers seem to fail silently
|
||||
return false;
|
||||
}
|
||||
|
||||
return compare[match[2]](uri[property](), match[4], property);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($.expr.createPseudo) {
|
||||
// jQuery >= 1.8
|
||||
uriSizzle = $.expr.createPseudo(function (text) {
|
||||
return function (elem) {
|
||||
return uriPseudo(elem, text);
|
||||
};
|
||||
});
|
||||
} else {
|
||||
// jQuery < 1.8
|
||||
uriSizzle = function (elem, i, match) {
|
||||
return uriPseudo(elem, match[3]);
|
||||
};
|
||||
}
|
||||
|
||||
$.expr[':'].uri = uriSizzle;
|
||||
|
||||
// extending existing object rather than defining something new,
|
||||
// return jQuery anyway
|
||||
return $;
|
||||
}));
|
||||
7
node_modules/animation-utilities/node_modules/urijs/src/jquery.URI.min.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/*! URI.js v1.17.1 http://medialize.github.io/URI.js/ */
|
||||
/* build contains: jquery.URI.js */
|
||||
(function(d,e){"object"===typeof exports?module.exports=e(require("jquery","./URI")):"function"===typeof define&&define.amd?define(["jquery","./URI"],e):e(d.jQuery,d.URI)})(this,function(d,e){function h(a){return a.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function k(a){var b=a.nodeName.toLowerCase();return"input"===b&&"image"!==a.type?void 0:e.domAttributes[b]}function p(a){return{get:function(b){return d(b).uri()[a]()},set:function(b,c){d(b).uri()[a](c);return c}}}function l(a,b){var c,e,f;if(!k(a)||
|
||||
!b)return!1;c=b.match(q);if(!c||!c[5]&&":"!==c[2]&&!g[c[2]])return!1;f=d(a).uri();if(c[5])return f.is(c[5]);if(":"===c[2])return e=c[1].toLowerCase()+":",g[e]?g[e](f,c[4]):!1;e=c[1].toLowerCase();return m[e]?g[c[2]](f[e](),c[4],e):!1}var m={},g={"=":function(a,b){return a===b},"^=":function(a,b){return!!(a+"").match(new RegExp("^"+h(b),"i"))},"$=":function(a,b){return!!(a+"").match(new RegExp(h(b)+"$","i"))},"*=":function(a,b,c){"directory"===c&&(a+="/");return!!(a+"").match(new RegExp(h(b),"i"))},
|
||||
"equals:":function(a,b){return a.equals(b)},"is:":function(a,b){return a.is(b)}};d.each("origin authority directory domain filename fragment hash host hostname href password path pathname port protocol query resource scheme search subdomain suffix tld username".split(" "),function(a,b){m[b]=!0;d.attrHooks["uri:"+b]=p(b)});var r=function(a,b){return d(a).uri().href(b).toString()};d.each(["src","href","action","uri","cite"],function(a,b){d.attrHooks[b]={set:r}});d.attrHooks.uri.get=function(a){return d(a).uri()};
|
||||
d.fn.uri=function(a){var b=this.first(),c=b.get(0),d=k(c);if(!d)throw Error('Element "'+c.nodeName+'" does not have either property: href, src, action, cite');if(void 0!==a){var f=b.data("uri");if(f)return f.href(a);a instanceof e||(a=e(a||""))}else{if(a=b.data("uri"))return a;a=e(b.attr(d)||"")}a._dom_element=c;a._dom_attribute=d;a.normalize();b.data("uri",a);return a};e.prototype.build=function(a){if(this._dom_element)this._string=e.build(this._parts),this._deferred_build=!1,this._dom_element.setAttribute(this._dom_attribute,
|
||||
this._string),this._dom_element[this._dom_attribute]=this._string;else if(!0===a)this._deferred_build=!0;else if(void 0===a||this._deferred_build)this._string=e.build(this._parts),this._deferred_build=!1;return this};var n,q=/^([a-zA-Z]+)\s*([\^\$*]?=|:)\s*(['"]?)(.+)\3|^\s*([a-zA-Z0-9]+)\s*$/;n=d.expr.createPseudo?d.expr.createPseudo(function(a){return function(b){return l(b,a)}}):function(a,b,c){return l(a,c[3])};d.expr[":"].uri=n;return d});
|
||||
533
node_modules/animation-utilities/node_modules/urijs/src/punycode.js
generated
vendored
Normal file
@@ -0,0 +1,533 @@
|
||||
/*! https://mths.be/punycode v1.4.0 by @mathias */
|
||||
;(function(root) {
|
||||
|
||||
/** Detect free variables */
|
||||
var freeExports = typeof exports == 'object' && exports &&
|
||||
!exports.nodeType && exports;
|
||||
var freeModule = typeof module == 'object' && module &&
|
||||
!module.nodeType && module;
|
||||
var freeGlobal = typeof global == 'object' && global;
|
||||
if (
|
||||
freeGlobal.global === freeGlobal ||
|
||||
freeGlobal.window === freeGlobal ||
|
||||
freeGlobal.self === freeGlobal
|
||||
) {
|
||||
root = freeGlobal;
|
||||
}
|
||||
|
||||
/**
|
||||
* The `punycode` object.
|
||||
* @name punycode
|
||||
* @type Object
|
||||
*/
|
||||
var punycode,
|
||||
|
||||
/** Highest positive signed 32-bit float value */
|
||||
maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
|
||||
|
||||
/** Bootstring parameters */
|
||||
base = 36,
|
||||
tMin = 1,
|
||||
tMax = 26,
|
||||
skew = 38,
|
||||
damp = 700,
|
||||
initialBias = 72,
|
||||
initialN = 128, // 0x80
|
||||
delimiter = '-', // '\x2D'
|
||||
|
||||
/** Regular expressions */
|
||||
regexPunycode = /^xn--/,
|
||||
regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
|
||||
regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
|
||||
|
||||
/** Error messages */
|
||||
errors = {
|
||||
'overflow': 'Overflow: input needs wider integers to process',
|
||||
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
|
||||
'invalid-input': 'Invalid input'
|
||||
},
|
||||
|
||||
/** Convenience shortcuts */
|
||||
baseMinusTMin = base - tMin,
|
||||
floor = Math.floor,
|
||||
stringFromCharCode = String.fromCharCode,
|
||||
|
||||
/** Temporary variable */
|
||||
key;
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* A generic error utility function.
|
||||
* @private
|
||||
* @param {String} type The error type.
|
||||
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
||||
*/
|
||||
function error(type) {
|
||||
throw new RangeError(errors[type]);
|
||||
}
|
||||
|
||||
/**
|
||||
* A generic `Array#map` utility function.
|
||||
* @private
|
||||
* @param {Array} array The array to iterate over.
|
||||
* @param {Function} callback The function that gets called for every array
|
||||
* item.
|
||||
* @returns {Array} A new array of values returned by the callback function.
|
||||
*/
|
||||
function map(array, fn) {
|
||||
var length = array.length;
|
||||
var result = [];
|
||||
while (length--) {
|
||||
result[length] = fn(array[length]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple `Array#map`-like wrapper to work with domain name strings or email
|
||||
* addresses.
|
||||
* @private
|
||||
* @param {String} domain The domain name or email address.
|
||||
* @param {Function} callback The function that gets called for every
|
||||
* character.
|
||||
* @returns {Array} A new string of characters returned by the callback
|
||||
* function.
|
||||
*/
|
||||
function mapDomain(string, fn) {
|
||||
var parts = string.split('@');
|
||||
var result = '';
|
||||
if (parts.length > 1) {
|
||||
// In email addresses, only the domain name should be punycoded. Leave
|
||||
// the local part (i.e. everything up to `@`) intact.
|
||||
result = parts[0] + '@';
|
||||
string = parts[1];
|
||||
}
|
||||
// Avoid `split(regex)` for IE8 compatibility. See #17.
|
||||
string = string.replace(regexSeparators, '\x2E');
|
||||
var labels = string.split('.');
|
||||
var encoded = map(labels, fn).join('.');
|
||||
return result + encoded;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an array containing the numeric code points of each Unicode
|
||||
* character in the string. While JavaScript uses UCS-2 internally,
|
||||
* this function will convert a pair of surrogate halves (each of which
|
||||
* UCS-2 exposes as separate characters) into a single code point,
|
||||
* matching UTF-16.
|
||||
* @see `punycode.ucs2.encode`
|
||||
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
||||
* @memberOf punycode.ucs2
|
||||
* @name decode
|
||||
* @param {String} string The Unicode input string (UCS-2).
|
||||
* @returns {Array} The new array of code points.
|
||||
*/
|
||||
function ucs2decode(string) {
|
||||
var output = [],
|
||||
counter = 0,
|
||||
length = string.length,
|
||||
value,
|
||||
extra;
|
||||
while (counter < length) {
|
||||
value = string.charCodeAt(counter++);
|
||||
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
||||
// high surrogate, and there is a next character
|
||||
extra = string.charCodeAt(counter++);
|
||||
if ((extra & 0xFC00) == 0xDC00) { // low surrogate
|
||||
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
||||
} else {
|
||||
// unmatched surrogate; only append this code unit, in case the next
|
||||
// code unit is the high surrogate of a surrogate pair
|
||||
output.push(value);
|
||||
counter--;
|
||||
}
|
||||
} else {
|
||||
output.push(value);
|
||||
}
|
||||
}
|
||||
return output;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a string based on an array of numeric code points.
|
||||
* @see `punycode.ucs2.decode`
|
||||
* @memberOf punycode.ucs2
|
||||
* @name encode
|
||||
* @param {Array} codePoints The array of numeric code points.
|
||||
* @returns {String} The new Unicode string (UCS-2).
|
||||
*/
|
||||
function ucs2encode(array) {
|
||||
return map(array, function(value) {
|
||||
var output = '';
|
||||
if (value > 0xFFFF) {
|
||||
value -= 0x10000;
|
||||
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
|
||||
value = 0xDC00 | value & 0x3FF;
|
||||
}
|
||||
output += stringFromCharCode(value);
|
||||
return output;
|
||||
}).join('');
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a basic code point into a digit/integer.
|
||||
* @see `digitToBasic()`
|
||||
* @private
|
||||
* @param {Number} codePoint The basic numeric code point value.
|
||||
* @returns {Number} The numeric value of a basic code point (for use in
|
||||
* representing integers) in the range `0` to `base - 1`, or `base` if
|
||||
* the code point does not represent a value.
|
||||
*/
|
||||
function basicToDigit(codePoint) {
|
||||
if (codePoint - 48 < 10) {
|
||||
return codePoint - 22;
|
||||
}
|
||||
if (codePoint - 65 < 26) {
|
||||
return codePoint - 65;
|
||||
}
|
||||
if (codePoint - 97 < 26) {
|
||||
return codePoint - 97;
|
||||
}
|
||||
return base;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a digit/integer into a basic code point.
|
||||
* @see `basicToDigit()`
|
||||
* @private
|
||||
* @param {Number} digit The numeric value of a basic code point.
|
||||
* @returns {Number} The basic code point whose value (when used for
|
||||
* representing integers) is `digit`, which needs to be in the range
|
||||
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
|
||||
* used; else, the lowercase form is used. The behavior is undefined
|
||||
* if `flag` is non-zero and `digit` has no uppercase form.
|
||||
*/
|
||||
function digitToBasic(digit, flag) {
|
||||
// 0..25 map to ASCII a..z or A..Z
|
||||
// 26..35 map to ASCII 0..9
|
||||
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bias adaptation function as per section 3.4 of RFC 3492.
|
||||
* https://tools.ietf.org/html/rfc3492#section-3.4
|
||||
* @private
|
||||
*/
|
||||
function adapt(delta, numPoints, firstTime) {
|
||||
var k = 0;
|
||||
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
||||
delta += floor(delta / numPoints);
|
||||
for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
|
||||
delta = floor(delta / baseMinusTMin);
|
||||
}
|
||||
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
|
||||
* symbols.
|
||||
* @memberOf punycode
|
||||
* @param {String} input The Punycode string of ASCII-only symbols.
|
||||
* @returns {String} The resulting string of Unicode symbols.
|
||||
*/
|
||||
function decode(input) {
|
||||
// Don't use UCS-2
|
||||
var output = [],
|
||||
inputLength = input.length,
|
||||
out,
|
||||
i = 0,
|
||||
n = initialN,
|
||||
bias = initialBias,
|
||||
basic,
|
||||
j,
|
||||
index,
|
||||
oldi,
|
||||
w,
|
||||
k,
|
||||
digit,
|
||||
t,
|
||||
/** Cached calculation results */
|
||||
baseMinusT;
|
||||
|
||||
// Handle the basic code points: let `basic` be the number of input code
|
||||
// points before the last delimiter, or `0` if there is none, then copy
|
||||
// the first basic code points to the output.
|
||||
|
||||
basic = input.lastIndexOf(delimiter);
|
||||
if (basic < 0) {
|
||||
basic = 0;
|
||||
}
|
||||
|
||||
for (j = 0; j < basic; ++j) {
|
||||
// if it's not a basic code point
|
||||
if (input.charCodeAt(j) >= 0x80) {
|
||||
error('not-basic');
|
||||
}
|
||||
output.push(input.charCodeAt(j));
|
||||
}
|
||||
|
||||
// Main decoding loop: start just after the last delimiter if any basic code
|
||||
// points were copied; start at the beginning otherwise.
|
||||
|
||||
for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
|
||||
|
||||
// `index` is the index of the next character to be consumed.
|
||||
// Decode a generalized variable-length integer into `delta`,
|
||||
// which gets added to `i`. The overflow checking is easier
|
||||
// if we increase `i` as we go, then subtract off its starting
|
||||
// value at the end to obtain `delta`.
|
||||
for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
|
||||
|
||||
if (index >= inputLength) {
|
||||
error('invalid-input');
|
||||
}
|
||||
|
||||
digit = basicToDigit(input.charCodeAt(index++));
|
||||
|
||||
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
||||
error('overflow');
|
||||
}
|
||||
|
||||
i += digit * w;
|
||||
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
||||
|
||||
if (digit < t) {
|
||||
break;
|
||||
}
|
||||
|
||||
baseMinusT = base - t;
|
||||
if (w > floor(maxInt / baseMinusT)) {
|
||||
error('overflow');
|
||||
}
|
||||
|
||||
w *= baseMinusT;
|
||||
|
||||
}
|
||||
|
||||
out = output.length + 1;
|
||||
bias = adapt(i - oldi, out, oldi == 0);
|
||||
|
||||
// `i` was supposed to wrap around from `out` to `0`,
|
||||
// incrementing `n` each time, so we'll fix that now:
|
||||
if (floor(i / out) > maxInt - n) {
|
||||
error('overflow');
|
||||
}
|
||||
|
||||
n += floor(i / out);
|
||||
i %= out;
|
||||
|
||||
// Insert `n` at position `i` of the output
|
||||
output.splice(i++, 0, n);
|
||||
|
||||
}
|
||||
|
||||
return ucs2encode(output);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
||||
* Punycode string of ASCII-only symbols.
|
||||
* @memberOf punycode
|
||||
* @param {String} input The string of Unicode symbols.
|
||||
* @returns {String} The resulting Punycode string of ASCII-only symbols.
|
||||
*/
|
||||
function encode(input) {
|
||||
var n,
|
||||
delta,
|
||||
handledCPCount,
|
||||
basicLength,
|
||||
bias,
|
||||
j,
|
||||
m,
|
||||
q,
|
||||
k,
|
||||
t,
|
||||
currentValue,
|
||||
output = [],
|
||||
/** `inputLength` will hold the number of code points in `input`. */
|
||||
inputLength,
|
||||
/** Cached calculation results */
|
||||
handledCPCountPlusOne,
|
||||
baseMinusT,
|
||||
qMinusT;
|
||||
|
||||
// Convert the input in UCS-2 to Unicode
|
||||
input = ucs2decode(input);
|
||||
|
||||
// Cache the length
|
||||
inputLength = input.length;
|
||||
|
||||
// Initialize the state
|
||||
n = initialN;
|
||||
delta = 0;
|
||||
bias = initialBias;
|
||||
|
||||
// Handle the basic code points
|
||||
for (j = 0; j < inputLength; ++j) {
|
||||
currentValue = input[j];
|
||||
if (currentValue < 0x80) {
|
||||
output.push(stringFromCharCode(currentValue));
|
||||
}
|
||||
}
|
||||
|
||||
handledCPCount = basicLength = output.length;
|
||||
|
||||
// `handledCPCount` is the number of code points that have been handled;
|
||||
// `basicLength` is the number of basic code points.
|
||||
|
||||
// Finish the basic string - if it is not empty - with a delimiter
|
||||
if (basicLength) {
|
||||
output.push(delimiter);
|
||||
}
|
||||
|
||||
// Main encoding loop:
|
||||
while (handledCPCount < inputLength) {
|
||||
|
||||
// All non-basic code points < n have been handled already. Find the next
|
||||
// larger one:
|
||||
for (m = maxInt, j = 0; j < inputLength; ++j) {
|
||||
currentValue = input[j];
|
||||
if (currentValue >= n && currentValue < m) {
|
||||
m = currentValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
|
||||
// but guard against overflow
|
||||
handledCPCountPlusOne = handledCPCount + 1;
|
||||
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
||||
error('overflow');
|
||||
}
|
||||
|
||||
delta += (m - n) * handledCPCountPlusOne;
|
||||
n = m;
|
||||
|
||||
for (j = 0; j < inputLength; ++j) {
|
||||
currentValue = input[j];
|
||||
|
||||
if (currentValue < n && ++delta > maxInt) {
|
||||
error('overflow');
|
||||
}
|
||||
|
||||
if (currentValue == n) {
|
||||
// Represent delta as a generalized variable-length integer
|
||||
for (q = delta, k = base; /* no condition */; k += base) {
|
||||
t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
|
||||
if (q < t) {
|
||||
break;
|
||||
}
|
||||
qMinusT = q - t;
|
||||
baseMinusT = base - t;
|
||||
output.push(
|
||||
stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
|
||||
);
|
||||
q = floor(qMinusT / baseMinusT);
|
||||
}
|
||||
|
||||
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
||||
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
||||
delta = 0;
|
||||
++handledCPCount;
|
||||
}
|
||||
}
|
||||
|
||||
++delta;
|
||||
++n;
|
||||
|
||||
}
|
||||
return output.join('');
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a Punycode string representing a domain name or an email address
|
||||
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
|
||||
* it doesn't matter if you call it on a string that has already been
|
||||
* converted to Unicode.
|
||||
* @memberOf punycode
|
||||
* @param {String} input The Punycoded domain name or email address to
|
||||
* convert to Unicode.
|
||||
* @returns {String} The Unicode representation of the given Punycode
|
||||
* string.
|
||||
*/
|
||||
function toUnicode(input) {
|
||||
return mapDomain(input, function(string) {
|
||||
return regexPunycode.test(string)
|
||||
? decode(string.slice(4).toLowerCase())
|
||||
: string;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a Unicode string representing a domain name or an email address to
|
||||
* Punycode. Only the non-ASCII parts of the domain name will be converted,
|
||||
* i.e. it doesn't matter if you call it with a domain that's already in
|
||||
* ASCII.
|
||||
* @memberOf punycode
|
||||
* @param {String} input The domain name or email address to convert, as a
|
||||
* Unicode string.
|
||||
* @returns {String} The Punycode representation of the given domain name or
|
||||
* email address.
|
||||
*/
|
||||
function toASCII(input) {
|
||||
return mapDomain(input, function(string) {
|
||||
return regexNonASCII.test(string)
|
||||
? 'xn--' + encode(string)
|
||||
: string;
|
||||
});
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
/** Define the public API */
|
||||
punycode = {
|
||||
/**
|
||||
* A string representing the current Punycode.js version number.
|
||||
* @memberOf punycode
|
||||
* @type String
|
||||
*/
|
||||
'version': '1.3.2',
|
||||
/**
|
||||
* An object of methods to convert from JavaScript's internal character
|
||||
* representation (UCS-2) to Unicode code points, and back.
|
||||
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
||||
* @memberOf punycode
|
||||
* @type Object
|
||||
*/
|
||||
'ucs2': {
|
||||
'decode': ucs2decode,
|
||||
'encode': ucs2encode
|
||||
},
|
||||
'decode': decode,
|
||||
'encode': encode,
|
||||
'toASCII': toASCII,
|
||||
'toUnicode': toUnicode
|
||||
};
|
||||
|
||||
/** Expose `punycode` */
|
||||
// Some AMD build optimizers, like r.js, check for specific condition patterns
|
||||
// like the following:
|
||||
if (
|
||||
typeof define == 'function' &&
|
||||
typeof define.amd == 'object' &&
|
||||
define.amd
|
||||
) {
|
||||
define('punycode', function() {
|
||||
return punycode;
|
||||
});
|
||||
} else if (freeExports && freeModule) {
|
||||
if (module.exports == freeExports) {
|
||||
// in Node.js, io.js, or RingoJS v0.8.0+
|
||||
freeModule.exports = punycode;
|
||||
} else {
|
||||
// in Narwhal or RingoJS v0.7.0-
|
||||
for (key in punycode) {
|
||||
punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// in Rhino or a web browser
|
||||
root.punycode = punycode;
|
||||
}
|
||||
|
||||
}(this));
|
||||
57
node_modules/animation-utilities/package.json
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"_from": "animation-utilities@beta",
|
||||
"_id": "animation-utilities@2.8.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-fQhl0bJwTz1qkptJ47gZVQIYm4PEga+AiRN+qFSW/mAsaRG0DzaG9bwtCLU0uVDstdGLl/UK2/aV3lVSZphJ6g==",
|
||||
"_location": "/animation-utilities",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "animation-utilities@2.8.3",
|
||||
"name": "animation-utilities",
|
||||
"escapedName": "animation-utilities",
|
||||
"rawSpec": "2.8.3",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.8.3"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/",
|
||||
"/skills-service-manager",
|
||||
"/skills-service-manager/jibo",
|
||||
"/skills-service-manager/jibo-common-types",
|
||||
"/skills-service-manager/jibo/jibo-dof-arbiter"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/animation-utilities/-/animation-utilities-2.8.3.tgz",
|
||||
"_shasum": "42b25d6caad959b6dc543dba01cd9a8eb01f2c24",
|
||||
"_spec": "animation-utilities@2.8.3",
|
||||
"_where": "/tmp/jibo-npm/jibo-cli-3.0.7",
|
||||
"author": {
|
||||
"name": "Jibo, Inc.",
|
||||
"email": "sdkearlyaccess@jibo.com"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jesse Gray",
|
||||
"email": "jg@ifrobots.com"
|
||||
},
|
||||
{
|
||||
"name": "Matt Berlin",
|
||||
"email": "mattb@ifrobots.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"find-root": "1.0.0",
|
||||
"stats-js": "1.0.0-alpha1",
|
||||
"three": "0.70.1",
|
||||
"urijs": "1.17.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Animation utilities for Jibo's coordinated expression output",
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"main": "./lib/animation-utilities.js",
|
||||
"name": "animation-utilities",
|
||||
"typings": "dts/index.d.ts",
|
||||
"version": "2.8.3"
|
||||
}
|
||||
BIN
node_modules/animation-utilities/res/geometry-config/P1.0/defaultNormalMap.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 247 KiB |
155
node_modules/animation-utilities/res/geometry-config/P1.0/jibo.dofgroups
generated
vendored
Normal file
@@ -0,0 +1,155 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "DOFSets",
|
||||
"version": "0.001",
|
||||
"creationTime": 1434868725865
|
||||
},
|
||||
"content": {
|
||||
"DOFSets": {
|
||||
"BASE": [
|
||||
"bottomSection_r"
|
||||
],
|
||||
"BODY": [
|
||||
"bottomSection_r",
|
||||
"middleSection_r",
|
||||
"topSection_r"
|
||||
],
|
||||
"LED": [
|
||||
"lightring_redChannelBn_r",
|
||||
"lightring_greenChannelBn_r",
|
||||
"lightring_blueChannelBn_r"
|
||||
],
|
||||
"SCREEN_BG_COLOR": [
|
||||
"screenBG_redChannelBn_r",
|
||||
"screenBG_greenChannelBn_r",
|
||||
"screenBG_blueChannelBn_r"
|
||||
],
|
||||
"SCREEN_BG_TEXTURE": [
|
||||
"screenBGTextureInfixBn_r"
|
||||
],
|
||||
"EYE_TRANSLATE": [
|
||||
"eyeSubRootBn_t",
|
||||
"eyeSubRootBn_t_2"
|
||||
],
|
||||
"EYE_ROTATE": [
|
||||
"eyeSubRootBn_r"
|
||||
],
|
||||
"EYE_COLOR": [
|
||||
"eye_redChannelBn_r",
|
||||
"eye_greenChannelBn_r",
|
||||
"eye_blueChannelBn_r",
|
||||
"eye_alphaChannelBn_r"
|
||||
],
|
||||
"EYE_TEXTURE": [
|
||||
"eyeTextureInfixBn_r"
|
||||
],
|
||||
"EYE_VISIBILITY": [
|
||||
"eyeVisibilityBn_r"
|
||||
],
|
||||
"EYE_DEFORM": [
|
||||
"vertexJoint1_t",
|
||||
"vertexJoint1_t_2",
|
||||
"vertexJoint2_t",
|
||||
"vertexJoint2_t_2",
|
||||
"vertexJoint3_t",
|
||||
"vertexJoint3_t_2",
|
||||
"vertexJoint4_t",
|
||||
"vertexJoint4_t_2",
|
||||
"vertexJoint5_t",
|
||||
"vertexJoint5_t_2",
|
||||
"vertexJoint6_t",
|
||||
"vertexJoint6_t_2",
|
||||
"vertexJoint7_t",
|
||||
"vertexJoint7_t_2",
|
||||
"vertexJoint8_t",
|
||||
"vertexJoint8_t_2",
|
||||
"vertexJoint9_t",
|
||||
"vertexJoint9_t_2"
|
||||
],
|
||||
"OVERLAY_TRANSLATE": [
|
||||
"overlay_textureSubRootBn_t",
|
||||
"overlay_textureSubRootBn_t_2"
|
||||
],
|
||||
"OVERLAY_ROTATE": [
|
||||
"overlay_textureSubRootBn_r"
|
||||
],
|
||||
"OVERLAY_COLOR": [
|
||||
"overlay_redChannelBn_r",
|
||||
"overlay_greenChannelBn_r",
|
||||
"overlay_blueChannelBn_r",
|
||||
"overlay_alphaChannelBn_r"
|
||||
],
|
||||
"OVERLAY_TEXTURE": [
|
||||
"overlayTextureInfixBn_r"
|
||||
],
|
||||
"OVERLAY_VISIBILITY": [
|
||||
"overlayVisibilityBn_r"
|
||||
],
|
||||
"OVERLAY_DEFORM": [
|
||||
"overlay_vertexJoint1_t",
|
||||
"overlay_vertexJoint1_t_2",
|
||||
"overlay_vertexJoint2_t",
|
||||
"overlay_vertexJoint2_t_2",
|
||||
"overlay_vertexJoint3_t",
|
||||
"overlay_vertexJoint3_t_2",
|
||||
"overlay_vertexJoint4_t",
|
||||
"overlay_vertexJoint4_t_2",
|
||||
"overlay_vertexJoint5_t",
|
||||
"overlay_vertexJoint5_t_2",
|
||||
"overlay_vertexJoint6_t",
|
||||
"overlay_vertexJoint6_t_2",
|
||||
"overlay_vertexJoint7_t",
|
||||
"overlay_vertexJoint7_t_2",
|
||||
"overlay_vertexJoint8_t",
|
||||
"overlay_vertexJoint8_t_2",
|
||||
"overlay_vertexJoint9_t",
|
||||
"overlay_vertexJoint9_t_2"
|
||||
]
|
||||
},
|
||||
"CompoundSets": {
|
||||
"SCREEN_BG_RENDER": [
|
||||
"SCREEN_BG_COLOR",
|
||||
"SCREEN_BG_TEXTURE"
|
||||
],
|
||||
"EYE_RENDER": [
|
||||
"EYE_COLOR",
|
||||
"EYE_TEXTURE",
|
||||
"EYE_VISIBILITY"
|
||||
],
|
||||
"OVERLAY_RENDER": [
|
||||
"OVERLAY_COLOR",
|
||||
"OVERLAY_TEXTURE",
|
||||
"OVERLAY_VISIBILITY"
|
||||
],
|
||||
"EYE_ROOT": [
|
||||
"EYE_TRANSLATE",
|
||||
"EYE_ROTATE"
|
||||
],
|
||||
"OVERLAY_ROOT": [
|
||||
"OVERLAY_TRANSLATE",
|
||||
"OVERLAY_ROTATE"
|
||||
],
|
||||
"EYE": [
|
||||
"EYE_ROOT",
|
||||
"EYE_RENDER",
|
||||
"EYE_DEFORM"
|
||||
],
|
||||
"OVERLAY": [
|
||||
"OVERLAY_ROOT",
|
||||
"OVERLAY_RENDER",
|
||||
"OVERLAY_DEFORM"
|
||||
],
|
||||
"SCREEN": [
|
||||
"EYE",
|
||||
"OVERLAY",
|
||||
"SCREEN_BG_RENDER"
|
||||
],
|
||||
"ALL": [
|
||||
"SCREEN",
|
||||
"LED",
|
||||
"BODY"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
14
node_modules/animation-utilities/res/geometry-config/P1.0/jibo.jscene
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "SceneInfo",
|
||||
"version": "0.001",
|
||||
"creationTime": 1459456393340
|
||||
},
|
||||
"content": {
|
||||
"faceScreenMeshName": "screenMeshBillboardMesh",
|
||||
"faceScreenInternalBounds": [
|
||||
0.12990524,
|
||||
0.073146075
|
||||
]
|
||||
}
|
||||
}
|
||||
32
node_modules/animation-utilities/res/geometry-config/P1.0/jibo.lim
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Limits",
|
||||
"version": "0.001",
|
||||
"creationTime": 1439401805624
|
||||
},
|
||||
"content": {
|
||||
"dofLimits": [
|
||||
{
|
||||
"dofName": "bottomSection_r",
|
||||
"limits": {
|
||||
"acceleration": 40.0,
|
||||
"velocity": 20.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"dofName": "middleSection_r",
|
||||
"limits": {
|
||||
"acceleration": 40.0,
|
||||
"velocity": 20.0
|
||||
}
|
||||
},
|
||||
{
|
||||
"dofName": "topSection_r",
|
||||
"limits": {
|
||||
"acceleration": 40.0,
|
||||
"velocity": 20.0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
878
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_blink.anim
generated
vendored
Normal file
@@ -0,0 +1,878 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "DOFAnimation",
|
||||
"version": "0.002",
|
||||
"creationTime": 1438845266024
|
||||
},
|
||||
"content": {
|
||||
"name": "jibo_blink.dae",
|
||||
"channels": [
|
||||
{
|
||||
"dofName": "bottomSection_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
-0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.033334,
|
||||
0.2,
|
||||
0.233334,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
-1.0E-8,
|
||||
-1.0E-8,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "eyeTextureInfixBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "eye_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "eye_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "eye_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "lightring_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "lightring_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "lightring_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "middleSection_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlayTextureInfixBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
43.999977,
|
||||
43.999977
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
-0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.0015,
|
||||
-0.0015
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.028590007,
|
||||
-0.028590007
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.028575,
|
||||
0.028575
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.028575,
|
||||
0.028575
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.028590007,
|
||||
0.028590007
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.028575,
|
||||
0.028575
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.028590007,
|
||||
-0.028590007
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.028590007,
|
||||
0.028590007
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.028590007,
|
||||
-0.028590007
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.028575,
|
||||
-0.028575
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.028575,
|
||||
-0.028575
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.028590007,
|
||||
0.028590007
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.028575,
|
||||
-0.028575
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "screenBGTextureInfixBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "screenBG_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "screenBG_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "screenBG_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "topSection_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.0052362327,
|
||||
-0.0052362327
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.03044654063,
|
||||
-0.03044654063
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.033334,
|
||||
0.066667,
|
||||
0.1,
|
||||
0.133334,
|
||||
0.166667,
|
||||
0.2,
|
||||
0.233334,
|
||||
0.266667,
|
||||
0.3,
|
||||
0.333334,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.03047753125,
|
||||
0.02258400715,
|
||||
0.007899499601,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.02370817912,
|
||||
0.03278455466,
|
||||
0.0365907728,
|
||||
0.0350093551,
|
||||
0.03207245359,
|
||||
0.03047753125
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.033334,
|
||||
0.066667,
|
||||
0.1,
|
||||
0.133334,
|
||||
0.166667,
|
||||
0.2,
|
||||
0.233334,
|
||||
0.266667,
|
||||
0.3,
|
||||
0.333334,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.03047753125,
|
||||
0.02258400715,
|
||||
0.007899499601,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.02370817912,
|
||||
0.03278455466,
|
||||
0.0365907728,
|
||||
0.0350093551,
|
||||
0.03207245359,
|
||||
0.03047753125
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.03044654063,
|
||||
0.03044654063
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.033334,
|
||||
0.066667,
|
||||
0.1,
|
||||
0.133334,
|
||||
0.166667,
|
||||
0.2,
|
||||
0.233334,
|
||||
0.266667,
|
||||
0.3,
|
||||
0.333334,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.03047753125,
|
||||
0.02258400715,
|
||||
0.007899499601,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.02370817912,
|
||||
0.03278455466,
|
||||
0.0365907728,
|
||||
0.0350093551,
|
||||
0.03207245359,
|
||||
0.03047753125
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.03044654063,
|
||||
-0.03044654063
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.03044654063,
|
||||
0.03044654063
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.03044654063,
|
||||
-0.03044654063
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.033334,
|
||||
0.066667,
|
||||
0.1,
|
||||
0.133334,
|
||||
0.166667,
|
||||
0.2,
|
||||
0.233334,
|
||||
0.266667,
|
||||
0.3,
|
||||
0.333334,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.03047753125,
|
||||
-0.02258400715,
|
||||
-0.007899499601,
|
||||
-0.0,
|
||||
-0.0,
|
||||
-0.0,
|
||||
-0.02370817912,
|
||||
-0.03278455466,
|
||||
-0.0365907728,
|
||||
-0.0350093551,
|
||||
-0.03207245359,
|
||||
-0.03047753125
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.033334,
|
||||
0.066667,
|
||||
0.1,
|
||||
0.133334,
|
||||
0.166667,
|
||||
0.2,
|
||||
0.233334,
|
||||
0.266667,
|
||||
0.3,
|
||||
0.333334,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.03047753125,
|
||||
-0.02258400715,
|
||||
-0.007899499601,
|
||||
-0.0,
|
||||
-0.0,
|
||||
-0.0,
|
||||
-0.02370817912,
|
||||
-0.03278455466,
|
||||
-0.0365907728,
|
||||
-0.0350093551,
|
||||
-0.03207245359,
|
||||
-0.03047753125
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
0.03044654063,
|
||||
0.03044654063
|
||||
],
|
||||
"length": 0.366667
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.033334,
|
||||
0.066667,
|
||||
0.1,
|
||||
0.133334,
|
||||
0.166667,
|
||||
0.2,
|
||||
0.233334,
|
||||
0.266667,
|
||||
0.3,
|
||||
0.333334,
|
||||
0.366667
|
||||
],
|
||||
"values": [
|
||||
-0.03047753125,
|
||||
-0.02258400715,
|
||||
-0.007899499601,
|
||||
-0.0,
|
||||
-0.0,
|
||||
-0.0,
|
||||
-0.02370817912,
|
||||
-0.03278455466,
|
||||
-0.0365907728,
|
||||
-0.0350093551,
|
||||
-0.03207245359,
|
||||
-0.03047753125
|
||||
],
|
||||
"length": 0.366667
|
||||
}
|
||||
],
|
||||
"enumMaps": [
|
||||
{
|
||||
"dofName": "eyeTextureInfixBn_r",
|
||||
"values": {
|
||||
"0": "textures/JiBO_eye_customizer_00.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dofName": "overlayTextureInfixBn_r",
|
||||
"values": {
|
||||
"44": "textures/JiBO_eye_customizer_44.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dofName": "screenBGTextureInfixBn_r",
|
||||
"values": {
|
||||
"0": "textures/JiBO_BG_00.png"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
22487
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_body.geom
generated
vendored
Normal file
81
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_body.kin
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Kinematics",
|
||||
"version": "0.001",
|
||||
"creationTime": 1434244315999
|
||||
},
|
||||
"content": {
|
||||
"controls": [
|
||||
{
|
||||
"dofName": "bottomSection_r",
|
||||
"skeletonFrameName": "bottomSection",
|
||||
"xyzRotationAxis": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"min": -3.0543270111083984,
|
||||
"max": 3.054326057434082,
|
||||
"isCyclic": true,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "bottomSection_r rotation"
|
||||
},
|
||||
{
|
||||
"redDOFName": "lightring_redChannelBn_r",
|
||||
"greenDOFName": "lightring_greenChannelBn_r",
|
||||
"blueDOFName": "lightring_blueChannelBn_r",
|
||||
"meshNames": [
|
||||
"lightringMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "lightringMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "middleSection_r",
|
||||
"skeletonFrameName": "middleSection",
|
||||
"xyzRotationAxis": [
|
||||
-5.1624581942633085E-8,
|
||||
1.0,
|
||||
-1.763809365229463E-8
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
0.9935718579377518,
|
||||
0.11320319392192023,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543265342712402,
|
||||
"max": 3.0543265342712402,
|
||||
"isCyclic": true,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "middleSection_r rotation"
|
||||
},
|
||||
{
|
||||
"dofName": "topSection_r",
|
||||
"skeletonFrameName": "topSection",
|
||||
"xyzRotationAxis": [
|
||||
-1.0862225252594726E-7,
|
||||
1.0,
|
||||
2.1507238656681693E-8
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
0.9821233481679139,
|
||||
-0.18823848964397946,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543267726898193,
|
||||
"max": 3.0543267726898193,
|
||||
"isCyclic": true,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "topSection_r rotation"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
169
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_body.skel
generated
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Skeleton",
|
||||
"version": "0.001",
|
||||
"creationTime": 1434244315999
|
||||
},
|
||||
"content": {
|
||||
"name": "rootBn",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.01905
|
||||
],
|
||||
"wxyzRotation": [
|
||||
0.5000000000000001,
|
||||
-0.5,
|
||||
-0.5,
|
||||
-0.4999999999999999
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "baseMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "bottomSection",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "lightringMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "middleSection",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.045563820749521255,
|
||||
-0.0053259097039699554
|
||||
],
|
||||
"wxyzRotation": [
|
||||
0.9935718579377518,
|
||||
0.11320319392192023,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "topSection",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.08649425953626633,
|
||||
0.016203919425606728
|
||||
],
|
||||
"wxyzRotation": [
|
||||
0.9821233481679139,
|
||||
-0.18823848964397946,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "headMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "maskMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "screenMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "torsoMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pelvisMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
804
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_default.anim
generated
vendored
Normal file
@@ -0,0 +1,804 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "DOFAnimation",
|
||||
"version": "0.002",
|
||||
"creationTime": 1434243513633
|
||||
},
|
||||
"content": {
|
||||
"name": "jibo_default.dae",
|
||||
"channels": [
|
||||
{
|
||||
"dofName": "bottomSection_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
-0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
9.9E-7,
|
||||
9.9E-7
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eyeTextureInfixBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
37.99997,
|
||||
37.99997
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eyeVisibilityBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eye_alphaChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eye_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.9999764,
|
||||
0.9999764
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eye_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.9999764,
|
||||
0.9999764
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "eye_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.9999764,
|
||||
0.9999764
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "lightring_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "lightring_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "lightring_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "middleSection_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlayTextureInfixBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
43.999977,
|
||||
43.999977
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlayVisibilityBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_alphaChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.9999764,
|
||||
0.9999764
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.9999764,
|
||||
0.9999764
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.9999764,
|
||||
0.9999764
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
-0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
9.9E-7,
|
||||
9.9E-7
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.028575,
|
||||
-0.028575
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.028562339,
|
||||
0.028562339
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.028562339,
|
||||
0.028562339
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.028575,
|
||||
0.028575
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.028562339,
|
||||
0.028562339
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.028575,
|
||||
-0.028575
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-1.0E-8,
|
||||
-1.0E-8
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-1.0E-8,
|
||||
-1.0E-8
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.028575,
|
||||
0.028575
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-1.0E-8,
|
||||
-1.0E-8
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.028575,
|
||||
-0.028575
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.028562348,
|
||||
-0.028562348
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.028562348,
|
||||
-0.028562348
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.028575,
|
||||
0.028575
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.028562348,
|
||||
-0.028562348
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "screenBGTextureInfixBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "screenBG_blueChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "screenBG_greenChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "screenBG_redChannelBn_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "topSection_r",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.03044654063,
|
||||
-0.03044654063
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.03047753125,
|
||||
0.03047753125
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.03047753125,
|
||||
0.03047753125
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.03044654063,
|
||||
0.03044654063
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.03047753125,
|
||||
0.03047753125
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.03044654063,
|
||||
-0.03044654063
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.03044654063,
|
||||
0.03044654063
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.03044654063,
|
||||
-0.03044654063
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.03047753125,
|
||||
-0.03047753125
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.03047753125,
|
||||
-0.03047753125
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
0.03044654063,
|
||||
0.03044654063
|
||||
],
|
||||
"length": 0.29999998
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t_2",
|
||||
"times": [
|
||||
0.0,
|
||||
0.3
|
||||
],
|
||||
"values": [
|
||||
-0.03047753125,
|
||||
-0.03047753125
|
||||
],
|
||||
"length": 0.29999998
|
||||
}
|
||||
],
|
||||
"enumMaps": [
|
||||
{
|
||||
"dofName": "eyeTextureInfixBn_r",
|
||||
"values": {
|
||||
"0": {
|
||||
"textureURL": "textures/JiBO_eye_customizer_00.png",
|
||||
"useNormals": false
|
||||
},
|
||||
"38": "textures/Default_Eye.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dofName": "overlayTextureInfixBn_r",
|
||||
"values": {
|
||||
"44": "textures/JiBO_eye_customizer_44.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
"dofName": "screenBGTextureInfixBn_r",
|
||||
"values": {
|
||||
"0": "textures/JiBO_BG_00.png"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
915
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_eye.geom
generated
vendored
Normal file
@@ -0,0 +1,915 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Meshes",
|
||||
"version": "0.001",
|
||||
"creationTime": 1459456393340
|
||||
},
|
||||
"content": {
|
||||
"meshes": [
|
||||
{
|
||||
"name": "jiboEyeMeshMesh",
|
||||
"material": {
|
||||
"name": "eye_material",
|
||||
"texture": "textures/JiBO_eye_customizer_00.png",
|
||||
"ambient": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"diffuse": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"specular": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"emissive": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"triangles": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3,
|
||||
4,
|
||||
0,
|
||||
2,
|
||||
4,
|
||||
2,
|
||||
3,
|
||||
5,
|
||||
6,
|
||||
4,
|
||||
0,
|
||||
7,
|
||||
1,
|
||||
3,
|
||||
1,
|
||||
8,
|
||||
4,
|
||||
9,
|
||||
10
|
||||
],
|
||||
"skin": {
|
||||
"skeletonInfluencesByVertex": [
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
8,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
9,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
6,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
7,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"skeletonWeightsByVertex": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"skeletonTotalInfluences": [
|
||||
"eyeSubRootBn",
|
||||
"vertexJoint5",
|
||||
"vertexJoint4",
|
||||
"vertexJoint6",
|
||||
"vertexJoint9",
|
||||
"vertexJoint8",
|
||||
"vertexJoint7",
|
||||
"vertexJoint3",
|
||||
"vertexJoint2",
|
||||
"vertexJoint1"
|
||||
],
|
||||
"skinBindInverses": [
|
||||
{
|
||||
"name": "Inverse Bind for eyeSubRootBn",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.2793999910354614,
|
||||
-0.15239998698234558
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint5",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.2793999910354614,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint4",
|
||||
"xyzTranslation": [
|
||||
-0.03174999728798866,
|
||||
-0.2793999910354614,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint6",
|
||||
"xyzTranslation": [
|
||||
-0.06984999775886536,
|
||||
-0.2793999910354614,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint9",
|
||||
"xyzTranslation": [
|
||||
-0.06984999775886536,
|
||||
-0.26034998893737793,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint8",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.26034998893737793,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint7",
|
||||
"xyzTranslation": [
|
||||
-0.03174999728798866,
|
||||
-0.26034998893737793,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint3",
|
||||
"xyzTranslation": [
|
||||
-0.06984999775886536,
|
||||
-0.2984499931335449,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint2",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.2984499931335449,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for vertexJoint1",
|
||||
"xyzTranslation": [
|
||||
-0.03174999728798866,
|
||||
-0.2984499931335449,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
}
|
||||
],
|
||||
"skinBindFrame": {
|
||||
"name": "Skin Bind",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
-0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.031749997,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.0508,
|
||||
0.26035,
|
||||
0.15875,
|
||||
0.0508,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.0508,
|
||||
0.29845,
|
||||
0.15875001,
|
||||
0.031749997,
|
||||
0.29845,
|
||||
0.15875001,
|
||||
0.031749997,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.031749997,
|
||||
0.26035,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.26035,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.29845,
|
||||
0.15875001
|
||||
],
|
||||
"normal": [
|
||||
0.0,
|
||||
-0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0
|
||||
],
|
||||
"textureCoordinates": [
|
||||
0.0,
|
||||
0.5,
|
||||
0.5,
|
||||
0.0,
|
||||
0.5,
|
||||
0.5,
|
||||
1.0,
|
||||
0.5,
|
||||
0.5,
|
||||
1.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.5,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.5,
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlayMeshMesh",
|
||||
"material": {
|
||||
"name": "overlay_texture_material",
|
||||
"texture": "textures/JiBO_eye_customizer_00.png",
|
||||
"ambient": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"diffuse": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"specular": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"emissive": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"triangles": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3,
|
||||
4,
|
||||
0,
|
||||
2,
|
||||
4,
|
||||
2,
|
||||
3,
|
||||
5,
|
||||
6,
|
||||
4,
|
||||
0,
|
||||
7,
|
||||
1,
|
||||
3,
|
||||
1,
|
||||
8,
|
||||
4,
|
||||
9,
|
||||
10
|
||||
],
|
||||
"skin": {
|
||||
"skeletonInfluencesByVertex": [
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
8,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
9,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
6,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
4,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
7,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"skeletonWeightsByVertex": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"skeletonTotalInfluences": [
|
||||
"overlay_textureSubRootBn",
|
||||
"overlay_vertexJoint5",
|
||||
"overlay_vertexJoint4",
|
||||
"overlay_vertexJoint6",
|
||||
"overlay_vertexJoint9",
|
||||
"overlay_vertexJoint8",
|
||||
"overlay_vertexJoint7",
|
||||
"overlay_vertexJoint3",
|
||||
"overlay_vertexJoint2",
|
||||
"overlay_vertexJoint1"
|
||||
],
|
||||
"skinBindInverses": [
|
||||
{
|
||||
"name": "Inverse Bind for overlay_textureSubRootBn",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.2793999910354614,
|
||||
-0.15239998698234558
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint5",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.2793999910354614,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint4",
|
||||
"xyzTranslation": [
|
||||
-0.03174999728798866,
|
||||
-0.2793999910354614,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint6",
|
||||
"xyzTranslation": [
|
||||
-0.06984999775886536,
|
||||
-0.2793999910354614,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint9",
|
||||
"xyzTranslation": [
|
||||
-0.06984999775886536,
|
||||
-0.26034998893737793,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint8",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.26034998893737793,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint7",
|
||||
"xyzTranslation": [
|
||||
-0.03174999728798866,
|
||||
-0.26034998893737793,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint3",
|
||||
"xyzTranslation": [
|
||||
-0.06984999775886536,
|
||||
-0.2984499931335449,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint2",
|
||||
"xyzTranslation": [
|
||||
-0.05079999938607216,
|
||||
-0.2984499931335449,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Inverse Bind for overlay_vertexJoint1",
|
||||
"xyzTranslation": [
|
||||
-0.03174999728798866,
|
||||
-0.2984499931335449,
|
||||
-0.1587499976158142
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
}
|
||||
],
|
||||
"skinBindFrame": {
|
||||
"name": "Skin Bind",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
-0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
},
|
||||
"position": [
|
||||
0.031749997,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.0508,
|
||||
0.26035,
|
||||
0.15875,
|
||||
0.0508,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.0508,
|
||||
0.29845,
|
||||
0.15875001,
|
||||
0.031749997,
|
||||
0.29845,
|
||||
0.15875001,
|
||||
0.031749997,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.031749997,
|
||||
0.26035,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.26035,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.2794,
|
||||
0.15875,
|
||||
0.06984999,
|
||||
0.29845,
|
||||
0.15875001
|
||||
],
|
||||
"normal": [
|
||||
0.0,
|
||||
-0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0,
|
||||
0.0,
|
||||
-1.0E-6,
|
||||
1.0
|
||||
],
|
||||
"textureCoordinates": [
|
||||
0.0,
|
||||
0.5,
|
||||
0.5,
|
||||
0.0,
|
||||
0.5,
|
||||
0.5,
|
||||
1.0,
|
||||
0.5,
|
||||
0.5,
|
||||
1.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
0.5,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.5,
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "screenMeshMesh",
|
||||
"material": {
|
||||
"name": "screenBG_material",
|
||||
"texture": "textures/JiBO_BG_00.png",
|
||||
"ambient": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"diffuse": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"specular": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
],
|
||||
"emissive": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"skeletonFrameName": "screenMesh",
|
||||
"triangles": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
1,
|
||||
0
|
||||
],
|
||||
"position": [
|
||||
0.0649526,
|
||||
0.06305442,
|
||||
-0.05178474,
|
||||
-0.06495264,
|
||||
0.13227789,
|
||||
-0.02816519,
|
||||
0.064952575,
|
||||
0.13227789,
|
||||
-0.02816519,
|
||||
-0.06489452,
|
||||
0.06305069,
|
||||
-0.051785998
|
||||
],
|
||||
"normal": [
|
||||
0.0,
|
||||
0.322927,
|
||||
-0.946424,
|
||||
0.0,
|
||||
0.322927,
|
||||
-0.946424,
|
||||
0.0,
|
||||
0.322927,
|
||||
-0.946424,
|
||||
0.0,
|
||||
0.322927,
|
||||
-0.946424
|
||||
],
|
||||
"textureCoordinates": [
|
||||
0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
1.0,
|
||||
0.0,
|
||||
1.0,
|
||||
1.0,
|
||||
0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
840
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_eye.kin
generated
vendored
Normal file
@@ -0,0 +1,840 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Kinematics",
|
||||
"version": "0.001",
|
||||
"creationTime": 1434244315999
|
||||
},
|
||||
"content": {
|
||||
"controls": [
|
||||
{
|
||||
"dofName": "eyeSubRootBn_r",
|
||||
"skeletonFrameName": "eyeSubRootBn",
|
||||
"xyzRotationAxis": [
|
||||
-0.0,
|
||||
-0.0,
|
||||
1.0
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543270111083984,
|
||||
"max": 3.0543270111083984,
|
||||
"isCyclic": false,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "eyeSubRootBn_r rotation"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t",
|
||||
"skeletonFrameName": "eyeSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "eyeSubRootBn_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t_2",
|
||||
"skeletonFrameName": "eyeSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "eyeSubRootBn_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeTextureInfixBn_r",
|
||||
"meshName": "jiboEyeMeshMesh",
|
||||
"baseTextureFile": "/Users/jg/projects/ifrobots/clients/jibo/production/mycontent/collada/prototype/textures/JiBO_eye_customizer_00.png",
|
||||
"controlType": "TEXTURE",
|
||||
"controlName": "eyeTextureInfixBn_r texture"
|
||||
},
|
||||
{
|
||||
"redDOFName": "eye_redChannelBn_r",
|
||||
"greenDOFName": "eye_greenChannelBn_r",
|
||||
"blueDOFName": "eye_blueChannelBn_r",
|
||||
"alphaDOFName": "eye_alphaChannelBn_r",
|
||||
"meshNames": [
|
||||
"jiboEyeMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "jiboEyeMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeVisibilityBn_r",
|
||||
"meshNames": [
|
||||
"jiboEyeMeshMesh"
|
||||
],
|
||||
"controlType": "VISIBILITY",
|
||||
"controlName": "jiboEyeMeshMesh visibility"
|
||||
},
|
||||
{
|
||||
"redDOFName": "overlay_redChannelBn_r",
|
||||
"greenDOFName": "overlay_greenChannelBn_r",
|
||||
"blueDOFName": "overlay_blueChannelBn_r",
|
||||
"alphaDOFName": "overlay_alphaChannelBn_r",
|
||||
"meshNames": [
|
||||
"overlayMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "overlayMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "overlayVisibilityBn_r",
|
||||
"meshNames": [
|
||||
"overlayMeshMesh"
|
||||
],
|
||||
"controlType": "VISIBILITY",
|
||||
"controlName": "overlayMeshMesh visibility"
|
||||
},
|
||||
{
|
||||
"dofName": "overlayTextureInfixBn_r",
|
||||
"meshName": "overlayMeshMesh",
|
||||
"baseTextureFile": "/Users/jg/Documents/ifrobots/jibo/prototype/textures/JiBO_eye_customizer_00.png",
|
||||
"controlType": "TEXTURE",
|
||||
"controlName": "overlayTextureInfixBn_r texture"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_r",
|
||||
"skeletonFrameName": "overlay_textureSubRootBn",
|
||||
"xyzRotationAxis": [
|
||||
-0.0,
|
||||
-0.0,
|
||||
1.0
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543270111083984,
|
||||
"max": 3.0543270111083984,
|
||||
"isCyclic": false,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "overlay_textureSubRootBn_r rotation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t",
|
||||
"skeletonFrameName": "overlay_textureSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
0.0015000100247561932,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_textureSubRootBn_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t_2",
|
||||
"skeletonFrameName": "overlay_textureSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
-0.0,
|
||||
1.0,
|
||||
-0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
0.0015000100247561932,
|
||||
0.0
|
||||
],
|
||||
"min": -0.1014999970793724,
|
||||
"max": 0.09849999845027924,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_textureSubRootBn_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint1_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint1_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint2_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint2_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint3_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint3_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint4_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
-0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint4_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint5_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint5_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint6_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
-0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint6_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint7_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint7_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint8_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint8_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint9_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint9_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "screenBGTextureInfixBn_r",
|
||||
"meshName": "screenMeshMesh",
|
||||
"baseTextureFile": "/Users/jg/Documents/ifrobots/jibo/prototype/textures/JiBO_BG_00.png",
|
||||
"controlType": "TEXTURE",
|
||||
"controlName": "screenBGTextureInfixBn_r texture"
|
||||
},
|
||||
{
|
||||
"redDOFName": "screenBG_redChannelBn_r",
|
||||
"greenDOFName": "screenBG_greenChannelBn_r",
|
||||
"blueDOFName": "screenBG_blueChannelBn_r",
|
||||
"meshNames": [
|
||||
"screenMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "screenMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t",
|
||||
"skeletonFrameName": "vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint1_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t_2",
|
||||
"skeletonFrameName": "vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint1_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t",
|
||||
"skeletonFrameName": "vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint2_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t_2",
|
||||
"skeletonFrameName": "vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint2_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t",
|
||||
"skeletonFrameName": "vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint3_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t_2",
|
||||
"skeletonFrameName": "vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint3_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t",
|
||||
"skeletonFrameName": "vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint4_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t_2",
|
||||
"skeletonFrameName": "vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint4_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t",
|
||||
"skeletonFrameName": "vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint5_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t_2",
|
||||
"skeletonFrameName": "vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint5_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t",
|
||||
"skeletonFrameName": "vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint6_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t_2",
|
||||
"skeletonFrameName": "vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint6_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t",
|
||||
"skeletonFrameName": "vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint7_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t_2",
|
||||
"skeletonFrameName": "vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint7_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t",
|
||||
"skeletonFrameName": "vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint8_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t_2",
|
||||
"skeletonFrameName": "vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint8_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t",
|
||||
"skeletonFrameName": "vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint9_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t_2",
|
||||
"skeletonFrameName": "vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint9_t_2 translation"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
353
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_eye.skel
generated
vendored
Normal file
@@ -0,0 +1,353 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Skeleton",
|
||||
"version": "0.001",
|
||||
"creationTime": 1459456393340
|
||||
},
|
||||
"content": {
|
||||
"name": "EyeRigRoot",
|
||||
"xyzTranslation": [
|
||||
1.4502555131912231E-5,
|
||||
-0.07952362298965454,
|
||||
-0.06937229633331299
|
||||
],
|
||||
"wxyzRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
0.9865150580908698,
|
||||
0.16367056599837254
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "eyeRootBn",
|
||||
"xyzTranslation": [
|
||||
2.9999999242136255E-5,
|
||||
0.09872739762067795,
|
||||
-0.04314199835062027
|
||||
],
|
||||
"wxyzRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
0.9890158491768658,
|
||||
0.14780950604397208
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "eyeSubRootBn",
|
||||
"xyzTranslation": [
|
||||
9.899999895424116E-7,
|
||||
9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "vertexJoint1",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint2",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.028566999360919,
|
||||
-6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint3",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint4",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint5",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint6",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint7",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint8",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-0.028567038476467133,
|
||||
6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint9",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_textureRootBn",
|
||||
"xyzTranslation": [
|
||||
4.0000002627493814E-5,
|
||||
0.09886220097541809,
|
||||
-0.04807629808783531
|
||||
],
|
||||
"wxyzRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
0.9890158491768658,
|
||||
0.14780950604397208
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "overlay_textureSubRootBn",
|
||||
"xyzTranslation": [
|
||||
9.899999895424116E-7,
|
||||
0.0015000100247561932,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "overlay_vertexJoint1",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint2",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.028566999360919,
|
||||
-9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint3",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint4",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint5",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint6",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint7",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint8",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-0.028567038476467133,
|
||||
9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint9",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "screenMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
910
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_joined.kin
generated
vendored
Normal file
@@ -0,0 +1,910 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Kinematics",
|
||||
"version": "0.001",
|
||||
"creationTime": 1434244315999
|
||||
},
|
||||
"content": {
|
||||
"controls": [
|
||||
{
|
||||
"dofName": "bottomSection_r",
|
||||
"skeletonFrameName": "bottomSection",
|
||||
"xyzRotationAxis": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"min": -3.0543270111083984,
|
||||
"max": 3.054326057434082,
|
||||
"isCyclic": true,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "bottomSection_r rotation"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_r",
|
||||
"skeletonFrameName": "eyeSubRootBn",
|
||||
"xyzRotationAxis": [
|
||||
-0.0,
|
||||
-0.0,
|
||||
1.0
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543270111083984,
|
||||
"max": 3.0543270111083984,
|
||||
"isCyclic": false,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "eyeSubRootBn_r rotation"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t",
|
||||
"skeletonFrameName": "eyeSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "eyeSubRootBn_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeSubRootBn_t_2",
|
||||
"skeletonFrameName": "eyeSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "eyeSubRootBn_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeTextureInfixBn_r",
|
||||
"meshName": "jiboEyeMeshMesh",
|
||||
"baseTextureFile": "/Users/jg/projects/ifrobots/clients/jibo/production/mycontent/collada/prototype/textures/JiBO_eye_customizer_00.png",
|
||||
"controlType": "TEXTURE",
|
||||
"controlName": "eyeTextureInfixBn_r texture"
|
||||
},
|
||||
{
|
||||
"redDOFName": "eye_redChannelBn_r",
|
||||
"greenDOFName": "eye_greenChannelBn_r",
|
||||
"blueDOFName": "eye_blueChannelBn_r",
|
||||
"alphaDOFName": "eye_alphaChannelBn_r",
|
||||
"meshNames": [
|
||||
"jiboEyeMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "jiboEyeMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "eyeVisibilityBn_r",
|
||||
"meshNames": [
|
||||
"jiboEyeMeshMesh"
|
||||
],
|
||||
"controlType": "VISIBILITY",
|
||||
"controlName": "jiboEyeMeshMesh visibility"
|
||||
},
|
||||
{
|
||||
"redDOFName": "lightring_redChannelBn_r",
|
||||
"greenDOFName": "lightring_greenChannelBn_r",
|
||||
"blueDOFName": "lightring_blueChannelBn_r",
|
||||
"meshNames": [
|
||||
"lightringMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "lightringMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "middleSection_r",
|
||||
"skeletonFrameName": "middleSection",
|
||||
"xyzRotationAxis": [
|
||||
-5.1624581942633085E-8,
|
||||
1.0,
|
||||
-1.763809365229463E-8
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
0.9935718579377518,
|
||||
0.11320319392192023,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543265342712402,
|
||||
"max": 3.0543265342712402,
|
||||
"isCyclic": true,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "middleSection_r rotation"
|
||||
},
|
||||
{
|
||||
"redDOFName": "overlay_redChannelBn_r",
|
||||
"greenDOFName": "overlay_greenChannelBn_r",
|
||||
"blueDOFName": "overlay_blueChannelBn_r",
|
||||
"alphaDOFName": "overlay_alphaChannelBn_r",
|
||||
"meshNames": [
|
||||
"overlayMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "overlayMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "overlayVisibilityBn_r",
|
||||
"meshNames": [
|
||||
"overlayMeshMesh"
|
||||
],
|
||||
"controlType": "VISIBILITY",
|
||||
"controlName": "overlayMeshMesh visibility"
|
||||
},
|
||||
{
|
||||
"dofName": "overlayTextureInfixBn_r",
|
||||
"meshName": "overlayMeshMesh",
|
||||
"baseTextureFile": "/Users/jg/Documents/ifrobots/jibo/prototype/textures/JiBO_eye_customizer_00.png",
|
||||
"controlType": "TEXTURE",
|
||||
"controlName": "overlayTextureInfixBn_r texture"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_r",
|
||||
"skeletonFrameName": "overlay_textureSubRootBn",
|
||||
"xyzRotationAxis": [
|
||||
-0.0,
|
||||
-0.0,
|
||||
1.0
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543270111083984,
|
||||
"max": 3.0543270111083984,
|
||||
"isCyclic": false,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "overlay_textureSubRootBn_r rotation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t",
|
||||
"skeletonFrameName": "overlay_textureSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
0.0015000100247561932,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_textureSubRootBn_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_textureSubRootBn_t_2",
|
||||
"skeletonFrameName": "overlay_textureSubRootBn",
|
||||
"xyzTranslationDirection": [
|
||||
-0.0,
|
||||
1.0,
|
||||
-0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
-0.0,
|
||||
0.0015000100247561932,
|
||||
0.0
|
||||
],
|
||||
"min": -0.1014999970793724,
|
||||
"max": 0.09849999845027924,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_textureSubRootBn_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint1_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint1_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint1_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint2_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint2_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint2_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint3_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint3_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint3_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint4_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint4_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
-0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint4_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint5_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint5_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint5_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint6_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint6_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
-0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint6_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint7_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint7_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint7_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint8_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint8_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint8_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t",
|
||||
"skeletonFrameName": "overlay_vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint9_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "overlay_vertexJoint9_t_2",
|
||||
"skeletonFrameName": "overlay_vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "overlay_vertexJoint9_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "screenBGTextureInfixBn_r",
|
||||
"meshName": "screenMeshMesh",
|
||||
"baseTextureFile": "/Users/jg/Documents/ifrobots/jibo/prototype/textures/JiBO_BG_00.png",
|
||||
"controlType": "TEXTURE",
|
||||
"controlName": "screenBGTextureInfixBn_r texture"
|
||||
},
|
||||
{
|
||||
"redDOFName": "screenBG_redChannelBn_r",
|
||||
"greenDOFName": "screenBG_greenChannelBn_r",
|
||||
"blueDOFName": "screenBG_blueChannelBn_r",
|
||||
"meshNames": [
|
||||
"screenMeshMesh"
|
||||
],
|
||||
"controlType": "COLOR",
|
||||
"controlName": "screenMeshMesh color"
|
||||
},
|
||||
{
|
||||
"dofName": "topSection_r",
|
||||
"skeletonFrameName": "topSection",
|
||||
"xyzRotationAxis": [
|
||||
-1.0862225252594726E-7,
|
||||
1.0,
|
||||
2.1507238656681693E-8
|
||||
],
|
||||
"wxyzQuatInitialRotation": [
|
||||
0.9821233481679139,
|
||||
-0.18823848964397946,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"min": -3.0543267726898193,
|
||||
"max": 3.0543267726898193,
|
||||
"isCyclic": true,
|
||||
"controlType": "ROTATION",
|
||||
"controlName": "topSection_r rotation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t",
|
||||
"skeletonFrameName": "vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint1_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint1_t_2",
|
||||
"skeletonFrameName": "vertexJoint1",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint1_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t",
|
||||
"skeletonFrameName": "vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint2_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint2_t_2",
|
||||
"skeletonFrameName": "vertexJoint2",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint2_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t",
|
||||
"skeletonFrameName": "vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint3_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint3_t_2",
|
||||
"skeletonFrameName": "vertexJoint3",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
4.659999831346795E-6,
|
||||
-0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.10000000149011612,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint3_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t",
|
||||
"skeletonFrameName": "vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint4_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint4_t_2",
|
||||
"skeletonFrameName": "vertexJoint4",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint4_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t",
|
||||
"skeletonFrameName": "vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint5_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint5_t_2",
|
||||
"skeletonFrameName": "vertexJoint5",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint5_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t",
|
||||
"skeletonFrameName": "vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint6_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint6_t_2",
|
||||
"skeletonFrameName": "vertexJoint6",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint6_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t",
|
||||
"skeletonFrameName": "vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint7_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint7_t_2",
|
||||
"skeletonFrameName": "vertexJoint7",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint7_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t",
|
||||
"skeletonFrameName": "vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint8_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint8_t_2",
|
||||
"skeletonFrameName": "vertexJoint8",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint8_t_2 translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t",
|
||||
"skeletonFrameName": "vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.09999999403953552,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint9_t translation"
|
||||
},
|
||||
{
|
||||
"dofName": "vertexJoint9_t_2",
|
||||
"skeletonFrameName": "vertexJoint9",
|
||||
"xyzTranslationDirection": [
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"xyzInitialPosition": [
|
||||
0.0,
|
||||
-4.689999968832126E-6,
|
||||
0.0
|
||||
],
|
||||
"min": -0.10000000149011612,
|
||||
"max": 0.09999999403953552,
|
||||
"controlType": "TRANSLATION",
|
||||
"controlName": "vertexJoint9_t_2 translation"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
485
node_modules/animation-utilities/res/geometry-config/P1.0/jibo_joined.skel
generated
vendored
Normal file
@@ -0,0 +1,485 @@
|
||||
{
|
||||
"header": {
|
||||
"fileType": "Skeleton",
|
||||
"version": "0.001",
|
||||
"creationTime": 1459456393340
|
||||
},
|
||||
"content": {
|
||||
"name": "rootBn",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.01905
|
||||
],
|
||||
"wxyzRotation": [
|
||||
0.5000000000000001,
|
||||
-0.5,
|
||||
-0.5,
|
||||
-0.4999999999999999
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "baseMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "bottomSection",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
1.0,
|
||||
0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "lightringMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "middleSection",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.045563820749521255,
|
||||
-0.0053259097039699554
|
||||
],
|
||||
"wxyzRotation": [
|
||||
0.9935718579377518,
|
||||
0.11320319392192023,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "topSection",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.08649425953626633,
|
||||
0.016203919425606728
|
||||
],
|
||||
"wxyzRotation": [
|
||||
0.9821233481679139,
|
||||
-0.18823848964397946,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "eyeRootBn",
|
||||
"xyzTranslation": [
|
||||
2.9999999242136255E-5,
|
||||
0.09872739762067795,
|
||||
-0.04314199835062027
|
||||
],
|
||||
"wxyzRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
0.9890158491768658,
|
||||
0.14780950604397208
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "eyeSubRootBn",
|
||||
"xyzTranslation": [
|
||||
9.899999895424116E-7,
|
||||
9.99999993922529E-9,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "vertexJoint1",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint2",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.028566999360919,
|
||||
-6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint3",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint4",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint5",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint6",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint7",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint8",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-0.028567038476467133,
|
||||
6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vertexJoint9",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
6.754100322723389E-4
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "headMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "maskMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_textureRootBn",
|
||||
"xyzTranslation": [
|
||||
4.0000002627493814E-5,
|
||||
0.09886220097541809,
|
||||
-0.04807629808783531
|
||||
],
|
||||
"wxyzRotation": [
|
||||
-0.0,
|
||||
0.0,
|
||||
0.9890158491768658,
|
||||
0.14780950604397208
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "overlay_textureSubRootBn",
|
||||
"xyzTranslation": [
|
||||
9.899999895424116E-7,
|
||||
0.0015000100247561932,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"name": "overlay_vertexJoint1",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint2",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.028566999360919,
|
||||
-9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint3",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
0.028566999360919,
|
||||
-9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint4",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint5",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint6",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-1.999999987845058E-8,
|
||||
-0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint7",
|
||||
"xyzTranslation": [
|
||||
-0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint8",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
-0.028567038476467133,
|
||||
9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "overlay_vertexJoint9",
|
||||
"xyzTranslation": [
|
||||
0.028574999421834946,
|
||||
-0.028567038476467133,
|
||||
9.99999993922529E-9
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "screenMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "torsoMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
-0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pelvisMesh",
|
||||
"xyzTranslation": [
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"wxyzRotation": [
|
||||
1.0,
|
||||
0.0,
|
||||
0.0,
|
||||
0.0
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
BIN
node_modules/animation-utilities/res/geometry-config/P1.0/textures/Default_Eye.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
node_modules/animation-utilities/res/geometry-config/P1.0/textures/JiBO_BG_00.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
node_modules/animation-utilities/res/geometry-config/P1.0/textures/JiBO_eye_customizer_00.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
node_modules/animation-utilities/res/geometry-config/P1.0/textures/JiBO_eye_customizer_38.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 194 KiB |
BIN
node_modules/animation-utilities/res/geometry-config/P1.0/textures/JiBO_eye_customizer_44.png
generated
vendored
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
node_modules/animation-utilities/res/geometry-config/P1.0/textures/jibo_texture_01.jpg
generated
vendored
Normal file
|
After Width: | Height: | Size: 196 KiB |