24 lines
571 B
Rust
24 lines
571 B
Rust
|
use serde::{Serialize, Deserialize};
|
||
|
use yew::prelude::*;
|
||
|
|
||
|
use crate::data::plate_instances::PlateInstance;
|
||
|
use crate::data::plate::PlateType;
|
||
|
|
||
|
#[derive(PartialEq, Properties)]
|
||
|
pub struct PlateProps {
|
||
|
pub source_plate: PlateInstance,
|
||
|
pub destination_plate: PlateInstance,
|
||
|
pub cell_height: f64,
|
||
|
pub ptype: PlateType,
|
||
|
}
|
||
|
|
||
|
pub type MStartHandle = UseStateHandle<Option<(u8, u8)>>;
|
||
|
pub type MEndHandle = UseStateHandle<Option<(u8, u8)>>;
|
||
|
pub type MStatHandle = UseStateHandle<bool>;
|
||
|
|
||
|
#[derive(Debug)]
|
||
|
pub enum MouseEventType {
|
||
|
Mousedown,
|
||
|
Mouseenter,
|
||
|
}
|