[−][src]Struct vega_lite_4::ProjectionBuilder
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]
&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 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]
&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]
pub fn clone(&self) -> ProjectionBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ProjectionBuilder
[src]
pub fn default() -> ProjectionBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for ProjectionBuilder
[src]
impl Send for ProjectionBuilder
[src]
impl Sync for ProjectionBuilder
[src]
impl Unpin for ProjectionBuilder
[src]
impl UnwindSafe for ProjectionBuilder
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,