Update pdfjs-dist lib to latest version (2.9.x) (#981)
* test * pdfjs-VersionUpgrade * Invalid space * please keep cMapUrl
This commit is contained in:
Родитель
89b37044cd
Коммит
9ccb2c0694
|
@ -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";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче