← Floor Plan EditorEdit Floor Plan
100%
Saved

Canvas

Select Seated section in Drawing Tools, then click the canvas to place a section.

EditFloorPlan

Paste a floor plan JSON and edit it. After a short idle, and when you delete something, the editor builds grouped payloads: new added (created), updated, and deleted — each as arrays per entity type. onAutosave receives that diff. This demo resolves it locally. The package does not call a server.

Sold seats & inventory lock

Seats with seat.sold: true, or soldStatus of sold, in_cart, or blocked, show a red circle and X. They can be selected. Notes stay editable. Other seat fields stay locked.

Seated section

  • Name and move stay locked while any child seat is occupied. Rows can still be added, and unoccupied seats can still be deleted.
  • Delete asks "Delete & Refund?" before the section is removed. The editor does not call a refund API.
  • Tier / hold is per seat (not on the section node). In Pricing tiers or Seat holds mode, occupied seats are skipped when assigning — they cannot receive a new tier or hold.

Table — how to test

Table seats live in seats with parentId set to the table id. Set "sold": true on individual seat objects.

  • singleSeat — tier/hold is usually per seat. Occupied table seats show the overlay and can be selected for notes. Other seats on the same table remain editable.
  • entireTable — tier/hold is on the table node. If any seat on the table is occupied, the name and pricing tier stay locked. Hold and purchase mode stay editable. Delete asks for confirmation.
// Example: mark first table seat sold (find seat where parentId matches table id)
{
  "id": "seat_table_abc_0",
  "type": "seat",
  "parentId": "table_abc",
  "sold": true,
  ...
}

GA area — how to test

GA zones use sold on the gaAreas[] object itself (not on seats):

{
  "id": "ga_vip",
  "type": "gaArea",
  "name": "VIP Standing",
  "sold": true,
  "tierId": "...",
  "holdId": null,
  ...
}
  • Occupied GA areas show a red SOLD label and red border.
  • Name and pricing tier stay locked. Hold and styling stay editable.
  • Capacity cannot be lowered while soldStatus is sold or in_cart. Delete asks for confirmation.

Quick test steps

  1. Open /edit and click Load sample (first 6 section seats are pre-marked sold).
  2. Try to delete a seated section that contains sold seats — confirm Delete & Refund.
  3. Add a table via the editor, then in JSON set one of its seats to sold: true, Apply JSON, and test properties.
  4. In JSON set sold: true on a gaAreas[] entry, Apply JSON, and open GA properties.

Save diff output

Edit the plan and wait, or click Save. The latest diff appears here. Fail next autosave rejects one attempt so the status shows Retrying.