Refactor map editing and school creation UI components. Update styles for the dialog and map editor, enhancing layout and responsiveness. Introduce new localization strings for map editing features. Replace the inline map editor with a separate dialog for improved usability. Update event handling for map editing actions and hints.
This commit is contained in:
@@ -15,6 +15,7 @@ interface MapEditorOptions {
|
||||
export function mapEditor(options: MapEditorOptions): {
|
||||
readonly element: HTMLElement;
|
||||
setCatalog: (catalog: CatalogResponse, map: MapLayout) => void;
|
||||
getMap: () => MapLayout;
|
||||
localize: () => void;
|
||||
} {
|
||||
let catalog = options.catalog;
|
||||
@@ -227,6 +228,7 @@ export function mapEditor(options: MapEditorOptions): {
|
||||
selectedId = map.territory.id;
|
||||
render();
|
||||
},
|
||||
getMap: () => cloneMap(map),
|
||||
localize: () => render(),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user