mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
rename gui.html and gui.js to dat-gui.html and dat-gui.js
This commit is contained in:
parent
e2bf2c4578
commit
1f05d74eb2
43
bower.json
43
bower.json
@ -1,23 +1,24 @@
|
||||
{
|
||||
"name": "dat.gui",
|
||||
"version": "0.0.0",
|
||||
"description": "Attempt at revamping dat.gui with Polymer.",
|
||||
"keywords": [
|
||||
"gui"
|
||||
],
|
||||
"authors": [
|
||||
"George Michael Brower"
|
||||
],
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"main": "gui.html",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"tests",
|
||||
"docs"
|
||||
],
|
||||
"dependencies": {
|
||||
"polymer": "Polymer/polymer#>=0.4.0"
|
||||
}
|
||||
"name": "dat.gui",
|
||||
"version": "0.0.0",
|
||||
"description": "Attempt at revamping dat.gui with Polymer.",
|
||||
"keywords": [
|
||||
"gui"
|
||||
],
|
||||
"authors": [
|
||||
"George Michael Brower"
|
||||
],
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"main": "dat-gui.html",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"tests",
|
||||
"docs"
|
||||
],
|
||||
"dependencies": {
|
||||
"polymer": "Polymer/polymer#>=0.4.0",
|
||||
"platform": "Polymer/platform#>=0.4.0"
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
build/gui.shim.js
Normal file
1
build/gui.shim.js
Normal file
@ -0,0 +1 @@
|
||||
!function(t){"use strict";var n=function(){this.vars={}};n.ready=function(t){t()},n.prototype.var=function(t,n){return this.vars[t]=n,i},n.prototype.add=function(){return i};var r=function(){return this},i={on:r};t.Gui=n}(this);
|
@ -1,6 +1,4 @@
|
||||
<script src="../platform/platform.js"></script>
|
||||
|
||||
<!-- src -->
|
||||
<!-- TODO: move this into dat-gui.html -->
|
||||
<script src="elements/Gui.js"></script>
|
||||
|
||||
<!-- base elements -->
|
||||
|
@ -5,8 +5,11 @@
|
||||
<meta charset="utf-8">
|
||||
<title>dat-gui kitchen sink</title>
|
||||
|
||||
<!--<script src="../build/dat-gui.js"></script>-->
|
||||
<script src="../build/dat-gui.js"></script>
|
||||
<!--
|
||||
<script src="../platform/platform.js"></script>
|
||||
<link rel="import" href="../dat-gui.html">
|
||||
-->
|
||||
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
|
||||
|
@ -74,6 +74,7 @@ gulp.task( 'build', [ 'vulcanize' ], function() {
|
||||
gulp.task( 'vulcanize', [ 'css' ], function() {
|
||||
|
||||
return gulp.src( 'dat-gui.html' )
|
||||
.pipe( $.insert.prepend( '<script src="../platform/platform.js"></script>"\n' ) )
|
||||
.pipe( $.vulcanize( {
|
||||
dest: 'build',
|
||||
inline: true,
|
||||
|
@ -25,7 +25,7 @@
|
||||
<a href="#saving"> Saving </a></p>
|
||||
<h3 id="basic-usage">Basic Usage</h3>
|
||||
<p>Download the <a href="todo">minified library</a> and include it in your html.</p>
|
||||
<pre><code class="lang-html"><script src="dat-gui.js"></script>
|
||||
<pre><code class="lang-html"><script src="gui.js"></script>
|
||||
</code></pre>
|
||||
<p>Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable's initial value.</p>
|
||||
<pre><code class="lang-javascript">var gui = new Gui();
|
||||
@ -186,7 +186,7 @@ Gui.register( 'dat-gui-number', function( value ) {
|
||||
<pre><code class="lang-sh">$ bower install gui-three
|
||||
</code></pre>
|
||||
<p>Include the source for the third-party controllers after dat-gui.</p>
|
||||
<pre><code class="lang-html"><script src="dat-gui.js"></script>
|
||||
<pre><code class="lang-html"><script src="gui.js"></script>
|
||||
<script src="gui-three.js"></script>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user