@progress/kendo-angular-pdfviewer 16.8.0 → 16.9.0-develop.1

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-pdfviewer',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1724742168,
13
- version: '16.8.0',
12
+ publishDate: 1724748682,
13
+ version: '16.9.0-develop.1',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
15
15
  };
@@ -5,7 +5,7 @@
5
5
  import { Component, ElementRef, EventEmitter, HostBinding, Input, NgZone, Output, Renderer2, ViewChild, isDevMode } from '@angular/core';
6
6
  import { validatePackage } from '@progress/kendo-licensing';
7
7
  import { packageMetadata } from './package-metadata';
8
- import { INITIAL_ZOOM_LEVEL, zoomOptionsData } from './util';
8
+ import { INITIAL_ZOOM_LEVEL, zoomOptionsData, zoomToFitOptions } from './util';
9
9
  import { scrollToPage, Scroller, SearchService, goToNextSearchMatch, goToPreviousSearchMatch, calculateZoomLevel, removeChildren, print, loadPDF, reloadDocument, currentPage } from '@progress/kendo-pdfviewer-common';
10
10
  import { hasObservers, shouldShowValidationUI, WatermarkOverlayComponent } from '@progress/kendo-angular-common';
11
11
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
@@ -65,12 +65,6 @@ export class PDFViewerComponent {
65
65
  * @default {}
66
66
  */
67
67
  this.saveOptions = {};
68
- /**
69
- * The initial zoom level of the PDF document.
70
- *
71
- * @default 1.25
72
- */
73
- this.zoom = INITIAL_ZOOM_LEVEL;
74
68
  /**
75
69
  * Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools.
76
70
  * @default 0.25
@@ -118,7 +112,9 @@ export class PDFViewerComponent {
118
112
  this.zoomOptionsData = zoomOptionsData;
119
113
  this.zoomLevel = this.zoomOptionsData[5];
120
114
  this._pdfContext = null;
121
- this._enabedSelection = false;
115
+ this._enabledSelection = false;
116
+ this._zoom = INITIAL_ZOOM_LEVEL;
117
+ this._zoomToFit = false;
122
118
  this.subs = new Subscription();
123
119
  this.scrollListener = (e) => {
124
120
  const nextPage = currentPage(e.target.parentNode);
@@ -137,6 +133,26 @@ export class PDFViewerComponent {
137
133
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
138
134
  counter++;
139
135
  }
136
+ /**
137
+ * The initial zoom level of the PDF document.
138
+ *
139
+ * @default 1.25
140
+ */
141
+ set zoom(value) {
142
+ if (typeof value === 'number') {
143
+ this._zoom = value;
144
+ this._fitType = null;
145
+ this.setZoomLevel(value);
146
+ }
147
+ else {
148
+ this._zoom = 1;
149
+ this._fitType = zoomToFitOptions[value];
150
+ }
151
+ this._zoomToFit = typeof value !== 'number';
152
+ }
153
+ get zoom() {
154
+ return this._zoom;
155
+ }
140
156
  /**
141
157
  * Returns the current page number of the loaded PDF document.
142
158
  */
@@ -178,13 +194,13 @@ export class PDFViewerComponent {
178
194
  if (this.pdfScroller) {
179
195
  value ? this.pdfScroller.disablePanEventsTracking() : this.pdfScroller.enablePanEventsTracking();
180
196
  }
181
- this._enabedSelection = value;
197
+ this._enabledSelection = value;
182
198
  }
183
199
  /**
184
200
  * @hidden
185
201
  */
186
202
  get enabledSelection() {
187
- return this._enabedSelection;
203
+ return this._enabledSelection;
188
204
  }
189
205
  ngOnInit() {
190
206
  this.subs.add(this.localizationService.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr'));
@@ -216,9 +232,6 @@ export class PDFViewerComponent {
216
232
  if (newUrl || newArrayBuffer || newBase64Data || newTypedArray) {
217
233
  this.loadPdf(source, this[source]);
218
234
  }
219
- if (changes['zoom']) {
220
- this.setZoomLevel(changes['zoom'].currentValue);
221
- }
222
235
  }
223
236
  /**
224
237
  * Scrolls the PDFViewer document to the specified page number, treating 0 as the first page.
@@ -308,7 +321,7 @@ export class PDFViewerComponent {
308
321
  /**
309
322
  * @hidden
310
323
  */
311
- onZoomLevelChange(zoomLevel) {
324
+ onZoomLevelChange(zoomLevel, emit = true) {
312
325
  if (typeof zoomLevel === 'string') {
313
326
  const parsedValue = parseFloat(zoomLevel);
314
327
  zoomLevel = { value: Number.isNaN(parsedValue) ? 1 : parsedValue / 100 };
@@ -318,7 +331,7 @@ export class PDFViewerComponent {
318
331
  }
319
332
  let newZoom = calculateZoomLevel(zoomLevel.value, zoomLevel.type, this.pdfContext.zoom, this.pagesContainer.nativeElement);
320
333
  newZoom = Math.round(newZoom * 100) / 100;
321
- if (hasObservers(this.zoomLevelChange)) {
334
+ if (emit && hasObservers(this.zoomLevelChange)) {
322
335
  this.zoomLevelChange.emit({
323
336
  previousZoomLevel: this.zoom,
324
337
  currentZoomLevel: newZoom
@@ -399,10 +412,17 @@ export class PDFViewerComponent {
399
412
  dom: this.pagesContainer.nativeElement,
400
413
  zoom: this.pdfContext?.zoom || this.zoom,
401
414
  done: (e) => {
402
- this.ngZone.run(() => {
403
- this.loading = false;
415
+ if (!this._zoomToFit) {
416
+ this.ngZone.run(() => {
417
+ this.pdfContext = { ...e, element: this.pagesContainer.nativeElement };
418
+ this.loading = false;
419
+ });
420
+ }
421
+ else {
422
+ const zoomLevelOption = this.zoomOptionsData.find(item => item.type === this._fitType);
404
423
  this.pdfContext = { ...e, element: this.pagesContainer.nativeElement };
405
- });
424
+ this.onZoomLevelChange(zoomLevelOption, false);
425
+ }
406
426
  if (this.pdfScroller) {
407
427
  this.pdfScroller.destroy();
408
428
  }
package/esm2020/util.mjs CHANGED
@@ -70,3 +70,10 @@ export const zoomOptionsData = [{
70
70
  displayValue: '400%',
71
71
  value: 4
72
72
  }];
73
+ /**
74
+ * @hidden
75
+ */
76
+ export const zoomToFitOptions = {
77
+ 'fitToPage': 'FitToPage',
78
+ 'fitToWidth': 'FitToWidth'
79
+ };
@@ -125,8 +125,8 @@ const packageMetadata = {
125
125
  name: '@progress/kendo-angular-pdfviewer',
126
126
  productName: 'Kendo UI for Angular',
127
127
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
128
- publishDate: 1724742168,
129
- version: '16.8.0',
128
+ publishDate: 1724748682,
129
+ version: '16.9.0-develop.1',
130
130
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
131
131
  };
132
132
 
@@ -198,6 +198,13 @@ const zoomOptionsData = [{
198
198
  displayValue: '400%',
199
199
  value: 4
200
200
  }];
201
+ /**
202
+ * @hidden
203
+ */
204
+ const zoomToFitOptions = {
205
+ 'fitToPage': 'FitToPage',
206
+ 'fitToWidth': 'FitToWidth'
207
+ };
201
208
 
202
209
  /**
203
210
  * Arguments for the `download` event. The event fires when the end user clicks the Download tool.
@@ -1174,12 +1181,6 @@ class PDFViewerComponent {
1174
1181
  * @default {}
1175
1182
  */
1176
1183
  this.saveOptions = {};
1177
- /**
1178
- * The initial zoom level of the PDF document.
1179
- *
1180
- * @default 1.25
1181
- */
1182
- this.zoom = INITIAL_ZOOM_LEVEL;
1183
1184
  /**
1184
1185
  * Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools.
1185
1186
  * @default 0.25
@@ -1227,7 +1228,9 @@ class PDFViewerComponent {
1227
1228
  this.zoomOptionsData = zoomOptionsData;
1228
1229
  this.zoomLevel = this.zoomOptionsData[5];
1229
1230
  this._pdfContext = null;
1230
- this._enabedSelection = false;
1231
+ this._enabledSelection = false;
1232
+ this._zoom = INITIAL_ZOOM_LEVEL;
1233
+ this._zoomToFit = false;
1231
1234
  this.subs = new Subscription();
1232
1235
  this.scrollListener = (e) => {
1233
1236
  const nextPage = currentPage(e.target.parentNode);
@@ -1246,6 +1249,26 @@ class PDFViewerComponent {
1246
1249
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
1247
1250
  counter++;
1248
1251
  }
1252
+ /**
1253
+ * The initial zoom level of the PDF document.
1254
+ *
1255
+ * @default 1.25
1256
+ */
1257
+ set zoom(value) {
1258
+ if (typeof value === 'number') {
1259
+ this._zoom = value;
1260
+ this._fitType = null;
1261
+ this.setZoomLevel(value);
1262
+ }
1263
+ else {
1264
+ this._zoom = 1;
1265
+ this._fitType = zoomToFitOptions[value];
1266
+ }
1267
+ this._zoomToFit = typeof value !== 'number';
1268
+ }
1269
+ get zoom() {
1270
+ return this._zoom;
1271
+ }
1249
1272
  /**
1250
1273
  * Returns the current page number of the loaded PDF document.
1251
1274
  */
@@ -1290,13 +1313,13 @@ class PDFViewerComponent {
1290
1313
  if (this.pdfScroller) {
1291
1314
  value ? this.pdfScroller.disablePanEventsTracking() : this.pdfScroller.enablePanEventsTracking();
1292
1315
  }
1293
- this._enabedSelection = value;
1316
+ this._enabledSelection = value;
1294
1317
  }
1295
1318
  /**
1296
1319
  * @hidden
1297
1320
  */
1298
1321
  get enabledSelection() {
1299
- return this._enabedSelection;
1322
+ return this._enabledSelection;
1300
1323
  }
1301
1324
  ngOnInit() {
1302
1325
  this.subs.add(this.localizationService.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr'));
@@ -1328,9 +1351,6 @@ class PDFViewerComponent {
1328
1351
  if (newUrl || newArrayBuffer || newBase64Data || newTypedArray) {
1329
1352
  this.loadPdf(source, this[source]);
1330
1353
  }
1331
- if (changes['zoom']) {
1332
- this.setZoomLevel(changes['zoom'].currentValue);
1333
- }
1334
1354
  }
1335
1355
  /**
1336
1356
  * Scrolls the PDFViewer document to the specified page number, treating 0 as the first page.
@@ -1420,7 +1440,7 @@ class PDFViewerComponent {
1420
1440
  /**
1421
1441
  * @hidden
1422
1442
  */
1423
- onZoomLevelChange(zoomLevel) {
1443
+ onZoomLevelChange(zoomLevel, emit = true) {
1424
1444
  if (typeof zoomLevel === 'string') {
1425
1445
  const parsedValue = parseFloat(zoomLevel);
1426
1446
  zoomLevel = { value: Number.isNaN(parsedValue) ? 1 : parsedValue / 100 };
@@ -1430,7 +1450,7 @@ class PDFViewerComponent {
1430
1450
  }
1431
1451
  let newZoom = calculateZoomLevel(zoomLevel.value, zoomLevel.type, this.pdfContext.zoom, this.pagesContainer.nativeElement);
1432
1452
  newZoom = Math.round(newZoom * 100) / 100;
1433
- if (hasObservers(this.zoomLevelChange)) {
1453
+ if (emit && hasObservers(this.zoomLevelChange)) {
1434
1454
  this.zoomLevelChange.emit({
1435
1455
  previousZoomLevel: this.zoom,
1436
1456
  currentZoomLevel: newZoom
@@ -1512,10 +1532,17 @@ class PDFViewerComponent {
1512
1532
  dom: this.pagesContainer.nativeElement,
1513
1533
  zoom: ((_a = this.pdfContext) === null || _a === void 0 ? void 0 : _a.zoom) || this.zoom,
1514
1534
  done: (e) => {
1515
- this.ngZone.run(() => {
1516
- this.loading = false;
1535
+ if (!this._zoomToFit) {
1536
+ this.ngZone.run(() => {
1537
+ this.pdfContext = Object.assign(Object.assign({}, e), { element: this.pagesContainer.nativeElement });
1538
+ this.loading = false;
1539
+ });
1540
+ }
1541
+ else {
1542
+ const zoomLevelOption = this.zoomOptionsData.find(item => item.type === this._fitType);
1517
1543
  this.pdfContext = Object.assign(Object.assign({}, e), { element: this.pagesContainer.nativeElement });
1518
- });
1544
+ this.onZoomLevelChange(zoomLevelOption, false);
1545
+ }
1519
1546
  if (this.pdfScroller) {
1520
1547
  this.pdfScroller.destroy();
1521
1548
  }
@@ -125,8 +125,8 @@ const packageMetadata = {
125
125
  name: '@progress/kendo-angular-pdfviewer',
126
126
  productName: 'Kendo UI for Angular',
127
127
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
128
- publishDate: 1724742168,
129
- version: '16.8.0',
128
+ publishDate: 1724748682,
129
+ version: '16.9.0-develop.1',
130
130
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
131
131
  };
132
132
 
@@ -198,6 +198,13 @@ const zoomOptionsData = [{
198
198
  displayValue: '400%',
199
199
  value: 4
200
200
  }];
201
+ /**
202
+ * @hidden
203
+ */
204
+ const zoomToFitOptions = {
205
+ 'fitToPage': 'FitToPage',
206
+ 'fitToWidth': 'FitToWidth'
207
+ };
201
208
 
202
209
  /**
203
210
  * Arguments for the `download` event. The event fires when the end user clicks the Download tool.
@@ -1174,12 +1181,6 @@ class PDFViewerComponent {
1174
1181
  * @default {}
1175
1182
  */
1176
1183
  this.saveOptions = {};
1177
- /**
1178
- * The initial zoom level of the PDF document.
1179
- *
1180
- * @default 1.25
1181
- */
1182
- this.zoom = INITIAL_ZOOM_LEVEL;
1183
1184
  /**
1184
1185
  * Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools.
1185
1186
  * @default 0.25
@@ -1227,7 +1228,9 @@ class PDFViewerComponent {
1227
1228
  this.zoomOptionsData = zoomOptionsData;
1228
1229
  this.zoomLevel = this.zoomOptionsData[5];
1229
1230
  this._pdfContext = null;
1230
- this._enabedSelection = false;
1231
+ this._enabledSelection = false;
1232
+ this._zoom = INITIAL_ZOOM_LEVEL;
1233
+ this._zoomToFit = false;
1231
1234
  this.subs = new Subscription();
1232
1235
  this.scrollListener = (e) => {
1233
1236
  const nextPage = currentPage(e.target.parentNode);
@@ -1246,6 +1249,26 @@ class PDFViewerComponent {
1246
1249
  this.direction = localizationService.rtl ? 'rtl' : 'ltr';
1247
1250
  counter++;
1248
1251
  }
1252
+ /**
1253
+ * The initial zoom level of the PDF document.
1254
+ *
1255
+ * @default 1.25
1256
+ */
1257
+ set zoom(value) {
1258
+ if (typeof value === 'number') {
1259
+ this._zoom = value;
1260
+ this._fitType = null;
1261
+ this.setZoomLevel(value);
1262
+ }
1263
+ else {
1264
+ this._zoom = 1;
1265
+ this._fitType = zoomToFitOptions[value];
1266
+ }
1267
+ this._zoomToFit = typeof value !== 'number';
1268
+ }
1269
+ get zoom() {
1270
+ return this._zoom;
1271
+ }
1249
1272
  /**
1250
1273
  * Returns the current page number of the loaded PDF document.
1251
1274
  */
@@ -1287,13 +1310,13 @@ class PDFViewerComponent {
1287
1310
  if (this.pdfScroller) {
1288
1311
  value ? this.pdfScroller.disablePanEventsTracking() : this.pdfScroller.enablePanEventsTracking();
1289
1312
  }
1290
- this._enabedSelection = value;
1313
+ this._enabledSelection = value;
1291
1314
  }
1292
1315
  /**
1293
1316
  * @hidden
1294
1317
  */
1295
1318
  get enabledSelection() {
1296
- return this._enabedSelection;
1319
+ return this._enabledSelection;
1297
1320
  }
1298
1321
  ngOnInit() {
1299
1322
  this.subs.add(this.localizationService.changes.subscribe(({ rtl }) => this.direction = rtl ? 'rtl' : 'ltr'));
@@ -1325,9 +1348,6 @@ class PDFViewerComponent {
1325
1348
  if (newUrl || newArrayBuffer || newBase64Data || newTypedArray) {
1326
1349
  this.loadPdf(source, this[source]);
1327
1350
  }
1328
- if (changes['zoom']) {
1329
- this.setZoomLevel(changes['zoom'].currentValue);
1330
- }
1331
1351
  }
1332
1352
  /**
1333
1353
  * Scrolls the PDFViewer document to the specified page number, treating 0 as the first page.
@@ -1417,7 +1437,7 @@ class PDFViewerComponent {
1417
1437
  /**
1418
1438
  * @hidden
1419
1439
  */
1420
- onZoomLevelChange(zoomLevel) {
1440
+ onZoomLevelChange(zoomLevel, emit = true) {
1421
1441
  if (typeof zoomLevel === 'string') {
1422
1442
  const parsedValue = parseFloat(zoomLevel);
1423
1443
  zoomLevel = { value: Number.isNaN(parsedValue) ? 1 : parsedValue / 100 };
@@ -1427,7 +1447,7 @@ class PDFViewerComponent {
1427
1447
  }
1428
1448
  let newZoom = calculateZoomLevel(zoomLevel.value, zoomLevel.type, this.pdfContext.zoom, this.pagesContainer.nativeElement);
1429
1449
  newZoom = Math.round(newZoom * 100) / 100;
1430
- if (hasObservers(this.zoomLevelChange)) {
1450
+ if (emit && hasObservers(this.zoomLevelChange)) {
1431
1451
  this.zoomLevelChange.emit({
1432
1452
  previousZoomLevel: this.zoom,
1433
1453
  currentZoomLevel: newZoom
@@ -1508,10 +1528,17 @@ class PDFViewerComponent {
1508
1528
  dom: this.pagesContainer.nativeElement,
1509
1529
  zoom: this.pdfContext?.zoom || this.zoom,
1510
1530
  done: (e) => {
1511
- this.ngZone.run(() => {
1512
- this.loading = false;
1531
+ if (!this._zoomToFit) {
1532
+ this.ngZone.run(() => {
1533
+ this.pdfContext = { ...e, element: this.pagesContainer.nativeElement };
1534
+ this.loading = false;
1535
+ });
1536
+ }
1537
+ else {
1538
+ const zoomLevelOption = this.zoomOptionsData.find(item => item.type === this._fitType);
1513
1539
  this.pdfContext = { ...e, element: this.pagesContainer.nativeElement };
1514
- });
1540
+ this.onZoomLevelChange(zoomLevelOption, false);
1541
+ }
1515
1542
  if (this.pdfScroller) {
1516
1543
  this.pdfScroller.destroy();
1517
1544
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-pdfviewer",
3
- "version": "16.8.0",
3
+ "version": "16.9.0-develop.1",
4
4
  "description": "Kendo UI PDFViewer for Angular",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -23,21 +23,21 @@
23
23
  "@angular/core": "15 - 18",
24
24
  "@angular/platform-browser": "15 - 18",
25
25
  "@progress/kendo-licensing": "^1.0.2",
26
- "@progress/kendo-angular-buttons": "16.8.0",
27
- "@progress/kendo-angular-common": "16.8.0",
28
- "@progress/kendo-angular-dropdowns": "16.8.0",
29
- "@progress/kendo-angular-inputs": "16.8.0",
30
- "@progress/kendo-angular-intl": "16.8.0",
31
- "@progress/kendo-angular-l10n": "16.8.0",
32
- "@progress/kendo-angular-icons": "16.8.0",
33
- "@progress/kendo-angular-indicators": "16.8.0",
34
- "@progress/kendo-angular-pager": "16.8.0",
35
- "@progress/kendo-angular-popup": "16.8.0",
26
+ "@progress/kendo-angular-buttons": "16.9.0-develop.1",
27
+ "@progress/kendo-angular-common": "16.9.0-develop.1",
28
+ "@progress/kendo-angular-dropdowns": "16.9.0-develop.1",
29
+ "@progress/kendo-angular-inputs": "16.9.0-develop.1",
30
+ "@progress/kendo-angular-intl": "16.9.0-develop.1",
31
+ "@progress/kendo-angular-l10n": "16.9.0-develop.1",
32
+ "@progress/kendo-angular-icons": "16.9.0-develop.1",
33
+ "@progress/kendo-angular-indicators": "16.9.0-develop.1",
34
+ "@progress/kendo-angular-pager": "16.9.0-develop.1",
35
+ "@progress/kendo-angular-popup": "16.9.0-develop.1",
36
36
  "rxjs": "^6.5.3 || ^7.0.0"
37
37
  },
38
38
  "dependencies": {
39
39
  "tslib": "^2.3.1",
40
- "@progress/kendo-angular-schematics": "16.8.0",
40
+ "@progress/kendo-angular-schematics": "16.9.0-develop.1",
41
41
  "@progress/kendo-file-saver": "^1.0.1",
42
42
  "@progress/kendo-pdfviewer-common": "0.2.10"
43
43
  },
@@ -65,7 +65,8 @@ export declare class PDFViewerComponent implements OnInit, AfterViewInit, OnDest
65
65
  *
66
66
  * @default 1.25
67
67
  */
68
- zoom: number;
68
+ set zoom(value: number | 'fitToPage' | 'fitToWidth');
69
+ get zoom(): number;
69
70
  /**
70
71
  * Represents the step the zoom level will be changed with when using the ZoomIn and ZoomOut tools.
71
72
  * @default 0.25
@@ -152,7 +153,10 @@ export declare class PDFViewerComponent implements OnInit, AfterViewInit, OnDest
152
153
  })[];
153
154
  zoomLevel: ZoomLevel;
154
155
  private _pdfContext;
155
- private _enabedSelection;
156
+ private _enabledSelection;
157
+ private _zoom;
158
+ private _fitType;
159
+ private _zoomToFit;
156
160
  private pdfScroller;
157
161
  private searchService;
158
162
  private subs;
@@ -192,7 +196,7 @@ export declare class PDFViewerComponent implements OnInit, AfterViewInit, OnDest
192
196
  /**
193
197
  * @hidden
194
198
  */
195
- onZoomLevelChange(zoomLevel: ZoomLevel | string): void;
199
+ onZoomLevelChange(zoomLevel: ZoomLevel | string, emit?: boolean): void;
196
200
  /**
197
201
  * @hidden
198
202
  */
@@ -4,8 +4,8 @@ const schematics_1 = require("@angular-devkit/schematics");
4
4
  function default_1(options) {
5
5
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'PDFViewerModule', package: 'pdfviewer', peerDependencies: {
6
6
  // peers of the dropdowns
7
- '@progress/kendo-angular-navigation': '16.8.0',
8
- '@progress/kendo-angular-treeview': '16.8.0'
7
+ '@progress/kendo-angular-navigation': '16.9.0-develop.1',
8
+ '@progress/kendo-angular-treeview': '16.9.0-develop.1'
9
9
  } });
10
10
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
11
11
  }
package/util.d.ts CHANGED
@@ -30,3 +30,10 @@ export declare const zoomOptionsData: ({
30
30
  value: number;
31
31
  type?: undefined;
32
32
  })[];
33
+ /**
34
+ * @hidden
35
+ */
36
+ export declare const zoomToFitOptions: {
37
+ fitToPage: string;
38
+ fitToWidth: string;
39
+ };