Skip to content

FloorPlanEditor

The full-featured floor plan editor with tools and status bar.

Overview

FloorPlanEditor wraps FloorplanCanvas with a complete editing UI including annotation tools, alignment tools, keyboard shortcuts, and a context menu. It is the primary component used in the Floor Plan tab.

Features

Drawing Tools

  • Select/Move — Default tool for selecting and moving elements
  • Line — Click-to-click line drawing
  • Polyline — Multi-point path drawing (double-click to finish)
  • Arrow — Line with arrowhead
  • Text — Click to place editable text boxes

Canvas Tools

  • Color picker (preset colors + custom)
  • Stroke width selector (1-4px)
  • Stroke style toggle (solid/dashed)
  • Alignment tools (left, center, right, top, middle, bottom, distribute)
  • Group/ungroup (Ctrl+G / Ctrl+Shift+G)

SPEC Pill Placement

  • Drag specs from SpecsPanel onto the canvas
  • Color-coded pills by match status (pending=amber, approved=green, rejected=red)
  • Movable, resizable spec pills
  • Snap-to-spec for line endpoints

Keyboard Shortcuts

ShortcutAction
VSelect tool
LLine tool
PPolyline tool
AArrow tool
TText tool
DeleteDelete selected
Ctrl+ZUndo
Ctrl+Shift+ZRedo
Ctrl+ASelect all
Space+dragPan canvas
+/- or scrollZoom

Status Bar

  • Current zoom level
  • Mouse coordinates
  • Selected object count
  • Current tool indicator

Source

app/components/floorplan/FloorPlanEditor.vue

Built with VitePress