fix(Map): Added migration mechanism

This commit is contained in:
DanSylvest
2025-09-28 09:29:42 +03:00
parent f89cd5f44f
commit 5c8753fb96
17 changed files with 155 additions and 66 deletions

View File

@@ -3,6 +3,7 @@ import {
InterfaceStoredSettings,
KillsWidgetSettings,
LocalWidgetSettings,
MapSettings,
MiniMapPlacement,
OnTheMapSettingsType,
PingsPlacement,
@@ -53,6 +54,10 @@ export const DEFAULT_KILLS_WIDGET_SETTINGS: KillsWidgetSettings = {
timeRange: 4,
};
export const DEFAULT_MAP_SETTINGS: MapSettings = {
viewport: { zoom: 1, x: 0, y: 0 },
};
export const getDefaultWidgetProps = () => ({
visible: STORED_VISIBLE_WIDGETS_DEFAULT,
windows: DEFAULT_WIDGETS,