pub fn add_bounding_box(responses: &mut Vec<Message>) -> Vec<LayerId> {
	let path = vec![generate_uuid()];

	let operation = Operation::AddOverlayRect {
		path: path.clone(),
		transform: DAffine2::ZERO.to_cols_array(),
		style: style::PathStyle::new(Some(Stroke::new(COLOR_ACCENT, 1.0)), Fill::None),
	};
	responses.push(DocumentMessage::Overlays(operation.into()).into());

	path
}
/// Create a viewport relative bounding box overlay with no transform handles
Create a viewport relative bounding box overlay with no transform handles
Create a viewport relative bounding box overlay with no transform handles
pub fn add_bounding_box(responses: &mut Vec<Message>) -> Vec<LayerId> {
	let path = vec![generate_uuid()];
	let operation = Operation::AddOverlayRect {
		path: path.clone(),
		transform: DAffine2::ZERO.to_cols_array(),
		style: style::PathStyle::new(Some(Stroke::new(COLOR_ACCENT, 1.0)), Fill::None),
	};
	responses.push(DocumentMessage::Overlays(operation.into()).into());
	path
}
pub fn add_bounding_box ( responses : & mut Vec < Message > ) -> Vec < LayerId > { let path = vec ! [ generate_uuid ( ) ] ; let operation = Operation :: AddOverlayRect { path : path . clone ( ) , transform : DAffine2 :: ZERO . to_cols_array ( ) , style : style :: PathStyle :: new ( Some ( Stroke :: new ( COLOR_ACCENT , 1.0 ) ) , Fill :: None ) , } ; responses . push ( DocumentMessage :: Overlays ( operation . into ( ) ) . into ( ) ) ; path }
Create a viewport relative bounding box overlay with no transform handles
Create a viewport relative bounding box overlay with no transform handles
responses
&mut Vec<Message>
responses
&mut Vec<Message>