2014-08-23 07:05:22 +00:00
|
|
|
<link rel="import" href="../../../polymer/polymer.html">
|
2014-08-22 02:36:58 +00:00
|
|
|
<link rel="import" href="../../elements/controller-number/controller-number.html">
|
|
|
|
|
|
|
|
<polymer-element name="controller-vector" extends="controller-base">
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<controller-number id="x" object="{{ value }}" path="x" min="-1"></controller-number>
|
|
|
|
<controller-number id="y" object="{{ value }}" path="y" min="-1"></controller-number>
|
|
|
|
<controller-number id="z" object="{{ value }}" path="z" min="-2"></controller-number>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
Gui.register( 'controller-vector', function( value ) {
|
|
|
|
|
|
|
|
return value instanceof THREE.Vector3;
|
|
|
|
|
|
|
|
} );
|
|
|
|
|
|
|
|
Polymer('controller-vector', {
|
|
|
|
|
|
|
|
ready: function() {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
init: function() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</polymer-element>
|