Add toggle for enabling/disabling grid snap in RenderContainerComponent and update snapping logic.

This commit is contained in:
2026-01-19 23:51:50 +01:00
parent 984bbae7e3
commit b7fe37d9c4
4 changed files with 28 additions and 3 deletions
@@ -103,6 +103,15 @@ export class RenderContainerComponent implements AfterViewInit, OnDestroy {
this.intersectionPlaneService.setGridDensity(d);
}
// Grid snap proxies
public get gridSnapEnabled(): boolean {
return this.intersectionPlaneService.getGridSnapEnabled();
}
public set gridSnapEnabled(v: boolean) {
this.intersectionPlaneService.setGridSnapEnabled(v);
}
/**
* Toggle the plane locked state
*/