import{_ase,cast,oasd,Naso}from"./chunks/framework.0799945b.js";constu=JSON.parse('{"title":"Module: features/grids/grid","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/grid.md","lastUpdated":null}'),a={name:"api/modules/features/grid.md"},l=o('<h1id="module-features-grids-grid"tabindex="-1">Module:features/grids/grid<aclass="header-anchor"href="#module-features-grids-grid"aria-label="Permalink to "Module: features/grids/grid""></a></h1><h2id="interfaces"tabindex="-1">Interfaces<aclass="header-anchor"href="#interfaces"aria-label="Permalinkto"Interfaces""></a></h2><h3id="basegrid"tabindex="-1">BaseGrid<aclass="header-anchor"href="#basegrid"aria-label="Permalinkto"BaseGrid""></a></h3><p>•<strong>BaseGrid</strong>:<code>Object</code></p><p>ThepropertiesthatareaddedontoaprocessedBoardOptionstocreateaBoard.</p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>[Component]</code></td><tdstyle="text-align:left;"><ahref="./feature#genericcomponent"><code>GenericComponent</code></a></td><tdstyle="text-align:left;">TheVuecomponentusedtorenderthisfeature.</td></tr><tr><tdstyle="text-align:left;"><code>[GatherProps]</code></td><tdstyle="text-align:left;">()=><ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"target="_blank"rel="noreferrer"><code>Record</code></a><<code>string</code>,<code>unknown</code>></td><tdstyle="text-align:left;">Afunctiontogatherthepropsthevuecomponentrequiresforthisfeature.</td></tr><tr><tdstyle="text-align:left;"><code>cellState</code></td><tdstyle="text-align:left;"><ahref="./../game/persistence#persistent"><code>Persistent</code></a><<ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"target="_blank"rel="noreferrer"><code>Record</code></a><<code>string</code>|<code>number</code>,<ahref="./../game/persistence#state"><code>State</code></a>>></td><tdstyle="text-align:left;">Thepersistentstateofthisgrid,whichisadictionaryofcellstates.</td></tr><tr><tdstyle="text-align:left;"><code>cells</code></td><tdstyle="text-align:left;"><ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"target="_blank"rel="noreferrer"><code>Record</code></a><<code>string</code>|<code>number</code>,<ahref="./grid#gridcell"><code>GridCell</code></a>></td><tdstyle="text-align:left;">Adictionaryofcellswithinthisgrid.</td></tr><tr><tdstyle="text-align:left;"><code>getID</code></td><tdstyle="text-align:left;">(<code>id</code>:<code>string</code>|<code>number</code>,<code>state</code>:<ahref="./../game/persistence#state"><code>State</code></a>)=><code>string</code></td><tdstyle="text-align:left;">Gettheauto-generatedIDforidentifyingaspecificcellofthisgridthatappearsintheDOM.Willnotpersistbetweenrefreshesorupdates.</td></tr><tr><tdstyle="text-align:left;"><code>getState</code></td><tdstyle="text-align:left;">(<code>id</code>:<code>string</code>|<code>number</code>)=><ahref="./../game/persistence#state"><code>State</code></a></td><tdstyle="text-align:left;">Getthepersistentstateofthegivencell.</td></tr><tr><tdstyle="text-align:left;"><code>id</code></td><tdstyle="text-align:left;"><code>string</code></td><tdstyle="text-align:left;">Anauto-generatedIDforidentifyingfeaturesthatappearintheDOM.Willnotpersistbetweenrefreshesorupdates.</td></tr><tr><tdstyle="text-align:left;"><code>setState</code></td><tdstyle="text-align:left;">(<code>id</code>:<code>string</code>|<code>number</code>,<code>state</code>:<ahref="./../game/persistence#state"><code>State</code></a>)=><code>void</code></td><tdstyle="text-align:left;">Setthepersistentstateofthegivencell.</td></tr><tr><tdstyle