MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / buildGifEncoder

Function buildGifEncoder

src/test/builders/browserFakes.ts:540–560  ·  view source on GitHub ↗
({
  addFrame = () => undefined,
  render = () => undefined,
  on,
  abort = () => undefined,
}: GifEncoderBuilderOptions = {})

Source from the content-addressed store, hash-verified

538}
539
540export function buildGifEncoder({
541 addFrame = () => undefined,
542 render = () => undefined,
543 on,
544 abort = () => undefined,
545}: GifEncoderBuilderOptions = {}): GifEncoder {
546 const gif = new TestGifEncoder({
547 addFrame,
548 abort,
549 render,
550 });
551
552 if (on) {
553 Object.defineProperty(gif, 'on', {
554 configurable: true,
555 value: on,
556 });
557 }
558
559 return gif;
560}
561
562export function buildGifEncoderWithHandlers(
563 encoderOptions: GifEncoderWithHandlersBuilderOptions = {}

Calls

no outgoing calls

Tested by

no test coverage detected