@jiaminghi/c-render
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,1 +1,7 @@ | ||
# 0.3.1-alpha (2019-06-02) | ||
### Bug Fixes | ||
- **Graph:** An exception caused by a negative radius (`circle`,`ellipse`,`arc`,`ring`,`sector`). | ||
# 0.3.0-alpha (2019-06-01) | ||
@@ -2,0 +8,0 @@ |
@@ -46,3 +46,3 @@ import beziercurve from '@jiaminghi/bezier-curve' | ||
ctx.arc(rx, ry, r, 0, Math.PI * 2) | ||
ctx.arc(rx, ry, r > 0 ? r : 0.01, 0, Math.PI * 2) | ||
@@ -100,3 +100,3 @@ ctx.fill() | ||
ctx.ellipse(rx, ry, hr, vr, 0, 0, Math.PI * 2) | ||
ctx.ellipse(rx, ry, hr > 0 ? hr : 0.01, vr > 0 ? vr : 0.01, 0, 0, Math.PI * 2) | ||
@@ -216,3 +216,3 @@ ctx.fill() | ||
ctx.arc(rx, ry, r, 0, Math.PI * 2) | ||
ctx.arc(rx, ry, r > 0 ? r : 0.01, 0, Math.PI * 2) | ||
@@ -280,3 +280,3 @@ ctx.stroke() | ||
ctx.arc(rx, ry, r, startAngle, endAngle, !clockWise) | ||
ctx.arc(rx, ry, r > 0 ? r : 0.001, startAngle, endAngle, !clockWise) | ||
@@ -343,3 +343,3 @@ ctx.stroke() | ||
ctx.arc(rx, ry, r, startAngle, endAngle, !clockWise) | ||
ctx.arc(rx, ry, r > 0 ? r : 0.01, startAngle, endAngle, !clockWise) | ||
@@ -346,0 +346,0 @@ ctx.lineTo(rx, ry) |
{ | ||
"name": "@jiaminghi/c-render", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": "JiaMing <743192023@qq.com>", | ||
@@ -5,0 +5,0 @@ "description": "Canvas-based vector graphics rendering plugin", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141871