We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a531fe commit 4b7cbdcCopy full SHA for 4b7cbdc
1 file changed
ts/output/common/Wrapper.ts
@@ -375,12 +375,14 @@ export class CommonWrapper<
375
*/
376
protected copySkewIC(bbox: BBox) {
377
const first = this.childNodes[0];
378
- if (first) {
379
- first.bbox.sk && (bbox.sk = first.bbox.sk);
380
- first.bbox.dx && (bbox.dx = first.bbox.dx);
+ if (first?.bbox.sk) {
+ bbox.sk = first.bbox.sk;
+ }
381
+ if (first?.bbox.dx) {
382
+ bbox.dx = first.bbox.dx;
383
}
384
const last = this.childNodes[this.childNodes.length - 1];
- if (last && last.bbox.ic) {
385
+ if (last?.bbox.ic) {
386
bbox.ic = last.bbox.ic;
387
bbox.w += bbox.ic;
388
0 commit comments