Type Alias: SnapAttachment
SnapAttachment = {
active:false; } | {active:true;instanceId:string|null; }
Describes an evaluated welding or magnetic attachment. Use active to check the relationship. A null instance ID on an active attachment means the linked item is unidentified. Check snap evaluation flags before relying on inactive.
Example
const items = window.mimeeqApp.observers.modular.snapStatuses.getValue() ?? [];
const snap = items[0]?.snaps[0];
if (snap?.welding.active) console.log(snap.welding.instanceId ?? 'Unknown item');