[−][src]Struct vega_lite_4::ProjectionBuilder
Builder for Projection
.
Methods
impl ProjectionBuilder
[src]
pub fn center<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
The projection’s center to the specified center, a two-element array of longitude and latitude in degrees.
Default value: [0, 0]
pub fn clip_angle<VALUE: Into<RemovableValue<f64>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The projection’s clipping circle radius to the specified angle in degrees. If null
,
switches to antimeridian cutting rather than
small-circle clipping.
pub fn clip_extent<VALUE: Into<RemovableValue<Vec<Vec<f64>>>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The projection’s viewport clip extent to the specified bounds in pixels. The extent
bounds are specified as an array [[x0, y0], [x1, y1]]
, where x0
is the left-side of
the viewport, y0
is the top, x1
is the right and y1
is the bottom. If null
, no
viewport clipping is performed.
pub fn coefficient<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn distance<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn fraction<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn lobes<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn parallel<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn parallels<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn precision<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
The threshold for the projection’s adaptive
resampling to the specified value in pixels. This
value corresponds to the Douglas–Peucker
distance.
If precision is not specified, returns the projection’s current resampling precision
which defaults to √0.5 ≅ 0.70710…
.
pub fn radius<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn ratio<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn reflect_x<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn reflect_y<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn rotate<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
The projection’s three-axis rotation to the specified angles, which must be a two- or
three-element array of numbers [lambda
, phi
, gamma
] specifying the rotation angles
in degrees about each spherical axis. (These correspond to yaw, pitch and roll.)
Default value: [0, 0, 0]
pub fn scale<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
The projection's scale (zoom) value, overriding automatic fitting.
pub fn spacing<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn tilt<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
pub fn translate<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self
[src]
The projection's translation (pan) value, overriding automatic fitting.
pub fn projection_type<VALUE: Into<ProjectionType>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
The cartographic projection to use. This value is case-insensitive, for example
"albers"
and "Albers"
indicate the same projection type. You can find all valid
projection types in the
documentation.
Default value: mercator
pub fn build(&self) -> Result<Projection, String>
[src]
Trait Implementations
impl Clone for ProjectionBuilder
[src]
fn clone(&self) -> ProjectionBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ProjectionBuilder
[src]
fn default() -> ProjectionBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProjectionBuilder
impl Send for ProjectionBuilder
impl Sync for ProjectionBuilder
impl Unpin for ProjectionBuilder
impl UnwindSafe for ProjectionBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,