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.1.3 to 0.1.4

11

CHANGELOG.md

@@ -5,4 +5,11 @@ # 0.1.3-alpha (2019-02-16)

* **elements:** add new elements (**polyline**、**smoothline**)
* **prototype:** add methos to delete elements (**deleteAllElements**、**deleteElement**)
* **elements:** add new elements (`polyline`,`smoothline`)
* **prototype:** add methos to delete elements (`deleteAllElements`,`deleteElement`)
# 0.1.4-alpha (2019-02-17)
### Bug Fixes
* **elements:** `shape.length ` is less than 3 draw exception(`polyline`)
* **elements:** hover check exception when startAngle more than endAngle(`arc`,`sector`)

2

extend/canvas.js
export function drawPolylinePath (ctx, points, beginPath = false, closePath = false) {
if (!ctx || points.length < 3) return false
if (!ctx || points.length < 2) return false

@@ -4,0 +4,0 @@ if (beginPath) ctx.beginPath()

@@ -157,2 +157,6 @@ export function deepClone (object, recursionType = false) {

const reverseBE = startAngle > endAngle
if (reverseBE) [startAngle, endAngle] = [endAngle, startAngle]
const minus = endAngle - startAngle

@@ -179,2 +183,4 @@

if (reverseBE) inSector = !inSector
return inSector

@@ -181,0 +187,0 @@ }

{
"name": "@jiaminghi/c-render",
"version": "0.1.3",
"version": "0.1.4",
"author": "JiaMing <743192023@qq.com>",

@@ -5,0 +5,0 @@ "description": "Canvas-based vector graphics rendering plugin",

# CRender
# Version 1.0.0
# Version 0.1.4

@@ -15,2 +15,3 @@ ## 基于Canvas的矢量图形渲染插件

[Project address](https://github.com/jiaming743/CRender)
[Project address](https://github.com/jiaming743/CRender)
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