@pdftron/webviewer 11.6.0-20250606 → 11.6.0-20250607
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/package.json +1 -1
- package/public/core/19.chunk.js +7 -7
- package/public/core/20.chunk.js +1 -1
- package/public/core/21.chunk.js +1 -1
- package/public/core/22.chunk.js +7 -7
- package/public/core/AndroidContentPartRetriever.chunk.js +2 -2
- package/public/core/ArrayBufferPdfPartRetriever.chunk.js +1 -1
- package/public/core/AzurePartRetriever.chunk.js +1 -1
- package/public/core/ExternalAnnotationMerger.chunk.js +14 -14
- package/public/core/ExternalPdfPartRetriever.chunk.js +6 -6
- package/public/core/HttpPartRetriever.chunk.js +13 -13
- package/public/core/IOSPartRetriever.chunk.js +2 -2
- package/public/core/LocalPartRetriever.chunk.js +4 -4
- package/public/core/LocalPdfPartRetriever.chunk.js +3 -3
- package/public/core/PDFInfoVersion1.chunk.js +15 -15
- package/public/core/SelectionInfoOld.chunk.js +14 -14
- package/public/core/StreamingPartRetriever.chunk.js +9 -9
- package/public/core/WebDBPartRetriever.chunk.js +1 -1
- package/public/core/WebViewerServerPartRetriever.chunk.js +43 -43
- package/public/core/WinRTPartRetriever.chunk.js +2 -2
- package/public/core/pikaday.chunk.js +21 -21
- package/public/core/vendors.ascii85.chunk.js +6 -6
- package/public/core/vendors.pako.chunk.js +81 -81
- package/public/core/webviewer-core.min.js +4226 -4223
- package/public/ui/webviewer-ui.min.js +1 -1
- package/public/ui/webviewer-ui.min.js.map +1 -1
- package/types.d.ts +65 -0
package/types.d.ts
CHANGED
|
@@ -35579,6 +35579,71 @@ export declare namespace Core {
|
|
|
35579
35579
|
*/
|
|
35580
35580
|
name: string;
|
|
35581
35581
|
}
|
|
35582
|
+
/**
|
|
35583
|
+
* Facilitates standard clipboard operations such as copy, cut, and paste, while preserving cell data, formatting, and styling.
|
|
35584
|
+
* @example
|
|
35585
|
+
* WebViewerConstructor({
|
|
35586
|
+
* initialMode: WebViewer.Modes.SPREADSHEET_EDITOR, // ensure WebViewer starting in spreadsheet editor
|
|
35587
|
+
* ...
|
|
35588
|
+
* }, ...)
|
|
35589
|
+
* .then((instance) => {
|
|
35590
|
+
* const { documentViewer, SpreadsheetEditor } = instance.Core;
|
|
35591
|
+
* const spreadsheetEditorManager = documentViewer.getSpreadsheetEditorManager();
|
|
35592
|
+
* spreadsheetEditorManager.addEventListener(SpreadsheetEditor.SpreadsheetEditorManager.Events.SPREADSHEET_EDITOR_READY, () => {
|
|
35593
|
+
* const spreadsheetEditorDocument = instance.Core.documentViewer.getDocument().getSpreadsheetEditorDocument();
|
|
35594
|
+
* const spreadsheetEditorClipboard = spreadsheetEditorDocument.getClipboard();
|
|
35595
|
+
* });
|
|
35596
|
+
* });
|
|
35597
|
+
*/
|
|
35598
|
+
class SpreadsheetEditorClipboard {
|
|
35599
|
+
/**
|
|
35600
|
+
* Checks if the copy to clipboard operation can be performed.
|
|
35601
|
+
* @example
|
|
35602
|
+
* const spreadsheetEditorClipboard = spreadsheetEditorDocument.getClipboard();
|
|
35603
|
+
* const canCopy = spreadsheetEditorClipboard.canCopy();
|
|
35604
|
+
* if (canCopy) {
|
|
35605
|
+
* ... // Perform copy operation
|
|
35606
|
+
* }
|
|
35607
|
+
* @returns Returns true if the copy to clipboard can be performed; otherwise, false.
|
|
35608
|
+
*/
|
|
35609
|
+
canCopy(): boolean;
|
|
35610
|
+
/**
|
|
35611
|
+
* Checks if the clipboard contains data that can be pasted.
|
|
35612
|
+
* @example
|
|
35613
|
+
* const spreadsheetEditorClipboard = spreadsheetEditorDocument.getClipboard();
|
|
35614
|
+
* const canPaste = spreadsheetEditorClipboard.canPaste();
|
|
35615
|
+
* if (canPaste) {
|
|
35616
|
+
* ... // Perform paste operation
|
|
35617
|
+
* }
|
|
35618
|
+
* @returns Returns true if the paste operation can be performed; otherwise, false.
|
|
35619
|
+
*/
|
|
35620
|
+
canPaste(): boolean;
|
|
35621
|
+
/**
|
|
35622
|
+
* Copies the currently selected content to the clipboard.
|
|
35623
|
+
* @example
|
|
35624
|
+
* const spreadsheetEditorClipboard = spreadsheetEditorDocument.getClipboard();
|
|
35625
|
+
* if (spreadsheetEditorClipboard.canCopy()) {
|
|
35626
|
+
* spreadsheetEditorClipboard.copy();
|
|
35627
|
+
* }
|
|
35628
|
+
*/
|
|
35629
|
+
copy(): void;
|
|
35630
|
+
/**
|
|
35631
|
+
* Pastes content from the clipboard.
|
|
35632
|
+
* @example
|
|
35633
|
+
* const spreadsheetEditorClipboard = spreadsheetEditorDocument.getClipboard();
|
|
35634
|
+
* if (spreadsheetEditorClipboard.canPaste()) {
|
|
35635
|
+
* spreadsheetEditorClipboard.paste();
|
|
35636
|
+
* }
|
|
35637
|
+
*/
|
|
35638
|
+
paste(): void;
|
|
35639
|
+
/**
|
|
35640
|
+
* Cuts the currently selected content from the SheetEditor and placing it on the clipboard.
|
|
35641
|
+
* @example
|
|
35642
|
+
* const spreadsheetEditorClipboard = spreadsheetEditorDocument.getClipboard();
|
|
35643
|
+
* spreadsheetEditorClipboard.cut();
|
|
35644
|
+
*/
|
|
35645
|
+
cut(): void;
|
|
35646
|
+
}
|
|
35582
35647
|
/**
|
|
35583
35648
|
* A manager class that controls spreadsheet editing.
|
|
35584
35649
|
*/
|