Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added function load image from canvas#3

Open
casperlamboo wants to merge 30 commits intokilobtye:masterfrom
casperlamboo:master
Open

Added function load image from canvas#3
casperlamboo wants to merge 30 commits intokilobtye:masterfrom
casperlamboo:master

Conversation

@casperlamboo
Copy link

I've implemented a function, loadImageFromCanvas, that can be used instead of loadImageFromFile and loadImageFromUrl. This function has one argument, canvas.

When using this function the library can be used synchronously.

fillc = "black";
fillrule = ' fill-rule="evenodd"';
}
svg += '" stroke="' + strokec + '" fill="' + fillc + '"' + fillrule + '/></svg>';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about string interpolation here?

Suggested change
svg += '" stroke="' + strokec + '" fill="' + fillc + '"' + fillrule + '/></svg>';
svg += `stroke=${strokec} fill=${fillc}${fillrule}/></svg>`

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.

2 participants