gb-image-decoder 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -146,6 +146,9 @@ const decodeTile = (rawBytes = BLACK) => {
|
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
const tileIndexIsPartOfFrame = (tileIndex, imageStartLine, handleExportFrame = ExportFrameMode.FRAMEMODE_KEEP) => {
|
|
149
|
+
if (handleExportFrame === ExportFrameMode.FRAMEMODE_CROP) {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
149
152
|
const checkIndex = tileIndex - (handleExportFrame === ExportFrameMode.FRAMEMODE_KEEP ? 0 : 20);
|
|
150
153
|
if (checkIndex < imageStartLine * 20) {
|
|
151
154
|
return true;
|
package/dist/index.mjs
CHANGED
|
@@ -144,6 +144,9 @@ const decodeTile = (rawBytes = BLACK) => {
|
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
const tileIndexIsPartOfFrame = (tileIndex, imageStartLine, handleExportFrame = ExportFrameMode.FRAMEMODE_KEEP) => {
|
|
147
|
+
if (handleExportFrame === ExportFrameMode.FRAMEMODE_CROP) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
147
150
|
const checkIndex = tileIndex - (handleExportFrame === ExportFrameMode.FRAMEMODE_KEEP ? 0 : 20);
|
|
148
151
|
if (checkIndex < imageStartLine * 20) {
|
|
149
152
|
return true;
|