Skip to content

Cannot draw image via canvas context.drawImage #3216

@NekR

Description

@NekR
2345 Argument of type 'HTMLImageElement' is not assignable to parameter of type 'HTMLVideoElement'.
  Property 'msHorizontalMirror' is missing in type 'HTMLImageElement'.

drawImage call:

context.drawImage(
  image,

  sliceLeft, sliceTop,
  sliceWidth, sliceHeight,

  drawLeft, drawTop,
  drawWidth, drawHeight
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions