The version of the module.
The logger module this module uses to log errors / logs
The event emitter.
The layer class.
An set of instances that use the parallax system.
Weakmap to store info on instances used in this module.
The last position of the camera.
The virtual position on the map where the layers look natural together.
Whether the anchor y position is set.
Whether the anchor x position is set.
Gets the camera position.
The camera position.
Sets the anchor position for the parallax system.
The virtual position on the map where the layers look natural together.
Gets the anchor position.
The anchor position.
Adds an instance to the parallax system. Call this first and then add your instance to the map.
The instance to add to the parallax system.
The parallax info that tells this module how to control this instance.
Initializes this instance.
The instance to initialize.
The parallax info that tells this module how to control this instance.
Updates the instance's position based on the camera's position.
The instance to update.
The x position of the camera.
The y position of the camera.
Optional pAnchor: CameraPositionThe camera anchor position to use.
The ParallaxSingleton class provides the core functionality for managing parallax effects. This class is typically used as a singleton instance exported as
Parallax.Example