abstract-image
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165905