minitel-mosaic
Advanced tools
Comparing version 1.1.5 to 1.1.6
{ | ||
"name": "minitel-mosaic", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"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: attributes.imageData?.[0].length || -1, height: attributes.imageData?.length || -1 }; | ||
return { width: Math.ceil((attributes.imageData?.[0].length || 0) / 3), height: Math.ceil((attributes.imageData?.length || 0) / 2) }; | ||
} | ||
@@ -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
39448