Socket
Socket
Sign inDemoInstall

abstract-image

Package Overview
Dependencies
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-image - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

6

lib-cjs/exporters/eps-export-image.js

@@ -93,6 +93,6 @@ "use strict";

c.position.x + " " + (height - c.position.y) + " moveto",
"-" + c.clockwiseRotationDegrees + " rotate",
getTextXOffset(c),
getTextYOffset(c),
"rmoveto",
-c.clockwiseRotationDegrees + " rotate",
"(" + c.text + ") show",

@@ -119,6 +119,6 @@ "grestore"

if (c.verticalGrowthDirection === "down") {
return "(" + c.text + ") stringwidth exch pop neg";
return "gsave (" + c.text + ") true charpath pathbbox exch pop 3 -1 roll pop sub grestore";
}
else if (c.verticalGrowthDirection === "uniform") {
return "(" + c.text + ") stringwidth exch pop neg 0.5 mul";
return "gsave (" + c.text + ") true charpath pathbbox exch pop 3 -1 roll pop sub 0.5 mul grestore";
}

@@ -125,0 +125,0 @@ else {

@@ -90,6 +90,6 @@ import * as R from "ramda";

c.position.x + " " + (height - c.position.y) + " moveto",
"-" + c.clockwiseRotationDegrees + " rotate",
getTextXOffset(c),
getTextYOffset(c),
"rmoveto",
-c.clockwiseRotationDegrees + " rotate",
"(" + c.text + ") show",

@@ -116,6 +116,6 @@ "grestore"

if (c.verticalGrowthDirection === "down") {
return "(" + c.text + ") stringwidth exch pop neg";
return "gsave (" + c.text + ") true charpath pathbbox exch pop 3 -1 roll pop sub grestore";
}
else if (c.verticalGrowthDirection === "uniform") {
return "(" + c.text + ") stringwidth exch pop neg 0.5 mul";
return "gsave (" + c.text + ") true charpath pathbbox exch pop 3 -1 roll pop sub 0.5 mul grestore";
}

@@ -122,0 +122,0 @@ else {

{
"name": "abstract-image",
"version": "2.2.0",
"version": "2.2.1",
"description": "Dynamically create images using code or JSX and render to any format",

@@ -5,0 +5,0 @@ "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-image",

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