mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
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:
1 parent
17eea266f1
commit
741b6f67eb
5 files changed
+306
-54
No files matched your search
@@ -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, () =>",
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user