import{_ as e,c as t,o as d,a as r}from"./app.54d5a277.js";const g='{"title":"Interface: BaseGrid","description":"","frontmatter":{},"headers":[{"level":2,"title":"Hierarchy","slug":"hierarchy"},{"level":2,"title":"Properties","slug":"properties"},{"level":3,"title":"[Component]","slug":"component"},{"level":3,"title":"[DefaultValue]","slug":"defaultvalue"},{"level":3,"title":"[PersistentState]","slug":"persistentstate"},{"level":3,"title":"cells","slug":"cells"},{"level":3,"title":"id","slug":"id"},{"level":3,"title":"type","slug":"type"},{"level":2,"title":"Methods","slug":"methods"},{"level":3,"title":"[GatherProps]","slug":"gatherprops"},{"level":3,"title":"getID","slug":"getid"},{"level":3,"title":"getState","slug":"getstate"},{"level":3,"title":"setState","slug":"setstate"}],"relativePath":"api/interfaces/features/grids/grid.BaseGrid.md"}',o={},a=r('
features/grids/grid.BaseGrid
Persistent
<Record
<string
| number
, State
>>
\u21B3 BaseGrid
\u2022 [Component]: DefineComponent
<{ cells
: { required
: true
= true; type
: PropType
<ProcessedComputable
<Record
<string
, GridCell
>>> } ; cols
: { required
: true
= true; type
: PropType
<ProcessedComputable
<number
>> } ; rows
: { required
: true
= true; type
: PropType
<ProcessedComputable
<number
>> } ; visibility
: { required
: true
= true; type
: PropType
<ProcessedComputable
<Visibility
>> } }, { Visibility
: typeof Visibility
; gatherCellProps
: (cell
: GridCell
) => { canClick
: boolean
; display
: CoercableComponent
; id
: string
; onClick
: undefined
| VoidFunction
; onHold
: undefined
| VoidFunction
; style
: undefined
| StyleValue
; title
: undefined
| CoercableComponent
; visibility
: Visibility
} ; mergeAdjacent
: ComputedRef
<boolean
> ; unref
: <T>(ref
: T
| Ref
<T
>) => T
}, unknown
, {}, {}, ComponentOptionsMixin
, ComponentOptionsMixin
, Record
<string
, any
>, string
, PublicProps
, Readonly
<ExtractPropTypes
<{ cells
: { required
: true
= true; type
: PropType
<ProcessedComputable
<Record
<string
, GridCell
>>> } ; cols
: { required
: true
= true; type
: PropType
<ProcessedComputable
<number
>> } ; rows
: { required
: true
= true; type
: PropType
<ProcessedComputable
<number
>> } ; visibility
: { required
: true
= true; type
: PropType
<ProcessedComputable
<Visibility
>> } }>>, {}>
profectus/src/features/grids/grid.ts:214
\u2022 [DefaultValue]: Record
<string
| number
, State
>
Persistent.__@DefaultValue@18652
profectus/src/game/persistence.ts:25
\u2022 [PersistentState]: Ref
<Record
<string
| number
, State
>>
Persistent.__@PersistentState@18650
profectus/src/game/persistence.ts:24
\u2022 cells: Record
<string
| number
, GridCell
>
profectus/src/features/grids/grid.ts:212
\u2022 id: string
profectus/src/features/grids/grid.ts:208
\u2022 type: typeof GridType
profectus/src/features/grids/grid.ts:213
\u25B8 [GatherProps](): Record
<string
, unknown
>
Record
<string
, unknown
>
profectus/src/features/grids/grid.ts:215
\u25B8 getID(id
, state
): string
Name | Type |
---|---|
id | string | number |
state | State |
string
profectus/src/features/grids/grid.ts:209
\u25B8 getState(id
): State
Name | Type |
---|---|
id | string | number |
profectus/src/features/grids/grid.ts:210
\u25B8 setState(id
, state
): void
Name | Type |
---|---|
id | string | number |
state | State |
void