Home Reference Source

Function

Static Public Summary
public

AssetReference(param0: object): HTMLElement

Create a layout for model reference page.

public

Collection(param0: object): HTMLElement

Create a layout for collection page.

public

Reference(param0: object): HTMLElement

Create a layout for reference page.

public

Sends a signal to the reducer to add the scene to the collection

public

arrayText(text: *): *

Return a react elements contain a cue-card for Array data type

public

asyncCollection(collectionID: string, uid: *): *

Fetch the specific collection specify by user

public

asyncCollections(uid: *): *

Fetch the list of the user collection asynchronously Use when user login or added a new collection

public

Fetch a eample scenes from the backend

public

asyncUserProj(uid: *): *

Retrieved the list of user scenes

public

asyncUserSettings(id: *): *

public

boolText(text: *): *

Return a react elements contain a cue-card for Boolean data type

public
public

changeCamMode(config: *): object

Sends a signal to the reducer to change the mode of the camera

public

Sends a signal to the reducer to change the sky color

public

Sends a signal to the reducer to change the perspective

public

changeSettings(payload: *): object

Sends a signal to the reducer to change the settings

public

Sends a signal to the reducer to change the sky color

public

Sends a signal to the reducer to toggle to be view only(hide the editor) or not

public

classes(state: *, action: *): *

Collection Reducer

public

course(state: *, action: *): *

Course Reducer

public

async createCollection(name: string, uid: *): boolean

Creates a new collection

public

dataText(text: *): *

Return a react elements contain a cue-card for dynamic data type

public

deleteCollection(collectionID: string, name: string, uid: *): *

Sends a signal to the reducer to delete the specific collection of user

public

deleteProj(uid: *, id: string, name: string): *

Delete the specify user project

public

editor(state: *, action: *): *

Editor Reducer

public

fetchCourse(courseId: string): *

Fetch specific course

public

Fetch all the courses available

public

fetchLesson(json: *): *

Fetch the lesson that is supplied by the parameter.

public

Fetch specific example scene from backend.

public

fetchScene(id: string, uid: *): *

This does an async fetch to backend to grab the scene, then dispatches the necessary functions to update the state.

public

loadCourse(course: *): object

Sends signal to the reducer to load the course retrieved

public

loadLesson(lesson: object): *

Sends signal to the reducer to load a new lesson supplied by parameter

public

Sends a signal to the reducer to load the retrieved scene

public

loadScene(data: string): *

This function load data of scene to the redux store

public

loadSettings(payload: *): object

Sends a signal to the reducer to load the settings sends by the

public

login(user: obj): object

Sends a signal to the reducer to login with the given user

public

Sends a signal to the reducer to logout the current user

public

m(model: *): *

public

nameScene(name: string): *

This function registers the scene's name with Redux

public

nextLesson(currentIndex: number, next: object): *

Increment the lesson index and load the next lesson.

public

numberText(text: *): *

Return a react elements contain a cue-card for Number data type

public

previousLesson(currentIndex: number, prev: object): *

Decrement the lesson index and load the previous lesson.

public

project(state: *, action: *): *

Project Reducers

public

r(ref: *): *

public

recover(): *

Sends a signal to the reducer to 'rewind' until last stable render

public

referenceExample(state: *, action: *): *

Reference Example reducer

public

refresh(text: string, uid: *): *

Sends a signal to the reducer to refresh with the given text

public

Sends a signal to the reducer to refresh the token

public

Sends a signal to the reducer to add the scene to the collection

public

render(text: string, uid: *): *

Sends a signal to the reducer to render the scene

public

Sends a signal to the reducer to reset the floor color

public

Sends a signal to the reducer to reset the settings to default

public

Sends a signal to the reducer to reset the sky color

public

router(): *

Create an routers that switch to correct react component for different endpoints

public

async save(uid: *, scene: *, img: *, sceneID: *): *

Saves a scene to MongoDB

public

scene(state: *, action: *): *

Scene Reducers

public

