Apply

Apply

new Apply(data, parallax)

Source:
Properties:
Name Type Description
data Object

An Object containing the attributes of the apply.

parallax Array

An array of Parallax instances.

Creates an instance of Apply

Example
// creates an Apply
const { Apply, Parallax } = require('lucid-dream');
const apply = new Apply({}, [ new Parallax() ]);
Parameters:
Name Type Description
data Object

An object containing the attributes to define the apply.

parallax Array

An array of {Parallax} instances.

Methods

toDict() → {Object}

Source:

Encode an Apply into a dictionary

Example
// returns encoded apply dictionary
const { Apply } = require('lucid-dream');
const apply = new Apply({}, [ new Parallax() ]);
apply.toDict();
Returns:

An object containing the encoded apply dicitonary

Type
Object