-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added circle and ellipse shapes #40
base: master
Are you sure you want to change the base?
Conversation
Hello, This is going to be a bit painful.
From spec: For example, consider this interleaved scenario, well defined in HTML5: If one replace
This is a tricky part of HTMLCanvas that I did wrong in EDIT: if it's inside |
Certainly. The canvas spec leves room for improvement IMHO.
I read that, too. SVG elements
I will implement the proposed fix and keep it in the interface.
I think such functions should not belong to this package at all but may be bundled in a separated package as a kind of "standard library":
This standard library could also include a part for easier text layout [#19]. |
Hello, I think it's OK if the functions are just next in the same file, just after the Will be merged as is in one of these two cases. If the new primitives break PDF path preserve just open a new Issue for the future, because to be fair I don't know if we already follow the spec wrt (excuse me for swings as I've been confused lately) |
Regurlarly have "stroke-like" needs in DPlug plugins, with |
I added
circle
andellipse
methods to the renderer interface. These are not part of the Canvas 2D context API but I feel they are useful features for many users/use cases.As far as I can tell, the Canvas 2D context API only specifies
arc
to draw circles and ellipses which seems to be much complicated to handle in both SVG and PDF. At the same time, it is more powerful because it can create arcs (i.e. partial ellipses) and ellipses with non-perpendicular axes.I am happy to discuss different options of including these type of objects into the interface.