Sends a signal to the reducer to change the position of the camera

public

Sends signal to the reducer to update the current index of the Course

public

setDesc(payload: string): object

Sends a signal to the reducer to cahnge the description of the scene

public

setNameDesc(payload: *): object

Sends a signal to the reducer to change both name and description

public

stringText(text: *): *

Return a react elements contain a cue-card for String data type

public

Sends a signal to the reducer to load the retrieved collection

public

Sends a signal to the reducer to sync the user collections

public

syncCourses(payload: *): *

Sends a signal to the reducer to synchronize the courses

public

syncExampleProj(payload: *): *

Sends signal to the reducer to sync the example project

public

syncUserProj(payload: *): *

Sends signal to the reducer to sync the user project

public

syncUserSettings(settings: *): {"type": *, "settings": *}

public

t(tex: *): *

public

Sends a signal to the reducer to toggle for light to cast shadow

public

Sends a signal to the reducer to toggle the coordinate floor

public

Sends a signal to the reducer to toggle for cursor to display cusor on screen

public

Sends a signal to the reducer to toggle the default light

public

Sends a signal to the reducer to toggle the floor

public

Sends a signal to the reducer to toggle for light to show light indicator

public

updateFontSize(fontSize: *): {"type": *, "fontSize": *}

public

updateMoveSpeed(speed: number): {"type": *, "speed": *}

Sends a signal to the reducer to change the speed of movement

public

updateSavedText(savedText: *): *

Sends a signal to the reducer to update the savedText when user try to save or open scene/course

public

updateUserSettings(id: *, settings: *): *

public

user(state: *, action: *): *

User Reducers

Static Public

public AssetReference(param0: object): HTMLElement source

import {AssetReference} from 'myr/src/components/layouts/AssetReference.js'

Create a layout for model reference page.

Params:

NameTypeAttributeDescription
param0 object

List of props that will be use in components

Return:

HTMLElement

Layout of the model reference page

public Collection(param0: object): HTMLElement source

import {Collection} from 'myr/src/components/layouts/Collection.js'

Create a layout for collection page.

Params:

NameTypeAttributeDescription
param0 object

List of props that will be use in components

Return:

HTMLElement

Layout of the collection page

public Reference(param0: object): HTMLElement source

import {Reference} from 'myr/src/components/layouts/Reference.js'

Create a layout for reference page.

Params:

NameTypeAttributeDescription
param0 object

List of props that will be use in components

Return:

HTMLElement

Layout of the reference page

public addCollectionID(payload: string): object source

import {addCollectionID} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to add the scene to the collection

Params:

NameTypeAttributeDescription
payload string

id of collection to add scene to

Return:

object

reducer action obj with type: ADD_COLLECTION with payload

public arrayText(text: *): * source

import {arrayText} from 'myr/src/myr/reference.js'

Return a react elements contain a cue-card for Array data type

Params:

NameTypeAttributeDescription
text *

Return:

*

public asyncCollection(collectionID: string, uid: *): * source

import {asyncCollection} from 'myr/src/actions/collectionActions.js'

Fetch the specific collection specify by user

Params:

NameTypeAttributeDescription
collectionID string

Collection id

uid *

A JWT token to authenticate with the backend

Return:

*

public asyncCollections(uid: *): * source

import {asyncCollections} from 'myr/src/actions/collectionActions.js'

Fetch the list of the user collection asynchronously Use when user login or added a new collection

Params:

NameTypeAttributeDescription
uid *

A JWT token to authenticate with the backend

Return:

*

public asyncExampleProj(): * source

import {asyncExampleProj} from 'myr/src/actions/projectActions.js'

Fetch a eample scenes from the backend

Return:

*

public asyncUserProj(uid: *): * source

import {asyncUserProj} from 'myr/src/actions/projectActions.js'

Retrieved the list of user scenes

Params:

NameTypeAttributeDescription
uid *

A JWT token to authenticate with the backend

Return:

*

public asyncUserSettings(id: *): * source

