File size: 1,207 Bytes
b5ba7a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
 * This is a file for static unchanging global configurations.
 *
 * Do NOT confuse with settings, which are modifiable by either the settings menu, or in the application itself.
 */
const config = makeReadOnly(
	{
		// Grid Size
		gridSize: 64,

		// Scroll Tick Limit (How much must scroll to reach next tick)
		wheelTickSize: 50,

		/** Select Tool */
		// Handle Draw Size
		handleDrawSize: 12,
		// Handle Draw Hover Scale
		handleDrawHoverScale: 1.3,
		// Handle Detect Size
		handleDetectSize: 20,
		// Rotate Handle Distance (from selection)
		rotateHandleDistance: 32,

		// Rotation Snapping Distance
		rotationSnappingDistance: (10 * Math.PI) / 180,
		// Rotation Snapping Angles
		rotationSnappingAngles: [
			(-Math.PI * 4) / 4,
			(-Math.PI * 3) / 4,
			(-Math.PI * 2) / 4,
			(-Math.PI * 1) / 4,
			0,
			(Math.PI * 1) / 4,
			(Math.PI * 2) / 4,
			(Math.PI * 3) / 4,
			(Math.PI * 4) / 4,
		],

		// Endpoint
		api: makeReadOnly({path: "/sdapi/v1/"}),

		// Default notification timeout
		notificationTimeout: 8000,
		notificationHighlightAnimationDuration: 200,

		/**
		 * Interrogate Tool
		 */
		interrogateToolNotificationTimeout: 120000, // Default is two minutes
	},
	"config"
);