Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.3.2 to 0.3.3

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 0.3.3-alpha (2019-06-06)
### Bug Fixes
- **Style:** `opacity` is invalid for `gradientColor`.
# 0.3.2-alpha (2019-06-03)

@@ -2,0 +8,0 @@

12

class/style.class.js

@@ -349,4 +349,14 @@ import { getRgbaValue, getColorFromRgbValue } from '@jiaminghi/color'

let { gradientColor, gradientParams, gradientType, gradientWith, gradientStops } = style
let { gradientColor, gradientParams, gradientType, gradientWith, gradientStops, opacity } = style
gradientColor = gradientColor.map(color => {
let colorOpacity = color[3] * opacity
let clonedColor = [...color]
clonedColor[3] = colorOpacity
return clonedColor
})
gradientColor = gradientColor.map(c => getColorFromRgbValue(c))

@@ -353,0 +363,0 @@

2

package.json
{
"name": "@jiaminghi/c-render",
"version": "0.3.2",
"version": "0.3.3",
"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