Home Reference Source
public class | source

HelperUtil

You can directly use an instance of this class. helperUtil

Extends:

cables-shared-api~SharedHelperUtil → HelperUtil

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public

fileURLToPath(url: *, convertRelativeToProject: boolean): string

public

isLocalAssetPath(thePath: *): *

public

isLocalAssetUrl(url: *, assetPathUrl: *): boolean

public

pathToFileURL(thePath: *, convertProjectToRelative: boolean): *

Private Methods
private

_localFilePrefixes(assetPathUrl: *): string[]

Public Constructors

public constructor() source

Public Members

public LOCAL_ASSETS_PREFIX: string source

Public Methods

public fileURLToPath(url: *, convertRelativeToProject: boolean): string source

Params:

NameTypeAttributeDescription
url *
convertRelativeToProject boolean
  • optional
  • default: false

Return:

string

public isLocalAssetPath(thePath: *): * source

Params:

NameTypeAttributeDescription
thePath *

Return:

*

public isLocalAssetUrl(url: *, assetPathUrl: *): boolean source

Params:

NameTypeAttributeDescription
url *
assetPathUrl *

Return:

boolean

public pathToFileURL(thePath: *, convertProjectToRelative: boolean): * source

Params:

NameTypeAttributeDescription
thePath *
convertProjectToRelative boolean
  • optional
  • default: false

Return:

*

Private Methods

private _localFilePrefixes(assetPathUrl: *): string[] source

Params:

NameTypeAttributeDescription
assetPathUrl *

Return:

string[]