@speckle/shared
Version:
Shared code between various Speckle JS packages
112 lines • 2.03 kB
JavaScript
;
// This is a full list of all the file extensions supported by Rhino
// For some of them, the utility to connect them with Speckle is unfounded
Object.defineProperty(exports, "__esModule", { value: true });
exports.fileUploadConvertedStatusLabels = exports.FileUploadConvertedStatus = exports.BlobUploadStatus = exports.acceptedFileExtensions = exports.rhinoImporterSupportedFileExtensions = void 0;
exports.rhinoImporterSupportedFileExtensions = new Set([
'3dm',
'3dmbak',
'rws',
'3mf',
'3ds',
'amf',
'ai',
'dwg',
'dxf',
'x',
'e57',
'dst',
'exp',
'dst',
'exp',
'off',
'gf',
'gft',
'gltf',
'glb',
'gts',
'igs',
'iges',
'lwo',
'dgn',
'fbx',
'scn',
'obj',
'pdf',
'ply',
'asc',
'csv',
'xyz',
'pts',
'cgo_ascii',
'cgo_asci',
'txt',
'raw',
'm',
'pts',
'svg',
'skp',
'slc',
'sldprt',
'sldasm',
'stp',
'step',
'stl',
'vda',
'wrl',
'vrml',
'iv',
'gdf'
]);
// For comments attachments, could be moved back to frontend-2
exports.acceptedFileExtensions = [
'pdf',
'zip',
'7z',
'pptx',
'ifc',
'dwg',
'dxf',
'3dm',
'ghx',
'gh',
'rvt',
'pla',
'pln',
'obj',
'blend',
'3ds',
'max',
'mtl',
'stl',
'md',
'txt',
'csv',
'xlsx',
'xls',
'doc',
'docx',
'svg',
'eps',
'gwb',
'skp',
'pbix'
];
exports.BlobUploadStatus = {
Pending: 0,
Completed: 1,
Error: 2
};
exports.FileUploadConvertedStatus = {
Queued: 0,
Converting: 1,
Completed: 2,
Error: 3
};
exports.fileUploadConvertedStatusLabels = {
[exports.FileUploadConvertedStatus.Queued]: 'Queued',
[exports.FileUploadConvertedStatus.Converting]: 'Converting',
[exports.FileUploadConvertedStatus.Completed]: 'Completed',
[exports.FileUploadConvertedStatus.Error]: 'Error'
};
//# sourceMappingURL=index.js.map