Add Path.Constructors.js to examples and tests.

This commit is contained in:
Jonathan Puckey 2011-02-17 15:56:07 +01:00
parent 36de01a6ae
commit ab098ddca3
20 changed files with 27 additions and 5 deletions

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
var doc, mousePoint, amount = 25;
var count = 0, paths = [];

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
var canvas, doc;
var count = 0;

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
var count = 0, balls = [];
var ball;

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
var count = 0;
var doc;

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
var count = 0;
var doc;

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
var count = 0;
var doc;

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
var count = 0;
var doc;

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');
@ -31,7 +32,6 @@
var vector = new Point(1 + 10 * i, 0).rotate(i);
var l = vector.length;
var path = new Path();
// path.strokeColor = '#000000';
path.fillColor = i % 2 ? 'red' : 'black';
path.closed = true;
for (var j = 0; j < 32; j++) {

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,8 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -21,6 +21,7 @@
<script type="text/javascript" src="../../src/path/Segment.js"></script>
<script type="text/javascript" src="../../src/path/PathItem.js"></script>
<script type="text/javascript" src="../../src/path/Path.js"></script>
<script type="text/javascript" src="../../src/path/Path.Constructors.js"></script>
<script>
window.onload = function() {
var canvas = document.getElementById('canvas');

View file

@ -6,19 +6,22 @@
<!-- Libraries -->
<script type="text/javascript" src="../lib/Bootstrap.js"></script>
<script type="text/javascript" src="../src/Paper.js"></script>
<script type="text/javascript" src="../src/item/Item.js"></script>
<script type="text/javascript" src="../src/path/PathItem.js"></script>
<script type="text/javascript" src="../src/tool/ToolEvent.js"></script>
<script type="text/javascript" src="../src/tool/ToolHandler.js"></script>
<script type="text/javascript" src="../src/tool/Tool.js"></script>
<script type="text/javascript" src="../src/basic/Point.js"></script>
<script type="text/javascript" src="../src/basic/Rectangle.js"></script>
<script type="text/javascript" src="../src/basic/Size.js"></script>
<script type="text/javascript" src="../src/basic/Matrix.js"></script>
<script type="text/javascript" src="../src/document/Doc.js"></script>
<script type="text/javascript" src="../src/item/Item.js"></script>
<script type="text/javascript" src="../src/item/Group.js"></script>
<script type="text/javascript" src="../src/item/Layer.js"></script>
<script type="text/javascript" src="../src/item/PathStyle.js"></script>
<script type="text/javascript" src="../src/path/Segment.js"></script>
<script type="text/javascript" src="../src/path/PathItem.js"></script>
<script type="text/javascript" src="../src/path/Path.js"></script>
<script type="text/javascript" src="../src/document/Doc.js"></script>
<script type="text/javascript" src="../src/item/PathStyle.js"></script>
<script type="text/javascript" src="../src/path/Path.Constructors.js"></script>
<script type="text/javascript" src="lib/qunit/qunit.js"></script>
<!-- Test Helpers -->