electron-pdf-window-s
Advanced tools
Comparing version 2.0.1 to 2.1.0
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const electron = require('electron'); | ||
@@ -99,3 +101,3 @@ const readChunk = require('read-chunk'); | ||
module.exports = PDFWindow; | ||
exports["default"] = PDFWindow; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "electron-pdf-window-s", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "View pdf in new browser windows.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -7,5 +7,6 @@ # electron-pdf-window-s | ||
![npm type definitions](https://img.shields.io/npm/types/electron-pdf-window-s?logo=typescript&style=flat-square) | ||
![npm bundle size](https://img.shields.io/bundlephobia/min/electron-pdf-window-s?logo=npm&style=flat-square) | ||
![GitHub](https://img.shields.io/github/license/Gu-Miao/electron-pdf-window-s?logo=github&style=flat-square) | ||
简体中文 | [English](./README.md) | ||
# 安装 | ||
@@ -79,3 +80,3 @@ | ||
版本:Stable(v2.10.377) | ||
版本:Stable(v2.13.216) | ||
@@ -82,0 +83,0 @@ wiki:[Viewer options · mozilla/pdf.js Wiki](https://github.com/mozilla/pdf.js/wiki/Viewer-options) |
@@ -7,5 +7,6 @@ # electron-pdf-window-s | ||
![npm type definitions](https://img.shields.io/npm/types/electron-pdf-window-s?logo=typescript&style=flat-square) | ||
![npm bundle size](https://img.shields.io/bundlephobia/min/electron-pdf-window-s?logo=npm&style=flat-square) | ||
![GitHub](https://img.shields.io/github/license/Gu-Miao/electron-pdf-window-s?logo=github&style=flat-square) | ||
English | [简体中文](./README_zh.md) | ||
# Install | ||
@@ -79,3 +80,3 @@ | ||
Version: Stable(v2.10.377) | ||
Version: Stable(v2.13.216) | ||
@@ -91,5 +92,5 @@ Options wiki: [Viewer options · mozilla/pdf.js Wiki](https://github.com/mozilla/pdf.js/wiki/Viewer-options) | ||
**Now is `unknow`** | ||
**Now is `unknown`** | ||
We have modify some codes to support signature feature. But we didn't do that in the latest version. | ||
We have modify some code to support signature feature. But we didn't do that in the latest version. | ||
@@ -96,0 +97,0 @@ # LICENSE |
@@ -295,2 +295,3 @@ /* Copyright 2012 Mozilla Foundation | ||
this.operatorListIdx = 0; | ||
this.indentLevel = 0; | ||
} | ||
@@ -386,4 +387,10 @@ | ||
table.appendChild(unicodeRow); | ||
} else if (fn === "restore") { | ||
this.indentLevel--; | ||
} | ||
line.appendChild(c("td", fn)); | ||
line.appendChild(c("td", " ".repeat(this.indentLevel * 2) + fn)); | ||
if (fn === "save") { | ||
this.indentLevel++; | ||
} | ||
if (decArgs instanceof HTMLElement) { | ||
@@ -460,5 +467,3 @@ line.appendChild(decArgs); | ||
function clear(node) { | ||
while (node.hasChildNodes()) { | ||
node.removeChild(node.lastChild); | ||
} | ||
node.textContent = ""; // Remove any `node` contents from the DOM. | ||
} | ||
@@ -489,4 +494,3 @@ function getStatIndex(pageNumber) { | ||
if (statsIndex !== false) { | ||
const b = stats[statsIndex]; | ||
this.panel.removeChild(b.div); | ||
stats[statsIndex].div.remove(); | ||
stats.splice(statsIndex, 1); | ||
@@ -547,3 +551,4 @@ } | ||
}, | ||
init(pdfjsLib, container) { | ||
init(pdfjsLib, container, ids) { | ||
this.enable(ids); | ||
/* | ||
@@ -597,8 +602,4 @@ * Basic Layout: | ||
panel.textContent = | ||
tool.name + | ||
" is disabled. To enable add " + | ||
' "' + | ||
tool.id + | ||
'" to the pdfBug parameter ' + | ||
"and refresh (separate multiple by commas)."; | ||
`${tool.name} is disabled. To enable add "${tool.id}" to ` + | ||
"the pdfBug parameter and refresh (separate multiple by commas)."; | ||
} | ||
@@ -605,0 +606,0 @@ buttons.push(panelButton); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
13962826
369
94133
97