Resource

APIResourcesResource

Source

Resource.fromJSON(json)

Parameters:
  • json — Object or String
Returns:
Resource

Source

Resource.parseFileName(path)

Parameters:
  • path — String
Returns:
Object

Source

Resource::file

Type:
String
Default value:
''

Resource::name

Type:
String
Default value:
''

Resource::color

Type:
String
Default value:
''

Resource::width

Type:
Float
Default value:
0

Resource::height

Type:
Float
Default value:
0

Resource::formats

Type:
Array

Resource::resolutions

Type:
Array

Resource::paths

Type:
Object

Resource::resolve(uri, request)

Parameters:
  • uri — Stringoptional
  • request — Objectoptional
Returns:
String

Source

Resource::toJSON()

Returns:
Object

Source