constructor(options) {
    Object.assign(this.options, options);
  }
Contructor

_source_ might be any object that provides its dimensions and position

@param {{
source: any,
getX: (any) => number,
getY: (any) => number,
getXWidth: (any) => number,
getHeight: (any) => number
}} options