canvas icon indicating copy to clipboard operation
canvas copied to clipboard

Roadmap

Open Brooooooklyn opened this issue 4 years ago • 19 comments

0.1. The first usable version

Canvas

  • [x] createCanvas
  • [x] getContext
  • [x] png
  • [x] jpeg
  • [x] svg
  • [ ] pdf
  • [x] avif
  • [ ] gif
  • [x] webp
  • [x] data
  • [x] toDataURL

CanvasRenderingContext2D

Property

  • [x] canvas
  • [x] fillStyle
  • [x] filter
  • [x] font
  • [x] globalAlpha
  • [x] globalCompositeOperation
  • [x] imageSmoothingEnabled
  • [x] imageSmoothingQuality
  • [x] lineCap
  • [x] lineDashOffset
  • [x] lineJoin
  • [x] lineWidth
  • [x] miterLimit
  • [x] shadowBlur
  • [x] shadowColor
  • [x] shadowOffsetX
  • [x] shadowOffsetY
  • [x] strokeStyle
  • [x] textAlign
  • [x] textBaseline
  • [x] letterSpacing
  • [x] wordSpacing
  • [ ] fontStretch
  • [ ] fontKerning
  • [ ] fontVariantCaps

Methods

  • [x] arc
  • [x] arcTo
  • [x] beginPath
  • [x] bezierCurveTo
  • [x] clearRect
  • [x] clip
  • [x] closePath
  • [x] createImageData
  • [x] createLinearGradient
  • [x] createPattern
  • [x] createRadialGradient
  • [x] drawImage
  • [x] ellipse
  • [x] fill
  • [x] fillRect
  • [x] fillText
  • [x] getContextAttributes
  • [x] getImageData
  • [x] getLineDash
  • [x] getTransform
  • [x] isPointInPath
  • [x] isPointInStroke
  • [x] lineTo
  • [x] measureText
  • [x] moveTo
  • [x] putImageData
  • [x] quadraticCurveTo
  • [x] rect
  • [x] resetTransform
  • [x] restore
  • [x] rotate
  • [x] save
  • [x] scale
  • [x] setLineDash
  • [x] setTransform
  • [x] stroke
  • [x] strokeRect
  • [x] strokeText
  • [x] transform
  • [x] translate

Path2D

  • [x] Constructor
  • [x] addPath
  • [x] closePath
  • [x] moveTo
  • [x] lineTo
  • [x] bezierCurveTo
  • [x] quadraticCurveTo
  • [x] arc
  • [x] arcTo
  • [x] ellipse
  • [x] rect

Text rendering

  • [x] maxWidth
  • [x] font weight
  • [x] font variant
  • [x] font style

ImageData

Constructor

  • [x] width/height
  • [x] Uint8ClampedArray/width
  • [x] Uint8ClampedArray/width/height

Property

  • [x] data
  • [x] width
  • [x] height

Image

Property

  • [x] width
  • [x] height
  • [x] alt
  • [x] complete
  • [ ] crossOrigin
  • [ ] currentSrc
  • [ ] decoding
  • [ ] loading
  • [x] naturalWidth
  • [x] naturalHeight

Methods

  • [ ] decode

0.2. Testing, code cleanup and performance

0.3. API stable, documents

1.0

Brooooooklyn avatar Dec 26 '20 15:12 Brooooooklyn

seems missing 'measureFont' ?

jo32 avatar Nov 21 '22 07:11 jo32

seems missing "filter"

ap0sentada avatar Apr 01 '23 23:04 ap0sentada

@ap0sentada filter was implemented

Brooooooklyn avatar Apr 03 '23 03:04 Brooooooklyn

can you please implement a deregisterFont method?

MegaTeam89 avatar Jul 10 '23 08:07 MegaTeam89

the .fillStyle = "color" property doesn't supports rgba, like canvas does. you need to change the opacity via globalAlpha, but you should be able tu change it with rgba (with <context>.fillStyle = "rgba(0,0,0,0.4)")

ap0sentada avatar Jul 22 '23 04:07 ap0sentada

missing

<context>.letterSpacing: number

ap0sentada avatar Jul 22 '23 06:07 ap0sentada

Missing

CanvasRenderingContext2D.fontStretch: 'ultra-condensed' | 'extra-condensed' | 'condensed' | 'semi-condensed' | 'normal' | 'semi-expanded' | 'expanded' | 'extra-expanded' | 'ultra-expanded'

maxtull avatar Jan 06 '24 01:01 maxtull