Socket
Socket
Sign inDemoInstall

@jiaminghi/c-render

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jiaminghi/c-render - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

9

CHANGELOG.md

@@ -0,1 +1,8 @@

# 0.2.2-alpha (2019-04-25)
### Perfect
- **order:** Change the default render order of the graphs.(First Add First Render)
- **style:** Optimize lineDash rendering effects.
# 0.2.1-alpha (2019-04-24)

@@ -5,3 +12,3 @@

- **CRender:** Initializing the canvas without setting its width and height attributes causes the drawing to be abnormal.
- **CRender:** Initializing the canvas without setting its width and height attributes causes the rendering to be abnormal.

@@ -8,0 +15,0 @@ # 0.2.0-alpha (2019-04-15)

2

class/crender.class.js

@@ -113,3 +113,3 @@ import color from '@jiaminghi/color'

this.graphs.unshift(graph)
this.graphs.push(graph)

@@ -116,0 +116,0 @@ this.sortGraphsByIndex()

@@ -264,6 +264,10 @@ import { getRgbaValue, getColorFromRgbValue } from '@jiaminghi/color'

const { lineDash, shadowBlur } = style
let { lineDash, shadowBlur } = style
if (lineDash) ctx.setLineDash(lineDash)
if (lineDash) {
lineDash = lineDash.map(v => v >= 0 ? v : 0)
ctx.setLineDash(lineDash)
}
if (typeof shadowBlur === 'number') ctx.shadowBlur = shadowBlur > 0 ? shadowBlur : 0.001

@@ -270,0 +274,0 @@

{
"name": "@jiaminghi/c-render",
"version": "0.2.1",
"version": "0.2.2",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc