mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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')
|
// speed by not having to do canvas.getContext('2d')
|
||||||
// TODO: Run through the canvas array to find a canvas with the requested
|
// TODO: Run through the canvas array to find a canvas with the requested
|
||||||
// width / height, so we don't need to resize it?
|
// width / height, so we don't need to resize it?
|
||||||
CanvasProvider = {
|
var CanvasProvider = {
|
||||||
canvases: [],
|
canvases: [],
|
||||||
getCanvas: function(size) {
|
getCanvas: function(size) {
|
||||||
if (this.canvases.length) {
|
if (this.canvases.length) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
MathUtils = {
|
var MathUtils = {
|
||||||
// TODO: 64 bit: 53 digits, 32 bit: 24 digits
|
// TODO: 64 bit: 53 digits, 32 bit: 24 digits
|
||||||
// TODO: Naming? What is MANT standing for?
|
// TODO: Naming? What is MANT standing for?
|
||||||
MANT_DIGITS: 53,
|
MANT_DIGITS: 53,
|
||||||
|
@ -211,4 +211,4 @@ MathUtils = {
|
||||||
}
|
}
|
||||||
return { b: b, area: area };
|
return { b: b, area: area };
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
Loading…
Reference in a new issue