@bitefoundry/retrieviewer 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ export interface PetPluginScheduler {
21
21
  export interface PetPluginOptions {
22
22
  host: PetPluginHost;
23
23
  petOptions?: PetOptions;
24
- /** Scheduled frame rate, default 30. */
24
+ /** Scheduled frame rate, default 30; 1000/2147483647 through 120 inclusive. */
25
25
  fps?: number;
26
26
  /** Default: performance.now() with setTimeout/clearTimeout, used only after start(). */
27
27
  scheduler?: PetPluginScheduler;
@@ -11,7 +11,7 @@ export async function createPetPlugin({host,petOptions,fps=30,scheduler}={}){
11
11
  fn(host.getSize,'host.getSize');fn(host.render,'host.render');
12
12
  if(host.clear!==undefined)fn(host.clear,'host.clear');
13
13
  if(host.onError!==undefined)fn(host.onError,'host.onError');
14
- if(typeof fps!=='number'||!Number.isFinite(fps)||fps<=0||fps>120)throw RangeError('fps must be within (0, 120]');
14
+ if(typeof fps!=='number'||!Number.isFinite(fps)||fps<=0||fps>120||1000/fps>2147483647)throw RangeError('fps must be within [1000/2147483647, 120] (bounded timer delay)');
15
15
  if(scheduler!==undefined){
16
16
  if(!scheduler||typeof scheduler!=='object')throw TypeError('scheduler must be an object');
17
17
  fn(scheduler.now,'scheduler.now');fn(scheduler.schedule,'scheduler.schedule');fn(scheduler.cancel,'scheduler.cancel');