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

ctx.fill("evenodd") doesn't work + fix #62

Open
Tracked by #13
murkle opened this issue Oct 23, 2017 · 0 comments
Open
Tracked by #13

ctx.fill("evenodd") doesn't work + fix #62

murkle opened this issue Oct 23, 2017 · 0 comments

Comments

@murkle
Copy link

murkle commented Oct 23, 2017

ctx.fill("evenodd") doesn't take account of the parameter. Simple fix is to change method to

    ctx.prototype.fill = function (fillRule) {
        if (this.__currentElement.nodeName === "path") {
            this.__currentElement.setAttribute("paint-order", "stroke fill markers");
            if (fillRule == "evenodd") {
            	this.__currentElement.setAttribute("fill-rule", "evenodd");
            } 
        }
        this.__applyCurrentDefaultPath();
        this.__applyStyleToCurrentElement("fill");
    };
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

No branches or pull requests

1 participant