2022-12-25 20:29:03 -06:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2022-12-25 20:39:04 -06:00
|
|
|
const config = makeReadOnly(
|
|
|
|
{
|
2023-01-08 15:21:08 -06:00
|
|
|
// Grid Size
|
|
|
|
gridSize: 64,
|
|
|
|
|
2022-12-25 20:39:04 -06:00
|
|
|
// Scroll Tick Limit (How much must scroll to reach next tick)
|
|
|
|
wheelTickSize: 50,
|
2022-12-26 19:24:26 -06:00
|
|
|
|
2023-01-07 22:54:37 -06:00
|
|
|
/** 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,
|
|
|
|
|
2023-01-12 18:49:06 -06:00
|
|
|
// Rotation Snapping Distance
|
|
|
|
rotationSnappingDistance: (10 * Math.PI) / 180,
|
|
|
|
// Rotation Snapping Angles
|
|
|
|
rotationSnappingAngles: [
|
2023-01-12 20:00:34 -06:00
|
|
|
(-Math.PI * 4) / 4,
|
|
|
|
(-Math.PI * 3) / 4,
|
|
|
|
(-Math.PI * 2) / 4,
|
|
|
|
(-Math.PI * 1) / 4,
|
2023-01-12 18:49:06 -06:00
|
|
|
0,
|
2023-01-12 20:00:34 -06:00
|
|
|
(Math.PI * 1) / 4,
|
|
|
|
(Math.PI * 2) / 4,
|
2023-01-12 18:49:06 -06:00
|
|
|
(Math.PI * 3) / 4,
|
2023-01-12 20:00:34 -06:00
|
|
|
(Math.PI * 4) / 4,
|
2023-01-12 18:49:06 -06:00
|
|
|
],
|
|
|
|
|
2022-12-26 19:24:26 -06:00
|
|
|
// Endpoint
|
|
|
|
api: makeReadOnly({path: "/sdapi/v1/"}),
|
2023-02-14 20:44:37 -06:00
|
|
|
|
|
|
|
// Default notification timeout
|
|
|
|
notificationTimeout: 8000,
|
2023-02-25 20:23:45 -06:00
|
|
|
notificationHighlightAnimationDuration: 200,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Interrogate Tool
|
|
|
|
*/
|
|
|
|
interrogateToolNotificationTimeout: 120000, // Default is two minutes
|
2022-12-25 20:39:04 -06:00
|
|
|
},
|
|
|
|
"config"
|
|
|
|
);
|