|
@@ -263,10 +263,14 @@ export default class HcPdfSign {
|
|
|
newArr.forEach(item => {
|
|
|
item.lx = lx
|
|
|
item.ly = ly
|
|
|
+ item.width = curDom.clientWidth
|
|
|
+ item.height = curDom.clientHeight
|
|
|
})
|
|
|
} else {
|
|
|
curSign.lx = lx
|
|
|
curSign.ly = ly
|
|
|
+ curSign.width = curDom.clientWidth
|
|
|
+ curSign.height = curDom.clientHeight
|
|
|
}
|
|
|
this.signChangeFunc()
|
|
|
})
|
|
@@ -394,6 +398,8 @@ export default class HcPdfSign {
|
|
|
id: signImgDom.getAttribute('id'),
|
|
|
lx: ((event.layerX * 100) / textLayer.clientWidth).toFixed(4),
|
|
|
ly: ((event.layerY * 100) / textLayer.clientHeight).toFixed(4),
|
|
|
+ width: signImgDom.clientWidth,
|
|
|
+ height: signImgDom.clientHeight,
|
|
|
dom: signImgDom,
|
|
|
})
|
|
|
return signImgDom
|
|
@@ -432,6 +438,8 @@ export default class HcPdfSign {
|
|
|
//保存签章信息
|
|
|
this.signList.push({
|
|
|
...list[i],
|
|
|
+ width: signImg.clientWidth,
|
|
|
+ height: signImg.clientHeight,
|
|
|
dom: signImg,
|
|
|
})
|
|
|
}
|