mirror of
https://gitee.com/Donal/ofd.js.git
synced 2024-11-30 02:48:47 +08:00
svg路径限制最小像素
This commit is contained in:
parent
6bf5157d17
commit
1216f59e05
@ -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 = boundary.w;
|
||||
svg.style.height = boundary.h;
|
||||
svg.style.width = boundary.w>1?boundary.w:1;
|
||||
svg.style.height = boundary.h>1?boundary.h:1;
|
||||
let path = document.createElementNS('http://www.w3.org/2000/svg','path');
|
||||
if (lineWidth) {
|
||||
defaultLineWith = converterDpi(lineWidth);
|
||||
|
Loading…
Reference in New Issue
Block a user