|
@@ -411,17 +411,7 @@ let JpcCanvasOutput = {
|
|
|
} else {
|
|
|
control = cell[JV.PROP_CONTROL];
|
|
|
}
|
|
|
- if (cell.path) {
|
|
|
- const img = new Image();
|
|
|
- img.src = cell.path;
|
|
|
- img.crossOrigin = 'anonymous';
|
|
|
- img.onload = function() {
|
|
|
- private_drawImage(cell, control, img, (!!cell.isStamp));
|
|
|
- };
|
|
|
- img.onerror = function() {
|
|
|
- console.log('cell.path error: ' + cell.path);
|
|
|
- }
|
|
|
- } else if (cell.pic) {
|
|
|
+ if (cell.pic) {
|
|
|
const img = new Image();
|
|
|
img.src = cell.pic;
|
|
|
img.crossOrigin = 'anonymous';
|
|
@@ -433,6 +423,16 @@ let JpcCanvasOutput = {
|
|
|
}
|
|
|
// private_drawImage(cell, control, img);
|
|
|
};
|
|
|
+ } else if (cell.path) {
|
|
|
+ const img = new Image();
|
|
|
+ img.src = cell.path;
|
|
|
+ img.crossOrigin = 'anonymous';
|
|
|
+ img.onload = function() {
|
|
|
+ private_drawImage(cell, control, img, (!!cell.isStamp));
|
|
|
+ };
|
|
|
+ img.onerror = function() {
|
|
|
+ console.log('cell.path error: ' + cell.path);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
function private_getProperSignatureArea(cell, control) {
|