Socket
Socket
Sign inDemoInstall

canvas

Package Overview
Dependencies
Maintainers
0
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

5

._History.md

@@ -1,4 +0,1 @@

Mac OS X  2��ATTR3����"�"com.macromates.caret{
column = 61;
line = 4;
}
Mac OS X  2��ATTRX�7�� � com.macromates.caretx���R������<[k0?'3/«��%

2

._package.json

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR3���"�"com.macromates.caret{
Mac OS X  2��ATTRX�=��"�"com.macromates.caret{
column = 21;
line = 2;
}
0.4.2 / 2010-12-28
==================
* Fixed font size growing issue after successive calls. Closes #70
0.4.1 / 2010-12-18

@@ -3,0 +8,0 @@ ==================

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR3�)��#�#com.macromates.caret{
Mac OS X  2��ATTRX�[��#�#com.macromates.caret{
column = 24;
line = 30;
}

@@ -1,4 +0,4 @@

Mac OS X  2��ATTR3�+��$�$com.macromates.caret{
column = 21;
line = 100;
Mac OS X  2��ATTRX�]��"�"com.macromates.caret{
column = 0;
line = 97;
}

@@ -1,1 +0,1 @@

Mac OS X  2��ATTR3�/�� � com.macromates.caretx���R������<[k0?'3/«��
Mac OS X  2��ATTRX�a�� � com.macromates.caretx���R������<[k0?'3/«��

@@ -31,3 +31,3 @@

exports.version = '0.4.1';
exports.version = '0.4.2';

@@ -34,0 +34,0 @@ /**

@@ -71,2 +71,5 @@

// Cached
if (cache[str]) return cache[str];
// Populate font object

@@ -78,4 +81,21 @@ font.weight = captures[1] || 'normal';

font.family = captures[5];
// TODO: dpi
// TODO: remaining unit conversion
switch (font.unit) {
case 'pt':
font.size /= .75;
break;
case 'in':
font.size *= 96;
break;
case 'mm':
font.size *= 96.0 / 25.4;
break;
case 'cm':
font.size *= 96.0 / 2.54;
break;
}
return font;
return cache[str] = font;
};

@@ -191,26 +211,4 @@

var font;
if (font = cache[val] || parseFont(val)) {
if (font = parseFont(val)) {
this.lastFontString = val;
// TODO: dpi
// TODO: remaining unit conversion
switch (font.unit) {
case 'pt':
font.size /= .75;
break;
case 'in':
font.size *= 96;
break;
case 'mm':
font.size *= 96.0 / 25.4;
break;
case 'cm':
font.size *= 96.0 / 2.54;
break;
}
// Cache font object
cache[val] = font;
// Set font
this.setFont(

@@ -217,0 +215,0 @@ font.weight

{ "name": "canvas"
, "description": "Canvas graphics API backed by Cairo"
, "version": "0.4.1"
, "version": "0.4.2"
, "author": "TJ Holowaychuk <tj@learnboost.com>"

@@ -5,0 +5,0 @@ , "keywords": ["canvas", "graphic", "graphics"]

@@ -117,3 +117,3 @@

Set anti-aliasing mode:
Set anti-aliasing mode

@@ -125,2 +125,6 @@ - default

For example:
ctx.antialias = 'none';
## Benchmarks

@@ -127,0 +131,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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