zijlijn concepten beter geplaatst
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user