This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21939 - <canvas>: Path introspection
Summary: <canvas>: Path introspection
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 enhancement
Target Milestone: Needs Impl Interest
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-06 19:06 UTC by contributor
Modified: 2017-07-21 10:55 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2013-05-06 19:06:14 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#path-objects
Complete: http://www.whatwg.org/c#path-objects
Referrer: 

Comment:
Path objects would be much more useful if their individual commands (moveTo,
lineTo, etc.) could be inspected from JavaScript. This would allow for the
JavaScript implementation of missing features such as text-to-path conversion,
boolean shape operations, custom transforms (e.g. perspective), custom stroke
styles, and so on.

Posted from: 173.228.28.163
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.73 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2013-06-07 21:45:16 UTC
Yeah, that's an obvious next step. One day.
Comment 2 Ian 'Hixie' Hickson 2013-10-14 21:34:13 UTC
One problem with this is that it requires that we define exactly what the representation is, when it would otherwise need to be an approximation. Consider the path constructed out of text, or the path constructed out of stroking another path that contains a bezier curve.
Comment 3 Anne 2017-07-21 10:55:45 UTC
If this is still desired, please file a new issue at https://github.com/whatwg/html/issues/new.