catCannon/src/Vision/UseCases/Factories/makeObjectLocator.ts
2021-01-19 14:20:59 -06:00

14 lines
323 B
TypeScript

import IVideo from "../../Interfaces/IVideo"
import ObjectLocator from "../ObjectLocator"
const defaultProps = {
width: 640,
height: 480
}
function makeObjectLocator (props?: IVideo): ObjectLocator {
const videoProps = props || defaultProps
return new ObjectLocator(videoProps)
}
export default makeObjectLocator