加上判断是否监制章的线条

This commit is contained in:
Donal 2020-09-13 20:51:42 +08:00
parent 43d23e4b72
commit 9ee9e1bef2

View File

@ -262,8 +262,8 @@ export default {
const ctm = pathObject['@_CTM'];
let svg = document.createElementNS('http://www.w3.org/2000/svg','svg');
svg.setAttribute('version','1.1');
svg.style.width = Math.ceil(boundary.w);
svg.style.height = Math.ceil(boundary.h);
svg.style.width = isStampAnnot? boundary.w: Math.ceil(boundary.w);
svg.style.height = isStampAnnot? boundary.h : Math.ceil(boundary.h);
let path = document.createElementNS('http://www.w3.org/2000/svg','path');
if (lineWidth) {
defaultLineWith = converterDpi(lineWidth);