Skip to content

v0.13.0

Compare
Choose a tag to compare
@johanhelsing johanhelsing released this 04 Aug 15:31
· 16 commits to main since this release

What's Changed

  • Refactor and improve component API with f32 infinities by @Nexfader in #62

Migration guide

v0.12:

        PanCam {
            // prevent the camera from zooming too far out
            max_scale: Some(40.),
            // prevent the camera from zooming too far in
            min_scale: 0.5,
            // prevent the camera from panning or zooming past x -750. -750 was chosen to display both the edges of the
            // sample image and some boundary space beyond it
            min_x: Some(-750.),
            // prevent the camera from panning or zooming past x 1750. 1750 was chosen to show an asymmetric boundary
            // window with more space on the right than the left
            max_x: Some(1750.),
            // prevent the camera from panning or zooming past y -750. value chosen for same reason as above
            min_y: Some(-750.),
            // prevent the camera from panning or zooming past y 1750. value chosen for same reason as above
            max_y: Some(1750.),
            ..default()
        },

v0.13:

        PanCam {
            // prevent the camera from zooming too far out
            max_scale: 40.,
            // prevent the camera from zooming too far in
            min_scale: 0.5,
            // prevent the camera from panning or zooming past x -750. -750 was chosen to display both the edges of the
            // sample image and some boundary space beyond it
            min_x: -750.,
            // prevent the camera from panning or zooming past x 1750. 1750 was chosen to show an asymmetric boundary
            // window with more space on the right than the left
            max_x: 1750.,
            // prevent the camera from panning or zooming past y -750. value chosen for same reason as above
            min_y: -750.,
            // prevent the camera from panning or zooming past y 1750. value chosen for same reason as above
            max_y: 1750.,
            ..default()
        },

New Contributors

Full Changelog: v0.12.0...v0.13.0