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
29e2f5b99e
commit
e2bf2c4578
@ -10,6 +10,7 @@
|
||||
],
|
||||
"license": "MIT",
|
||||
"private": true,
|
||||
"main": "gui.html",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
|
0
build/gui.html → build/dat-gui.html
Executable file → Normal file
0
build/gui.html → build/dat-gui.html
Executable file → Normal file
0
build/gui.js → build/dat-gui.js
Executable file → Normal file
0
build/gui.js → build/dat-gui.js
Executable file → Normal file
@ -1 +0,0 @@
|
||||
!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);
|
@ -6,7 +6,7 @@
|
||||
|
||||
<title>dat-gui</title>
|
||||
|
||||
<script src="build/gui.js"></script>
|
||||
<script src="build/dat-gui.js"></script>
|
||||
<link rel="stylesheet" href="docs/style.css">
|
||||
|
||||
</style>
|
||||
|
@ -4,22 +4,9 @@
|
||||
|
||||
<meta charset="utf-8">
|
||||
<title>dat-gui kitchen sink</title>
|
||||
<<<<<<< HEAD
|
||||
|
||||
|
||||
<script src="../build/gui.js"></script>
|
||||
<!-- <link rel="import" href="../gui.html"> -->
|
||||
||||||| merged common ancestors
|
||||
|
||||
|
||||
<script src="../build/gui.js"></script>
|
||||
<!-- <link rel="import" href="../gui.html"> -->
|
||||
=======
|
||||
|
||||
|
||||
<!-- // <script src="../build/gui.js"></script> -->
|
||||
<link rel="import" href="../gui.html">
|
||||
>>>>>>> 8d86460ebde6d3dda4dec6e7783f0223fca59d00
|
||||
<!--<script src="../build/dat-gui.js"></script>-->
|
||||
<link rel="import" href="../dat-gui.html">
|
||||
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
|
||||
|
10
gulpfile.js
10
gulpfile.js
@ -7,9 +7,9 @@ var gulp = require( 'gulp' ),
|
||||
$ = require( 'gulp-load-plugins' )();
|
||||
|
||||
var paths = {
|
||||
build: [ 'elements/**/*.styl', 'elements/**/*.html', 'elements/**/*.js' , 'gui.html' ],
|
||||
build: [ 'elements/**/*.styl', 'elements/**/*.html', 'elements/**/*.js' , 'dat-gui.html' ],
|
||||
lint: [ 'gulpfile.js', 'elements/**/*.js' ],
|
||||
test: [ 'build/gui.js', 'tests/*.js' ],
|
||||
test: [ 'build/dat-gui.js', 'tests/*.js' ],
|
||||
clean: [ 'build/*', '**/*.css' ],
|
||||
docs: [ 'README.md', 'docs/*' ],
|
||||
shim: [ 'elements/shim.js' ]
|
||||
@ -61,19 +61,19 @@ gulp.task( 'browser', [], function() {
|
||||
|
||||
gulp.task( 'build', [ 'vulcanize' ], function() {
|
||||
|
||||
return gulp.src( 'build/gui.html' )
|
||||
return gulp.src( 'build/dat-gui.html' )
|
||||
.pipe( $.replace( /\\/g, '\\\\' ) )
|
||||
.pipe( $.replace( /'/g, '\\\'' ) )
|
||||
.pipe( $.replace( /^(.*)$/gm, '\'$1\',' ) )
|
||||
.pipe( $.insert.wrap( 'document.write([', '].join("\\n"))' ) )
|
||||
.pipe( $.rename( 'gui.js' ) )
|
||||
.pipe( $.rename( 'dat-gui.js' ) )
|
||||
.pipe( gulp.dest( 'build' ) );
|
||||
|
||||
} );
|
||||
|
||||
gulp.task( 'vulcanize', [ 'css' ], function() {
|
||||
|
||||
return gulp.src( 'gui.html' )
|
||||
return gulp.src( 'dat-gui.html' )
|
||||
.pipe( $.vulcanize( {
|
||||
dest: 'build',
|
||||
inline: true,
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
<title>dat-gui</title>
|
||||
|
||||
<script src="build/gui.js"></script>
|
||||
<script src="build/dat-gui.js"></script>
|
||||
<link rel="stylesheet" href="docs/style.css">
|
||||
|
||||
</style>
|
||||
@ -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="gui.js"></script>
|
||||
<pre><code class="lang-html"><script src="dat-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="gui.js"></script>
|
||||
<pre><code class="lang-html"><script src="dat-gui.js"></script>
|
||||
<script src="gui-three.js"></script>
|
||||
</code></pre>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user