2011-03-07 19:17:42 -05:00
|
|
|
/*
|
|
|
|
* Paper.js
|
|
|
|
*
|
|
|
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
|
|
|
* based on Scriptographer.org and designed to be largely API compatible.
|
2011-03-07 20:41:50 -05:00
|
|
|
* http://paperjs.org/
|
2011-03-07 19:17:42 -05:00
|
|
|
* http://scriptographer.org/
|
|
|
|
*
|
2011-03-07 20:41:50 -05:00
|
|
|
* Distributed under the MIT license. See LICENSE file for details.
|
|
|
|
*
|
2011-03-07 19:17:42 -05:00
|
|
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
|
|
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
|
|
|
*
|
2011-03-07 20:41:50 -05:00
|
|
|
* All rights reserved.
|
2011-03-07 19:17:42 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
// This file is only used by examples and unit tests, in order to load the
|
|
|
|
// library without having to preprocess it first.
|
|
|
|
//
|
|
|
|
// NOTE: Any files added as includes to paper.js also need to be listed here
|
|
|
|
|
2011-03-07 19:58:47 -05:00
|
|
|
var sources = [
|
|
|
|
'lib/bootstrap.js',
|
|
|
|
'lib/parse-js.js',
|
|
|
|
|
|
|
|
'src/paper.js',
|
|
|
|
|
|
|
|
'src/basic/Point.js',
|
|
|
|
'src/basic/Size.js',
|
|
|
|
'src/basic/Rectangle.js',
|
|
|
|
'src/basic/Matrix.js',
|
|
|
|
'src/basic/Line.js',
|
|
|
|
|
|
|
|
'src/document/DocumentView.js',
|
|
|
|
'src/document/Document.js',
|
|
|
|
'src/document/Symbol.js',
|
|
|
|
|
|
|
|
'src/item/Item.js',
|
|
|
|
'src/item/Group.js',
|
2011-03-07 20:05:01 -05:00
|
|
|
'src/item/Layer.js',
|
2011-03-07 19:58:47 -05:00
|
|
|
'src/item/Raster.js',
|
|
|
|
'src/item/PlacedSymbol.js',
|
|
|
|
'src/item/PathStyle.js',
|
2011-03-07 20:05:01 -05:00
|
|
|
|
2011-03-07 19:58:47 -05:00
|
|
|
'src/path/Segment.js',
|
|
|
|
'src/path/Curve.js',
|
2011-04-11 13:27:11 -04:00
|
|
|
'src/path/CurveLocation.js',
|
2011-03-07 20:05:01 -05:00
|
|
|
'src/path/PathItem.js',
|
2011-03-07 19:58:47 -05:00
|
|
|
'src/path/Path.js',
|
|
|
|
'src/path/CompoundPath.js',
|
|
|
|
'src/path/Path.Constructors.js',
|
2011-03-07 19:17:42 -05:00
|
|
|
|
2011-03-07 19:58:47 -05:00
|
|
|
'src/color/Color.js',
|
|
|
|
'src/color/RGBColor.js',
|
2011-03-08 20:24:35 -05:00
|
|
|
'src/color/HSBColor.js',
|
2011-03-07 19:58:47 -05:00
|
|
|
'src/color/GrayColor.js',
|
|
|
|
'src/color/GradientColor.js',
|
|
|
|
'src/color/Gradient.js',
|
|
|
|
'src/color/GradientStop.js',
|
|
|
|
|
|
|
|
'src/tool/ToolEvent.js',
|
|
|
|
'src/tool/ToolHandler.js',
|
|
|
|
'src/tool/Tool.js',
|
|
|
|
|
|
|
|
'src/util/BlendMode.js',
|
|
|
|
'src/util/CanvasProvider.js',
|
2011-03-14 17:14:20 -04:00
|
|
|
'src/util/Element.js',
|
|
|
|
'src/util/Event.js',
|
2011-03-07 20:05:01 -05:00
|
|
|
'src/util/Numerical.js',
|
2011-03-07 19:58:47 -05:00
|
|
|
'src/util/PaperScript.js'
|
2011-03-07 19:17:42 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
// Load unit tests after library if asked to do so
|
2011-03-07 20:07:26 -05:00
|
|
|
if (window.tests) {
|
2011-03-07 19:58:47 -05:00
|
|
|
sources.push(
|
|
|
|
'test/lib/qunit/qunit.js',
|
2011-03-07 20:05:01 -05:00
|
|
|
'test/lib/helpers.js',
|
|
|
|
|
2011-03-07 19:58:47 -05:00
|
|
|
'test/tests/Point.js',
|
|
|
|
'test/tests/Size.js',
|
|
|
|
'test/tests/Rectangle.js',
|
|
|
|
'test/tests/Color.js',
|
|
|
|
'test/tests/Document.js',
|
|
|
|
'test/tests/Item.js',
|
|
|
|
'test/tests/Layer.js',
|
|
|
|
'test/tests/Group.js',
|
|
|
|
'test/tests/Segment.js',
|
|
|
|
'test/tests/Path.js',
|
|
|
|
'test/tests/Path_Shapes.js',
|
|
|
|
'test/tests/Path_Drawing_Commands.js',
|
|
|
|
'test/tests/Path_Bounds.js',
|
|
|
|
'test/tests/Path_Length.js',
|
|
|
|
'test/tests/PathStyle.js',
|
|
|
|
'test/tests/PlacedSymbol.js'
|
2011-03-07 19:17:42 -05:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2011-03-07 19:58:47 -05:00
|
|
|
for (var i = 0; i < sources.length; i++) {
|
2011-03-07 20:07:26 -05:00
|
|
|
document.write('<script type="text/javascript" src="' + (window.root || '')
|
2011-03-07 19:58:47 -05:00
|
|
|
+ sources[i] + '"></script>');
|
2011-03-07 19:17:42 -05:00
|
|
|
}
|