pub struct ObjectGeometry {
pub kind: &'static str,
pub bbox: Option<(f64, f64, f64, f64)>,
}Expand description
Per-shape geometry for the JSON objects export. bbox is in SVG user
units — the same space as the root viewBox and the <g id="sN"> groups —
so editors can hit-test without touching the DOM. None when the shape
draws nothing (e.g. invis), though its sN group still exists.
Fields§
§kind: &'static strShape kind as a stable lowercase name (box, circle, …).
bbox: Option<(f64, f64, f64, f64)>(x, y, w, h) of the shape’s bounds in SVG user units.
Auto Trait Implementations§
impl Freeze for ObjectGeometry
impl RefUnwindSafe for ObjectGeometry
impl Send for ObjectGeometry
impl Sync for ObjectGeometry
impl Unpin for ObjectGeometry
impl UnsafeUnpin for ObjectGeometry
impl UnwindSafe for ObjectGeometry
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