kfb-view 3.1.4 → 3.1.5
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/package.json
CHANGED
|
@@ -33,6 +33,7 @@ export class Tailoring extends ViewerCommon {
|
|
|
33
33
|
suffix: 'jpeg',
|
|
34
34
|
quality: 0.92,
|
|
35
35
|
resolution: 1200,
|
|
36
|
+
shape: true,
|
|
36
37
|
...this.options,
|
|
37
38
|
};
|
|
38
39
|
}
|
|
@@ -331,7 +332,7 @@ export class Tailoring extends ViewerCommon {
|
|
|
331
332
|
copyCtx.fillRect(0, 0, copyCanvas.width, copyCanvas.height);
|
|
332
333
|
copyCtx.putImageData(imageData, 0, 0, 0, 0, disWidth, disHeight);
|
|
333
334
|
const shapeCanvas = this.kv.shape?.canvas;
|
|
334
|
-
if (shapeCanvas) {
|
|
335
|
+
if (shapeCanvas && this.options.shape) {
|
|
335
336
|
copyCtx.drawImage(shapeCanvas, startPoint.x * radioX,
|
|
336
337
|
startPoint.y * radioY, disWidth, disHeight, 0, 0, disWidth,
|
|
337
338
|
disHeight);
|