mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
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:
parent
e1807214f4
commit
53dac53ca0
4 changed files with 6 additions and 5 deletions
11
src/paper.js
11
src/paper.js
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue