0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-03-14 00:38:41 -04:00
This commit is contained in:
Joe Gaffey 2024-09-11 17:18:42 +03:00 committed by GitHub
commit aaaf891edd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -385,6 +385,8 @@ var Mouse = require('../core/Mouse');
context.fillRect(0, 0, canvas.width, canvas.height);
context.globalCompositeOperation = 'source-over';
Events.trigger(render, "beginRender", event);
// handle bounds
if (options.hasBounds) {
// filter out bodies that are not in view
@ -1558,6 +1560,16 @@ var Mouse = require('../core/Mouse');
* @param {} event.name The name of the event
*/
/**
* Fired at the beginning of rendering after canvas is cleared
*
* @event beginRender
* @param {} event An event object
* @param {number} event.timestamp The engine.timing.timestamp of the event
* @param {} event.source The source object of the event
* @param {} event.name The name of the event
*/
/**
* Fired after rendering
*