Comparing version 0.0.2 to 0.0.3
@@ -16,33 +16,33 @@ class cornerBox { | ||
const colorBox = props.get(`--cornerbox-color`).toString().trim(); | ||
ctx.lineWidth = lineBox; | ||
ctx.beginPath(); | ||
if(lineBox != 0) { | ||
ctx.lineWidth = lineBox; | ||
ctx.beginPath(); | ||
/* UP Left */ | ||
ctx.moveTo(0, 0); | ||
ctx.lineTo(0, lineBoxwidth); | ||
ctx.moveTo(0, 0); | ||
ctx.lineTo(lineBoxwidth, 0); | ||
/* UP Left */ | ||
ctx.moveTo(0, 0); | ||
ctx.lineTo(0, lineBoxwidth); | ||
ctx.moveTo(0, 0); | ||
ctx.lineTo(lineBoxwidth, 0); | ||
/* Up Right */ | ||
ctx.moveTo(size.width-lineBoxwidth, 0); | ||
ctx.lineTo(size.width, 0); | ||
ctx.moveTo(size.width, 0); | ||
ctx.lineTo(size.width, lineBoxwidth); | ||
/* Up Right */ | ||
ctx.moveTo(size.width-lineBoxwidth, 0); | ||
ctx.lineTo(size.width, 0); | ||
ctx.moveTo(size.width, 0); | ||
ctx.lineTo(size.width, lineBoxwidth); | ||
/* Down Left */ | ||
ctx.moveTo(0, size.height-lineBoxwidth); | ||
ctx.lineTo(0, size.height); | ||
ctx.moveTo(0, size.height); | ||
ctx.lineTo(lineBoxwidth, size.height); | ||
/* Down Left */ | ||
ctx.moveTo(0, size.height-lineBoxwidth); | ||
ctx.lineTo(0, size.height); | ||
ctx.moveTo(0, size.height); | ||
ctx.lineTo(lineBoxwidth, size.height); | ||
/* Down Right */ | ||
ctx.moveTo(size.width, size.height-lineBoxwidth); | ||
ctx.lineTo(size.width, size.height); | ||
ctx.moveTo(size.width, size.height); | ||
ctx.lineTo(size.width-lineBoxwidth, size.height); | ||
/* Down Right */ | ||
ctx.moveTo(size.width, size.height-lineBoxwidth); | ||
ctx.lineTo(size.width, size.height); | ||
ctx.moveTo(size.width, size.height); | ||
ctx.lineTo(size.width-lineBoxwidth, size.height); | ||
ctx.strokeStyle = colorBox; | ||
ctx.stroke(); | ||
ctx.strokeStyle = colorBox; | ||
ctx.stroke(); | ||
} | ||
} | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "cornerbox", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "CSS Houdini CornerBox", | ||
@@ -5,0 +5,0 @@ "main": "CornerBox.js", |
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
4596
40