zijlijn concepten beter geplaatst

This commit is contained in:
2026-09-03 08:50:20 +02:00
parent 2c141b6d3f
commit 1abc84489f
5 changed files with 49 additions and 26 deletions
+1 -20
View File
@@ -776,12 +776,7 @@ export class CmapWorkspace {
navigateToHash(cmapRoute(record.cmapSlug)).catch((error) => console.error(error));
}
},
onOpenBoundaryReference: () => {
const source = state.currentConceptMapSource;
if (source) {
navigateToHash(cmapRoute(source.slug)).catch((error) => console.error(error));
}
},
onOpenBoundaryReference: () => openParentCmap(),
onOpenSubMap: (record) => {
console.info("[racket-wiki:cmap-host 0.2.122] submap state changed", {
id: record.id,
@@ -1713,20 +1708,6 @@ export class CmapWorkspace {
markCurrentCmapSaved();
}
});
const navigateToParentCmap = () => {
const prototype = cmapPrototypeState();
if (prototype.editor && prototype.editor.canStepBackWithinMap()) {
prototype.editor.openParentMap();
return;
}
if (state.currentConceptMapSource) {
navigateToHash(cmapRoute(state.currentConceptMapSource.slug))
.catch((error) => console.error(error));
return;
}
if (prototype.editor) prototype.editor.openParentMap();
};
$("cmap-map-navigation").addEventListener("click", navigateToParentCmap);
$("cmap-canvas").addEventListener("contextmenu", (event) => {
event.preventDefault();
const prototype = cmapPrototypeState();