mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Make Palette code optional and only include id in paper-full.js
This commit is contained in:
parent
4042d4fc2c
commit
f211c20e77
3 changed files with 4 additions and 1 deletions
|
@ -31,7 +31,7 @@ then
|
|||
fi
|
||||
|
||||
./preprocess.sh $MODE ../src/paper.js "-i '../src/constants.js'" ../dist/paper-full.js
|
||||
./preprocess.sh $MODE ../src/paper.js "-o '{ \"paperscript\": false }' -i '../src/constants.js'" ../dist/paper-core.js
|
||||
./preprocess.sh $MODE ../src/paper.js "-o '{ \"paperscript\": false, \"palette\": false }' -i '../src/constants.js'" ../dist/paper-core.js
|
||||
./preprocess.sh $MODE ../src/paper.js "-o '{ \"environment\": \"node\" }' -i '../src/constants.js'" ../dist/paper-node.js
|
||||
|
||||
# Remove the existing file and copy paper-full.js to paper.js now
|
||||
|
|
|
@ -22,6 +22,7 @@ var options = {
|
|||
svg: true,
|
||||
fatline: true,
|
||||
paperscript: true,
|
||||
palette: true,
|
||||
nativeContains: false,
|
||||
debug: false
|
||||
};
|
||||
|
|
|
@ -111,8 +111,10 @@ var paper = new function(undefined) {
|
|||
/*#*/ include('ui/Key.js');
|
||||
/*#*/ include('ui/MouseEvent.js');
|
||||
|
||||
/*#*/ if (options.palette) {
|
||||
/*#*/ include('ui/Palette.js');
|
||||
/*#*/ include('ui/Component.js');
|
||||
/*#*/ } // options.palette
|
||||
|
||||
/*#*/ include('tool/ToolEvent.js');
|
||||
/*#*/ include('tool/Tool.js');
|
||||
|
|
Loading…
Reference in a new issue