feat(semantics): version scene edits and refine paint geometry

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 00:42:55 +03:00
parent 7a3c3c00b3
commit b7b5ac9cf0
34 changed files with 3014 additions and 138 deletions
@@ -144,3 +144,15 @@ test('camera snapshot restores exact pose, orthographic scale and orbit anchor a
assert.deepEqual(next.c.snapshot(),old);next.c.dispose();
}
});
test('navigation blockers are independent and only their owners can release them',()=>{
const f=fixture();f.c.setProjection('orthographic');
const wheel=()=>f.event('wheel',{deltaX:0,deltaY:-120,deltaMode:0});
const span=()=>f.c.camera.top;
try{
const initial=span();f.c.setNavigation(false);f.c.setNavigation(false,'semantic');
f.c.setNavigation(true);wheel();assert.equal(span(),initial,'planner release must not clear semantic lock');
f.c.setNavigation(false);f.c.setNavigation(true,'semantic');wheel();assert.equal(span(),initial,'semantic release must not clear planner lock');
f.c.setNavigation(true);wheel();assert.ok(span()<initial,'input resumes immediately without blur');
}finally{f.c.dispose();}
});