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 |
LOCAL_ASSETS_PREFIX: string |
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:
Name | Type | Attribute | Description |
url | * | ||
convertRelativeToProject | boolean |
|
Return:
string |
public isLocalAssetPath(thePath: *): * source
Params:
Name | Type | Attribute | Description |
thePath | * |
Return:
* |
public isLocalAssetUrl(url: *, assetPathUrl: *): boolean source
Params:
Name | Type | Attribute | Description |
url | * | ||
assetPathUrl | * |
Return:
boolean |
public pathToFileURL(thePath: *, convertProjectToRelative: boolean): * source
Params:
Name | Type | Attribute | Description |
thePath | * | ||
convertProjectToRelative | boolean |
|
Return:
* |
Private Methods
private _localFilePrefixes(assetPathUrl: *): string[] source
Params:
Name | Type | Attribute | Description |
assetPathUrl | * |
Return:
string[] |