Remove grid functionality from the pixel art creation platform
Removes the grid display option, grid toggle button, and related configuration settings from the canvas component, CSS, and server configuration files. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 0385ea33-cde8-4bbd-8fce-8d192d30eb41 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/870d08ce-da3b-4822-9874-c2fe2b7628b1/0385ea33-cde8-4bbd-8fce-8d192d30eb41/Zffw2vY
This commit is contained in:
@@ -8,7 +8,7 @@ interface Config {
|
||||
enableAutomaticEvents: boolean;
|
||||
eventDurationMinutes: number;
|
||||
eventIntervalHours: number;
|
||||
showGridByDefault: boolean;
|
||||
|
||||
autoExportIntervalSeconds: number;
|
||||
exportPath: string;
|
||||
}
|
||||
@@ -47,9 +47,7 @@ function parseConfigFile(): Config {
|
||||
case "EVENT_INTERVAL_HOURS":
|
||||
config.eventIntervalHours = parseInt(trimmedValue);
|
||||
break;
|
||||
case "SHOW_GRID_BY_DEFAULT":
|
||||
config.showGridByDefault = trimmedValue.toLowerCase() === "true";
|
||||
break;
|
||||
|
||||
case "AUTO_EXPORT_INTERVAL_SECONDS":
|
||||
config.autoExportIntervalSeconds = parseInt(trimmedValue);
|
||||
break;
|
||||
@@ -67,7 +65,7 @@ function parseConfigFile(): Config {
|
||||
enableAutomaticEvents: config.enableAutomaticEvents || false,
|
||||
eventDurationMinutes: config.eventDurationMinutes || 30,
|
||||
eventIntervalHours: config.eventIntervalHours || 6,
|
||||
showGridByDefault: config.showGridByDefault !== undefined ? config.showGridByDefault : true,
|
||||
|
||||
autoExportIntervalSeconds: config.autoExportIntervalSeconds || 60,
|
||||
exportPath: config.exportPath || "./exports/",
|
||||
};
|
||||
@@ -80,7 +78,7 @@ function parseConfigFile(): Config {
|
||||
enableAutomaticEvents: false,
|
||||
eventDurationMinutes: 30,
|
||||
eventIntervalHours: 6,
|
||||
showGridByDefault: true,
|
||||
|
||||
autoExportIntervalSeconds: 60,
|
||||
exportPath: "./exports/",
|
||||
};
|
||||
|
||||
@@ -36,7 +36,7 @@ export class MemStorage implements IStorage {
|
||||
enableAutomaticEvents: config.enableAutomaticEvents,
|
||||
eventDuration: config.eventDurationMinutes,
|
||||
eventInterval: config.eventIntervalHours,
|
||||
showGridByDefault: config.showGridByDefault,
|
||||
|
||||
updatedAt: new Date(),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user