Calibration updates
This commit is contained in:
@@ -464,6 +464,7 @@ function anchorEditor(a) {
|
||||
const box = document.createElement('div'); box.style.cssText = 'padding:4px 2px 12px';
|
||||
box.appendChild(textRow('Label', a.label, (v) => { a.label = v; markDirty(); renderAnchorsSoft(); }));
|
||||
box.appendChild(selectRow('Marker', a.fiducialType || 'aruco', ['aruco', 'apriltag'], (v) => { a.fiducialType = v; markDirty(); }));
|
||||
box.appendChild(selectRow('Mount', a.mount || 'flat', ['flat', 'wall'], (v) => { a.mount = v; markDirty(); }));
|
||||
box.appendChild(numRow('Marker id', a.fiducialId, (v) => { a.fiducialId = v | 0; markDirty(); renderAnchorsSoft(); }, { step: 1, min: 0 }));
|
||||
box.appendChild(numRow('Size (mm)', a.fiducialSizeMm, (v) => { a.fiducialSizeMm = v; rebuildAnchors(); markDirty(); }, { step: 1 }));
|
||||
box.appendChild(xyzRow('Pos (mm)', a.position, ['x', 'y', 'z'], () => { rebuildAnchors(); markDirty(); }));
|
||||
@@ -727,6 +728,15 @@ if (printAnchorsBtn) printAnchorsBtn.addEventListener('click', () => {
|
||||
window.open('anchors-print.html', '_blank');
|
||||
});
|
||||
|
||||
const planBtn = document.getElementById('planBtn');
|
||||
if (planBtn) planBtn.addEventListener('click', () => {
|
||||
if (dirty) toast('Tip: save first so the plan matches your latest layout', '');
|
||||
window.open('placement-plan.html', '_blank');
|
||||
});
|
||||
|
||||
const calibrateBtn = document.getElementById('calibrateBtn');
|
||||
if (calibrateBtn) calibrateBtn.addEventListener('click', () => window.open('calibrate.html', '_blank'));
|
||||
|
||||
window.addEventListener('beforeunload', (e) => { if (dirty) { e.preventDefault(); e.returnValue = ''; } });
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user