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/.idea/workspace.xml +11 -11
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/tailoring/index.js +3 -2
package/package.json
CHANGED
|
@@ -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?.[
|
|
115
|
-
|
|
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);
|