Comparing version 0.7.53 to 0.7.54
{ | ||
"name": "squishjs", | ||
"version": "0.7.53", | ||
"version": "0.7.54", | ||
"description": "squish & unsquish stuff", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -59,4 +59,4 @@ const InternalGameNode = require("./InternalGameNode"); | ||
const subFrameType = squished[squishedIndex]; | ||
const subFrameLength = squished[squishedIndex + 1]; | ||
const subFrame = squished.slice(squishedIndex + 2, squishedIndex + subFrameLength); | ||
const subFrameLength = squished[squishedIndex + 1] + squished[squishedIndex + 2]; | ||
const subFrame = squished.slice(squishedIndex + 3, squishedIndex + subFrameLength); | ||
@@ -119,3 +119,7 @@ if (!typeToSquishMap[subFrameType]) { | ||
const squished = squishSpec[key].squish(attr, scale, internalNode); | ||
squishedPieces.push([squishSpec[key]['type'], squished.length + 2, ...squished]); | ||
const totalLength = squished.length + 3; | ||
const rightMost = Math.min(255, totalLength); | ||
const leftMost = Math.min(255, Math.max(0, totalLength - 255)); | ||
squishedPieces.push([squishSpec[key]['type'], leftMost, rightMost, ...squished]); | ||
} | ||
@@ -122,0 +126,0 @@ } |
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
155105
2899