pub struct GreatCircleArc {
pub from: [f64; 2],
pub to: [f64; 2],
pub draw_in: f32,
pub color: Option<String>,
pub altitude: Option<f32>,
}Expand description
A great-circle arc lifted off the globe’s surface, drawn between two
[lat, lng] endpoints. draw_in reveals the arc from from towards
to (1.0 = fully drawn) as a per-arc ceiling: the fraction actually
painted this frame is draw_in scaled by the node’s own animated
draw_progress when one is active (the same property line/arrow
read), so a draw_progress keyframe on the dot_map component now
sweeps every arc in over time instead of being silently inert. With no
draw_progress animation, draw_in alone still applies as a fixed
fraction.
Fields§
§from: [f64; 2]§to: [f64; 2]§draw_in: f32§color: Option<String>§altitude: Option<f32>How far the arc lifts off the surface at its midpoint, as a fraction of the globe’s radius. Default 0.12.
Trait Implementations§
Source§impl Debug for GreatCircleArc
impl Debug for GreatCircleArc
Source§impl<'de> Deserialize<'de> for GreatCircleArc
impl<'de> Deserialize<'de> for GreatCircleArc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for GreatCircleArc
impl JsonSchema for GreatCircleArc
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for GreatCircleArc
impl RefUnwindSafe for GreatCircleArc
impl Send for GreatCircleArc
impl Sync for GreatCircleArc
impl Unpin for GreatCircleArc
impl UnsafeUnpin for GreatCircleArc
impl UnwindSafe for GreatCircleArc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more