@docmentis/udoc-viewer 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API-COMPARISON.md +14 -14
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/worker/worker-source.js +1 -1
- package/package.json +3 -3
package/API-COMPARISON.md
CHANGED
|
@@ -158,16 +158,16 @@ status takes more than a few words, a note under the table says the rest.
|
|
|
158
158
|
|
|
159
159
|
### Reads
|
|
160
160
|
|
|
161
|
-
| Legacy | New | Status
|
|
162
|
-
| ------------------------------------ | ---------------------------- |
|
|
163
|
-
| `getOutline()` | — | dropped
|
|
164
|
-
| `getFontUsage()` | — | dropped
|
|
165
|
-
| `getPageInfo(page)` | — | dropped
|
|
166
|
-
| `getLayoutPage(page)` | — | dropped
|
|
167
|
-
| `getPageText(page)` | — | dropped
|
|
168
|
-
| `renderPage(page, options?)` | `renderPage(page, options?)` | different shape:
|
|
169
|
-
| `renderThumbnail(page, options?)` | — | dropped
|
|
170
|
-
| `renderRegion(page, rect, options?)` | — | dropped
|
|
161
|
+
| Legacy | New | Status |
|
|
162
|
+
| ------------------------------------ | ---------------------------- | --------------------------------- |
|
|
163
|
+
| `getOutline()` | — | dropped |
|
|
164
|
+
| `getFontUsage()` | — | dropped |
|
|
165
|
+
| `getPageInfo(page)` | — | dropped |
|
|
166
|
+
| `getLayoutPage(page)` | — | dropped |
|
|
167
|
+
| `getPageText(page)` | — | dropped |
|
|
168
|
+
| `renderPage(page, options?)` | `renderPage(page, options?)` | different shape: an `ImageBitmap` |
|
|
169
|
+
| `renderThumbnail(page, options?)` | — | dropped |
|
|
170
|
+
| `renderRegion(page, rect, options?)` | — | dropped |
|
|
171
171
|
|
|
172
172
|
- `renderPage` — `options` holds only `scale`, default `1` (72 DPI); the image
|
|
173
173
|
is always an `ImageBitmap`, where legacy also gave `ImageData`, a `Blob` or a
|
|
@@ -217,8 +217,8 @@ none, the permit grants
|
|
|
217
217
|
|
|
218
218
|
| Legacy | New | Status |
|
|
219
219
|
| ---------------------------------------- | ---------------------------------------- | ------------------------------------------------------ |
|
|
220
|
-
| `get currentPage` | `currentPage` |
|
|
221
|
-
| `goToPage(page)` | `goToPage(page)` |
|
|
220
|
+
| `get currentPage` | `currentPage` | different shape: a 0-based index |
|
|
221
|
+
| `goToPage(page)` | `goToPage(page)` | different shape: a 0-based index |
|
|
222
222
|
| `goToDestination(destination, options?)` | `goToDestination(destination, options?)` | different shape: the engine's `Destination`; a promise |
|
|
223
223
|
| `nextPage()` | `goToNextPage()` | different shape: renamed; a spread in spread scrolling |
|
|
224
224
|
| `previousPage()` | `goToPrevPage()` | different shape: renamed; a spread in spread scrolling |
|
|
@@ -320,7 +320,7 @@ none, the permit grants
|
|
|
320
320
|
| `download` | `document:downloaded` | renamed |
|
|
321
321
|
| `print` | `document:printed` | renamed |
|
|
322
322
|
| `error` | `open` rejecting | different shape: with the `UDocError` |
|
|
323
|
-
| `page:change` | `currentPage:changed` | renamed
|
|
323
|
+
| `page:change` | `currentPage:changed` | renamed: its pages are 0-based indices |
|
|
324
324
|
| `viewport:change` | `viewport:changed` | renamed |
|
|
325
325
|
| `panel:change` | `panel:changed` | renamed |
|
|
326
326
|
| `ui:visibilityChange` | — | dropped |
|
|
@@ -391,7 +391,7 @@ none, the permit grants
|
|
|
391
391
|
- `SpacingMode` — `PageGap` holds the gaps' sizes, not which gaps show.
|
|
392
392
|
- `SearchMatch` — `page`, `plane`, page-local `quads` and `context`; `location`
|
|
393
393
|
in place of `charOffset`.
|
|
394
|
-
- `PrintPageRange` — `PrintOptions` lists the pages,
|
|
394
|
+
- `PrintPageRange` — `PrintOptions` lists the pages, as 0-based indices.
|
|
395
395
|
- `FontEntry` — its `typeface`, `bold` and `italic` are a `UrlFont`'s
|
|
396
396
|
`descriptor`, a `FontDescriptor` of `family`, `bold` and `italic`; `url` is
|
|
397
397
|
the same, and an optional `scripts` narrows which text asks for it.
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const WRAPPER_VERSION = "0.8.
|
|
1
|
+
export declare const WRAPPER_VERSION = "0.8.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
// This package's version, reported to the engine as the wrapper version so a
|
|
4
4
|
// permit request and a usage event can name what produced them. Generated from
|
|
5
5
|
// package.json, which is the one place a release bumps.
|
|
6
|
-
export const WRAPPER_VERSION = "0.8.
|
|
6
|
+
export const WRAPPER_VERSION = "0.8.2";
|
|
7
7
|
//# sourceMappingURL=version.js.map
|