UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

32 lines (30 loc) 915 B
/** * @author Richard Davey <rich@phaser.io> * @copyright 2013-2025 Phaser Studio Inc. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ /** * The Camera Pan Complete Event. * * This event is dispatched by a Camera instance when the Pan Effect completes. * * Listen for it via either of the following: * * ```js * this.cameras.main.on('camerapancomplete', () => {}); * ``` * * or use the constant, to avoid having to remember the correct event string: * * ```js * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.PAN_COMPLETE, () => {}); * ``` * * @event Phaser.Cameras.Scene2D.Events#PAN_COMPLETE * @type {string} * @since 3.3.0 * * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on. * @param {Phaser.Cameras.Scene2D.Effects.Pan} effect - A reference to the effect instance. */ module.exports = 'camerapancomplete';