Restructure code organization by separating canvas related utility classes into separate canvas folder, and move inclusion of utilities classes to beginning.

Was needed because Numerical.KAPPA is accessed at compile time.
This commit is contained in:
Jürg Lehni 2013-04-19 19:38:48 -07:00
parent e1807214f4
commit 53dac53ca0
4 changed files with 6 additions and 5 deletions

View file

@ -46,6 +46,9 @@ var paper = new function() {
/*#*/ include('core/PaperScope.js');
/*#*/ include('core/PaperScopeItem.js');
/*#*/ include('util/Formatter.js');
/*#*/ include('util/Numerical.js');
// Include Paper classes, which are later injected into PaperScope by setting
// them on the 'this' object, e.g.:
// var Point = this.Point = Base.extend(...);
@ -107,12 +110,10 @@ var paper = new function() {
/*#*/ include('tool/Tool.js');
/*#*/ } // options.browser
/*#*/ include('util/Formatter.js');
/*#*/ include('util/CanvasProvider.js');
/*#*/ include('util/Numerical.js');
/*#*/ include('util/BlendMode.js');
/*#*/ include('canvas/CanvasProvider.js');
/*#*/ include('canvas/BlendMode.js');
/*#*/ if (options.version == 'dev') {
/*#*/ include('util/ProxyContext.js');
/*#*/ include('canvas/ProxyContext.js');
/*#*/ } // options.browser
/*#*/ if (options.svg) {