@speckle/shared
Version:
Shared code between various Speckle JS packages
114 lines • 2.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fileUploadConvertedStatusLabels = exports.FileUploadConvertedStatus = exports.BlobUploadStatus = exports.acceptedFileExtensions = exports.rhinoImporterSupportedFileExtensions = void 0;
// This is the exhaustive list of all the file extensions that the rhino processor can convert
// Items that we don't want to expose are intentionally commented out in place
// Either because they don't deliver value, or don't convert well.
// The items left un-commented have been validated they work well with Speckle
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