mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-14 00:38:41 -04:00
Merge 79ab1622c1
into acb99b6f87
This commit is contained in:
commit
aaaf891edd
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue