Skip to content
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

Back merge #7

Closed
wants to merge 75 commits into from
Closed

Back merge #7

wants to merge 75 commits into from

Conversation

rustyoz
Copy link
Owner

@rustyoz rustyoz commented Feb 24, 2019

No description provided.

This change has been taken from the PR at

rustyoz#4
This change has been taken from the pull request at

rustyoz#4
These changes are from the pull request at

rustyoz#3
This is hacky but it should work for now.
In addition to the path segments we want to emit drawinginstructions. We
gradually start converting the parsing functions to also emit these
instructions.
Also add the close path instruction.
We also make sure that both get drained.
Implementers of this interface are able to return a channel of
DrawingInstructions. All SVG elements should implement this interface
allowing us to draw all of them.
It hey are not, we will get a deadlock.
This DrawingInstructions signifies that a path element should now be
drawn. We need to do this in order to be able to take the line width
into account.
Apparently we were adding the same point twice which is not what we
wanted to do.
We also make sure that we emit a CloseInstruction regardless of the
segment state.
Alexander Döring and others added 28 commits June 9, 2017 14:35
The interface now returns an error channel to which we write the first
error that occurs.
Using this struct we can save 40 bytes for each non-Bezier curve
instruction. Bezier curve instructions get 8 bytes bigger however.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants