[Pas2js] TJSCanvasRenderingContext2D's ellipse method is missing

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Oct 15 22:02:08 CEST 2018


On Mon, 15 Oct 2018 21:40:05 +0200
Sven Barth via Pas2js <pas2js at lists.freepascal.org> wrote:

> Am 15.10.2018 um 18:52 schrieb Michael Van Canneyt:
> >
> >
> > On Mon, 15 Oct 2018, Mr Bee via Pas2js wrote:
> >  
> >> Hi,
> >> I'm now using pas2js v1.0.2 but I can't find `ellipse` method in 
> >> TJSCanvasRenderingContext2D class. Is there a way to draw ellipse on 
> >> a canvas using this version of pas2js?  
> >
> > According to
> >
> > https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse 
> >
> >
> > it is experimental, and I don't add experimental methods to the API.  
> Maybe class helpers could be useful for this once they're supported by 
> pas2js? :)

I guess what Mr Bee needs is a polyfill for 'ellipse'.

For example:
https://github.com/google/canvas-5-polyfill

Mattias


More information about the Pas2js mailing list