UNPKG

@polygonjs/polygonjs

Version:

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

36 lines (35 loc) 740 B
"use strict"; export class PolyMarkerTrackingController { constructor() { this._controller = null; } setConfig(config) { this._config = config; } barCodeUrl(type, value) { if (this._config) { return this._config.barcodeUrl(type, value); } } barCodeTypes() { var _a; return ((_a = this._config) == null ? void 0 : _a.barCodes.types) || [""]; } config() { return this._config; } hasController() { return this._config != null; } createController(options) { if (!this._config) { return; } const controller = this._config.createController(options); this._controller = controller; return controller; } controller() { return this._controller; } }