@jiaminghi/c-render
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -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`) | ||
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) | ||
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
38849
1147
17