mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Make sure utility objects stay in paper scope.
This commit is contained in:
parent
aed8b0a6bc
commit
dc75e14c59
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
|||
// speed by not having to do canvas.getContext('2d')
|
||||
// TODO: Run through the canvas array to find a canvas with the requested
|
||||
// width / height, so we don't need to resize it?
|
||||
CanvasProvider = {
|
||||
var CanvasProvider = {
|
||||
canvases: [],
|
||||
getCanvas: function(size) {
|
||||
if (this.canvases.length) {
|
||||
|
@ -31,4 +31,4 @@ CanvasProvider = {
|
|||
returnCanvas: function(canvas) {
|
||||
this.canvases.push(canvas);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
MathUtils = {
|
||||
var MathUtils = {
|
||||
// TODO: 64 bit: 53 digits, 32 bit: 24 digits
|
||||
// TODO: Naming? What is MANT standing for?
|
||||
MANT_DIGITS: 53,
|
||||
|
@ -211,4 +211,4 @@ MathUtils = {
|
|||
}
|
||||
return { b: b, area: area };
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue