@huukhanhnguyen/model / core/editHistory
core/editHistory
EDIT_HISTORY_MAX_STEPS
constEDIT_HISTORY_MAX_STEPS:500=500
Max past steps retained per model.
MEASURED (2026-08-06, packages/parametric): JSON size of a typical inverse entry after JSON.stringify:
- laneSetField / settingsSet / laneMove: ~80–200 bytes
- laneInsert / laneRemove of a small sheet/view: ~150–600 bytes
- laneSetOps with a short chain (≤5 ops): ~0.5–2 KB Stated memory budget: keep history JSON under ~2.5 MB per live model. Cap 500 steps × worst-case ~5 KB (large setOps body) ≈ 2.5 MB. Simple editing sessions stay well under that (500 × ~300 B ≈ 150 KB).
createEditHistory()
createEditHistory(
target):EditHistory