import {asyncUserSettings} from 'myr/src/actions/userActions.js'

Params:

NameTypeAttributeDescription
id *

Return:

*

public boolText(text: *): * source

import {boolText} from 'myr/src/myr/reference.js'

Return a react elements contain a cue-card for Boolean data type

Params:

NameTypeAttributeDescription
text *

Return:

*

public browserType(): string source

import {browserType} from 'myr/src/utils/browserType.js'

Return:

string

public changeCamMode(config: *): object source

import {changeCamMode} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change the mode of the camera

Params:

NameTypeAttributeDescription
config *

New mode to change

Return:

object

reducer action obj with type: CHANGE_CAM_MODE with config

public changeFloorColor(color: string): object source

import {changeFloorColor} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change the sky color

Params:

NameTypeAttributeDescription
color string

Color to be change to

Return:

object

reducer action obj with type: CHANGE_FLOOR_COLOR with color;

public changePerspective(): object source

import {changePerspective} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change the perspective

Return:

object

reducer action obj with type: CHANGE_PERSPECTIVE

public changeSettings(payload: *): object source

import {changeSettings} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change the settings

Params:

NameTypeAttributeDescription
payload *

Return:

object

reducer action obj with type: CHANGE_SETTINGS with payload

public changeSkyColor(color: string): object source

import {changeSkyColor} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change the sky color

Params:

NameTypeAttributeDescription
color string

Color to be change to

Return:

object

reducer action obj with type: CHANGE_SKY_COLOR with color;

public changeView(): object source

import {changeView} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to toggle to be view only(hide the editor) or not

Return:

object

reducer action obj with type: CHANGE_VIEW

public classes(state: *, action: *): * source

import classes from 'myr/src/reducers/collections.js'

Collection Reducer

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initial_state
action *

Return:

*

public course(state: *, action: *): * source

import course from 'myr/src/reducers/course.js'

Course Reducer

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initial_state
action *

Return:

*

public async createCollection(name: string, uid: *): boolean source

import {createCollection} from 'myr/src/actions/collectionActions.js'

Creates a new collection

Params:

NameTypeAttributeDescription
name string

The name of the collection to be created

uid *

A JWT token to authenticate with the backend

Return:

boolean

public dataText(text: *): * source

import {dataText} from 'myr/src/myr/reference.js'

Return a react elements contain a cue-card for dynamic data type

Params:

NameTypeAttributeDescription
text *

Return:

*

public deleteCollection(collectionID: string, name: string, uid: *): * source

import {deleteCollection} from 'myr/src/actions/collectionActions.js'

Sends a signal to the reducer to delete the specific collection of user

Params:

NameTypeAttributeDescription
collectionID string

Collection ID

name string

Name of the collection if exists

uid *

A JWT token to authenticate with the backend

Return:

*

public deleteProj(uid: *, id: string, name: string): * source

import {deleteProj} from 'myr/src/actions/projectActions.js'

Delete the specify user project

Params:

NameTypeAttributeDescription
uid *

A JWT token to authenticate with the backend

id string

Scene id to be deleted

name string

Name of the scene

Return:

*

public editor(state: *, action: *): * source

import editor from 'myr/src/reducers/editor.js'

Editor Reducer

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initial_state
action *

Return:

*

public fetchCourse(courseId: string): * source

import {fetchCourse} from 'myr/src/actions/courseActions.js'

Fetch specific course

Params:

NameTypeAttributeDescription
courseId string

id of the course getting

Return:

*

public fetchCourses(): * source

import {fetchCourses} from 'myr/src/actions/courseActions.js'

Fetch all the courses available

Return:

*

public fetchLesson(json: *): * source

import {fetchLesson} from 'myr/src/actions/courseActions.js'

Fetch the lesson that is supplied by the parameter.

Params:

NameTypeAttributeDescription
json *

Lesson data

Return:

*

public fetchReferenceExample(funcName: string): * source

import {fetchReferenceExample} from 'myr/src/actions/referenceExampleActions.js'

