Validates layer name against VALID_LAYER_NAMES, bounds-checks the target cell, auto-allocates the layer table if the caller writes to a previously-empty layer. Marks the map as dirty for callers that track in-memory mutations.
33 KiB
33 KiB