import { Object3D } from "three" ; import { BaseMarker } from "./BaseMarker" ; param parameters interface BarcodeMarkerParameters { barcodeValue : number ; markerObject : Object3D ; size ? : number ; minConfidence ? : number ; } export class BarcodeMarker extends BaseMarker { public static count = 0 ; public barcodeValue : number ; public markerObject : Object3D ; constructor ( parameters ) { super ( parameters ) ; if ( parameters . barcodeValue === undefined ) { throw Error ( "Barcode Marker requires a barcodeValue to be passed" ) ; } if ( parameters . markerObject === undefined ) { throw Error ( "Barcode Marker requires a markerObject to be passed" ) ; } this . barcodeValue = parameters . barcodeValue ; this . markerObject = parameters . markerObject ; this . markerObject . visible = false ; } } export default BarcodeMarker ;