Fetch specific example scene from backend. On success, load and render the example scene

Params:

NameTypeAttributeDescription
funcName string

Name of the example scene to retrieve

Return:

*

public fetchScene(id: string, uid: *): * source

import {fetchScene} from 'myr/src/actions/editorActions.js'

This does an async fetch to backend to grab the scene, then dispatches the necessary functions to update the state.

Params:

NameTypeAttributeDescription
id string

scene id

uid *

A JWT token to authenticate with the backend

Return:

*

public loadCourse(course: *): object source

import {loadCourse} from 'myr/src/actions/courseActions.js'

Sends signal to the reducer to load the course retrieved

Params:

NameTypeAttributeDescription
course *

Data of course retrieved

Return:

object

reducer action obj with type: LOAD_COURSE and payload

public loadLesson(lesson: object): * source

import {loadLesson} from 'myr/src/actions/courseActions.js'

Sends signal to the reducer to load a new lesson supplied by parameter

Params:

NameTypeAttributeDescription
lesson object

Lesson data

Return:

*

reducer action obj with type: LOAD_LESSON and payload: lesson

public loadReferenceExample(refEx: object): * source

import {loadReferenceExample} from 'myr/src/actions/referenceExampleActions.js'

Sends a signal to the reducer to load the retrieved scene

Params:

NameTypeAttributeDescription
refEx object

object of data of example scene

Return:

*

reducer action obj with type: LOAD_REF_EX with payload:refEx

public loadScene(data: string): * source

import {loadScene} from 'myr/src/actions/sceneActions.js'

This function load data of scene to the redux store

Params:

NameTypeAttributeDescription
data string

the id of the loaded scene

Return:

*

a reducer action with type:LOAD_SCENE

public loadSettings(payload: *): object source

import {loadSettings} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to load the settings sends by the

Params:

NameTypeAttributeDescription
payload *

Return:

object

reducer action obj with type:

public login(user: obj): object source

import {login} from 'myr/src/actions/authActions.js'

Sends a signal to the reducer to login with the given user

Params:

NameTypeAttributeDescription
user obj

User data from the firebase auth obj

Return:

object

reducer action obj with type: LOGIN and user obj

public logout(): object source

import {logout} from 'myr/src/actions/authActions.js'

Sends a signal to the reducer to logout the current user

Return:

object

reducer action obj with type: LOGOUT

public m(model: *): * source

Params:

NameTypeAttributeDescription
model *
  • optional
  • default: defaultModel

Return:

*

public nameScene(name: string): * source

import {nameScene} from 'myr/src/actions/sceneActions.js'

This function registers the scene's name with Redux

Params:

NameTypeAttributeDescription
name string

the name is given by the user or when a scene is loaded

Return:

*

a reducer action with type:NAME_SCENE

public nextLesson(currentIndex: number, next: object): * source

import {nextLesson} from 'myr/src/actions/courseActions.js'

Increment the lesson index and load the next lesson. Frontend disables option if out of bounds

Params:

NameTypeAttributeDescription
currentIndex number

current index of the course

next object

Object of lesson to be load next

Return:

*

public numberText(text: *): * source

import {numberText} from 'myr/src/myr/reference.js'

Return a react elements contain a cue-card for Number data type

Params:

NameTypeAttributeDescription
text *

Return:

*

public previousLesson(currentIndex: number, prev: object): * source

import {previousLesson} from 'myr/src/actions/courseActions.js'

Decrement the lesson index and load the previous lesson. Frontend disables option if out of bounds

Params:

NameTypeAttributeDescription
currentIndex number

current index of the course

prev object

Object of lesson to be load previous

Return:

*

public project(state: *, action: *): * source

import project from 'myr/src/reducers/project.js'

Project Reducers

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initial_state
action *

Return:

*

public r(ref: *): * source

import r from 'myr/src/myr/reference.js'

Params:

NameTypeAttributeDescription
ref *
  • optional
  • default: reference

Return:

*

