Removed referene to Mouse class (no longer used)

This commit is contained in:
Richard Davey 2017-11-26 15:31:48 +00:00
parent b85b341bfd
commit 3ee14a88a6

View file

@ -16,7 +16,7 @@ var Bounds = require('../geometry/Bounds');
var Events = require('../core/Events'); var Events = require('../core/Events');
var Grid = require('../collision/Grid'); var Grid = require('../collision/Grid');
var Vector = require('../geometry/Vector'); var Vector = require('../geometry/Vector');
var Mouse = require('../core/Mouse'); // var Mouse = require('../core/Mouse');
(function() { (function() {
@ -247,12 +247,12 @@ var Mouse = require('../core/Mouse');
// update mouse // update mouse
if (render.mouse) { if (render.mouse) {
Mouse.setScale(render.mouse, { // Mouse.setScale(render.mouse, {
x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width, // x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height // y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
}); // });
Mouse.setOffset(render.mouse, render.bounds.min); // Mouse.setOffset(render.mouse, render.bounds.min);
} }
}; };
@ -347,12 +347,12 @@ var Mouse = require('../core/Mouse');
// update mouse // update mouse
if (render.mouse) { if (render.mouse) {
Mouse.setScale(render.mouse, { // Mouse.setScale(render.mouse, {
x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width, // x: (render.bounds.max.x - render.bounds.min.x) / render.canvas.width,
y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height // y: (render.bounds.max.y - render.bounds.min.y) / render.canvas.height
}); // });
Mouse.setOffset(render.mouse, render.bounds.min); // Mouse.setOffset(render.mouse, render.bounds.min);
} }
} else { } else {
constraints = allConstraints; constraints = allConstraints;
@ -394,8 +394,8 @@ var Mouse = require('../core/Mouse');
if (options.showVertexNumbers) if (options.showVertexNumbers)
Render.vertexNumbers(render, bodies, context); Render.vertexNumbers(render, bodies, context);
if (options.showMousePosition) // if (options.showMousePosition)
Render.mousePosition(render, render.mouse, context); // Render.mousePosition(render, render.mouse, context);
Render.constraints(constraints, context); Render.constraints(constraints, context);