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

canvas-rect

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-rect - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

1

index.js

@@ -92,2 +92,3 @@ /**

const heigth = to.y-from.y
this._ctx.lineWidth = this.options.lineWidth
this._ctx.strokeStyle = this.options.lineColor

@@ -94,0 +95,0 @@ this._storedAccords.forEach(({x,y,w,h})=>{

2

package.json
{
"name": "canvas-rect",
"version": "0.0.1",
"version": "0.0.2",
"description": "canvas rect drawing on element",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -37,8 +37,10 @@ // Type definitions for canvas-rect

/**options */
options: DrawRectOptions
readonly options: DrawRectOptions
/**canvas size */
__area: {
readonly _area: {
w: number;
h: number;
}
readonly _canvas: HTMLCanvasElement
readonly _ctx: CanvasRenderingContext2D
/**

@@ -45,0 +47,0 @@ * @param options

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