@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/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
  */