File: mathgl.Backend.js

package info (click to toggle)
mathgl 8.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 248,044 kB
  • sloc: cpp: 87,365; ansic: 3,299; javascript: 3,284; pascal: 1,562; python: 52; sh: 51; makefile: 47; f90: 22
file content (13 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * Backend interface. The only responsibility its successors is to return geometry object by given MGL script.
 */

/** constructor */
mathgl.Backend = function() {}

/**
 * Request for geometry data for given MGL script.
 * @param mgl {String} MGL script to build geometry
 * @param callback {Function} receiver of geometry must be a function(error, result)
 */
mathgl.Backend.prototype.geometry = function(mgl, callback) { throw new Error("abstract method invoked"); }