fix: inline image ascent value
This commit is contained in:
@@ -1023,7 +1023,8 @@ export class Draw {
|
|||||||
metrics.boundingBoxDescent += metrics.height / 2
|
metrics.boundingBoxDescent += metrics.height / 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const ascent = element.type === ElementType.IMAGE || element.type === ElementType.LATEX
|
const ascent = (element.imgDisplay !== ImageDisplay.INLINE && element.type === ElementType.IMAGE) ||
|
||||||
|
element.type === ElementType.LATEX
|
||||||
? metrics.height
|
? metrics.height
|
||||||
: metrics.boundingBoxAscent + rowMargin
|
: metrics.boundingBoxAscent + rowMargin
|
||||||
const height = rowMargin + metrics.boundingBoxAscent + metrics.boundingBoxDescent + rowMargin
|
const height = rowMargin + metrics.boundingBoxAscent + metrics.boundingBoxDescent + rowMargin
|
||||||
|
|||||||
Reference in New Issue
Block a user