[][src]Struct vega_lite_4::ProjectionBuilder

pub struct ProjectionBuilder { /* fields omitted */ }

Builder for Projection.

Implementations

impl ProjectionBuilder[src]

pub fn center<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self[src]

The projection's 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]

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]

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 extent<VALUE: Into<Vec<Vec<f64>>>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn fit<VALUE: Into<Value>>(&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]

For conic projections, the two standard parallels that define the map layout. The default depends on the specific conic projection used.

pub fn point_radius<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self[src]

The default radius (in pixels) to use when drawing GeoJSON Point and MultiPoint geometries. This parameter sets a constant default value. To modify the point radius in response to data, see the corresponding parameter of the GeoPath and GeoShape transforms.

Default value: 4.5

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) factor, overriding automatic fitting. The default scale is projection-specific. The scale factor corresponds linearly to the distance between projected points; however, scale factor values are not equivalent across projections.

pub fn size<VALUE: Into<Vec<f64>>>(&mut self, value: VALUE) -> &mut Self[src]

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 offset as a two-element array [tx, ty].

pub fn projection_type<VALUE: Into<ProjectionType>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

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]

Builds a new Projection.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ProjectionBuilder[src]

impl Default for ProjectionBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.