canvas
canvas copied to clipboard
Roadmap
0.1. The first usable version
Canvas
- [x] createCanvas
- [x] getContext
- [x] png
- [x] jpeg
- [x] svg
- [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
seems missing 'measureFont' ?
seems missing "filter"
@ap0sentada filter was implemented
can you please implement a deregisterFont method?
the <context>.fillStyle = "rgba(0,0,0,0.4)")
missing
<context>.letterSpacing: number
Missing
CanvasRenderingContext2D.fontStretch: 'ultra-condensed' | 'extra-condensed' | 'condensed' | 'semi-condensed' | 'normal' | 'semi-expanded' | 'expanded' | 'extra-expanded' | 'ultra-expanded'