Set known slot in/out types
This commit is contained in:
@@ -5,12 +5,23 @@ import { get } from 'svelte/store';
|
||||
|
||||
export function configureLitegraph(isMobile: boolean = false) {
|
||||
LiteGraph.catch_exceptions = false;
|
||||
|
||||
// Must be enabled, otherwise subgraphs won't work (because of non-unique node/link IDs)
|
||||
LiteGraph.use_uuids = true;
|
||||
|
||||
|
||||
LiteGraph.search_filter_enabled = true;
|
||||
LiteGraph.release_link_on_empty_shows_menu = true;
|
||||
LiteGraph.alt_drag_do_clone_nodes = true;
|
||||
LiteGraph.middle_click_slot_add_default_node = true;
|
||||
LiteGraph.dialog_close_on_mouse_leave = false;
|
||||
LiteGraph.search_hide_on_mouse_leave = false;
|
||||
LiteGraph.graph_inputs_outputs_use_combo_widget = true;
|
||||
LiteGraph.search_box_refresh_interval_ms = 150;
|
||||
|
||||
LiteGraph.CANVAS_GRID_SIZE = 32;
|
||||
|
||||
if (isMobile) {
|
||||
LiteGraph.dialog_close_on_mouse_leave = false;
|
||||
LiteGraph.search_hide_on_mouse_leave = false;
|
||||
LiteGraph.pointerevents_method = "pointer";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user