kfb-view 2.3.7 → 2.3.8

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": "2.3.7",
4
+ "version": "2.3.8",
5
5
  "author": "qifeng.fan <qifeng.fan@hzztai.com>",
6
6
  "license": "MIT",
7
7
  "main": "lib/kfb-view.js",
@@ -111,8 +111,9 @@ export class Tailoring extends ViewerCommon {
111
111
  ctx.fillStyle = this.color;
112
112
  ctx.font = '18px Arial';
113
113
  ctx.fillText(
114
- this.contents?.[3] ?? (`区域大小为:${rightTop.x -
115
- leftTop.x}*${rightBottom.y - rightTop.y}`),
114
+ this.contents?.[2] ?
115
+ this.contents[2](rightTop.x - leftTop.x, rightBottom.y - rightTop.y) :
116
+ (`区域大小为:${rightTop.x - leftTop.x}*${rightBottom.y - rightTop.y}`),
116
117
  leftTop.x, leftTop.y - 50);
117
118
  ctx.fillText(this.contents?.[0] ?? `双击区域内表示完成截图`, leftTop.x,
118
119
  leftTop.y - 30);