@kispace-io/gs-lib 1.0.33 → 1.0.34
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.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -5
package/dist/index.js
CHANGED
|
@@ -30988,6 +30988,14 @@ function render$1(width, height, pixelRatio, sourceResolution, sourceExtent, tar
|
|
|
30988
30988
|
if (!interpolate) {
|
|
30989
30989
|
stitchContext.imageSmoothingEnabled = false;
|
|
30990
30990
|
}
|
|
30991
|
+
if (sourceExtent && clipExtent) {
|
|
30992
|
+
const xPos = (sourceExtent[0] - sourceDataExtent[0]) * stitchScale;
|
|
30993
|
+
const yPos = -(sourceExtent[3] - sourceDataExtent[3]) * stitchScale;
|
|
30994
|
+
const width2 = getWidth(sourceExtent) * stitchScale;
|
|
30995
|
+
const height2 = getHeight(sourceExtent) * stitchScale;
|
|
30996
|
+
stitchContext.rect(xPos, yPos, width2, height2);
|
|
30997
|
+
stitchContext.clip();
|
|
30998
|
+
}
|
|
30991
30999
|
sources2.forEach(function(src, i5, arr) {
|
|
30992
31000
|
if (src.image.width > 0 && src.image.height > 0) {
|
|
30993
31001
|
if (src.clipExtent) {
|