handleLocalStorage(e) {

    this.emitGlobalEvent("localstorage", e);

  }
Responds to a resize event by updating some internal variables.

`offsetX`, `offsetY` and `center` are always updated.
`width`, `height` and `scale` may also be updated.