2024-02-11 03:00:39 +00:00
|
|
|
|
2024-02-11 02:57:30 +00:00
|
|
|
use yew::prelude::*;
|
|
|
|
|
2024-02-12 00:46:43 +00:00
|
|
|
use plate_tool_lib::plate_instances::PlateInstance;
|
|
|
|
use plate_tool_lib::plate::PlateType;
|
2024-02-11 02:57:30 +00:00
|
|
|
|
|
|
|
#[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,
|
|
|
|
}
|