mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Add an editor preference for touched/enclosed/directional based selection (#2156)
* implemented left selection logic * added logic for right ward selection * removed the logs code * corrected capitalization error * corrected capitalization error * added radio buttons for selection_mode * fixed multiple selection of checkboxes * adapted to the RadioEntryData * State management bug * integrated message system to selection_mode * updated * updated * added selection mode to transition arms * removed from portfolio message and added preference in ToolMessageData * removed dead code of selection_mode from frontend logic * removed dead code for zoomWithScroll * Cleanup * Rename, simplify, use dashed box, and highlight only outlines of layers that'll get selected * More code review --------- Co-authored-by: Pratik Agrawal <patrik@Pratiks-MacBook-Air.local> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
93880abc4c
commit
96c57605b7
17 changed files with 266 additions and 113 deletions
|
@ -81,7 +81,7 @@ export function createEditor(): Editor {
|
|||
// TODO: Then, delete the `(window as any).editorHandle = handle;` line above.
|
||||
// This function is called by an FFI binding within the Rust code directly, rather than using the FrontendMessage system.
|
||||
// Then, this directly calls the `injectImaginatePollServerStatus` function on the `EditorHandle` object which is a JS binding generated by wasm-bindgen, going straight back into the Rust code.
|
||||
export function injectImaginatePollServerStatus() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(window as any).editorHandle?.injectImaginatePollServerStatus();
|
||||
}
|
||||
// export function injectImaginatePollServerStatus() {
|
||||
// // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// (window as any).editorHandle?.injectImaginatePollServerStatus();
|
||||
// }
|
||||
|
|
|
@ -725,10 +725,10 @@ impl EditorHandle {
|
|||
self.dispatch(message);
|
||||
}
|
||||
|
||||
#[wasm_bindgen(js_name = injectImaginatePollServerStatus)]
|
||||
pub fn inject_imaginate_poll_server_status(&self) {
|
||||
self.dispatch(PortfolioMessage::ImaginatePollServerStatus);
|
||||
}
|
||||
// #[wasm_bindgen(js_name = injectImaginatePollServerStatus)]
|
||||
// pub fn inject_imaginate_poll_server_status(&self) {
|
||||
// self.dispatch(PortfolioMessage::ImaginatePollServerStatus);
|
||||
// }
|
||||
|
||||
// TODO: Eventually remove this document upgrade code
|
||||
#[wasm_bindgen(js_name = triggerUpgradeDocumentToVectorManipulationFormat)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue