API Docs for: 0.4
Show:

RSAddonConfig Class

Methods

_readYcbDimensions

() Array private

Read the application's dimensions.json file for YCB processing. If not available, fall back to the framework's default dimensions.json.

Returns:

Array: contents of the dimensions.json file

findResourceVersionByConvention

(
  • source
  • mojitType
)
Object | | Null

Using AOP, this is called after the ResourceStore's version.

Parameters:

  • source Object

    metadata about where the resource is located

  • mojitType String

    name of mojit to which the resource likely belongs

Returns:

Object | | Null: for config file resources, returns metadata signifying that

getDimensions

() Object

Returns the YCB dimensions for the application.

Returns:

Object: the YCB dimensions structure for the app

initializer

(
  • config
)
Nothing

This methods is part of Y.Plugin.Base. See documentation for that for details.

Parameters:

  • config Object

    Configuration object as per Y.Plugin.Base

Returns:

Nothing:

parseResourceVersion

(
  • source
  • type
  • subtype
  • mojitType
)
Object | | Null

Using AOP, this is called before the ResourceStore's version.

Parameters:

  • source Object

    metadata about where the resource is located

  • type String

    type of the resource

  • subtype String

    subtype of the resource

  • mojitType String

    name of mojit to which the resource likely belongs

Returns:

Object | | Null: for config file resources, returns the resource metadata

readConfigJSON

(
  • fullPath
)
User-defined

Reads and parses a JSON file.

Parameters:

  • fullPath String

    path to JSON file

Returns:

User-defined: contents of JSON file

readConfigYCB

(
  • ctx
  • fullPath
)
Object

Reads a configuration file that is in YCB format.

Parameters:

  • ctx Object

    runtime context

  • fullPath String

    path to the YCB file

Returns:

Object: the contextualized configuration