To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
Hello, I am a newbie to blink.I have a question about run time flag with Path object.I don't think that Path should be guarded by run time flag because all methods of Path object is implemented by CanvasPathMethods and already exposed by CanvasRenderingContext2D.
So If someone wants to extend API of Path object in the future, they could apply run time flag to extended method only.I already file a bug at [1] but not sure whether it is right procedure or not.
Do i have to send "Intent to ship" email to Blink-Dev mailing list?
When will such time come? I reckon we are a few years away.Meanwhile, the global namespace keeps being polluted with more and more constructors and properties that may or may not collide with global variables or developer created constructors.And even when ECMAScript 6 modules are available - will you require using ECMAScript 6 (or ECMAScript modules) in order to use the new additions?
On Tue, 18 Feb 2014, Rik Cabanier wrote:There wasn't a decision, it's just awaiting implementations. Right now
>
> On the WhatWG, there was a decision to call it Path2D [1] to avoid
> clashes (ie this change breaks paper.js). It never made it in the spec
> so implementors didn't know about the name change. :-(
there's one shipping implementation, and it's called the interface Path,
so that's why the spec is still saying Path. It's not a compliant
implementation, so it's not a strong vote, but it's the only vote so far.
This is being tracked here:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23918
If an implementation ships a compliant implementation of the API with the
name Path2D, then it would move the balance over and the spec would
change.
> https://bugzilla.mozilla.org/show_bug.cgi?id=830734
Looks like this implementation is also different than the spec (but in a
different way than Apple's). The spec doesn't have a way to change the
"current path"; it instead tries to move people away from the "current
path" concept to just using path objects directly (e.g. calling c.fill(p)
rather than c.setCurrentPath(p); c.fill();). There's been some discussion
of this on the WHATWG list, but I haven't seen any use cases that would
argue for the more complex stateful API rather than the more immediate-
mode style that's currently in the spec.
As pointed out by Rik, the latest name proposal is Path2D instead of Path and most parties agreed to this proposal already. CanvasPath was rejected because the SVG WG wants to make use of this object as well.
On Feb 19, 2014, at 6:05 PM, PhistucK <phis...@gmail.com> wrote:
> This sounds so wrong...
> Is there a discussion about not exposing new constructors to the global scope anymore?
> Although new webAPI.Path() (or anything similar) is longer, it is much safer than introducing more and more names to the global scope which breaks libraries and limits the creativity of the developer and the nomenclature of the objects in an application.
>
> (Though, in this particular case, I would argue that Path is a bit too general even without naming collisions and I would have probably named it CanvasPath)
On Wed, Feb 19, 2014 at 9:58 AM, Dirk Schulze <dsch...@chromium.org> wrote:
As pointed out by Rik, the latest name proposal is Path2D instead of Path and most parties agreed to this proposal already. CanvasPath was rejected because the SVG WG wants to make use of this object as well.
On Feb 19, 2014, at 6:05 PM, PhistucK <phis...@gmail.com> wrote:
> This sounds so wrong...
> Is there a discussion about not exposing new constructors to the global scope anymore?
> Although new webAPI.Path() (or anything similar) is longer, it is much safer than introducing more and more names to the global scope which breaks libraries and limits the creativity of the developer and the nomenclature of the objects in an application.
>
> (Though, in this particular case, I would argue that Path is a bit too general even without naming collisions and I would have probably named it CanvasPath)
I noticed that the path methods have landed, but not the rename to Path2D.Is someone going to make that change?
On Monday, February 24, 2014, Rik Cabanier <caba...@gmail.com> wrote:
On Wed, Feb 19, 2014 at 9:58 AM, Dirk Schulze <dsch...@chromium.org> wrote:
As pointed out by Rik, the latest name proposal is Path2D instead of Path and most parties agreed to this proposal already. CanvasPath was rejected because the SVG WG wants to make use of this object as well.
On Feb 19, 2014, at 6:05 PM, PhistucK <phis...@gmail.com> wrote:
> This sounds so wrong...
> Is there a discussion about not exposing new constructors to the global scope anymore?
> Although new webAPI.Path() (or anything similar) is longer, it is much safer than introducing more and more names to the global scope which breaks libraries and limits the creativity of the developer and the nomenclature of the objects in an application.
>
> (Though, in this particular case, I would argue that Path is a bit too general even without naming collisions and I would have probably named it CanvasPath)
I noticed that the path methods have landed, but not the rename to Path2D.Is someone going to make that change?I have a CL in the works for that. Should be ready tomorrow. Will that need a separate Intent to Implement?