Class: Render

Render()

Allows the user to perform rendering related actions. Mostly, saving their work to a .png file.

Constructor

new Render()

Properties:
Name Type Description
maxNameLength number

Max chars a user can enter for their render file name

Source:

Extends

  • React.Component

Methods

createExportImageModal() → {JSX}

Creates the SubmitTextModal for the export image method.

Source:
Returns:
Type
JSX

onExportImage(filename)

Exports current frame of canvas to an image and closes the export modal.

Parameters:
Name Type Description
filename string

What to name the saved image

Source: