Update pdfjs-dist lib to latest version (2.9.x) (#981)

* test

* pdfjs-VersionUpgrade

* Invalid space

* please keep cMapUrl
This commit is contained in:
v-yuhang 2021-09-01 11:12:04 +08:00 коммит произвёл GitHub
Родитель 89b37044cd
Коммит 9ccb2c0694
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -114,7 +114,7 @@
"minimist": "^1.2.2", "minimist": "^1.2.2",
"node-forge": "^0.10.0", "node-forge": "^0.10.0",
"node-sass": "^4.14.1", "node-sass": "^4.14.1",
"pdfjs-dist": "^2.4.456", "pdfjs-dist": "^2.9.359",
"react-scripts": "3.4.1", "react-scripts": "3.4.1",
"redux-immutable-state-invariant": "^2.1.0", "redux-immutable-state-invariant": "^2.1.0",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",

Просмотреть файл

@ -3,7 +3,7 @@
import React from "react"; import React from "react";
import { IAssetPreviewProps } from "./assetPreview"; import { IAssetPreviewProps } from "./assetPreview";
import * as pdfjsLib from "pdfjs-dist"; import * as pdfjsLib from "pdfjs-dist/legacy/build/pdf";
import { constants } from "../../../../common/constants"; import { constants } from "../../../../common/constants";
import {resizeCanvas} from "../../../../common/utils"; import {resizeCanvas} from "../../../../common/utils";

Просмотреть файл

@ -27,7 +27,7 @@ import { KeyboardBinding } from "../../common/keyboardBinding/keyboardBinding";
import { KeyEventType } from "../../common/keyboardManager/keyboardManager"; import { KeyEventType } from "../../common/keyboardManager/keyboardManager";
import _ from "lodash"; import _ from "lodash";
import Alert from "../../common/alert/alert"; import Alert from "../../common/alert/alert";
import * as pdfjsLib from "pdfjs-dist"; import * as pdfjsLib from "pdfjs-dist/legacy/build/pdf";
import Polygon from "ol/geom/Polygon"; import Polygon from "ol/geom/Polygon";
import HtmlFileReader from "../../../../common/htmlFileReader"; import HtmlFileReader from "../../../../common/htmlFileReader";
import { parseTiffData, renderTiffToCanvas, loadImageToCanvas, getAPIVersion } from "../../../../common/utils"; import { parseTiffData, renderTiffToCanvas, loadImageToCanvas, getAPIVersion } from "../../../../common/utils";

Просмотреть файл

@ -1,5 +1,5 @@
import _ from "lodash"; import _ from "lodash";
import pdfjsLib from "pdfjs-dist"; import * as pdfjsLib from "pdfjs-dist/legacy/build/pdf";
import {constants} from "../../../../common/constants"; import {constants} from "../../../../common/constants";
import HtmlFileReader from "../../../../common/htmlFileReader"; import HtmlFileReader from "../../../../common/htmlFileReader";
import {loadImageToCanvas, parseTiffData, renderTiffToCanvas} from "../../../../common/utils"; import {loadImageToCanvas, parseTiffData, renderTiffToCanvas} from "../../../../common/utils";

Просмотреть файл

@ -13,7 +13,7 @@ import Polygon from "ol/geom/Polygon";
import Fill from "ol/style/Fill"; import Fill from "ol/style/Fill";
import Stroke from "ol/style/Stroke"; import Stroke from "ol/style/Stroke";
import Style from "ol/style/Style"; import Style from "ol/style/Style";
import pdfjsLib from "pdfjs-dist"; import * as pdfjsLib from "pdfjs-dist/legacy/build/pdf";
import React from "react"; import React from "react";
import { connect } from "react-redux"; import { connect } from "react-redux";
import { RouteComponentProps } from "react-router-dom"; import { RouteComponentProps } from "react-router-dom";