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

cornerbox

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cornerbox - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

52

CornerBox.js

@@ -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",

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