New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ocanvas

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ocanvas - npm Package Compare versions

Comparing version 2.8.4 to 2.8.5

build/dist/ocanvas-2.8.5.js

2

index.js
/**
* oCanvas v2.8.4
* oCanvas v2.8.5
* http://ocanvas.org/

@@ -4,0 +4,0 @@ *

{
"name": "ocanvas",
"version": "2.8.4",
"version": "2.8.5",
"author": "Johannes Koggdal <johannes@koggdal.com>",

@@ -5,0 +5,0 @@ "description": "Library for HTML5 Canvas, based on objects instead of pixels.",

@@ -7,3 +7,3 @@ (function(window, document, undefined){

// Version number of this oCanvas release.
version: "2.8.4",
version: "2.8.5",

@@ -10,0 +10,0 @@ // Array containing all canvases created by oCanvas on the current page

@@ -101,2 +101,22 @@ (function(oCanvas, window, document, undefined){

// Reset canvas properties to their default values
canvas.strokeStyle = "#000";
canvas.fillStyle = "#000";
canvas.globalAlpha = 1;
canvas.lineWidth = 1;
canvas.lineCap = "butt";
canvas.lineJoin = "miter";
canvas.miterLimit = 10;
canvas.lineDashOffset = 0;
canvas.shadowOffsetX = 0;
canvas.shadowOffsetY = 0;
canvas.shadowBlur = 0;
canvas.shadowColor = 'rgba(0, 0, 0, 0)';
canvas.globalCompositeOperation = 'source-over';
canvas.font = '10px sans-serif';
canvas.textAlign = 'start';
canvas.textBaseline = 'alphabetic';
canvas.direction = 'inherit';
canvas.imageSmoothingEnabled = true;
// Update the object's properties if an update method is available

@@ -169,7 +189,2 @@ if (typeof obj.update === "function") {

// Reset stroke properties
canvas.lineCap = "butt";
canvas.lineJoin = "miter";
canvas.miterLimit = 10;
// Loop children recursively to draw everything in the correct order

@@ -176,0 +191,0 @@ if (obj.children.length > 0) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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