@solidpepper/solidpepper-solidreviewer 0.0.2 → 0.0.4
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';
|
|
@@ -69,12 +70,16 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
69
70
|
private commentService;
|
|
70
71
|
private settingsService;
|
|
71
72
|
private translationService;
|
|
73
|
+
readonly spIconUser: _solidpepper_solidpepper_icons.SpIcon;
|
|
74
|
+
readonly spIconLock: _solidpepper_solidpepper_icons.SpIcon;
|
|
75
|
+
readonly spIconLogOut: _solidpepper_solidpepper_icons.SpIcon;
|
|
72
76
|
guid?: string;
|
|
73
77
|
token?: string;
|
|
74
78
|
apiUrl: string;
|
|
75
79
|
language: string;
|
|
76
80
|
companyAlias?: string;
|
|
77
81
|
disableAuthPrompt: boolean;
|
|
82
|
+
theme: string;
|
|
78
83
|
logout: EventEmitter<void>;
|
|
79
84
|
private loggedOutToken?;
|
|
80
85
|
private originalInputToken?;
|
|
@@ -91,6 +96,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
91
96
|
pages: _angular_core.WritableSignal<ReviewerPage[]>;
|
|
92
97
|
loadedSvgContents: Record<string, SafeHtml>;
|
|
93
98
|
visiblePages: Set<string>;
|
|
99
|
+
private injectedFontNames;
|
|
94
100
|
private invisibleLoadedQueue;
|
|
95
101
|
private maxLoadedPagesLimit;
|
|
96
102
|
private isProgrammaticScrolling;
|
|
@@ -106,7 +112,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
106
112
|
sidebarOpen: _angular_core.WritableSignal<boolean>;
|
|
107
113
|
commentsSidebarOpen: _angular_core.WritableSignal<boolean>;
|
|
108
114
|
commentModeActive: _angular_core.WritableSignal<boolean>;
|
|
109
|
-
activeTool: _angular_core.WritableSignal<"point" | "drawing" | "shape-rect" | "shape-line" | "highlight"
|
|
115
|
+
activeTool: _angular_core.WritableSignal<"text" | "point" | "drawing" | "shape-rect" | "shape-line" | "highlight">;
|
|
110
116
|
selectedColor: _angular_core.WritableSignal<string>;
|
|
111
117
|
availableColors: string[];
|
|
112
118
|
isDrawing: boolean;
|
|
@@ -164,6 +170,13 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
164
170
|
loadPagesAroundActive(): void;
|
|
165
171
|
private checkAndUnloadExcessPages;
|
|
166
172
|
onPageVisible(pageGuid: string, isVisible: boolean, page: ReviewerPage): void;
|
|
173
|
+
/**
|
|
174
|
+
* Extracts Google Fonts @import, custom @font-face, and declared font-family rules
|
|
175
|
+
* directly from the SVG markup and injects them into document.head so the browser
|
|
176
|
+
* renders all document letters with the exact typography from SolidDesigner.
|
|
177
|
+
*/
|
|
178
|
+
private extractAndInjectSvgFonts;
|
|
179
|
+
private hashCode;
|
|
167
180
|
getPageIndex(guid: string): number;
|
|
168
181
|
get activePageNumber(): number;
|
|
169
182
|
prevPage(): void;
|
|
@@ -179,6 +192,15 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
179
192
|
* Applies the zoom level based on the selected fitMode and container dimensions.
|
|
180
193
|
*/
|
|
181
194
|
applyFitZoom(): void;
|
|
195
|
+
/**
|
|
196
|
+
* Automatically calculates and sets the optimal zoom level so that
|
|
197
|
+
* a two-page spread fits cleanly within the available viewport (both width and height).
|
|
198
|
+
*/
|
|
199
|
+
fitSpread(): void;
|
|
200
|
+
/**
|
|
201
|
+
* Adjusts zoom when returning to single-page mode so the page fits comfortably.
|
|
202
|
+
*/
|
|
203
|
+
fitSinglePage(): void;
|
|
182
204
|
setLayoutMode(mode: 'single' | 'double' | 'double-cover'): void;
|
|
183
205
|
toggleScroll(): void;
|
|
184
206
|
toggleReading(): void;
|
|
@@ -215,7 +237,7 @@ declare class AppComponent implements OnInit, OnChanges {
|
|
|
215
237
|
text: string;
|
|
216
238
|
}): void;
|
|
217
239
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppComponent, never>;
|
|
218
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppComponent, "solid-reviewer, solidpepper-solidreviewer", never, { "guid": { "alias": "guid"; "required": false; }; "token": { "alias": "token"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "companyAlias": { "alias": "companyAlias"; "required": false; }; "disableAuthPrompt": { "alias": "disableAuthPrompt"; "required": false; }; }, { "logout": "logout"; }, never, never, true, never>;
|
|
240
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppComponent, "solid-reviewer, solidpepper-solidreviewer", never, { "guid": { "alias": "guid"; "required": false; }; "token": { "alias": "token"; "required": false; }; "apiUrl": { "alias": "apiUrl"; "required": false; }; "language": { "alias": "language"; "required": false; }; "companyAlias": { "alias": "companyAlias"; "required": false; }; "disableAuthPrompt": { "alias": "disableAuthPrompt"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "logout": "logout"; }, never, never, true, never>;
|
|
219
241
|
}
|
|
220
242
|
|
|
221
243
|
export { AppComponent as SolidReviewerComponent, SvgCacheService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidpepper/solidpepper-solidreviewer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
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": {
|