pub fn pan_to_on_axis(&mut self, axis: Axis, position: f64) -> bool {
        self.pan_to(
            axis.pack(position, axis.minor_pos(self.viewport_origin()))
                .into(),
        )
    }
/// Changes the viewport offset on the specified axis to 'position'.
///
/// The other axis will remain unchanged.
Changes the viewport offset on the specified axis to 'position'.
The other axis will remain unchanged.
Changes the viewport offset on the specified axis to ' position ' . The other axis will remain unchanged .
pub fn pan_to_on_axis(&mut self, axis: Axis, position: f64) -> bool {
        self.pan_to(
            axis.pack(position, axis.minor_pos(self.viewport_origin()))
                .into(),
        )
    }
pub fn pan_to_on_axis ( & mut self , axis : Axis , position : f64 ) -> bool { self . pan_to ( axis . pack ( position , axis . minor_pos ( self . viewport_origin ( ) ) ) . into ( ) , ) }
Changes the viewport offset on the specified axis to 'position'.
Changes the viewport offset on the specified axis to ' position ' .
&mut self
axis
Axis
position
f64
&mut self
axis
Axis
position
f64