@solidpepper/solidpepper-solidreviewer 0.0.1 → 0.0.3
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/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, EventEmitter, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as _solidpepper_solidpepper_icons from '@solidpepper/solidpepper-icons';
|
|
3
4
|
import { HttpClient } from '@angular/common/http';
|
|
4
5
|
import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
5
6
|
import { Observable } from 'rxjs';
|
|
@@ -35,6 +36,7 @@ declare class SvgCacheService {
|
|
|
35
36
|
declare class TranslationService {
|
|
36
37
|
translate?: TranslateService | undefined;
|
|
37
38
|
private defaultLanguage;
|
|
39
|
+
private dictionaries;
|
|
38
40
|
private availablelangs;
|
|
39
41
|
constructor(translate?: TranslateService | undefined);
|
|
40
42
|
setDefaultLang(lang: string): void;
|
|
@@ -68,6 +70,9 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
68
70
|
private commentService;
|
|
69
71
|
private settingsService;
|
|
70
72
|
private translationService;
|
|
73
|
+
readonly spIconUser: _solidpepper_solidpepper_icons.SpIcon;
|
|
74
|
+
readonly spIconLock: _solidpepper_solidpepper_icons.SpIcon;
|
|
75
|
+
readonly spIconLogOut: _solidpepper_solidpepper_icons.SpIcon;
|
|
71
76
|
guid?: string;
|
|
72
77
|
token?: string;
|
|
73
78
|
apiUrl: string;
|
|
@@ -90,6 +95,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
90
95
|
pages: _angular_core.WritableSignal<ReviewerPage[]>;
|
|
91
96
|
loadedSvgContents: Record<string, SafeHtml>;
|
|
92
97
|
visiblePages: Set<string>;
|
|
98
|
+
private injectedFontNames;
|
|
93
99
|
private invisibleLoadedQueue;
|
|
94
100
|
private maxLoadedPagesLimit;
|
|
95
101
|
private isProgrammaticScrolling;
|
|
@@ -163,6 +169,13 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
163
169
|
loadPagesAroundActive(): void;
|
|
164
170
|
private checkAndUnloadExcessPages;
|
|
165
171
|
onPageVisible(pageGuid: string, isVisible: boolean, page: ReviewerPage): void;
|
|
172
|
+
/**
|
|
173
|
+
* Extracts Google Fonts @import, custom @font-face, and declared font-family rules
|
|
174
|
+
* directly from the SVG markup and injects them into document.head so the browser
|
|
175
|
+
* renders all document letters with the exact typography from SolidDesigner.
|
|
176
|
+
*/
|
|
177
|
+
private extractAndInjectSvgFonts;
|
|
178
|
+
private hashCode;
|
|
166
179
|
getPageIndex(guid: string): number;
|
|
167
180
|
get activePageNumber(): number;
|
|
168
181
|
prevPage(): void;
|
|
@@ -178,6 +191,15 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
178
191
|
* Applies the zoom level based on the selected fitMode and container dimensions.
|
|
179
192
|
*/
|
|
180
193
|
applyFitZoom(): void;
|
|
194
|
+
/**
|
|
195
|
+
* Automatically calculates and sets the optimal zoom level so that
|
|
196
|
+
* a two-page spread fits cleanly within the available viewport (both width and height).
|
|
197
|
+
*/
|
|
198
|
+
fitSpread(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Adjusts zoom when returning to single-page mode so the page fits comfortably.
|
|
201
|
+
*/
|
|
202
|
+
fitSinglePage(): void;
|
|
181
203
|
setLayoutMode(mode: 'single' | 'double' | 'double-cover'): void;
|
|
182
204
|
toggleScroll(): void;
|
|
183
205
|
toggleReading(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidpepper/solidpepper-solidreviewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.3.12",
|
|
6
6
|
"@angular/core": "^20.3.12",
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"@angular/elements": "^20.3.12",
|
|
9
9
|
"@angular/router": "^20.3.12",
|
|
10
10
|
"@ngx-translate/core": "^17.0.0",
|
|
11
|
+
"@solidpepper/solidpepper-component": ">=0.0.1",
|
|
12
|
+
"@solidpepper/solidpepper-icons": ">=0.0.1",
|
|
11
13
|
"rxjs": "^7.8.0"
|
|
12
14
|
},
|
|
13
15
|
"dependencies": {
|