Home Reference Source
import {SharedFilesUtil} from 'cables-shared-api'
public class | source

SharedFilesUtil

Extends:

cables_dev/shared/api/shared_util.js~SharedUtil → SharedFilesUtil

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

FILETYPES: {"image": *, "binary": *, "audio": *, "video": *, "gltf": *, "3d raw": *, "JSON": *, "CSS": *, "textfile": *, "pointcloud": *, "shader": *, "SVG": *, "CSV": *, "XML": *, "font": *, "mesh sequence": *, "pointcloud json": *, "3d json": *, "javascript": *, "ar markers": *}

public get

Method Summary

Public Methods
public

getAssetFileName(fileDb: *): *

public

getConvertersForFile(fileName: *): *

public

getFileAssetLocation(file: *): *

public

getFileAssetUrlPath(file: *): *

public

getFileIconName(fileDb: *): *

public

getFileInfo(fileDb: *): *

public

getFileInfoFromFile(absolutePath: *): *

public

getFileType(filename: *): *

public

getSuffix(filename: *): *

public

imageSize(fn: *): *

public

isAssetLibraryLocation(filePath: *): *

public

isPowerOfTwo(x: *): *

public

realSanitizeFilename(_filename: *): *

Public Constructors

public constructor() source

Public Members

public FILETYPES: {"image": *, "binary": *, "audio": *, "video": *, "gltf": *, "3d raw": *, "JSON": *, "CSS": *, "textfile": *, "pointcloud": *, "shader": *, "SVG": *, "CSV": *, "XML": *, "font": *, "mesh sequence": *, "pointcloud json": *, "3d json": *, "javascript": *, "ar markers": *} source

public get utilName: * source

Public Methods

public getAssetFileName(fileDb: *): * source

Params:

NameTypeAttributeDescription
fileDb *

Return:

*

public getConvertersForFile(fileName: *): * source

Params:

NameTypeAttributeDescription
fileName *

Return:

*

public getFileAssetLocation(file: *): * source

Params:

NameTypeAttributeDescription
file *

Return:

*

public getFileAssetUrlPath(file: *): * source

Params:

NameTypeAttributeDescription
file *

Return:

*

public getFileIconName(fileDb: *): * source

Params:

NameTypeAttributeDescription
fileDb *

Return:

*

public getFileInfo(fileDb: *): * source

Params:

NameTypeAttributeDescription
fileDb *

Return:

*

public getFileInfoFromFile(absolutePath: *): * source

Params:

NameTypeAttributeDescription
absolutePath *

Return:

*

public getFileType(filename: *): * source

Params:

NameTypeAttributeDescription
filename *

Return:

*

public getSuffix(filename: *): * source

Params:

NameTypeAttributeDescription
filename *

Return:

*

public imageSize(fn: *): * source

Params:

NameTypeAttributeDescription
fn *

Return:

*

public isAssetLibraryLocation(filePath: *): * source

Params:

NameTypeAttributeDescription
filePath *

Return:

*

public isPowerOfTwo(x: *): * source

Params:

NameTypeAttributeDescription
x *

Return:

*

public realSanitizeFilename(_filename: *): * source

Params:

NameTypeAttributeDescription
_filename *

Return:

*