ECMAScript Object and Function Definitions


There are a fixed set of objects in ECMAScript, each of which have a fixed set of properties (i.e. values) and methods (i.e. functions). For all object types except Math, there are functions to create an instance of the object. The supported set of objects are:

See Also


The X3DCanvasElement, <x3d-canvas>, is the main element that displays the X3D content. It defines some functions to be used with this object.

Instance Creation Method(s)

An <x3d-canvas> can be created with the document.createElement function to get a reference to an X3DCanvasElement.

const canvas = document .createElement ("x3d-canvas")



A reference to the X3DBrowser object that is associated with this element.


MediaStream captureStream ([Number frameRate])

See HTMLCanvasElement.captureStream().

void toBlob (Function callback, [String type, Number quality])

See HTMLCanvasElement.toBlob().

String toDataURL ([String type, Number encoderOptions])

See HTMLCanvasElement.toDataURL().

This post is licensed under CC BY 4.0 by the author.