fix(B07): 도각 같은 잠금 도면층을 설계 조작이 집지 않게 한다
잠금 필터가 공용 함수 없이 호출부마다 들어가 있어 넣은 곳은 막히고 안 넣은 곳은 샜다. Ctrl+A는 도각 103개·원지반 16개까지 전부 선택했고, 선택 삭제에는 잠금 검사가 없어 Ctrl+A → Delete 한 번에 도각이 사라졌다. 자르기와 트림·모따기 계열, 커서 강조도 도각을 집었다. state.ts에 getPickableEntities()(잠금 도면층 제외)를 두고 집기 경로가 그걸 쓴다. 선택은 setSelectedEntityIds() 한 곳에서 막아, 앞으로 생길 선택 경로도 자동으로 잠금 객체를 담지 못한다. 화면맞춤(zoomToFitScreen)도 같은 목록에 맞춘다 — 도각까지 넣으면 A1 한 장 전체가 잡혀 화면의 40%가 여백으로 갔다. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -31,7 +31,7 @@ import {
|
||||
getActiveToolActor,
|
||||
getAngleStep,
|
||||
getCanvas,
|
||||
getEntities,
|
||||
getPickableEntities,
|
||||
getGridEnabled,
|
||||
getLastStateInstructions,
|
||||
getPanStartLocation,
|
||||
@@ -271,7 +271,7 @@ export class InputController {
|
||||
if (getActiveToolActor()?.getSnapshot()?.context.type === Tool.SELECT) {
|
||||
const closestEntityInfo = findClosestEntity(
|
||||
screenCanvasDrawController.targetToWorld(newScreenMouseLocation),
|
||||
getEntities()
|
||||
getPickableEntities()
|
||||
);
|
||||
if (closestEntityInfo.distance < pickRadius()) {
|
||||
setHighlightedEntityIds([closestEntityInfo.entity.id]);
|
||||
@@ -428,7 +428,7 @@ export class InputController {
|
||||
this.handleRedo(evt);
|
||||
} else if (evt.ctrlKey && evt.key === 'a') {
|
||||
// User wants to select everything
|
||||
setSelectedEntityIds(getEntities().map((entity) => entity.id));
|
||||
setSelectedEntityIds(getPickableEntities().map((entity) => entity.id));
|
||||
} else if (evt.key === 'Backspace') {
|
||||
// Remove the last character from the input field
|
||||
evt.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user