mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-03 21:55:49 +02:00
Compare commits
4 Commits
4b1875c8c0
...
d8d3e0abf5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8d3e0abf5 | ||
|
|
75e9f2a0e8 | ||
|
|
87a143dbbc | ||
|
|
91ba147317 |
@ -1170,7 +1170,6 @@ function buildComponents(defines, dir) {
|
||||
"web/images/messageBar_*.svg",
|
||||
"web/images/toolbarButton-{editorHighlight,menuArrow}.svg",
|
||||
"web/images/cursor-*.svg",
|
||||
"web/images/secondaryToolbarButton-documentProperties.svg",
|
||||
];
|
||||
|
||||
return ordered([
|
||||
|
||||
@ -123,20 +123,19 @@ class WorkerMessageHandler {
|
||||
if (typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) {
|
||||
// Fail early, and predictably, rather than having (some) fonts fail to
|
||||
// load/render with slightly cryptic error messages in environments where
|
||||
// the `Array.prototype` has been *incorrectly* extended.
|
||||
// the `{Object, Array}.prototype` has been *incorrectly* extended.
|
||||
//
|
||||
// PLEASE NOTE: We do *not* want to slow down font parsing by adding
|
||||
// `hasOwnProperty` checks all over the code-base.
|
||||
const enumerableProperties = [];
|
||||
for (const property in []) {
|
||||
enumerableProperties.push(property);
|
||||
const buildMsg = (type, prop) =>
|
||||
`The \`${type}.prototype\` contains unexpected enumerable property ` +
|
||||
`"${prop}", thus breaking e.g. \`for...in\` iteration of ${type}s.`;
|
||||
|
||||
for (const prop in {}) {
|
||||
throw new Error(buildMsg("Object", prop));
|
||||
}
|
||||
if (enumerableProperties.length) {
|
||||
throw new Error(
|
||||
"The `Array.prototype` contains unexpected enumerable properties: " +
|
||||
enumerableProperties.join(", ") +
|
||||
"; thus breaking e.g. `for...in` iteration of `Array`s."
|
||||
);
|
||||
for (const prop in []) {
|
||||
throw new Error(buildMsg("Array", prop));
|
||||
}
|
||||
}
|
||||
const workerHandlerName = docId + "_worker";
|
||||
|
||||
3
web/images/messageBar_info.svg
Normal file
3
web/images/messageBar_info.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M7.625 0.5C6.64009 0.5 5.66482 0.693993 4.75487 1.0709C3.84493 1.44781 3.01814 2.00026 2.3217 2.6967C1.62526 3.39314 1.07281 4.21993 0.695904 5.12987C0.318993 6.03982 0.125 7.01509 0.125 8C0.125 8.98491 0.318993 9.96018 0.695904 10.8701C1.07281 11.7801 1.62526 12.6069 2.3217 13.3033C3.01814 13.9997 3.84493 14.5522 4.75487 14.9291C5.66482 15.306 6.64009 15.5 7.625 15.5C9.61412 15.5 11.5218 14.7098 12.9283 13.3033C14.3348 11.8968 15.125 9.98912 15.125 8C15.125 6.01088 14.3348 4.10322 12.9283 2.6967C11.5218 1.29018 9.61412 0.5 7.625 0.5ZM8.25 11.375C8.25 11.5408 8.18415 11.6997 8.06694 11.8169C7.94973 11.9342 7.79076 12 7.625 12C7.45924 12 7.30027 11.9342 7.18306 11.8169C7.06585 11.6997 7 11.5408 7 11.375V6.938C7 6.77224 7.06585 6.61327 7.18306 6.49606C7.30027 6.37885 7.45924 6.313 7.625 6.313C7.79076 6.313 7.94973 6.37885 8.06694 6.49606C8.18415 6.61327 8.25 6.77224 8.25 6.938V11.375ZM8.25 5L8 5.25H7.25L7 5V4.25L7.25 4H8L8.25 4.25V5Z" fill="black" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
@ -129,7 +129,7 @@
|
||||
#editorUndoBar {
|
||||
--text-primary-color: #15141a;
|
||||
|
||||
--message-bar-icon: url(images/secondaryToolbarButton-documentProperties.svg);
|
||||
--message-bar-icon: url(images/messageBar_info.svg);
|
||||
--message-bar-icon-color: #0060df;
|
||||
--message-bar-bg-color: #deeafc;
|
||||
--message-bar-fg-color: var(--text-primary-color);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user