dat.gui/examples/controller-custom/controller-custom.html

34 lines
748 B
HTML
Raw Normal View History

2014-08-27 00:01:15 +00:00
<link rel="import" href="../../../polymer/polymer.html">
<link rel="import" href="../../elements/controller-number/controller-number.html">
2014-09-09 19:53:30 +00:00
<polymer-element name="controller-vector" extends="dat-gui-base">
2014-08-27 00:01:15 +00:00
<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>