Socket
Socket
Sign inDemoInstall

@jiaminghi/c-render

Package Overview
Dependencies
5
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

6

CHANGELOG.md

@@ -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 @@

10

config/graphs.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc