Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Change a drag on an opening in a drawing into an edit command.
import { resolveViewEditCandidate, ViewEditCandidateError } from '@opengeometry/floorkit';
function resolveViewEditCandidate( model: BuildingModel, frame: ViewFrame, sourceRef: DrawingSourceRef | undefined, drag: ViewDrag, constraint: { kind: 'along-host-wall'; }, built: BuildResult, ): BuildingEditCommand;
BuildingEditCommand;
class ViewEditCandidateError extends Error { readonly code: ViewEditCandidateErrorCode; constructor(code: ViewEditCandidateErrorCode, message: string); }
interface ViewDrag { x: number; y: number; }
type ViewEditCandidateErrorCode = | 'invalid-constraint' | 'invalid-source' | 'inspect-only' | 'stale-source' | 'unhosted-opening' | 'invalid-drag' | 'invalid-build' | 'invalid-view-frame' | 'foreshortened-axis' | 'off-axis-drag' | 'ambiguous-wall-edge';
BuildingEditCommand
BuildingModel
BuildResult
DrawingSourceRef
ViewFrame