Module

Methods

(inner) getSurface() → {Surface}

Get Native Surface
Example
const surface = Module.getSurface()
Returns:
Type
Surface

(inner) require(path) → {Object}

Require method
Examples
// project asset
const MyModule = Module.require('123456789');    // asset key
// built in asset
const { mat4, vec3 } = Module.require('assets/gl-matrix.js');
// built in asset
const axios = Module.require('assets/axios.min.js');
Parameters:
Name Type Description
path string asset key for js file
Returns:
Type
Object