@fieldnotes/core 0.23.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -258,6 +258,12 @@ viewport.loadJSON(localStorage.getItem('canvas'));
258
258
 
259
259
  > **Note:** Serialized state includes all layers and element `layerId` assignments. States saved before layers were introduced are automatically migrated — elements are placed on a default "Layer 1".
260
260
 
261
+ > **Two equivalent pairs:** `exportJSON()` / `loadJSON()` work with strings and are the
262
+ > canonical choice for persistence. `exportState()` / `loadState()` work with in-memory
263
+ > `CanvasState` objects, skipping the JSON round-trip — this is what `AutoSave` uses. The
264
+ > module-level `exportState` / `parseState` functions are no longer exported; use the
265
+ > `Viewport` methods.
266
+
261
267
  ## Tool Switching
262
268
 
263
269
  ```typescript