Edit for Accessibility.
This commit is contained in:
parent
0f29005d27
commit
c1a0d6de89
|
@ -14570,7 +14570,7 @@ exports.FontLoader = FontLoader;
|
|||
return;
|
||||
}
|
||||
|
||||
ctx.font = "30px " + name;
|
||||
ctx.font = "1.875em " + name;
|
||||
ctx.fillText(".", 0, 20);
|
||||
var imageData = ctx.getImageData(0, 0, 1, 1);
|
||||
|
||||
|
@ -15390,7 +15390,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
|
|||
ctx.lineJoin = "miter";
|
||||
ctx.miterLimit = 10;
|
||||
ctx.globalCompositeOperation = "source-over";
|
||||
ctx.font = "10px sans-serif";
|
||||
ctx.font = "0.625em sans-serif";
|
||||
|
||||
if (ctx.setLineDash !== undefined) {
|
||||
ctx.setLineDash([]);
|
||||
|
@ -16069,7 +16069,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
|
|||
}
|
||||
|
||||
this.current.fontSizeScale = size / browserFontSize;
|
||||
this.ctx.font = "".concat(italic, " ").concat(bold, " ").concat(browserFontSize, "px ").concat(typeface);
|
||||
this.ctx.font = "".concat(italic, " ").concat(bold, " ").concat(browserFontSize / 16.0, "em ").concat(typeface);
|
||||
},
|
||||
setTextRenderingMode: function CanvasGraphics_setTextRenderingMode(mode) {
|
||||
this.current.textRenderingMode = mode;
|
||||
|
@ -19666,7 +19666,7 @@ var renderTextLayer = function renderTextLayerClosure() {
|
|||
|
||||
textDiv.style.left = "".concat(left, "px");
|
||||
textDiv.style.top = "".concat(top, "px");
|
||||
textDiv.style.fontSize = "".concat(fontHeight, "px");
|
||||
textDiv.style.fontSize = "".concat(fontHeight / 16.0, "em");
|
||||
textDiv.style.fontFamily = style.fontFamily;
|
||||
textDiv.textContent = geom.str;
|
||||
|
||||
|
@ -20559,7 +20559,10 @@ var LinkAnnotationElement = /*#__PURE__*/function (_AnnotationElement) {
|
|||
} else {
|
||||
this._bindLink(link, data.dest);
|
||||
}
|
||||
|
||||
var span = document.createElement("span");
|
||||
span.style.display = "none";
|
||||
span.innerHTML = data.url;
|
||||
link.appendChild(span);
|
||||
this.container.appendChild(link);
|
||||
return this.container;
|
||||
}
|
||||
|
@ -20729,7 +20732,7 @@ var TextWidgetAnnotationElement = /*#__PURE__*/function (_WidgetAnnotationElem)
|
|||
key: "_setTextStyle",
|
||||
value: function _setTextStyle(element, font) {
|
||||
var style = element.style;
|
||||
style.fontSize = "".concat(this.data.fontSize, "px");
|
||||
style.fontSize = "".concat(this.data.fontSize / 16.0, "em");
|
||||
style.direction = this.data.fontDirection < 0 ? "rtl" : "ltr";
|
||||
|
||||
if (!font) {
|
||||
|
@ -22508,7 +22511,7 @@ exports.SVGGraphics = SVGGraphics;
|
|||
current.xcoords = [];
|
||||
current.tspan = this.svgFactory.createElement("svg:tspan");
|
||||
current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
|
||||
current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize), "px"));
|
||||
current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize / 16.0), "em"));
|
||||
current.tspan.setAttributeNS(null, "y", pf(-current.y));
|
||||
current.txtElement = this.svgFactory.createElement("svg:text");
|
||||
current.txtElement.appendChild(current.tspan);
|
||||
|
@ -22536,7 +22539,7 @@ exports.SVGGraphics = SVGGraphics;
|
|||
current.xcoords = [];
|
||||
current.tspan = this.svgFactory.createElement("svg:tspan");
|
||||
current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
|
||||
current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize), "px"));
|
||||
current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize / 16.0), "em"));
|
||||
current.tspan.setAttributeNS(null, "y", pf(-current.y));
|
||||
}
|
||||
}, {
|
||||
|
@ -22611,7 +22614,7 @@ exports.SVGGraphics = SVGGraphics;
|
|||
current.tspan.setAttributeNS(null, "x", current.xcoords.map(pf).join(" "));
|
||||
current.tspan.setAttributeNS(null, "y", pf(-current.y));
|
||||
current.tspan.setAttributeNS(null, "font-family", current.fontFamily);
|
||||
current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize), "px"));
|
||||
current.tspan.setAttributeNS(null, "font-size", "".concat(pf(current.fontSize / 16.0), "em"));
|
||||
|
||||
if (current.fontStyle !== SVG_DEFAULTS.fontStyle) {
|
||||
current.tspan.setAttributeNS(null, "font-style", current.fontStyle);
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue