UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

23 lines (22 loc) 404 B
export class PolyPlugin { constructor(_name, _callback, _options) { this._name = _name; this._callback = _callback; this._options = _options; } name() { return this._name; } libraryName() { return this._options.libraryName; } init(poly) { this._callback(poly); } toJSON() { return { name: this._name, libraryName: this.libraryName() }; } }