* @param {object} hotInstance Instance of Handsontable. * @param {Array} data Array of arrays or array of objects containing data. * @param {MetaManager} metaManager The meta manager instance.
(hotInstance: HotInstance, data: (Record<string, unknown> | unknown[])[], metaManager: MetaManagerLike)
| 140 | * @param {MetaManager} metaManager The meta manager instance. |
| 141 | */ |
| 142 | constructor(hotInstance: HotInstance, data: (Record<string, unknown> | unknown[])[], metaManager: MetaManagerLike) { |
| 143 | this.hot = hotInstance; |
| 144 | this.metaManager = metaManager; |
| 145 | this.tableMeta = metaManager.getTableMeta(); |
| 146 | this.dataSource = data; |
| 147 | this.colToPropCache = []; |
| 148 | this.propToColCache = new Map(); |
| 149 | |
| 150 | this.refreshDuckSchema(); |
| 151 | this.createMap(); |
| 152 | } |
| 153 | |
| 154 | /** |
| 155 | * Generates cache for property to and from column addressation. |
nothing calls this directly
no test coverage detected