Animates the camera to center on specific image coordinates and scale.
The target coordinates [x, y, scale]. Scale is optional.
Optional animation settings.
A Promise that resolves when the animation completes.
Animates the camera to a view where the image covers the viewport.
Optional animation settings.
A Promise that resolves when the animation completes.
Animates the camera to a view showing the entire image (minimum zoom).
Optional animation settings.
A Promise that resolves when the animation completes.
Animates the camera smoothly to a target viewport.
The target viewport as a View [x0, y0, width, height].
Optional animation settings.
OptionalisJump?: booleanIf true, performs a "jump" animation (zooms out then in).
OptionallimitZoom?: booleanIf true, respects the image's maximum zoom limit during animation.
Optionalmargin?: [number, number]If provided, adds a margin to the view.
OptionalomniIndex?: numberFor Omni objects: the target image frame index to animate to.
OptionalprevView?: CameraArrayBase the progress override on this starting view.
Optionalprogress?: numberSet the starting animation progress percentage (0-1).
A Promise that resolves when the animation completes, or rejects if aborted.
Gets the relative image coordinates [x, y, scale, depth, yaw?, pitch?] corresponding to a screen coordinate. Rounds the result for cleaner output.
The screen X coordinate in pixels.
The screen Y coordinate in pixels.
If true, treats x/y as absolute browser window coordinates.
If true, allows returning coordinates outside the image bounds (0-1).
A Float64Array containing the relative image coordinates [x, y, scale, depth, yaw?, pitch?].
Gets the scale at which the image fully covers the viewport.
Gets the current viewing direction (yaw) in 360 mode.
The current yaw in radians.
Calculates a 4x4 transformation matrix for placing an object at specific coordinates
with scale and rotation in 360 space. Used for CSS matrix3d.
The image X coordinate (0-1).
The image Y coordinate (0-1).
Optionalscale: number
The object scale multiplier.
Optionalradius: number
The object radius (distance from center, default 10).
OptionalrotX: number
The object X rotation in radians.
OptionalrotY: number
The object Y rotation in radians.
OptionalrotZ: number
The object Z rotation in radians.
OptionaltransY: number
Optional Y translation in 3D space.
OptionalscaleX: number
Optional non-uniform X scaling.
OptionalscaleY: number
Optional non-uniform Y scaling.
OptionalnoCorrectNorth: booleanThe resulting 4x4 matrix as a Float32Array.
Gets the minimum allowed camera zoom scale.
[Omni] Gets the current rotation angle in radians based on the active frame index.
[Omni] Gets the screen coordinates [x, y, scale, depth] for given 3D object coordinates.
Gets the current viewing pitch in 360 mode.
The current pitch in radians.
Gets the current camera zoom scale.
Gets the current image view rectangle [x0, y0, width, height].
Gets the current image view rectangle [x0, y0, width, height] relative to the image (0-1).
The live Float64Array buffer from the engine.
Gets the screen coordinates [x, y, scale, depth] corresponding to relative image coordinates.
The image X coordinate (0-1).
The image Y coordinate (0-1).
If true, returns absolute browser window coordinates instead of element-relative.
Optionalradius: number
Optional offset radius for 360 calculations.
Optionalrotation: number
Optional offset rotation (radians) for 360 calculations.
OptionalnoTrueNorth: boolean
If true (for 360), ignores the trueNorth correction.
A Float64Array containing the screen coordinates [x, y, scale, depth].
Checks if the camera is zoomed in to the maximum allowed scale or beyond.
Checks if the camera is fully zoomed out.
Pans the camera view by a relative pixel amount.
The horizontal pixel distance to pan.
The vertical pixel distance to pan.
Animation duration in ms (0 for instant).
Options: render (force render), noLimit (allow panning outside bounds).
Pauses the current camera animation.
Resumes a previously paused camera animation and triggers a render.
Sets horizontal and vertical pan limits for 360 images as percentages of the full sphere.
Horizontal limit percentage (0-100).
Vertical limit percentage (0-100).
Sets the rendering area for this image within the main canvas. Used for grid/embed layout effects. Animates by default.
The target area rectangle [x0, y0, width, height] relative to the main canvas (0-1).
Options for setting the area.
Sets the center of the screen to the specified image coordinates and scale instantly.
The target image X coordinate (0-1).
The target image Y coordinate (0-1).
Optionalscale: number
The target scale (optional, defaults to current scale).
Sets whether the camera view should be limited to always cover the viewport.
If true, limits the view to cover the screen.
Sets the viewing direction (yaw/pitch) in 360 mode.
The target yaw in radians.
Optionalpitch: number
The target pitch in radians (defaults to current pitch).
Sets a rectangular limit for camera navigation within the image.
The viewport limit [x, y, width, height] in image-relative coordinates.
Sets the minimum allowed camera zoom scale.
Sets the minimum screen size ratio that the image must occupy, restricting zoom-out.
Sets the 3D rotation for an embedded image (used for placing embeds in 360 space).
Sets the camera zoom scale instantly.
Sets the camera view instantly to the specified viewport.
The target viewport as a View [x0, y0, width, height].
Options for setting the view.
OptionalcorrectNorth?: booleanIf true (for 360), corrects the view based on the trueNorth setting.
OptionalnoLimit?: booleanIf true, allows setting a view outside the normal image boundaries.
OptionalnoRender?: booleanIf true, prevents triggering a render after setting the view.
Stops any ongoing camera animation immediately.
Performs an animated zoom centered on a specific screen point (or the current center).
The amount to zoom (positive zooms out, negative zooms in).
Forced duration in ms (0 for instant).
Optionalx: number
Screen pixel X-coordinate for zoom focus (optional, defaults to center).
Optionaly: number
Screen pixel Y-coordinate for zoom focus (optional, defaults to center).
Animation speed multiplier (optional).
If true, allows zooming beyond image boundaries.
A Promise that resolves when the zoom animation completes.
Zooms in by a specified factor.
Zoom factor (e.g., 1 = standard zoom step).
Animation duration in ms.
Animation speed multiplier.
A Promise that resolves when the animation completes.
Zooms out by a specified factor.
Zoom factor (e.g., 1 = standard zoom step).
Animation duration in ms.
Animation speed multiplier.
A Promise that resolves when the animation completes.
Represents the virtual camera used to view a MicrioImage. Provides methods for controlling the viewport (position, zoom, rotation), converting between screen and image coordinates, and managing animations.
Instances are typically accessed via
micrioImage.camera.Author
Marcel Duin marcel@micr.io