minitel-mosaic
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -15,3 +15,3 @@ "use strict"; | ||
getDimensions(attributes, inheritMe) { | ||
return { width: Math.ceil((attributes.imageData?.[0].length || 0) / 3), height: Math.ceil((attributes.imageData?.length || 0) / 2) }; | ||
return { width: Math.ceil((attributes.imageData?.[0].length || 0) / 2), height: Math.ceil((attributes.imageData?.length || 0) / 3) }; | ||
} | ||
@@ -18,0 +18,0 @@ render(attributes, inheritMe) { |
{ | ||
"name": "minitel-mosaic", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A mosaic adaptor for immjs's minitel npm ecoystem", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -20,3 +20,3 @@ import { MinitelObject } from "minitel-standalone/dist/abstract/minitelobject"; | ||
getDimensions(attributes: ImageAttributes, inheritMe: Partial<ImageAttributes>) { | ||
return { width: Math.ceil((attributes.imageData?.[0].length || 0) / 3), height: Math.ceil((attributes.imageData?.length || 0) / 2) }; | ||
return { width: Math.ceil((attributes.imageData?.[0].length || 0) / 2), height: Math.ceil((attributes.imageData?.length || 0) / 3) }; | ||
} | ||
@@ -23,0 +23,0 @@ render(attributes: ImageAttributes, inheritMe: Partial<MinitelObjectAttributes>) { |
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