Skip to content

Function: detectSurfaceFormat() ​

ts
function detectSurfaceFormat(resource): "freesurfer" | "gifti" | "ply" | null;

Defined in: loaders.ts:111

Detect a supported surface format from a filename or URL pathname.

Parameters ​

resource ​

string

Returns ​

"freesurfer" | "gifti" | "ply" | null

Released under the MIT License.