Line data Source code
1 : import type { Settings } from './types'
2 :
3 : /**
4 : * The Left Mouse Click Behavior and Mouse Wheel Scroll values each Navigation
5 : * Mode preset stands for.
6 : *
7 : * `custom` is deliberately absent: it means "the overrides are whatever the
8 : * user set", so there is no pair to apply or to restore from it.
9 : */
10 2356 : export const CANVAS_NAVIGATION_PRESETS: Record<
11 : string,
12 : Partial<Settings> | undefined
13 : > = {
14 : standard: {
15 : 'Comfy.Canvas.LeftMouseClickBehavior': 'select',
16 : 'Comfy.Canvas.MouseWheelScroll': 'panning'
17 : },
18 : legacy: {
19 : 'Comfy.Canvas.LeftMouseClickBehavior': 'panning',
20 : 'Comfy.Canvas.MouseWheelScroll': 'zoom'
21 : }
22 : }
|