public recover(): * source

import {recover} from 'myr/src/actions/editorActions.js'

Sends a signal to the reducer to 'rewind' until last stable render

Return:

*

reducer action obj with action type

public referenceExample(state: *, action: *): * source

import referenceExample from 'myr/src/reducers/referenceExample.js'

Reference Example reducer

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initial_state
action *

Return:

*

public refresh(text: string, uid: *): * source

import {refresh} from 'myr/src/actions/editorActions.js'

Sends a signal to the reducer to refresh with the given text

Params:

NameTypeAttributeDescription
text string

Text from the Ace Editor component

uid *

A JWT token to authenticate with the backend

Return:

*

reducer action obj with action type and text

public refreshToken(token: object): object source

import {refreshToken} from 'myr/src/actions/authActions.js'

Sends a signal to the reducer to refresh the token

Params:

NameTypeAttributeDescription
token object

Return:

object

reducer action object with type: REFRESH_TOKEN and token obj

public removeCollectionID(payload: string): object source

import {removeCollectionID} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to add the scene to the collection

Params:

NameTypeAttributeDescription
payload string

id of collection to remove scene to

Return:

object

reducer action obj with type: REMOVE_COLLECTION with payload

public render(text: string, uid: *): * source

import {render} from 'myr/src/actions/editorActions.js'

Sends a signal to the reducer to render the scene

Params:

NameTypeAttributeDescription
text string

Text from the Ace Editor component

uid *

A JWT token to authenticate with the backend

Return:

*

reducer action obj with action type and text

public resetFloorColor(): object source

import {resetFloorColor} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to reset the floor color

Return:

object

reducer action obj with type: RESET_FLOOR_COLOR

public resetSettings(): object source

import {resetSettings} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to reset the settings to default

Return:

object

reducer action obj with type: RESET_SETTINGS

public resetSkyColor(): object source

import {resetSkyColor} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to reset the sky color

Return:

object

reducer action obj with type: RESET_SKY_COLOR

public router(): * source

import router from 'myr/src/routes.js'

Create an routers that switch to correct react component for different endpoints

Return:

*

BrowserRouter with all of available router (except about page)

public async save(uid: *, scene: *, img: *, sceneID: *): * source

Saves a scene to MongoDB

Params:

NameTypeAttributeDescription
uid *

The id of the logged in user

scene *

JSON data of the scene to be saved

img *

JPEG Image file of the Scene

sceneID *

sceneId to be updated, if undefined, creates a new scene

Return:

*

The ID of the saved scene

public scene(state: *, action: *): * source

import scene from 'myr/src/reducers/scene.js'

Scene Reducers

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initial_state
action *

Return:

*

public setCamera(x: number, y: number, z: number): object source

import {setCamera} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change the position of the camera

Params:

NameTypeAttributeDescription
x number

X Position

y number

Y Position

z number

Z Position

Return:

object

reducer action obj with type: SET_CAMERA with x,y,z position

public setCurrentIndex(newIndex: number): object source

import {setCurrentIndex} from 'myr/src/actions/courseActions.js'

Sends signal to the reducer to update the current index of the Course

Params:

NameTypeAttributeDescription
newIndex number

New index to be set

Return:

object

reducer action obj with type: SET_INDEX and payload: newIndex

public setDesc(payload: string): object source

import {setDesc} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to cahnge the description of the scene

Params:

NameTypeAttributeDescription
payload string

description of the

Return:

object

reducer action obj with type: SET_DESC with payload

public setNameDesc(payload: *): object source

import {setNameDesc} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change both name and description

Params:

NameTypeAttributeDescription
payload *

Return:

object

reducer action obj with type:

public stringText(text: *): * source

import {stringText} from 'myr/src/myr/reference.js'

Return a react elements contain a cue-card for String data type

Params:

NameTypeAttributeDescription
text *

Return:

*

public syncCollection(payload: object): object source

import {syncCollection} from 'myr/src/actions/collectionActions.js'

Sends a signal to the reducer to load the retrieved collection

