[−][src]Struct vega_lite_3::Projection
Projection configuration, which determines default properties for all projections. For a full list of projection configuration options, please see the corresponding section of the projection documentation.
Any property of Projection can be in config
An object defining properties of geographic projection, which will be applied to shape
path for "geoshape"
marks
and to latitude
and "longitude"
channels for other marks.
An object defining properties of the geographic projection shared by underlying layers.
Fields
center: Option<Vec<f64>>
Sets the projection’s center to the specified center, a two-element array of longitude and latitude in degrees.
Default value: [0, 0]
clip_angle: Option<f64>
Sets the projection’s clipping circle radius to the specified angle in degrees. If
null
, switches to antimeridian cutting rather
than small-circle clipping.
clip_extent: RemovableValue<Vec<Vec<f64>>>
Sets 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.
coefficient: Option<f64>
distance: Option<f64>
fraction: Option<f64>
lobes: Option<f64>
parallel: Option<f64>
precision: Option<f64>
Sets 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…
.
radius: Option<f64>
ratio: Option<f64>
reflect_x: Option<bool>
reflect_y: Option<bool>
rotate: Option<Vec<f64>>
Sets 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]
scale: Option<f64>
Sets the projection's scale (zoom) value, overriding automatic fitting.
spacing: Option<f64>
tilt: Option<f64>
translate: Option<Vec<f64>>
Sets the projection's translation (pan) value, overriding automatic fitting.
projection_type: Option<ProjectionType>
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
Trait Implementations
impl Clone for Projection
[src]
fn clone(&self) -> Projection
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Projection
[src]
impl Default for Projection
[src]
fn default() -> Projection
[src]
impl<'de> Deserialize<'de> for Projection
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Projection
[src]
Auto Trait Implementations
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnwindSafe for Projection
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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>,