@jiaminghi/c-render
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -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) |
@@ -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", |
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
125746
1650