Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding stage.mousePressed and updating api page

  • Loading branch information...
commit 1ae500214f768519c0ce1e54788b37c5a17ba48d 1 parent 00994cb
Stephen Braitsch authored
View
3  .gitignore
@@ -1,2 +1,3 @@
.DS_Store
-ex
+ex
+quick-start.zip
View
15 api/index.php
@@ -22,17 +22,18 @@
<p>The following properties of the Stage are <b>read-only</b>.</p>
<pre><code class='javascript'>
stage = new JS3('my-canvas');
- stage.width;
- stage.height;
- stage.numChildren;
+ stage.width :Number;
+ stage.height :Number;
+ stage.numChildren :Number;
+ stage.mousePressed :Boolean;
</code></pre>
<p>The following properties of the Stage can be read as well as written, default values are shown.</p>
<pre><code class='javascript'>
stage = new JS3('my-canvas');
- stage.interactive = false; // tells the Stage to listen for mouse events
- stage.drawClean = true; // tells the Stage to clear itself before drawing the next frame
- stage.background = '#ffffff'; // the background color of the Stage
- stage.windowTitle = 'My Canvas'; // the title of pop-up windows used when saving the Stage to a .png
+ stage.interactive = false; // tells the Stage to listen for mouse events
+ stage.drawClean = true; // tells the Stage to clear itself before drawing the next frame
+ stage.background = '#ffffff'; // the background color of the Stage
+ stage.windowTitle = 'My Canvas'; // the title of pop-up windows used when saving the Stage to a .png
</code></pre>
<p>And the following are general utility methods for controlling the Stage.</p>
View
3  local/header.php
@@ -1,6 +1,6 @@
<?php
$version='0.2.7'; $dl='https://raw.github.com/braitsch/js3/master/src/JS3-'.$version.'-min.js';
-$root = $_SERVER["REMOTE_ADDR"] == '127.0.0.1' ? 'http://localhost:8888' : 'http://js3.quietless.com';
+$root = $_SERVER["REMOTE_ADDR"] == '127.0.0.1' || $_SERVER["REMOTE_ADDR"] == '::1' ? 'http://localhost:8888' : 'http://js3.quietless.com';
function linkto($n){ global $root; echo $root.$n;}
?>
<!DOCTYPE html>
@@ -74,6 +74,5 @@ function linkto($n){ global $root; echo $root.$n;}
</div><!-- navbar-inner -->
</div><!-- navbar -->
-
<a href="http://github.com/braitsch/js3"><img style="position:absolute;top:41px;right:0;border:0;" src="https://a248.e.akamai.net/camo.github.com/7afbc8b248c68eb468279e8c17986ad46549fb71/687474703a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub"></a>
View
BIN  quick-start.zip
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.