minerender 2.1.0-alpha.11 → 2.1.0-alpha.12
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/browser/index.js +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +3 -3
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +3 -3
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.js +3 -3
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +3 -3
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -66700,10 +66700,10 @@ return ${compiler2.callType("value", tagType)}
|
|
|
66700
66700
|
return this.animated ? this.width : this.height;
|
|
66701
66701
|
}
|
|
66702
66702
|
get frameCount() {
|
|
66703
|
-
return this.height / this.
|
|
66703
|
+
return this.height / this.frameHeight;
|
|
66704
66704
|
}
|
|
66705
66705
|
getFrameY(frame) {
|
|
66706
|
-
return this.
|
|
66706
|
+
return this.frameHeight * Math.max(0, Math.min(this.frameCount - 1, frame));
|
|
66707
66707
|
}
|
|
66708
66708
|
getSectionData(sx, sy, sw, sh) {
|
|
66709
66709
|
return this.dta.data.getImageData(sx, sy, sw, sh);
|
|
@@ -66713,7 +66713,7 @@ return ${compiler2.callType("value", tagType)}
|
|
|
66713
66713
|
}
|
|
66714
66714
|
getFrameSectionData(frame) {
|
|
66715
66715
|
const y5 = this.getFrameY(frame);
|
|
66716
|
-
return this.getSectionData(0, y5, this.
|
|
66716
|
+
return this.getSectionData(0, y5, this.frameWidth, this.frameHeight);
|
|
66717
66717
|
}
|
|
66718
66718
|
};
|
|
66719
66719
|
|