kfb-view 2.1.10 → 2.1.11
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 +30 -37
- package/lib/kfb-view.js +1 -1
- package/package.json +1 -1
- package/src/components/tailoring/index.js +4 -8
package/package.json
CHANGED
|
@@ -41,6 +41,7 @@ export class Tailoring extends ViewerCommon {
|
|
|
41
41
|
pointList[8]];
|
|
42
42
|
if (now) {
|
|
43
43
|
this.$emit(EVENT_TAILORING_SCREENSHOT, this.getScreenCanvasImage());
|
|
44
|
+
this.stopTailoring();
|
|
44
45
|
} else {
|
|
45
46
|
this.color = color || '#FFF';
|
|
46
47
|
this.change();
|
|
@@ -226,15 +227,10 @@ export class Tailoring extends ViewerCommon {
|
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
onCanvasDblClick(position) {
|
|
229
|
-
if (this.tailoringPoints.length
|
|
230
|
-
this.
|
|
231
|
-
} else {
|
|
232
|
-
if (this.isPointInMatrix(position)) {
|
|
233
|
-
this.$emit(EVENT_TAILORING_SCREENSHOT, this.getScreenCanvasImage());
|
|
234
|
-
} else {
|
|
235
|
-
this.stopTailoring();
|
|
236
|
-
}
|
|
230
|
+
if (this.tailoringPoints.length > 0 && this.isPointInMatrix(position)) {
|
|
231
|
+
this.$emit(EVENT_TAILORING_SCREENSHOT, this.getScreenCanvasImage());
|
|
237
232
|
}
|
|
233
|
+
this.stopTailoring();
|
|
238
234
|
}
|
|
239
235
|
|
|
240
236
|
/**
|