mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 04:14:30 +00:00
21 lines
519 B
TypeScript
21 lines
519 B
TypeScript
import { FileTypeDefinition } from '../types'
|
|||
|
|
import ModelViewer from './model-viewer'
|
||
|
|
|
||
|
|
import { secondToDegree } from './utils'
|
||
|
|
export { secondToDegree } from './utils'
|
||
|
|
|
||
|
|
export const modelTypeDefinition: FileTypeDefinition = {
|
||
|
|
id: '3d',
|
||
|
|
name: '3D Model',
|
||
|
|
match: (file) => file.proxyType === '3d',
|
||
|
|
viewer: ModelViewer,
|
||
|
|
commentsConfig: {
|
||
|
|
hasTimestamp: true,
|
||
|
|
hasAnnotations: true,
|
||
|
|
formatTimestamp: (second: number) => {
|
||
|
|
const deg = secondToDegree(second)
|
||
|
|
return `${deg}°`
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|