Keep the Draw control and its chosen shape across engine switches

The session Draw handle keeps the shape and colour and the marks stay on the annotation board; the drawing tool (preview, click handler, Escape and Enter keys) belongs to the attached viewer, so a switch ends an open sketch and gives the pointer back.
This commit is contained in:
German Khokhlov committed 2026-11-03 17:38:05 +04:00
1 parent 17eea266f1
commit 741b6f67eb
5 files changed
+306 -54

No files matched your search

+3 -1
View File
@@ -328,7 +328,9 @@ test('the application composition wires the import and owns its teardown', () =>
new URL('../app/tools.js', import.meta.url),
'utf8',
);
const drawAt = tools.indexOf('const drawTool = initDrawTool({');
const drawAt = tools.indexOf(
"const drawTool = sessionTool(layerSession, 'draw'",
);
const importAt = tools.indexOf(
"const geoFileImport = sessionTool(layerSession, 'geoImport', defer, () =>",
);