@loaders.gl/excel
Version:
Framework-independent loader for Excel files
32 lines (31 loc) • 839 B
JavaScript
// loaders.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
// __VERSION__ is injected by babel-plugin-version-inline
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
const VERSION = typeof "4.3.3" !== 'undefined' ? "4.3.3" : 'latest';
/**
* Worker Loader for Excel files
*/
export const ExcelLoader = {
dataType: null,
batchType: null,
name: 'Excel',
id: 'excel',
module: 'excel',
version: VERSION,
worker: true,
extensions: ['xls', 'xlsb', 'xlsm', 'xlsx'],
mimeTypes: [
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.ms-excel'
],
category: 'table',
binary: true,
options: {
excel: {
shape: 'object-row-table',
sheet: undefined // Load default Sheet
}
}
};