@nutrient-sdk/viewer 1.9.1 → 1.10.0-nightly.20251119
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/dist/index.d.ts +424 -59
- package/dist/nutrient-viewer-lib/{chunk-848-466538a4d8beb915.js → chunk-848-6743c6c553676648.js} +1 -1
- package/dist/nutrient-viewer-lib/chunk-core-worker-5ddaded5cecb8e55.js +13 -0
- package/dist/nutrient-viewer-lib/{chunk-gdpicture-65b954bda5f721db.js → chunk-gdpicture-89e1be876edb3cbc.js} +1 -1
- package/dist/nutrient-viewer-lib/chunk-gdpicture-worker-23da641062b18a34.js +13 -0
- package/dist/nutrient-viewer-lib/{chunk-lazy-sha-8968ad74ed2275d9.js → chunk-lazy-sha-8eec681bee9b6135.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ar-4e5b026c2ef56c97.js → chunk-locale-ar-f938a3077dd46db8.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-locale-cs-784b99838935d180.js → chunk-locale-cs-acdf522ee50d2cdd.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-cy-4a4bc419032f584b.js → chunk-locale-cy-b996d203feff0e8f.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-da-9052e2ed6642cdc4.js → chunk-locale-da-c9f2364cb1be8ff4.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-de-3e0d33ad180e115e.js → chunk-locale-de-5cd38ebc084c9526.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-el-257a31115fc177e9.js → chunk-locale-el-e3fbff3dc9c06141.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-en-GB-1813e489b40fcb97.js → chunk-locale-en-GB-6e9ab711095d4943.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-es-b30627ad30cd480b.js → chunk-locale-es-40d9b9360f2b2788.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fi-f7ce75112b81c154.js → chunk-locale-fi-4356676d2464e72c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-26782ede32f5f50a.js → chunk-locale-fr-07ff00da08aa610e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-fr-CA-170470eb52cfbb0b.js → chunk-locale-fr-CA-7886225ae07beb9e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-he-f76ee5694af38976.js → chunk-locale-he-0fb493b175ec62a2.js} +2 -2
- package/dist/nutrient-viewer-lib/{chunk-locale-hr-73adb5c3784ba506.js → chunk-locale-hr-c3ed1ebbb9767974.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-id-fb19d7733092d474.js → chunk-locale-id-9710924a954008bd.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-it-d0fecebdae91df72.js → chunk-locale-it-3b12621448371ecb.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ja-efc2064841f4c9b6.js → chunk-locale-ja-ea053eb9183585ea.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ko-768782cf4dd5f873.js → chunk-locale-ko-3ab3e85823112e68.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ms-f63ea99463de04e0.js → chunk-locale-ms-d5cab188363823b1.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nb-NO-bc36232790713a86.js → chunk-locale-nb-NO-89f6486ac00a302c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-nl-94290c5929a7894b.js → chunk-locale-nl-d7bf80a93245069e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pl-7e23199cef2ec6c1.js → chunk-locale-pl-e410a0841014c104.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-316a9908561ee8e6.js → chunk-locale-pt-3c841b17660146ad.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-pt-PT-6c33e1ef2ff71f31.js → chunk-locale-pt-PT-2edfe345df049de6.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-ru-f7156e9fc3a0932f.js → chunk-locale-ru-bfa148d85fe524b8.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sk-f6c5786811443d3b.js → chunk-locale-sk-06a23f42d633d425.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sl-10ac4f3a9b0af246.js → chunk-locale-sl-b057e63ae0c84052.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-sv-6ca662c34a9114e2.js → chunk-locale-sv-6c55ee3bf57dba81.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-th-8e12d003832ab8a3.js → chunk-locale-th-0c1569552781c445.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-tr-b05168693d7efa4c.js → chunk-locale-tr-0d5c86df7f7e312e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-uk-e2b529a20d598c24.js → chunk-locale-uk-d95103be848ebd0c.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hans-c2ad6b43dde3d87e.js → chunk-locale-zh-Hans-c6fee4bce5c24ba3.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-locale-zh-Hant-565e528117766327.js → chunk-locale-zh-Hant-87a0fa9c203fc904.js} +1 -1
- package/dist/nutrient-viewer-lib/chunk-offscreen-renderer-worker-1a9ad6a7f8c81a9e.js +13 -0
- package/dist/nutrient-viewer-lib/chunk-server-d85bcc0a84628dd4.js +13 -0
- package/dist/nutrient-viewer-lib/{chunk-server-instant-6b61bbeaab38a7b0.js → chunk-server-instant-edff940adbaa6c8e.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-server-rest-135b79aa3424d40c.js → chunk-server-rest-33de4797e8d3c7db.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-standalone-2e2287ca3a33628f.js → chunk-standalone-86a18166bdfddad6.js} +1 -1
- package/dist/nutrient-viewer-lib/{chunk-standalone-server-3d61433656478386.js → chunk-standalone-server-915e38540a585049.js} +1 -1
- package/dist/nutrient-viewer-lib/core-worker.js +2 -2
- package/dist/nutrient-viewer-lib/dark-402cc98d3d69bff8.css +1 -1
- package/dist/nutrient-viewer-lib/gdpicture-worker.js +1 -1
- package/dist/nutrient-viewer-lib/{nutrient-viewer-1.9.1.css → nutrient-viewer-1.10.0-4857393.css} +16 -9
- package/dist/nutrient-viewer-lib/nutrient-viewer-9303291e7f6b26aa.wasm.js +13 -0
- package/dist/nutrient-viewer-lib/{nutrient-viewer-e093bb5046a71dca.wasm → nutrient-viewer-a50830153c31e08f.wasm} +0 -0
- package/dist/nutrient-viewer-lib/offscreen-render-worker.js +1 -1
- package/dist/nutrient-viewer.js +2 -2
- package/package.json +1 -1
- package/dist/nutrient-viewer-lib/chunk-core-worker-08a194e4ba09b7dd.js +0 -13
- package/dist/nutrient-viewer-lib/chunk-gdpicture-worker-2b706a5d2752f97f.js +0 -13
- package/dist/nutrient-viewer-lib/chunk-offscreen-renderer-worker-864d6670613d03aa.js +0 -13
- package/dist/nutrient-viewer-lib/chunk-server-d5d6398248c5c2eb.js +0 -13
- package/dist/nutrient-viewer-lib/nutrient-viewer-c80b83693128d5ab.wasm.js +0 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* This class should be used to create custom Immutable Record. It will overwrite the default
|
|
5
3
|
* `Immutable#equals()` method to include the class name. if we don't do this, two different classes
|
|
@@ -384,7 +382,7 @@ declare const allowedTextComparisonInnerToolbarItem: string[];
|
|
|
384
382
|
|
|
385
383
|
declare const allowedTextComparisonToolbarItem: string[];
|
|
386
384
|
|
|
387
|
-
declare const allowedToolbarTypes: (
|
|
385
|
+
declare const allowedToolbarTypes: ((typeof extraToolbarTypes)[number] | (typeof defaultToolbarTypes)[number])[];
|
|
388
386
|
|
|
389
387
|
/**
|
|
390
388
|
* @class
|
|
@@ -596,6 +594,34 @@ export declare class Annotation<T extends AnnotationProperties = AnnotationPrope
|
|
|
596
594
|
constructor(options?: Partial<T>);
|
|
597
595
|
}
|
|
598
596
|
|
|
597
|
+
declare namespace Annotation_2 {
|
|
598
|
+
export {
|
|
599
|
+
Annotation,
|
|
600
|
+
HighlightAnnotation,
|
|
601
|
+
ImageAnnotation,
|
|
602
|
+
InkAnnotation,
|
|
603
|
+
ShapeAnnotation,
|
|
604
|
+
LineAnnotation,
|
|
605
|
+
RectangleAnnotation,
|
|
606
|
+
EllipseAnnotation,
|
|
607
|
+
PolygonAnnotation,
|
|
608
|
+
PolylineAnnotation,
|
|
609
|
+
LinkAnnotation,
|
|
610
|
+
NoteAnnotation,
|
|
611
|
+
SquiggleAnnotation,
|
|
612
|
+
StampAnnotation,
|
|
613
|
+
StrikeOutAnnotation,
|
|
614
|
+
TextAnnotation,
|
|
615
|
+
TextMarkupAnnotation,
|
|
616
|
+
UnderlineAnnotation,
|
|
617
|
+
UnknownAnnotation,
|
|
618
|
+
WidgetAnnotation,
|
|
619
|
+
CommentMarkerAnnotation,
|
|
620
|
+
RedactionAnnotation,
|
|
621
|
+
MediaAnnotation };
|
|
622
|
+
|
|
623
|
+
}
|
|
624
|
+
|
|
599
625
|
/** @inline */
|
|
600
626
|
declare type AnnotationAdditionalActionsType = {
|
|
601
627
|
onPointerEnter?: Action;
|
|
@@ -1013,7 +1039,7 @@ declare function AnnotationSelectionMixin<T extends Class<BaseMixin>>(Base: T):
|
|
|
1013
1039
|
*/
|
|
1014
1040
|
getAnnotationsGroups(): Map_2<string, {
|
|
1015
1041
|
groupKey: string;
|
|
1016
|
-
annotationsIds: Set_2<
|
|
1042
|
+
annotationsIds: Set_2<ID>;
|
|
1017
1043
|
}> | null;
|
|
1018
1044
|
/**
|
|
1019
1045
|
* If there are any annotations groups, this function will return all annotations groups.
|
|
@@ -1046,9 +1072,9 @@ declare class AnnotationSerializer {
|
|
|
1046
1072
|
toJSON(): Omit<BaseAnnotationJSON, 'type'>;
|
|
1047
1073
|
static fromJSON(id: ID | null, json: IAnnotationJSON, options?: ICollaboratorPermissionsOptions): {
|
|
1048
1074
|
group?: string | null | undefined;
|
|
1049
|
-
canSetGroup?: boolean
|
|
1050
|
-
isEditable?: boolean
|
|
1051
|
-
isDeletable?: boolean
|
|
1075
|
+
canSetGroup?: boolean;
|
|
1076
|
+
isEditable?: boolean;
|
|
1077
|
+
isDeletable?: boolean;
|
|
1052
1078
|
blendMode?: IBlendMode | undefined;
|
|
1053
1079
|
id: string | null;
|
|
1054
1080
|
name: string | null;
|
|
@@ -1777,6 +1803,39 @@ export declare type AnnotationTooltipCallback = (annotation: AnnotationsUnion) =
|
|
|
1777
1803
|
|
|
1778
1804
|
declare type Args<T = any> = T extends ((...args: infer A) => any) ? A : never;
|
|
1779
1805
|
|
|
1806
|
+
export declare class Attachment extends Attachment_base {
|
|
1807
|
+
data: Blob;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
declare const Attachment_base: Record_2.Factory<AttachmentProps>;
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* @class
|
|
1814
|
+
* Attachments are data that can be attached to annotations. An example for such an attachment is an
|
|
1815
|
+
* image attachment in an image annotation.
|
|
1816
|
+
*
|
|
1817
|
+
* It is an {@link https://facebook.github.io/immutable-js/docs/#/Record|Immutable.Record} and thus
|
|
1818
|
+
* can be updated using `set(key, value)`, for example: `attachment.set("data", new Blob(...))`.
|
|
1819
|
+
* @example
|
|
1820
|
+
* fetch("https://example.com/my-image.jpg")
|
|
1821
|
+
* .then(r => r.blob())
|
|
1822
|
+
* .then(blob => instance.createAttachment(blob))
|
|
1823
|
+
* .then(attachmentId => console.log(attachmentId));
|
|
1824
|
+
*
|
|
1825
|
+
* @public
|
|
1826
|
+
* @summary An attachment, that can hold the data as a Blob.
|
|
1827
|
+
* @param args - An ArrayBuffer, which be used as the data of the attachment.
|
|
1828
|
+
* @default { data: null }
|
|
1829
|
+
*/
|
|
1830
|
+
declare type AttachmentProps = {
|
|
1831
|
+
/**
|
|
1832
|
+
* The attachment's data as a Blob.
|
|
1833
|
+
*
|
|
1834
|
+
* @default null
|
|
1835
|
+
*/
|
|
1836
|
+
data: Blob | null;
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1780
1839
|
/**
|
|
1781
1840
|
* The attachments sidebar options allow to specify options available for the Attachments sidebar.
|
|
1782
1841
|
*
|
|
@@ -1949,9 +2008,9 @@ declare abstract class BaseTextMarkupSerializer extends AnnotationSerializer {
|
|
|
1949
2008
|
static fromJSON(id: ID | null, json: Omit<BaseTextMarkupAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): {
|
|
1950
2009
|
rects: List<Rect>;
|
|
1951
2010
|
group?: string | null | undefined;
|
|
1952
|
-
canSetGroup?: boolean
|
|
1953
|
-
isEditable?: boolean
|
|
1954
|
-
isDeletable?: boolean
|
|
2011
|
+
canSetGroup?: boolean;
|
|
2012
|
+
isEditable?: boolean;
|
|
2013
|
+
isDeletable?: boolean;
|
|
1955
2014
|
blendMode?: IBlendMode | undefined;
|
|
1956
2015
|
id: string | null;
|
|
1957
2016
|
name: string | null;
|
|
@@ -2188,6 +2247,10 @@ declare type BuiltInColorProperty = 'color' | 'stroke-color' | 'fill-color' | 'b
|
|
|
2188
2247
|
|
|
2189
2248
|
declare type BuiltInDocumentEditorFooterItem = 'cancel' | 'spacer' | 'save-as' | 'save' | 'selected-pages' | 'loading-indicator';
|
|
2190
2249
|
|
|
2250
|
+
declare interface BuiltinDocumentEditorFooterItem {
|
|
2251
|
+
type: BuiltInDocumentEditorFooterItem;
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2191
2254
|
/** @inline */
|
|
2192
2255
|
declare type BuiltInDocumentEditorToolbarItemType = 'add' | 'remove' | 'duplicate' | 'rotate-left' | 'rotate-right' | 'move' | 'move-left' | 'move-right' | 'import-document' | 'extract-pages' | 'spacer' | 'undo' | 'redo' | 'select-all' | 'select-none' | 'zoom-out' | 'zoom-in';
|
|
2193
2256
|
|
|
@@ -4351,6 +4414,8 @@ export declare type ColorPreset = {
|
|
|
4351
4414
|
};
|
|
4352
4415
|
};
|
|
4353
4416
|
|
|
4417
|
+
declare type ColorPreset_2 = ColorPreset;
|
|
4418
|
+
|
|
4354
4419
|
/**
|
|
4355
4420
|
* @class
|
|
4356
4421
|
*
|
|
@@ -5082,6 +5147,33 @@ declare type CoreActionJSON = {
|
|
|
5082
5147
|
subactions?: Array<CoreActionJSON>;
|
|
5083
5148
|
};
|
|
5084
5149
|
|
|
5150
|
+
/**
|
|
5151
|
+
* Describes the properties of a Document Editor Footer Item.
|
|
5152
|
+
*
|
|
5153
|
+
* Check out [our guides](https://www.nutrient.io/guides/web/customizing-the-interface/customizing-the-document-editor-toolbar-and-footer/)
|
|
5154
|
+
* for more examples.
|
|
5155
|
+
*
|
|
5156
|
+
* @see {@link NutrientViewer.Instance#setDocumentEditorFooterItems}
|
|
5157
|
+
* @see {@link Configuration#documentEditorFooterItems}
|
|
5158
|
+
*/
|
|
5159
|
+
declare interface CustomDocumentEditorFooterItem {
|
|
5160
|
+
type: 'custom';
|
|
5161
|
+
/**
|
|
5162
|
+
* `custom` tool items have to define a DOM node which NutrientViewer will render.
|
|
5163
|
+
*
|
|
5164
|
+
* In this case the tool item is rendered inside of a container div. The `className` which you pass is set to this container div and not to the node that you passed.
|
|
5165
|
+
*
|
|
5166
|
+
* The `onPress` event is registered and fires any time the item is clicked.
|
|
5167
|
+
*/
|
|
5168
|
+
node: Node;
|
|
5169
|
+
/**
|
|
5170
|
+
* Icon for the item.
|
|
5171
|
+
*
|
|
5172
|
+
* The icon should either be an URL, a base64 encoded image or the HTML for an inline SVG.
|
|
5173
|
+
*/
|
|
5174
|
+
icon?: string;
|
|
5175
|
+
}
|
|
5176
|
+
|
|
5085
5177
|
/**
|
|
5086
5178
|
* This record is used to persist the information for a Custom Overlay Item.
|
|
5087
5179
|
*
|
|
@@ -5407,29 +5499,312 @@ declare const defaultAnnotationPresets: {
|
|
|
5407
5499
|
[key: string]: Record<string, unknown>;
|
|
5408
5500
|
};
|
|
5409
5501
|
|
|
5410
|
-
declare const defaultAnnotationsSidebarContent:
|
|
5502
|
+
declare const defaultAnnotationsSidebarContent: typeof defaultAnnotationsSidebarContent_2;
|
|
5503
|
+
|
|
5504
|
+
/**
|
|
5505
|
+
* Returns a deep copy of an array containing the default annotation
|
|
5506
|
+
* classes that are included in the annotations sidebar UI.
|
|
5507
|
+
*
|
|
5508
|
+
* These members are:
|
|
5509
|
+
* 1. {@link NutrientViewer.Annotations.EllipseAnnotation}
|
|
5510
|
+
* 2. {@link NutrientViewer.Annotations.HighlightAnnotation}
|
|
5511
|
+
* 3. {@link NutrientViewer.Annotations.ImageAnnotation}
|
|
5512
|
+
* 4. {@link NutrientViewer.Annotations.InkAnnotation}
|
|
5513
|
+
* 5. {@link NutrientViewer.Annotations.LineAnnotation}
|
|
5514
|
+
* 6. {@link NutrientViewer.Annotations.NoteAnnotation}
|
|
5515
|
+
* 7. {@link NutrientViewer.Annotations.PolygonAnnotation}
|
|
5516
|
+
* 8. {@link NutrientViewer.Annotations.PolylineAnnotation}
|
|
5517
|
+
* 9. {@link NutrientViewer.Annotations.RectangleAnnotation}
|
|
5518
|
+
* 10. {@link NutrientViewer.Annotations.SquiggleAnnotation}
|
|
5519
|
+
* 11. {@link NutrientViewer.Annotations.StampAnnotation}
|
|
5520
|
+
* 12. {@link NutrientViewer.Annotations.StrikeOutAnnotation}
|
|
5521
|
+
* 13. {@link NutrientViewer.Annotations.TextAnnotation}
|
|
5522
|
+
* 14. {@link NutrientViewer.Annotations.UnderlineAnnotation}
|
|
5523
|
+
* 15. {@link NutrientViewer.Annotations.WidgetAnnotation}
|
|
5524
|
+
*
|
|
5525
|
+
* @see {@link ViewState#sidebarOptions}
|
|
5526
|
+
* @see {@link AnnotationsSidebarOptions}
|
|
5527
|
+
* @see {@link SidebarOptions}
|
|
5528
|
+
*/
|
|
5529
|
+
declare const defaultAnnotationsSidebarContent_2: readonly [typeof Annotation_2.EllipseAnnotation, typeof Annotation_2.HighlightAnnotation, typeof Annotation_2.ImageAnnotation, typeof Annotation_2.InkAnnotation, typeof Annotation_2.LineAnnotation, typeof Annotation_2.NoteAnnotation, typeof Annotation_2.PolygonAnnotation, typeof Annotation_2.PolylineAnnotation, typeof Annotation_2.RectangleAnnotation, typeof Annotation_2.SquiggleAnnotation, typeof Annotation_2.StampAnnotation, typeof Annotation_2.StrikeOutAnnotation, typeof Annotation_2.TextAnnotation, typeof Annotation_2.UnderlineAnnotation, typeof Annotation_2.WidgetAnnotation];
|
|
5530
|
+
|
|
5531
|
+
declare const defaultDocumentEditorFooterItems: typeof defaultDocumentEditorFooterItems_2;
|
|
5411
5532
|
|
|
5412
|
-
|
|
5533
|
+
/**
|
|
5534
|
+
* Returns a deep copy of an array containing the default {@link NutrientViewer.DocumentEditorFooterItem|document editor footer items}
|
|
5535
|
+
* ordered by {@link NutrientViewer.DocumentEditorFooterItem#type} in the following way:
|
|
5536
|
+
*
|
|
5537
|
+
* 1. `cancel`
|
|
5538
|
+
* 2. `selected-pages`
|
|
5539
|
+
* 3. `spacer`
|
|
5540
|
+
* 4. `loading-indicator`
|
|
5541
|
+
* 5. `save-as`
|
|
5542
|
+
* 6. `save`
|
|
5543
|
+
*
|
|
5544
|
+
* The `loading-indicator` is only visible when the changes are being committed and `selected-pages` is only visible when you have selected multiple pages.
|
|
5545
|
+
*
|
|
5546
|
+
* @see {@link DocumentEditorFooterItem}
|
|
5547
|
+
*/
|
|
5548
|
+
declare const defaultDocumentEditorFooterItems_2: {
|
|
5413
5549
|
type: BuiltInDocumentEditorFooterItem;
|
|
5414
5550
|
}[];
|
|
5415
5551
|
|
|
5416
|
-
declare const defaultDocumentEditorToolbarItems:
|
|
5552
|
+
declare const defaultDocumentEditorToolbarItems: typeof defaultDocumentEditorToolbarItems_2;
|
|
5553
|
+
|
|
5554
|
+
/**
|
|
5555
|
+
* Returns a deep copy of an array containing the default {@link NutrientViewer.DocumentEditorToolbarItem|document editor toolbar items}
|
|
5556
|
+
* ordered by {@link NutrientViewer.DocumentEditorToolbarItem#type} in the following way:
|
|
5557
|
+
*
|
|
5558
|
+
* 1. `add`
|
|
5559
|
+
* 2. `remove`
|
|
5560
|
+
* 3. `duplicate`
|
|
5561
|
+
* 4. `rotate-left`
|
|
5562
|
+
* 5. `rotate-right`
|
|
5563
|
+
* 6. `move`
|
|
5564
|
+
* 7. `move-left`
|
|
5565
|
+
* 8. `move-right`
|
|
5566
|
+
* 9. `import-document`
|
|
5567
|
+
* 10. `extract-pages`
|
|
5568
|
+
* 11. `spacer`
|
|
5569
|
+
* 12. `undo`
|
|
5570
|
+
* 13. `redo`
|
|
5571
|
+
* 14. `select-all`
|
|
5572
|
+
* 15. `select-none`
|
|
5573
|
+
* 16. `zoom-out`
|
|
5574
|
+
* 17. `zoom-in`
|
|
5575
|
+
*/
|
|
5576
|
+
declare const defaultDocumentEditorToolbarItems_2: {
|
|
5417
5577
|
type: BuiltInDocumentEditorToolbarItemType;
|
|
5418
5578
|
}[];
|
|
5419
5579
|
|
|
5420
5580
|
declare const defaultElectronicSignatureColorPresets: ColorPreset[];
|
|
5421
5581
|
|
|
5422
|
-
declare const defaultStampAnnotationTemplates:
|
|
5423
|
-
|
|
5424
|
-
|
|
5582
|
+
declare const defaultStampAnnotationTemplates: typeof defaultStampAnnotationTemplates_2;
|
|
5583
|
+
|
|
5584
|
+
/**
|
|
5585
|
+
* Returns a deep copy of an array containing the default {@link NutrientViewer.stampAnnotationTemplates | stamp
|
|
5586
|
+
* and image annotation templates}, which are {@link NutrientViewer.Annotations.StampAnnotation | stamp annotation instances}.
|
|
5587
|
+
* However, {@link NutrientViewer.Annotations.ImageAnnotation | image annotation} templates can also be added to
|
|
5588
|
+
* this `Array` using {@link NutrientViewer.setStampAnnotationTemplates}.
|
|
5589
|
+
* Used by the stamp picker UI.
|
|
5590
|
+
* Initially it contains only the following {@link NutrientViewer.Annotations.StampAnnotation | stamp annotations}:
|
|
5591
|
+
*
|
|
5592
|
+
* 1. `Approved`
|
|
5593
|
+
* 2. `NotApproved`
|
|
5594
|
+
* 3. `Draft`
|
|
5595
|
+
* 4. `Final`
|
|
5596
|
+
* 5. `Completed`
|
|
5597
|
+
* 6. `Confidential`
|
|
5598
|
+
* 7. `ForPublicRelease`
|
|
5599
|
+
* 8. `NotForPublicRelease`
|
|
5600
|
+
* 9. `ForComment`
|
|
5601
|
+
* 10. `Void`
|
|
5602
|
+
* 11. `PreliminaryResults`
|
|
5603
|
+
* 12. `InformationOnly`
|
|
5604
|
+
* 13. `Rejected`
|
|
5605
|
+
* 14. `Accepted`
|
|
5606
|
+
* 15. `InitialHere`
|
|
5607
|
+
* 16. `SignHere`
|
|
5608
|
+
* 17. `Witness`
|
|
5609
|
+
* 18. `AsIs`
|
|
5610
|
+
* 19. `Departmental`
|
|
5611
|
+
* 20. `Experimental`
|
|
5612
|
+
* 21. `Expired`
|
|
5613
|
+
* 22. `Sold`
|
|
5614
|
+
* 23. `TopSecret`
|
|
5615
|
+
* 24. `Revised`
|
|
5616
|
+
* 25. `RejectedWithText`
|
|
5617
|
+
*/
|
|
5618
|
+
declare const defaultStampAnnotationTemplates_2: StampAnnotation[];
|
|
5619
|
+
|
|
5620
|
+
declare const defaultTextComparisonInnerToolbarItems: typeof defaultTextComparisonInnerToolbarItems_2;
|
|
5621
|
+
|
|
5622
|
+
/**
|
|
5623
|
+
* Returns a deep copy of an array containing the default {@link TextComparisonInnerToolbarItem | text comparison instance toolbar items}
|
|
5624
|
+
* ordered by {@link TextComparisonInnerToolbarItem#type} in the following way:
|
|
5625
|
+
*
|
|
5626
|
+
* 1. `pager`
|
|
5627
|
+
* 2. `pan`
|
|
5628
|
+
* 3. `zoom-out`
|
|
5629
|
+
* 4. `zoom-in`
|
|
5630
|
+
* 5. `spacer`
|
|
5631
|
+
*
|
|
5632
|
+
* Please keep in mind that under some circumstances some items may be removed from the final list.
|
|
5633
|
+
*/
|
|
5634
|
+
declare const defaultTextComparisonInnerToolbarItems_2: {
|
|
5425
5635
|
type: string;
|
|
5426
5636
|
}[];
|
|
5427
5637
|
|
|
5428
|
-
declare const defaultTextComparisonToolbarItems:
|
|
5638
|
+
declare const defaultTextComparisonToolbarItems: typeof defaultTextComparisonToolbarItems_2;
|
|
5639
|
+
|
|
5640
|
+
/**
|
|
5641
|
+
* Returns a deep copy of an array containing the default {@link NutrientViewer.TextComparisonToolbarItem|text comparison toolbar items}
|
|
5642
|
+
* ordered by {@link NutrientViewer.TextComparisonToolbarItem#type} in the following way:
|
|
5643
|
+
*
|
|
5644
|
+
* 1. `comparison-changes`
|
|
5645
|
+
* 2. `prev-change`
|
|
5646
|
+
* 3. `next-change`
|
|
5647
|
+
* 4. `scroll-lock`
|
|
5648
|
+
*
|
|
5649
|
+
* Please keep in mind that under some circumstances some items may be removed from the final list.
|
|
5650
|
+
*/
|
|
5651
|
+
declare const defaultTextComparisonToolbarItems_2: {
|
|
5429
5652
|
type: string;
|
|
5430
5653
|
}[];
|
|
5431
5654
|
|
|
5432
|
-
declare const defaultToolbarItems:
|
|
5655
|
+
declare const defaultToolbarItems: typeof defaultToolbarItems_2;
|
|
5656
|
+
|
|
5657
|
+
/**
|
|
5658
|
+
* Returns a deep copy of an array containing the default {@link NutrientViewer.ToolbarItem|toolbar items}
|
|
5659
|
+
* ordered by {@link NutrientViewer.ToolbarItem#type} in the following way:
|
|
5660
|
+
*
|
|
5661
|
+
* 1. `sidebar-thumbnails`
|
|
5662
|
+
* 2. `sidebar-document-outline`
|
|
5663
|
+
* 3. `sidebar-annotations`
|
|
5664
|
+
* 4. `sidebar-bookmarks`
|
|
5665
|
+
* 5. `sidebar-signatures`
|
|
5666
|
+
* 6. `sidebar-attachments`
|
|
5667
|
+
* 7. `sidebar-layers`
|
|
5668
|
+
* 8. `pager`
|
|
5669
|
+
* 9. `pan`
|
|
5670
|
+
* 10. `zoom-out`
|
|
5671
|
+
* 11. `zoom-in`
|
|
5672
|
+
* 12. `zoom-mode`
|
|
5673
|
+
* 13. `spacer`
|
|
5674
|
+
* 14. `annotate`
|
|
5675
|
+
* 15. `ink`
|
|
5676
|
+
* 16. `highlighter`
|
|
5677
|
+
* 17. `text-highlighter`
|
|
5678
|
+
* 18. `ink-eraser`
|
|
5679
|
+
* 19. `signature`
|
|
5680
|
+
* 20. `image`
|
|
5681
|
+
* 21. `stamp`
|
|
5682
|
+
* 22. `note`
|
|
5683
|
+
* 23. `text`
|
|
5684
|
+
* 24. `line`
|
|
5685
|
+
* 25. `arrow`
|
|
5686
|
+
* 26. `rectangle`
|
|
5687
|
+
* 27. `cloudy-rectangle`
|
|
5688
|
+
* 28. `dashed-rectangle`
|
|
5689
|
+
* 29. `ellipse`
|
|
5690
|
+
* 30. `cloudy-ellipse`
|
|
5691
|
+
* 31. `dashed-ellipse`
|
|
5692
|
+
* 32. `polygon`
|
|
5693
|
+
* 33. `cloudy-polygon`
|
|
5694
|
+
* 34. `dashed-polygon`
|
|
5695
|
+
* 35. `polyline`
|
|
5696
|
+
* 36. `print`
|
|
5697
|
+
* 37. `document-editor`
|
|
5698
|
+
* 38. `document-crop`
|
|
5699
|
+
* 39. `search`
|
|
5700
|
+
* 40. `export-pdf`
|
|
5701
|
+
* 41. `debug`
|
|
5702
|
+
* 42. `content-editor`
|
|
5703
|
+
* 43. `link`
|
|
5704
|
+
* 44. `multi-annotations-selection`
|
|
5705
|
+
* 45. `callout`
|
|
5706
|
+
*
|
|
5707
|
+
* Please keep in mind that under some circumstances some items may be removed from the final list.
|
|
5708
|
+
*
|
|
5709
|
+
* Items hidden for touch devices:
|
|
5710
|
+
*
|
|
5711
|
+
* * `pan`
|
|
5712
|
+
*
|
|
5713
|
+
* Items hidden for touch devices when the media query `(max-width: 992px)` for medium devices matches:
|
|
5714
|
+
*
|
|
5715
|
+
* * `zoom-out`
|
|
5716
|
+
* * `zoom-in`
|
|
5717
|
+
* * `zoom-mode`
|
|
5718
|
+
*
|
|
5719
|
+
* Please keep in mind that the media query is only added for touch devices.
|
|
5720
|
+
* You can change this behavior by defining your own `mediaQueries` and replacing the original item.
|
|
5721
|
+
* To learn more about how to do so please refer to [our guide](https://www.nutrient.io/guides/web/current/customizing-the-interface/configure-the-toolbar/#toc_customizing-built-in-items).
|
|
5722
|
+
*
|
|
5723
|
+
* Items hidden for small screens `(max-width: 992px)`
|
|
5724
|
+
*
|
|
5725
|
+
* * `text`
|
|
5726
|
+
* * `callout`
|
|
5727
|
+
* * `ink`
|
|
5728
|
+
* * `highlighter`
|
|
5729
|
+
* * `text-highlighter`
|
|
5730
|
+
* * `ink-eraser`
|
|
5731
|
+
* * `line`
|
|
5732
|
+
* * `arrow`
|
|
5733
|
+
* * `rectangle`
|
|
5734
|
+
* * `cloudy-rectangle`
|
|
5735
|
+
* * `dashed-rectangle`
|
|
5736
|
+
* * `ellipse`
|
|
5737
|
+
* * `cloudy-ellipse`
|
|
5738
|
+
* * `dashed-ellipse`
|
|
5739
|
+
* * `polygon`
|
|
5740
|
+
* * `cloudy-polygon`
|
|
5741
|
+
* * `dashed-polygon`
|
|
5742
|
+
* * `polyline`
|
|
5743
|
+
* * `signature`
|
|
5744
|
+
* * `image`
|
|
5745
|
+
* * `stamp`
|
|
5746
|
+
* * `note`
|
|
5747
|
+
* * `undo`
|
|
5748
|
+
* * `redo`
|
|
5749
|
+
* * `link`
|
|
5750
|
+
*
|
|
5751
|
+
* Items shown on small screens `(max-width: 992px)`
|
|
5752
|
+
*
|
|
5753
|
+
* * `annotate`
|
|
5754
|
+
*
|
|
5755
|
+
* Items hidden when in {@link NutrientViewer.ViewState#readOnly| read-only mode}:
|
|
5756
|
+
*
|
|
5757
|
+
* * `text`
|
|
5758
|
+
* * `ink`
|
|
5759
|
+
* * `highlighter`
|
|
5760
|
+
* * `text-highlighter`
|
|
5761
|
+
* * `ink-eraser`
|
|
5762
|
+
* * `line`
|
|
5763
|
+
* * `arrow`
|
|
5764
|
+
* * `rectangle`
|
|
5765
|
+
* * `cloudy-rectangle`
|
|
5766
|
+
* * `dashed-rectangle`
|
|
5767
|
+
* * `ellipse`
|
|
5768
|
+
* * `cloudy-ellipse`
|
|
5769
|
+
* * `dashed-ellipse`
|
|
5770
|
+
* * `polygon`
|
|
5771
|
+
* * `cloudy-polygon`
|
|
5772
|
+
* * `dashed-polygon`
|
|
5773
|
+
* * `polyline`
|
|
5774
|
+
* * `signature`
|
|
5775
|
+
* * `image`
|
|
5776
|
+
* * `stamp`
|
|
5777
|
+
* * `note`
|
|
5778
|
+
* * `undo`
|
|
5779
|
+
* * `redo`
|
|
5780
|
+
* * `link`
|
|
5781
|
+
* * `multi-annotations-selection`
|
|
5782
|
+
*
|
|
5783
|
+
* Hidden when not in debug mode (See {@link https://www.nutrient.io/guides/web/troubleshoot/#bug-reports|this guide article}):
|
|
5784
|
+
*
|
|
5785
|
+
* * `debug`
|
|
5786
|
+
*
|
|
5787
|
+
* Hidden by default and only available when explicitly set via the API:
|
|
5788
|
+
*
|
|
5789
|
+
* * `layout-config`
|
|
5790
|
+
* * `marquee-zoom`
|
|
5791
|
+
* * `comment`
|
|
5792
|
+
* * `redact-text-highlighter`
|
|
5793
|
+
* * `redact-rectangle`
|
|
5794
|
+
* * `cloudy-rectangle`
|
|
5795
|
+
* * `dashed-rectangle`
|
|
5796
|
+
* * `cloudy-ellipse`
|
|
5797
|
+
* * `dashed-ellipse`
|
|
5798
|
+
* * `dashed-polygon`
|
|
5799
|
+
* * `undo`
|
|
5800
|
+
* * `redo`
|
|
5801
|
+
* * `document-comparison`
|
|
5802
|
+
* * `form-creator`
|
|
5803
|
+
* * `content-editor`
|
|
5804
|
+
* * `measure`
|
|
5805
|
+
* * `pager-expanded`: This is the expanded version of the pager which is visible by default on larger screens. In case you want to always show it, you should replace `pager` with `pager-expanded`.
|
|
5806
|
+
*/
|
|
5807
|
+
declare const defaultToolbarItems_2: readonly [{
|
|
5433
5808
|
readonly type: "sidebar-thumbnails";
|
|
5434
5809
|
}, {
|
|
5435
5810
|
readonly type: "sidebar-document-outline";
|
|
@@ -5511,6 +5886,8 @@ declare const defaultToolbarItems: readonly [{
|
|
|
5511
5886
|
readonly type: "debug";
|
|
5512
5887
|
}];
|
|
5513
5888
|
|
|
5889
|
+
declare const defaultToolbarTypes: ("text" | "search" | "link" | "ellipse" | "image" | "line" | "polygon" | "polyline" | "spacer" | "note" | "zoom-in" | "zoom-out" | "callout" | "signature" | "print" | "ink" | "debug" | "arrow" | "highlighter" | "pager" | "pan" | "rectangle" | "stamp" | "cloudy-polygon" | "text-highlighter" | "multi-annotations-selection" | "ink-eraser" | "document-crop" | "document-editor" | "export-pdf" | "linearized-download-indicator" | "sidebar-thumbnails" | "sidebar-document-outline" | "sidebar-layers" | "sidebar-annotations" | "sidebar-bookmarks" | "sidebar-signatures" | "sidebar-attachments" | "annotate" | "zoom-mode")[];
|
|
5890
|
+
|
|
5514
5891
|
/**
|
|
5515
5892
|
* Describes the configuration used to populate a document template.
|
|
5516
5893
|
*
|
|
@@ -6355,24 +6732,9 @@ declare interface DocumentEditorCustomToolbarItem extends BaseDocumentEditorTool
|
|
|
6355
6732
|
onPress?: (e: Event, documentEditorUIHandler: DocumentEditorUIHandler, id?: string) => void;
|
|
6356
6733
|
}
|
|
6357
6734
|
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
* Check out [our guides](https://www.nutrient.io/guides/web/customizing-the-interface/customizing-the-document-editor-toolbar-and-footer/)
|
|
6362
|
-
* for more examples.
|
|
6363
|
-
*
|
|
6364
|
-
* @see {@link NutrientViewer.Instance#setDocumentEditorFooterItems}
|
|
6365
|
-
* @see {@link Configuration#documentEditorFooterItems}
|
|
6366
|
-
*/
|
|
6367
|
-
export declare interface DocumentEditorFooterItem {
|
|
6368
|
-
/**
|
|
6369
|
-
* `custom` tool items have to define a DOM node which NutrientViewer will render.
|
|
6370
|
-
*
|
|
6371
|
-
* In this case the tool item is rendered inside of a container div. The `className` which you pass is set to this container div and not to the node that you passed.
|
|
6372
|
-
*
|
|
6373
|
-
* The `onPress` event is registered and fires any time the item is clicked.
|
|
6374
|
-
*/
|
|
6375
|
-
node?: Node;
|
|
6735
|
+
export declare type DocumentEditorFooterItem = DocumentEditorFooterItemCommon & (CustomDocumentEditorFooterItem | BuiltinDocumentEditorFooterItem);
|
|
6736
|
+
|
|
6737
|
+
declare interface DocumentEditorFooterItemCommon {
|
|
6376
6738
|
/**
|
|
6377
6739
|
* Useful to set a custom CSS class name on the item.
|
|
6378
6740
|
*
|
|
@@ -9927,6 +10289,8 @@ export declare type ExportPDFFlags = {
|
|
|
9927
10289
|
officeConversionSettings?: OfficeConversionSettings;
|
|
9928
10290
|
};
|
|
9929
10291
|
|
|
10292
|
+
declare const extraToolbarTypes: readonly ["layout-config", "marquee-zoom", "custom", "responsive-group", "comment", "redact-text-highlighter", "redact-rectangle", "cloudy-rectangle", "dashed-rectangle", "cloudy-ellipse", "dashed-ellipse", "dashed-polygon", "document-comparison", "measure", "undo", "redo", "form-creator", "content-editor", "ai-assistant", "pager-expanded"];
|
|
10293
|
+
|
|
9930
10294
|
/**
|
|
9931
10295
|
* @class
|
|
9932
10296
|
* This record is used to persist information related to custom fonts on Standalone deployments.
|
|
@@ -10287,10 +10651,10 @@ export declare class FormFieldValue extends FormFieldValue_base {
|
|
|
10287
10651
|
}
|
|
10288
10652
|
|
|
10289
10653
|
declare const FormFieldValue_base: Immutable.Record.Factory<{
|
|
10290
|
-
name?: string
|
|
10291
|
-
value?: string |
|
|
10292
|
-
optionIndexes?: Immutable.List<number
|
|
10293
|
-
isFitting?: boolean
|
|
10654
|
+
name?: string;
|
|
10655
|
+
value?: string | Immutable.List<string> | number | null;
|
|
10656
|
+
optionIndexes?: Immutable.List<number>;
|
|
10657
|
+
isFitting?: boolean;
|
|
10294
10658
|
}>;
|
|
10295
10659
|
|
|
10296
10660
|
/**
|
|
@@ -11471,7 +11835,7 @@ declare interface INamedAction extends ActionProperties {
|
|
|
11471
11835
|
action?: string;
|
|
11472
11836
|
}
|
|
11473
11837
|
|
|
11474
|
-
declare const InheritableImmutableRecord: new <T extends Record<string, unknown>>(values?: Partial<T> | Iterable<[string, unknown]>
|
|
11838
|
+
declare const InheritableImmutableRecord: new <T extends Record<string, unknown>>(values?: Partial<T> | Iterable<[string, unknown]>) => __dangerousImmutableRecordFactory<T>;
|
|
11475
11839
|
|
|
11476
11840
|
/**
|
|
11477
11841
|
* @class
|
|
@@ -11591,8 +11955,8 @@ declare class InkAnnotationSerializer extends AnnotationSerializer {
|
|
|
11591
11955
|
toJSON(): Serializers.InkAnnotationJSON;
|
|
11592
11956
|
static fromJSON(id: ID | null, json: Omit<Serializers.InkAnnotationJSON, 'id' | 'group' | 'permissions'>, options?: ICollaboratorPermissionsOptions): InkAnnotation;
|
|
11593
11957
|
_linesToJSON(): {
|
|
11594
|
-
points: [number, number]
|
|
11595
|
-
intensities: number
|
|
11958
|
+
points: Array<Array<[number, number]>>;
|
|
11959
|
+
intensities: Array<Array<number>>;
|
|
11596
11960
|
};
|
|
11597
11961
|
static _JSONToLines(linesJSON: {
|
|
11598
11962
|
points: Array<Array<[number, number]>>;
|
|
@@ -15210,7 +15574,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
15210
15574
|
* on {@link Instance#addEventListener} for possible event types.
|
|
15211
15575
|
* @param listener - A listener function.
|
|
15212
15576
|
*/
|
|
15213
|
-
removeEventListener<
|
|
15577
|
+
removeEventListener<K extends keyof Events.EventNameToHandlerMap>(action: K, listener: Events.EventNameToHandlerMap[K]): void;
|
|
15214
15578
|
/**
|
|
15215
15579
|
* Brings the rect (in PDF page coordinates) into the viewport. This function will not change
|
|
15216
15580
|
* the zoom level.
|
|
@@ -15262,7 +15626,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
15262
15626
|
* @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
|
|
15263
15627
|
* @returns The transformed point or rectangle.
|
|
15264
15628
|
*/
|
|
15265
|
-
transformContentClientToPageSpace<
|
|
15629
|
+
transformContentClientToPageSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
|
|
15266
15630
|
/**
|
|
15267
15631
|
* Transforms a {@link NutrientViewer.Geometry.Point} or a {@link NutrientViewer.Geometry.Rect} from the
|
|
15268
15632
|
* PDF page space to the client space inside the content frame.
|
|
@@ -15279,7 +15643,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
15279
15643
|
* @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
|
|
15280
15644
|
* @returns The transformed point or rectangle.
|
|
15281
15645
|
*/
|
|
15282
|
-
transformContentPageToClientSpace<T_1 extends
|
|
15646
|
+
transformContentPageToClientSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
|
|
15283
15647
|
/**
|
|
15284
15648
|
* Transforms a {@link NutrientViewer.Geometry.Point} or a {@link NutrientViewer.Geometry.Rect} from the
|
|
15285
15649
|
* client space inside the main frame to the PDF page space.
|
|
@@ -15299,7 +15663,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
15299
15663
|
* @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
|
|
15300
15664
|
* @returns The transformed point or rectangle.
|
|
15301
15665
|
*/
|
|
15302
|
-
transformClientToPageSpace<
|
|
15666
|
+
transformClientToPageSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
|
|
15303
15667
|
/**
|
|
15304
15668
|
* Transforms a {@link NutrientViewer.Geometry.Point} or a {@link NutrientViewer.Geometry.Rect} from the
|
|
15305
15669
|
* PDF page space to the client space inside the main frame.
|
|
@@ -15318,7 +15682,7 @@ declare function MiscellaneousMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
15318
15682
|
* @param pageIndex - The index of the page you want to have information about. If none is provided, the first page (pageIndex `0`) will be used.
|
|
15319
15683
|
* @returns The transformed point or rectangle.
|
|
15320
15684
|
*/
|
|
15321
|
-
transformPageToClientSpace<
|
|
15685
|
+
transformPageToClientSpace<T_1 extends Rect | Point>(rectOrPoint: T_1, pageIndex: number): T_1;
|
|
15322
15686
|
/**
|
|
15323
15687
|
* Transforms a raw PDF bounding rect from the PDF page space to NutrientViewer's page space.
|
|
15324
15688
|
*
|
|
@@ -16415,7 +16779,7 @@ declare const Options: {
|
|
|
16415
16779
|
* @example
|
|
16416
16780
|
* NutrientViewer.Options.LINE_CAP_PRESETS = ["openArrow", "closedArrow", "none"];
|
|
16417
16781
|
*/
|
|
16418
|
-
LINE_CAP_PRESETS: LineCapPresets
|
|
16782
|
+
LINE_CAP_PRESETS: Array<LineCapPresets>;
|
|
16419
16783
|
/**
|
|
16420
16784
|
* The list of line widths to use for dropdowns in annotation toolbars.
|
|
16421
16785
|
*
|
|
@@ -16423,7 +16787,7 @@ declare const Options: {
|
|
|
16423
16787
|
* @example
|
|
16424
16788
|
* NutrientViewer.Options.LINE_WIDTH_PRESETS = [1, 2, 4, 8, 32];
|
|
16425
16789
|
*/
|
|
16426
|
-
LINE_WIDTH_PRESETS: number
|
|
16790
|
+
LINE_WIDTH_PRESETS: Array<number> | null | undefined;
|
|
16427
16791
|
/**
|
|
16428
16792
|
* The list of colors to use in the text highlight annotation toolbar. You can't use transparent for this.
|
|
16429
16793
|
*
|
|
@@ -16446,7 +16810,7 @@ declare const Options: {
|
|
|
16446
16810
|
* }
|
|
16447
16811
|
* ];
|
|
16448
16812
|
*/
|
|
16449
|
-
HIGHLIGHT_COLOR_PRESETS:
|
|
16813
|
+
HIGHLIGHT_COLOR_PRESETS: Array<ColorPreset_2>;
|
|
16450
16814
|
/**
|
|
16451
16815
|
* The list of colors to use in the text markup annotation toolbar.
|
|
16452
16816
|
*
|
|
@@ -16469,7 +16833,7 @@ declare const Options: {
|
|
|
16469
16833
|
* }
|
|
16470
16834
|
* ];
|
|
16471
16835
|
*/
|
|
16472
|
-
TEXT_MARKUP_COLOR_PRESETS:
|
|
16836
|
+
TEXT_MARKUP_COLOR_PRESETS: Array<ColorPreset_2>;
|
|
16473
16837
|
/**
|
|
16474
16838
|
* The list of colors to use for note annotations. You can't pass transparent color as an option.
|
|
16475
16839
|
*
|
|
@@ -16493,7 +16857,7 @@ declare const Options: {
|
|
|
16493
16857
|
* }
|
|
16494
16858
|
* ];
|
|
16495
16859
|
*/
|
|
16496
|
-
NOTE_COLOR_PRESETS:
|
|
16860
|
+
NOTE_COLOR_PRESETS: Array<ColorPreset_2>;
|
|
16497
16861
|
/**
|
|
16498
16862
|
* Enables PDF JavaScript support. PDF documents may contain JavaScript for interactivity.
|
|
16499
16863
|
* This enables things like form validation, formatting, or automatic calculation which are performed by a JavaScript scripts
|
|
@@ -21278,9 +21642,9 @@ declare abstract class ShapeAnnotationSerializer extends AnnotationSerializer {
|
|
|
21278
21642
|
measurementPrecision: IMeasurementPrecision | null | undefined;
|
|
21279
21643
|
measurementScale: MeasurementScale | null;
|
|
21280
21644
|
group?: string | null | undefined;
|
|
21281
|
-
canSetGroup?: boolean
|
|
21282
|
-
isEditable?: boolean
|
|
21283
|
-
isDeletable?: boolean
|
|
21645
|
+
canSetGroup?: boolean;
|
|
21646
|
+
isEditable?: boolean;
|
|
21647
|
+
isDeletable?: boolean;
|
|
21284
21648
|
blendMode?: IBlendMode | undefined;
|
|
21285
21649
|
id: string | null;
|
|
21286
21650
|
name: string | null;
|
|
@@ -23083,7 +23447,7 @@ declare function SignaturesMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
23083
23447
|
* new `array` of signatures which would overwrite the existing one, or a callback that will get
|
|
23084
23448
|
* invoked with the current toolbar items and is expected to return the new `array` of items.
|
|
23085
23449
|
*/
|
|
23086
|
-
setInkSignatures(stateOrFunction: List<
|
|
23450
|
+
setInkSignatures(stateOrFunction: ((annotations: List<InkAnnotation | ImageAnnotation>) => List<InkAnnotation | ImageAnnotation>) | List<InkAnnotation | ImageAnnotation>): Promise<void>;
|
|
23087
23451
|
/**
|
|
23088
23452
|
* This method is used to update the stored signatures list.
|
|
23089
23453
|
* It makes it possible to add new signatures and edit or remove existing ones.
|
|
@@ -23144,7 +23508,7 @@ declare function SignaturesMixin<T extends Class<BaseMixin>>(Base: T): {
|
|
|
23144
23508
|
* @param stateOrFunction - a new `array` of signatures which would overwrite the existing one, or a callback that will get
|
|
23145
23509
|
* invoked with the current toolbar items and is expected to return the new `array` of items.
|
|
23146
23510
|
*/
|
|
23147
|
-
setStoredSignatures(stateOrFunction: List<
|
|
23511
|
+
setStoredSignatures(stateOrFunction: ((annotations: List<InkAnnotation | ImageAnnotation>) => List<InkAnnotation | ImageAnnotation>) | List<InkAnnotation | ImageAnnotation>): Promise<void>;
|
|
23148
23512
|
|
|
23149
23513
|
};
|
|
23150
23514
|
} & T;
|
|
@@ -24645,7 +25009,7 @@ declare const textComparisonActionCreators: {
|
|
|
24645
25009
|
payload: {
|
|
24646
25010
|
instanceA: Instance;
|
|
24647
25011
|
instanceB: Instance;
|
|
24648
|
-
aiComparisonData?: AIComparisonData | null
|
|
25012
|
+
aiComparisonData?: AIComparisonData | null;
|
|
24649
25013
|
};
|
|
24650
25014
|
};
|
|
24651
25015
|
setToolbarItems: (payload: List<ToolbarItem_2>) => {
|
|
@@ -24984,6 +25348,7 @@ declare interface TextComparisonState {
|
|
|
24984
25348
|
filteredChanges: AIADocumentChangeTaggingItem[] | null;
|
|
24985
25349
|
displayChanges: List<TextComparisonChange>;
|
|
24986
25350
|
hasActiveFilters: boolean;
|
|
25351
|
+
isRTL: boolean;
|
|
24987
25352
|
}
|
|
24988
25353
|
|
|
24989
25354
|
export declare interface TextComparisonToolbarItem extends Omit<ToolItem_2, 'type' | 'onPress'> {
|