mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
34 lines
751 B
HTML
34 lines
751 B
HTML
<link rel="import" href="../../../polymer/polymer.html">
|
|
<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> |