code: function normalizeInput(input) {
    var inputType = typeof input
    if (inputType === 'string') {
      // load data3d from URL
      var url = getUrlFromStorageId(input)
      return loadData3d(url)
    } else if (input instanceof Blob) {
      // decode binary data3d
      return decodeBinaryData3d(input)
    } else if (inputType === 'object') {
      // data3d object
      return Promise.resolve(input)
    } else {
      return Promise.reject('Unknown param type')
    }
  }
docs: helpers