Skip to content

Commit cf81423

Browse files
committed
Fixes for prettier
1 parent 61721ef commit cf81423

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

ts/a11y/explorer/Region.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ export class HoverRegion extends AbstractRegion<HTMLElement> {
708708
},
709709
'mjx-math > mjx-mtd': {
710710
float: 'right',
711-
}
711+
},
712712
});
713713

714714
/**
@@ -871,7 +871,10 @@ export class HoverRegion extends AbstractRegion<HTMLElement> {
871871
// Handle top-level expression with a tag
872872
//
873873
const g = container.querySelector('g');
874-
if (container.getAttribute('width') === 'full' && g.firstChild.lastChild === node) {
874+
if (
875+
container.getAttribute('width') === 'full' &&
876+
g.firstChild.lastChild === node
877+
) {
875878
mjx.innerHTML = '';
876879
mjx.appendChild(container.cloneNode(true).firstChild);
877880
mjx.querySelector('.mjx-selected').setAttribute('data-mjx-clone', 'true');
@@ -882,7 +885,11 @@ export class HoverRegion extends AbstractRegion<HTMLElement> {
882885
// All other expressions
883886
//
884887
(mjx.firstChild as HTMLElement).setAttribute('transform', 'scale(1, -1)');
885-
const W = parseFloat((mjx.getAttribute('viewBox') || mjx.getAttribute('data-mjx-viewBox')).split(/ /)[2]);
888+
const W = parseFloat(
889+
(
890+
mjx.getAttribute('viewBox') || mjx.getAttribute('data-mjx-viewBox')
891+
).split(/ /)[2]
892+
);
886893
const w = parseFloat(mjx.style.minWidth || mjx.getAttribute('width'));
887894
mjx.setAttribute('viewBox', [x, -(y + height), width, height].join(' '));
888895
mjx.removeAttribute('style');

ts/output/svg.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ export class SVG<N, T, D> extends CommonOutputJax<
310310
const adaptor = this.adaptor;
311311
adaptor.setStyle(svg, 'min-width', adaptor.getStyle(svg, 'width'));
312312
adaptor.setAttribute(svg, 'width', pwidth);
313-
adaptor.setAttribute(svg, 'data-mjx-viewBox', adaptor.getAttribute(svg, 'viewBox'));
313+
adaptor.setAttribute(
314+
svg,
315+
'data-mjx-viewBox',
316+
adaptor.getAttribute(svg, 'viewBox')
317+
);
314318
adaptor.removeAttribute(svg, 'viewBox');
315319
const scale = this.fixed(
316320
wrapper.metrics.ex / (this.font.params.x_height * 1000),

0 commit comments

Comments
 (0)