Skip to content

Commit

Permalink
bump version to 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zenozeng committed Feb 4, 2022
1 parent 35b9c08 commit 5afaf23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions context.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export default (function () {
stop.setAttribute("stop-color", format("rgb({r},{g},{b})", {r:matches[1], g:matches[2], b:matches[3]}));
stop.setAttribute("stop-opacity", matches[4]);
} else {
stop.setAttribute("stop-color", color);
stop.setAttribute("stop-color", utils.toString(color));
}
this.__root.appendChild(stop);
};
Expand All @@ -226,7 +226,7 @@ export default (function () {

var defaultOptions = { width:500, height:500, enableMirroring : false}, options;

//keep support for this way of calling C2S: new C2S(width,height)
// keep support for this way of calling Context: new Context(width, height)
if (arguments.length > 1) {
options = defaultOptions;
options.width = arguments[0];
Expand Down Expand Up @@ -302,7 +302,6 @@ export default (function () {
console.debug(`svgcanvas#${this.__id}:`, ...data)
}


/**
* Creates the specified svg element
* @private
Expand Down Expand Up @@ -763,7 +762,6 @@ export default (function () {
* Sets fill properties on the current element
*/
Context.prototype.fill = function () {
utils.debug('fill', this.fillStyle);
if (this.__currentElement.nodeName === "path") {
this.__currentElement.setAttribute("paint-order", "stroke fill markers");
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svgcanvas",
"version": "2.0.7",
"version": "2.1.0",
"description": "svgcanvas",
"main": "dist/svgcanvas.js",
"scripts": {
Expand Down

0 comments on commit 5afaf23

Please sign in to comment.