Params:

NameTypeAttributeDescription
payload object

Data of retrieved collection

Return:

object

reducer action obj with type: SYNC_COLLECTION and payload

public syncCollections(payload: object): object source

import {syncCollections} from 'myr/src/actions/collectionActions.js'

Sends a signal to the reducer to sync the user collections

Params:

NameTypeAttributeDescription
payload object

List of user collections

Return:

object

reducer action obj with type SYNC_COLLECTIONS with payload

public syncCourses(payload: *): * source

import {syncCourses} from 'myr/src/actions/courseActions.js'

Sends a signal to the reducer to synchronize the courses

Params:

NameTypeAttributeDescription
payload *

List of courses retrieved

Return:

*

reducer action object with type: SYNC_COURSE and payload

public syncExampleProj(payload: *): * source

import {syncExampleProj} from 'myr/src/actions/projectActions.js'

Sends signal to the reducer to sync the example project

Params:

NameTypeAttributeDescription
payload *

List of the example project

Return:

*

reducer action obj with type: SYNC_EXAMP_PROJ with payload

public syncUserProj(payload: *): * source

import {syncUserProj} from 'myr/src/actions/projectActions.js'

Sends signal to the reducer to sync the user project

Params:

NameTypeAttributeDescription
payload *

list of user projects

Return:

*

reducer action obj with type: SYNC_USER_PROJ wiht payload

public syncUserSettings(settings: *): {"type": *, "settings": *} source

import {syncUserSettings} from 'myr/src/actions/userActions.js'

Params:

NameTypeAttributeDescription
settings *

Return:

{"type": *, "settings": *}

public t(tex: *): * source

Params:

NameTypeAttributeDescription
tex *
  • optional
  • default: texture

Return:

*

public toggleCastShadow(): object source

import {toggleCastShadow} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to toggle for light to cast shadow

Return:

object

reducer action obj with type: TOGGLE_CAST_SHADOW

public toggleCoordSky(): object source

import {toggleCoordSky} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to toggle the coordinate floor

Return:

object

reducer action obj with type: TOGGLE_COORD_SKY

public toggleCursor(): object source

import {toggleCursor} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to toggle for cursor to display cusor on screen

Return:

object

reducer action obj with type: TOGGLE_CURSOR

public toggleDefaultLight(): object source

import {toggleDefaultLight} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to toggle the default light

Return:

object

reducer action obj with type: TOGGLE_DEFAULT_LIGHT

public toggleFloor(): object source

import {toggleFloor} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to toggle the floor

Return:

object

reducer action obj with type: TOGGLE_FLOOR

public toggleLightIndicator(): object source

import {toggleLightIndicator} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to toggle for light to show light indicator

Return:

object

reducer action obj with type: TOGGLE_LIGHT_INDICATOR

public updateFontSize(fontSize: *): {"type": *, "fontSize": *} source

import {updateFontSize} from 'myr/src/actions/userActions.js'

Params:

NameTypeAttributeDescription
fontSize *

Return:

{"type": *, "fontSize": *}

public updateMoveSpeed(speed: number): {"type": *, "speed": *} source

import {updateMoveSpeed} from 'myr/src/actions/sceneActions.js'

Sends a signal to the reducer to change the speed of movement

Params:

NameTypeAttributeDescription
speed number

Return:

{"type": *, "speed": *}

public updateSavedText(savedText: *): * source

import {updateSavedText} from 'myr/src/actions/editorActions.js'

Sends a signal to the reducer to update the savedText when user try to save or open scene/course

Params:

NameTypeAttributeDescription
savedText *

Return:

*

reducer action obj with action type

public updateUserSettings(id: *, settings: *): * source

import {updateUserSettings} from 'myr/src/actions/userActions.js'

Params:

NameTypeAttributeDescription
id *
settings *

Return:

*

public user(state: *, action: *): * source

import user from 'myr/src/reducers/user.js'

User Reducers

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: initial_state
action *

Return:

*