{
  "_help": [
    "360 view data for the Stock Plan page (/stock-plan). Read at runtime by /js/stock-plan.js.",
    "Edit with care: a typo here breaks the 360 view. Run `python -I tools/validate_units.py public/data/units.json` afterwards; it also checks this file.",
    "orbitSrcRanges: the render frames that exist, in playback order, as [first, last] ranges (inclusive). They expand to 189 frames, loop index 0-188. Frame files are /assets/rot3m/fNNN.webp (960x540, phones) and /assets/rot3w/fNNN.webp (1600x900, larger screens). Missing render ranges (67-79, 101-120, 186-197, 228-233) are deliberate.",
    "Each boundary between two ranges is a render seam (a hard cut to a different camera pass). wrapIsSeam says whether the jump from the last frame back to the first is also a cut; it was measured with tools/stock/seams.py.",
    "stations: facades of Block A that read face-on, in RENDER frame numbers (the page converts them to loop indices). They are the views PageUp/PageDown on the slider go to, the magnet that pulls a nearby rest onto them, the view's name for screen readers (label), and where the view turns when a unit is chosen in the list. span = how many frames either side of the station the unit boxes stay drawn; rate = measured sideways sweep per frame (fraction of the stage width); w, h = default box size in % of the stage; label = which face you are looking at.",
    "Unit outlines: the 360 view draws each unit's tracked 4-corner outline from /data/orbit-tracks.json (built by the track360 pipeline, prototypes/track360/orbit-tracks.min.json; never edit its coordinates by hand). Its frameCount must equal the number of frames orbitSrcRanges give: if orbitSrcRanges change, re-run that pipeline (tools/validate_units.py checks the match). The station boxes below (stations[].units, span, rate, w, h) are only the fallback, drawn when that file is missing or does not match.",
    "stations[].units: one entry per unit box (fallback only): [unit number, x %, y %] with optional [.., width %, height %] overriding the station default. x/y are the box centre as % of the stage. The page clamps each box so it never overlaps its neighbour.",
    "Fallback boxes are hidden on any frame where the path back to the station crosses a seam, so a box is never drawn over Block B or the wrong facade.",
    "restFrames: square Block B elevations (RENDER frame numbers). The 360 view uses them only to name the view (\"Block B\") for screen readers; it no longer stops on them. Block B has no units for sale.",
    "autoSlowRanges: where auto-rotate slows down because Block A units are in view, as [first, last] LOOP INDEX ranges (inclusive, 0-188, the playback order of orbitSrcRanges, not render frame numbers). Outside them it turns faster over the other buildings, with a smooth change of speed in the 8 frames before and after each range; the page scales both speeds so one full turn still takes about 20 s. Derived from /data/orbit-tracks.json (prototypes/track360/orbit-tracks.min.json): every loop index whose frame shows at least one tracked Block A unit (0-40, 110-152, 183-188; 183-188 runs on into 0-40 across the smooth wrap). Remove the field, or make it [], for an even speed."
  ],
  "frameCount": 189,
  "orbitSrcRanges": [[0, 66], [80, 100], [121, 185], [198, 227], [234, 239]],
  "wrapIsSeam": false,
  "stations": [
    {
      "renderFrame": 0, "span": 9, "rate": 0.023, "w": 21, "h": 15, "label": "North face, east wing",
      "units": [[9, 19, 50, 27, 15], [8, 46, 50], [7, 65, 49, 16, 16], [2, 19, 66, 27, 15], [1, 46, 66]]
    },
    {
      "renderFrame": 167, "span": 7, "rate": 0.047, "w": 20, "h": 14.5, "label": "South face, west wing",
      "units": [[22, 14.4, 44.4], [21, 35.2, 44.4], [20, 55.8, 44.4],
                [16, 14.4, 59.1], [15, 35.2, 59.1], [14, 55.8, 59.1],
                [13, 76.9, 56.3, 20, 16], [6, 75.7, 70.5, 20, 11.5]]
    },
    {
      "renderFrame": 27, "span": 9, "rate": 0.033, "w": 24, "h": 16, "label": "North face, west wing",
      "units": [[25, 22.4, 46.7], [24, 47, 46.7], [23, 73.3, 46.7, 26, 16],
                [19, 22.4, 62.8], [18, 47, 62.8], [17, 73.3, 62.8, 26, 16]]
    },
    {
      "renderFrame": 181, "span": 7, "rate": 0.047, "w": 20, "h": 12.5, "label": "South face, east wing",
      "units": [[13, 11, 50], [12, 31, 50], [11, 52, 50], [10, 73, 50],
                [6, 12, 63], [5, 32, 63], [4, 52, 63], [3, 73, 63]]
    }
  ],
  "restFrames": [57, 87, 117, 147],
  "autoSlowRanges": [[0, 40], [110, 152], [183, 188]]
}
