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