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",
|
"name": "dat.gui",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "Attempt at revamping dat.gui with Polymer.",
|
"description": "Attempt at revamping dat.gui with Polymer.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"gui"
|
"gui"
|
||||||
],
|
],
|
||||||
"authors": [
|
"authors": [
|
||||||
"George Michael Brower"
|
"George Michael Brower"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "gui.html",
|
"main": "dat-gui.html",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/.*",
|
"**/.*",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
"tests",
|
"tests",
|
||||||
"docs"
|
"docs"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"polymer": "Polymer/polymer#>=0.4.0"
|
"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>
|
<!-- TODO: move this into dat-gui.html -->
|
||||||
|
|
||||||
<!-- src -->
|
|
||||||
<script src="elements/Gui.js"></script>
|
<script src="elements/Gui.js"></script>
|
||||||
|
|
||||||
<!-- base elements -->
|
<!-- base elements -->
|
||||||
@ -12,4 +10,4 @@
|
|||||||
<link rel="import" href="elements/dat-gui-string/dat-gui-string.html">
|
<link rel="import" href="elements/dat-gui-string/dat-gui-string.html">
|
||||||
<link rel="import" href="elements/dat-gui-boolean/dat-gui-boolean.html">
|
<link rel="import" href="elements/dat-gui-boolean/dat-gui-boolean.html">
|
||||||
<link rel="import" href="elements/dat-gui-function/dat-gui-function.html">
|
<link rel="import" href="elements/dat-gui-function/dat-gui-function.html">
|
||||||
<link rel="import" href="elements/dat-gui-option/dat-gui-option.html">
|
<link rel="import" href="elements/dat-gui-option/dat-gui-option.html">
|
||||||
|
@ -5,8 +5,11 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>dat-gui kitchen sink</title>
|
<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">
|
<link rel="import" href="../dat-gui.html">
|
||||||
|
-->
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ gulp.task( 'build', [ 'vulcanize' ], function() {
|
|||||||
gulp.task( 'vulcanize', [ 'css' ], function() {
|
gulp.task( 'vulcanize', [ 'css' ], function() {
|
||||||
|
|
||||||
return gulp.src( 'dat-gui.html' )
|
return gulp.src( 'dat-gui.html' )
|
||||||
|
.pipe( $.insert.prepend( '<script src="../platform/platform.js"></script>"\n' ) )
|
||||||
.pipe( $.vulcanize( {
|
.pipe( $.vulcanize( {
|
||||||
dest: 'build',
|
dest: 'build',
|
||||||
inline: true,
|
inline: true,
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<a href="#saving"> Saving </a></p>
|
<a href="#saving"> Saving </a></p>
|
||||||
<h3 id="basic-usage">Basic Usage</h3>
|
<h3 id="basic-usage">Basic Usage</h3>
|
||||||
<p>Download the <a href="todo">minified library</a> and include it in your html.</p>
|
<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>
|
</code></pre>
|
||||||
<p>Create controllers by adding objects and their properties. dat-gui chooses a controller based on the variable's initial value.</p>
|
<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();
|
<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
|
<pre><code class="lang-sh">$ bower install gui-three
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p>Include the source for the third-party controllers after dat-gui.</p>
|
<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>
|
<script src="gui-three.js"></script>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user