@rhc-office/sdk 6.6.390 → 6.6.393
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/api/annotation-tool.d.ts +21 -0
- package/dist/api/annotation-tool.d.ts.map +1 -1
- package/dist/browser/document-viewer.js +1 -1
- package/dist/browser/document-viewer.js.map +1 -1
- package/dist/index.js +21 -20
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/tools/AnnotationToolImpl.d.ts +1 -0
- package/dist/tools/AnnotationToolImpl.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/annotation-tool.ts +29 -0
- package/src/tools/AnnotationToolImpl.ts +5 -0
|
@@ -13,6 +13,7 @@ export declare class AnnotationToolImpl implements AnnotationTool {
|
|
|
13
13
|
canRedoAnnotation: AnnotationTool['canRedoAnnotation'];
|
|
14
14
|
selectAnnotationTool: AnnotationTool['selectAnnotationTool'];
|
|
15
15
|
selectAnnotationStamp: AnnotationTool['selectAnnotationStamp'];
|
|
16
|
+
openTextNoteCalloutDialog: AnnotationTool['openTextNoteCalloutDialog'];
|
|
16
17
|
getCustomStamps: AnnotationTool['getCustomStamps'];
|
|
17
18
|
addCustomTextStamp: AnnotationTool['addCustomTextStamp'];
|
|
18
19
|
addCustomImageStamp: AnnotationTool['addCustomImageStamp'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationToolImpl.d.ts","sourceRoot":"","sources":["../../src/tools/AnnotationToolImpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,wBAAwB,EAE9B,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"AnnotationToolImpl.d.ts","sourceRoot":"","sources":["../../src/tools/AnnotationToolImpl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,cAAc,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AAc,CAAC,gBAAgB,CAAC,CAE9C;IAEF,mBAAmB,EAAE,cAAc,CAAC,qBAAqB,CAAC,CAExD;IAEF,0BAA0B,EAAE,cAAc,CAAC,4BAA4B,CAAC,CAEtE;CACH"}
|
package/package.json
CHANGED
|
@@ -142,6 +142,25 @@ export interface AnnotationTextBoxOptions {
|
|
|
142
142
|
captionShowDate?: boolean;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
+
export interface TextNoteCalloutPhraseObject {
|
|
146
|
+
id?: string;
|
|
147
|
+
label: string;
|
|
148
|
+
text?: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type TextNoteCalloutPhrase = string | TextNoteCalloutPhraseObject;
|
|
152
|
+
|
|
153
|
+
export interface TextNoteCalloutDialogOptions {
|
|
154
|
+
commonPhrases?: TextNoteCalloutPhrase[];
|
|
155
|
+
maxLength?: number;
|
|
156
|
+
title?: string;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface TextNoteCalloutDialogResult {
|
|
160
|
+
annotationId?: string;
|
|
161
|
+
status: 'cancelled' | 'confirmed';
|
|
162
|
+
}
|
|
163
|
+
|
|
145
164
|
export type LegacyAnnotationPenType =
|
|
146
165
|
| AnnotationViewPenType
|
|
147
166
|
| 'draw'
|
|
@@ -171,7 +190,13 @@ export interface AnnotationPenStyleOptions {
|
|
|
171
190
|
pressureSensitivity?: boolean;
|
|
172
191
|
}
|
|
173
192
|
|
|
193
|
+
export interface AnnotationEraserOptions {
|
|
194
|
+
eraserMode?: 'object' | 'stroke';
|
|
195
|
+
}
|
|
196
|
+
|
|
174
197
|
export interface AnnotationToolSelectOptions {
|
|
198
|
+
eraser?: AnnotationEraserOptions;
|
|
199
|
+
shape?: AnnotationShapeOptions;
|
|
175
200
|
stamp?: AnnotationStampOptions;
|
|
176
201
|
textBox?: AnnotationTextBoxOptions;
|
|
177
202
|
textMarkup?: AnnotationTextMarkupOptions;
|
|
@@ -294,6 +319,10 @@ export interface AnnotationTool {
|
|
|
294
319
|
|
|
295
320
|
selectAnnotationStamp(stamp: AnnotationStampOptions): void;
|
|
296
321
|
|
|
322
|
+
openTextNoteCalloutDialog(
|
|
323
|
+
options?: TextNoteCalloutDialogOptions,
|
|
324
|
+
): Promise<TextNoteCalloutDialogResult>;
|
|
325
|
+
|
|
297
326
|
getCustomStamps(): Promise<AnnotationCustomStampRecord[]>;
|
|
298
327
|
|
|
299
328
|
addCustomTextStamp(input: AnnotationCustomTextStampInput): Promise<AnnotationCustomStampRecord>;
|
|
@@ -79,6 +79,7 @@ const ANNOTATION_TOOL_DESCRIPTOR: BridgeToolDescriptor = {
|
|
|
79
79
|
canRedoAnnotation: { kind: 'query' },
|
|
80
80
|
selectAnnotationTool: { kind: 'command' },
|
|
81
81
|
selectAnnotationStamp: { kind: 'command' },
|
|
82
|
+
openTextNoteCalloutDialog: { kind: 'command', returnsResult: true },
|
|
82
83
|
getCustomStamps: { kind: 'query' },
|
|
83
84
|
addCustomTextStamp: { kind: 'query' },
|
|
84
85
|
addCustomImageStamp: { kind: 'query' },
|
|
@@ -138,6 +139,10 @@ export class AnnotationToolImpl implements AnnotationTool {
|
|
|
138
139
|
return this.adapter.selectAnnotationStamp(stamp);
|
|
139
140
|
};
|
|
140
141
|
|
|
142
|
+
openTextNoteCalloutDialog: AnnotationTool['openTextNoteCalloutDialog'] = (options) => {
|
|
143
|
+
return this.adapter.openTextNoteCalloutDialog(options);
|
|
144
|
+
};
|
|
145
|
+
|
|
141
146
|
getCustomStamps: AnnotationTool['getCustomStamps'] = () => {
|
|
142
147
|
return this.adapter.getCustomStamps();
|
|
143
148
|
};
|