mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Add Path.Constructors.js to examples and tests.
This commit is contained in:
parent
36de01a6ae
commit
ab098ddca3
20 changed files with 27 additions and 5 deletions
|
@ -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 = [];
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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++) {
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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() {
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Reference in a new issue