paper.js/src/load.js

123 lines
2.8 KiB
JavaScript
Raw Normal View History

/*
* 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/
* http://scriptographer.org/
*
2011-03-07 20:41:50 -05:00
* Distributed under the MIT license. See LICENSE file for details.
*
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
2011-03-07 20:41:50 -05:00
* All rights reserved.
*/
// 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
var sources = [
'lib/bootstrap.js',
'lib/parse-js.js',
'lib/stats.js',
'src/core/Base.js',
'src/core/PaperScope.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/project/ProjectView.js',
'src/project/Project.js',
'src/project/Symbol.js',
'src/item/ChangeFlags.js',
'src/item/Item.js',
'src/item/Group.js',
'src/item/Layer.js',
'src/item/Raster.js',
'src/item/PlacedSymbol.js',
'src/item/PathStyle.js',
'src/path/Segment.js',
2011-04-21 08:21:56 -04:00
'src/path/SegmentPoint.js',
'src/path/SelectionState.js',
'src/path/Curve.js',
2011-04-11 13:27:11 -04:00
'src/path/CurveLocation.js',
'src/path/PathItem.js',
'src/path/Path.js',
'src/path/CompoundPath.js',
'src/path/Path.Constructors.js',
'src/text/ParagraphStyle.js',
'src/text/CharacterStyle.js',
'src/text/TextItem.js',
'src/text/PointText.js',
'src/color/Color.js',
'src/color/RGBColor.js',
2011-03-08 20:24:35 -05:00
'src/color/HSBColor.js',
'src/color/GrayColor.js',
'src/color/GradientColor.js',
'src/color/Gradient.js',
'src/color/GradientStop.js',
'src/browser/DomElement.js',
'src/browser/DomEvent.js',
'src/ui/Event.js',
'src/ui/KeyEvent.js',
'src/ui/Key.js',
'src/tool/ToolEvent.js',
'src/tool/ToolHandler.js',
'src/tool/Tool.js',
'src/util/CanvasProvider.js',
'src/util/Numerical.js',
2011-05-14 13:00:29 -04:00
'src/util/BlendMode.js',
2011-05-14 12:22:49 -04:00
2011-05-14 13:00:29 -04:00
'src/core/PaperScript.js'
];
// Load unit tests after library if asked to do so
2011-03-07 20:07:26 -05:00
if (window.tests) {
sources.push(
'test/lib/qunit/qunit.js',
'test/lib/helpers.js',
'test/tests/Point.js',
'test/tests/Size.js',
'test/tests/Rectangle.js',
'test/tests/Color.js',
'test/tests/Project.js',
'test/tests/Item.js',
'test/tests/Layer.js',
'test/tests/Group.js',
'test/tests/Segment.js',
'test/tests/Path.js',
'test/tests/PathStyle.js',
'test/tests/Path_Shapes.js',
'test/tests/Path_Drawing_Commands.js',
'test/tests/Path_Curves.js',
'test/tests/Path_Bounds.js',
'test/tests/Path_Length.js',
'test/tests/CompoundPath.js',
'test/tests/PlacedSymbol.js'
);
}
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 || '')
+ sources[i] + '"></script>');
}