pub struct TimelineGeometry {
pub container_width: f64,
pub gutter_width: f64,
pub right_gutter: f64,
pub duration_ms: f64,
pub pan_ms: f64,
pub zoom: f64,
pub min_zoom: f64,
pub max_zoom: f64,
}Expand description
Layout + viewport inputs for a timeline (pixels and milliseconds; zoom/pan_ms are clamped by the math).
Fields§
§container_width: f64§gutter_width: f64§right_gutter: f64§duration_ms: f64§pan_ms: f64§zoom: f64§min_zoom: f64§max_zoom: f64Trait Implementations§
Source§impl Clone for TimelineGeometry
impl Clone for TimelineGeometry
Source§fn clone(&self) -> TimelineGeometry
fn clone(&self) -> TimelineGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimelineGeometry
impl Debug for TimelineGeometry
Source§impl<'de> Deserialize<'de> for TimelineGeometry
impl<'de> Deserialize<'de> for TimelineGeometry
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 FromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
impl FromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
Source§impl OptionFromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
Source§impl RefFromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
impl RefFromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<TimelineGeometry>
type Anchor = SelfOwner<TimelineGeometry>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for TimelineGeometry
impl Serialize for TimelineGeometry
Source§impl Tsify for TimelineGeometry
impl Tsify for TimelineGeometry
const DECL: &'static str = "/**\n * Layout + viewport inputs for a timeline (pixels and milliseconds; `zoom`/`pan_ms` are clamped by the math).\n */\nexport interface TimelineGeometry {\n containerWidth: number;\n gutterWidth: number;\n rightGutter: number;\n durationMs: number;\n panMs: number;\n zoom: number;\n minZoom: number;\n maxZoom: number;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for TimelineGeometrywhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl WasmDescribe for TimelineGeometry
impl WasmDescribe for TimelineGeometry
Auto Trait Implementations§
impl Freeze for TimelineGeometry
impl RefUnwindSafe for TimelineGeometry
impl Send for TimelineGeometry
impl Sync for TimelineGeometry
impl Unpin for TimelineGeometry
impl UnsafeUnpin for TimelineGeometry
impl UnwindSafe for TimelineGeometry
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