kfb-view 3.3.3 → 3.3.4

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kfb-view",
3
3
  "description": "一个在线kfb的阅片软件",
4
- "version": "3.3.3",
4
+ "version": "3.3.4",
5
5
  "author": "qifeng.fan <qifeng.fan@hzztai.com>",
6
6
  "license": "MIT",
7
7
  "main": "lib/kfb-view.cjs.js",
@@ -384,7 +384,7 @@ export class Tailoring extends ViewerCommon {
384
384
  const shapeCanvas = this.kv.shape?.canvas;
385
385
  if (shapeCanvas && this.options.shape) {
386
386
  copyCtx.drawImage(shapeCanvas, startPoint.x,
387
- startPoint.y, disWidth, disHeight, 0, 0, disWidth,
387
+ startPoint.y, Math.abs(endPoint.x - startPoint.x), Math.abs(endPoint.y - startPoint.y), 0, 0, disWidth,
388
388
  disHeight);
389
389
  }
390
390
  if (copyCanvas.width > this.options.resolution) {