mirror of
https://gitee.com/Donal/ofd.js.git
synced 2024-12-02 03:48:44 +08:00
修正 
This commit is contained in:
parent
25e17bbf83
commit
a846fe6e73
@ -186,7 +186,6 @@ export default {
|
||||
const ph = parseFloat(mycanvas.style.height.replace('px',''));
|
||||
const w = boundary.w > pw ? pw: boundary.w;
|
||||
const h = boundary.h > ph ? ph :boundary.h;
|
||||
console.log(w);
|
||||
div.setAttribute('style', `position: absolute; left: ${boundary.x<0?0:boundary.x}px; top: ${boundary.y<0?0:boundary.y}px; width: ${w}px; height: ${h}px`)
|
||||
mycanvas.appendChild(div);
|
||||
}
|
||||
|
@ -132,6 +132,7 @@ export const calTextPoint = function (textCode) {
|
||||
if (textStr) {
|
||||
textStr += '';
|
||||
textStr = decodeHtml(textStr);
|
||||
textStr = textStr.replaceAll(' ', ' ');
|
||||
for (let i = 0; i < textStr.length; i++) {
|
||||
if (i > 0 && deltaXList.length > 0) {
|
||||
x += deltaXList[(i - 1)];
|
||||
|
Loading…
Reference in New Issue
Block a user