mirror of
https://gitee.com/Donal/ofd.js.git
synced 2024-11-30 02:48:47 +08:00
clip的坐标
This commit is contained in:
parent
38acc453c2
commit
68ec0fb8c0
@ -95,7 +95,6 @@ export default {
|
||||
this.drawLayer(layer, isStampAnnot ? stampAnnot['@_PageRef'] : pageId, isStampAnnot, stampAnnotBoundary);
|
||||
}
|
||||
const contentLayer = page[pageId]['json']['ofd:Content']['ofd:Layer'];
|
||||
console.log(page[pageId]['json'])
|
||||
this.drawLayer(contentLayer, isStampAnnot ? stampAnnot['@_PageRef'] : pageId, isStampAnnot, stampAnnotBoundary);
|
||||
}
|
||||
},
|
||||
@ -195,7 +194,7 @@ export default {
|
||||
if (clip) {
|
||||
c = `clip: rect(${clip.y}px, ${clip.w+clip.x}px, ${clip.h+clip.y}px, ${clip.x}px)`
|
||||
}
|
||||
div.setAttribute('style', `overflow: hidden; position: absolute; left: ${boundary.x<0?0:boundary.x}px; top: ${boundary.y<0?0:boundary.y}px; width: ${w}px; height: ${h}px; ${c}`)
|
||||
div.setAttribute('style', `overflow: hidden; position: absolute; left: ${c?boundary.x : boundary.x<0?0:boundary.x}px; top: ${c? boundary.y : boundary.y<0?0:boundary.y}px; width: ${w}px; height: ${h}px; ${c}`)
|
||||
mycanvas.appendChild(div);
|
||||
}
|
||||
}, 1)
|
||||
|
Loading…
Reference in New Issue
Block a user