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

Function buildCanvas2dContext

src/test/builders/browserFakes.ts:497–507  ·  view source on GitHub ↗
({
  drawImage = () => undefined,
  imageSmoothingEnabled = false,
  imageSmoothingQuality = 'low',
}: Canvas2dContextBuilderOptions = {})

Source from the content-addressed store, hash-verified

495}
496
497export function buildCanvas2dContext({
498 drawImage = () => undefined,
499 imageSmoothingEnabled = false,
500 imageSmoothingQuality = 'low',
501}: Canvas2dContextBuilderOptions = {}): TwoDimensionalCanvasContext {
502 return {
503 drawImage,
504 imageSmoothingEnabled,
505 imageSmoothingQuality,
506 };
507}
508
509export function buildClipboardItem({
510 types = [],

Calls

no outgoing calls

Tested by

no test coverage detected