@ckeditor/ckeditor5-comments 38.1.1 → 38.2.0-alpha.1
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/build/comments.js +1 -1
- package/package.json +4 -3
- package/src/annotations/annotation.d.ts +86 -86
- package/src/annotations/annotation.js +1 -1
- package/src/annotations/annotationcollection.d.ts +94 -94
- package/src/annotations/annotationcollection.js +1 -1
- package/src/annotations/annotations.d.ts +150 -150
- package/src/annotations/annotations.js +1 -1
- package/src/annotations/annotationsuis.d.ts +228 -228
- package/src/annotations/annotationsuis.js +1 -1
- package/src/annotations/editorannotations.d.ts +63 -63
- package/src/annotations/editorannotations.js +1 -1
- package/src/annotations/inlineannotations.d.ts +86 -86
- package/src/annotations/inlineannotations.js +1 -1
- package/src/annotations/narrowsidebar.d.ts +81 -81
- package/src/annotations/narrowsidebar.js +1 -1
- package/src/annotations/sidebar.d.ts +96 -96
- package/src/annotations/sidebar.js +1 -1
- package/src/annotations/view/annotationcounterbuttonview.d.ts +25 -25
- package/src/annotations/view/annotationcounterbuttonview.js +1 -1
- package/src/annotations/view/annotationview.d.ts +86 -86
- package/src/annotations/view/annotationview.js +1 -1
- package/src/annotations/view/sidebaritemview.d.ts +51 -51
- package/src/annotations/view/sidebaritemview.js +1 -1
- package/src/annotations/view/sidebarview.d.ts +28 -28
- package/src/annotations/view/sidebarview.js +1 -1
- package/src/annotations/widesidebar.d.ts +73 -73
- package/src/annotations/widesidebar.js +1 -1
- package/src/augmentation.d.ts +48 -48
- package/src/comments/addcommentthreadcommand.d.ts +31 -31
- package/src/comments/addcommentthreadcommand.js +1 -1
- package/src/comments/commentsarchive.d.ts +27 -27
- package/src/comments/commentsarchive.js +1 -1
- package/src/comments/commentsarchiveui.d.ts +34 -34
- package/src/comments/commentsarchiveui.js +1 -1
- package/src/comments/commentsediting.d.ts +75 -75
- package/src/comments/commentsediting.js +1 -1
- package/src/comments/commentsrepository.d.ts +1088 -1088
- package/src/comments/commentsrepository.js +1 -1
- package/src/comments/commentsui.d.ts +29 -29
- package/src/comments/commentsui.js +1 -1
- package/src/comments/integrations/commentsrestrictededitingmode.d.ts +13 -13
- package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
- package/src/comments/integrations/importword.d.ts +17 -17
- package/src/comments/integrations/importword.js +1 -1
- package/src/comments/ui/commenteditor/commenteditor.d.ts +32 -32
- package/src/comments/ui/commenteditor/commenteditor.js +1 -1
- package/src/comments/ui/commenteditor/commenteditorui.d.ts +27 -27
- package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
- package/src/comments/ui/commenteditor/commenteditoruiview.d.ts +32 -32
- package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
- package/src/comments/ui/commentthreadcontroller.d.ts +64 -64
- package/src/comments/ui/commentthreadcontroller.js +1 -1
- package/src/comments/ui/view/basecommentthreadview.d.ts +108 -108
- package/src/comments/ui/view/basecommentthreadview.js +1 -1
- package/src/comments/ui/view/basecommentview.d.ts +108 -108
- package/src/comments/ui/view/basecommentview.js +1 -1
- package/src/comments/ui/view/collapsedcommentsview.d.ts +9 -9
- package/src/comments/ui/view/collapsedcommentsview.js +1 -1
- package/src/comments/ui/view/commentcontentview.d.ts +10 -10
- package/src/comments/ui/view/commentcontentview.js +1 -1
- package/src/comments/ui/view/commentinputview.d.ts +82 -82
- package/src/comments/ui/view/commentinputview.js +1 -1
- package/src/comments/ui/view/commentsarchiveview.d.ts +34 -34
- package/src/comments/ui/view/commentsarchiveview.js +1 -1
- package/src/comments/ui/view/commentslistview.d.ts +96 -96
- package/src/comments/ui/view/commentslistview.js +1 -1
- package/src/comments/ui/view/commentthreadheaderview.d.ts +46 -46
- package/src/comments/ui/view/commentthreadheaderview.js +1 -1
- package/src/comments/ui/view/commentthreadinputview.d.ts +37 -37
- package/src/comments/ui/view/commentthreadinputview.js +1 -1
- package/src/comments/ui/view/commentthreadview.d.ts +113 -113
- package/src/comments/ui/view/commentthreadview.js +1 -1
- package/src/comments/ui/view/commentview.d.ts +239 -239
- package/src/comments/ui/view/commentview.js +1 -1
- package/src/comments.d.ts +31 -31
- package/src/comments.js +1 -1
- package/src/commentsonly.d.ts +29 -29
- package/src/commentsonly.js +1 -1
- package/src/config.d.ts +172 -172
- package/src/index.d.ts +21 -21
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +5 -5
- package/src/utils/common-translations.js +1 -1
- package/src/utils/createmutationobserver.d.ts +13 -13
- package/src/utils/createmutationobserver.js +1 -1
|
@@ -1,150 +1,150 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module comments/annotations/annotations
|
|
3
|
-
* @publicApi
|
|
4
|
-
*/
|
|
5
|
-
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core';
|
|
6
|
-
import type { View } from 'ckeditor5/src/ui';
|
|
7
|
-
import { type Locale } from 'ckeditor5/src/utils';
|
|
8
|
-
import Annotation, { type AnnotationTarget } from './annotation';
|
|
9
|
-
import AnnotationCollection from './annotationcollection';
|
|
10
|
-
import AnnotationView, { type AnnotationMainView } from './view/annotationview';
|
|
11
|
-
/**
|
|
12
|
-
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
13
|
-
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
14
|
-
*
|
|
15
|
-
* It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
|
|
16
|
-
* {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
|
|
17
|
-
*
|
|
18
|
-
* It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
|
|
19
|
-
* {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
|
|
20
|
-
* result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
|
|
21
|
-
* {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
|
|
22
|
-
*
|
|
23
|
-
* All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
|
|
24
|
-
*
|
|
25
|
-
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
26
|
-
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
27
|
-
*/
|
|
28
|
-
export default class Annotations extends ContextPlugin {
|
|
29
|
-
/**
|
|
30
|
-
* A set of currently active annotations.
|
|
31
|
-
*
|
|
32
|
-
* @observable
|
|
33
|
-
*/
|
|
34
|
-
activeAnnotations: Set<Annotation>;
|
|
35
|
-
/**
|
|
36
|
-
* A collection of all annotations. It should not be operated on directly.
|
|
37
|
-
*/
|
|
38
|
-
readonly collection: AnnotationCollection;
|
|
39
|
-
/**
|
|
40
|
-
* @inheritDoc
|
|
41
|
-
*/
|
|
42
|
-
static get pluginName(): "Annotations";
|
|
43
|
-
/**
|
|
44
|
-
* @inheritDoc
|
|
45
|
-
*/
|
|
46
|
-
constructor(context: Context | Editor);
|
|
47
|
-
/**
|
|
48
|
-
* Adds an annotation to the collection.
|
|
49
|
-
*/
|
|
50
|
-
add(annotation: Annotation): void;
|
|
51
|
-
/**
|
|
52
|
-
* Removes the given annotation from the collection.
|
|
53
|
-
*/
|
|
54
|
-
remove(annotation: Annotation): void;
|
|
55
|
-
/**
|
|
56
|
-
* Refreshes the visibility of annotations based on the visibility of their annotation targets.
|
|
57
|
-
*
|
|
58
|
-
* This method should be called when one or more annotations' targets changed their visibility,
|
|
59
|
-
* for example when one of the editors was shown or hidden.
|
|
60
|
-
*
|
|
61
|
-
* This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
|
|
62
|
-
*/
|
|
63
|
-
refreshVisibility(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
|
|
66
|
-
*/
|
|
67
|
-
refreshPositioning(): void;
|
|
68
|
-
/**
|
|
69
|
-
* Returns the annotation that "contains" the given annotation view's inner view.
|
|
70
|
-
*/
|
|
71
|
-
getByInnerView(innerView: View): Annotation | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Deactivates all active annotations.
|
|
74
|
-
*
|
|
75
|
-
* @fires _deactivateAllAnnotations
|
|
76
|
-
*/
|
|
77
|
-
deactivateAll(): void;
|
|
78
|
-
/**
|
|
79
|
-
* @inheritDoc
|
|
80
|
-
*/
|
|
81
|
-
destroy(): void;
|
|
82
|
-
/**
|
|
83
|
-
* Activates the given annotation.
|
|
84
|
-
*
|
|
85
|
-
* If annotations UI that handles the given annotation already has an active annotation,
|
|
86
|
-
* then it deactivates it and activates the provided one.
|
|
87
|
-
*
|
|
88
|
-
* @fires _activateAnnotation
|
|
89
|
-
*/
|
|
90
|
-
activate(annotation: Annotation): void;
|
|
91
|
-
/**
|
|
92
|
-
* Creates an annotation.
|
|
93
|
-
*
|
|
94
|
-
* ```ts
|
|
95
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
96
|
-
*
|
|
97
|
-
* const annotation = annotations.createAnnotation( {
|
|
98
|
-
* view: annotationView,
|
|
99
|
-
* target: document.getElementById( 'target' ),
|
|
100
|
-
* type: 'comment'
|
|
101
|
-
* } );
|
|
102
|
-
* ```
|
|
103
|
-
*
|
|
104
|
-
* @returns An annotation.
|
|
105
|
-
*/
|
|
106
|
-
createAnnotation(options: AnnotationOptions): Annotation;
|
|
107
|
-
/**
|
|
108
|
-
* Creates an annotation view wrapper for the annotation content.
|
|
109
|
-
*
|
|
110
|
-
* ```ts
|
|
111
|
-
* const innerView = createCustomView();
|
|
112
|
-
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
113
|
-
* ```
|
|
114
|
-
*
|
|
115
|
-
* @returns An annotation view.
|
|
116
|
-
*/
|
|
117
|
-
createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
121
|
-
*
|
|
122
|
-
* @param view The annotation view.
|
|
123
|
-
* @param target The annotation target.
|
|
124
|
-
* @param type The annotation type.
|
|
125
|
-
* @param isVisible The initial visibility of the annotation.
|
|
126
|
-
*/
|
|
127
|
-
export interface AnnotationOptions {
|
|
128
|
-
view: AnnotationView;
|
|
129
|
-
target: AnnotationTarget;
|
|
130
|
-
type: string | (() => string);
|
|
131
|
-
isVisible?: boolean;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* An internal event that fires when the annotation should be activated.
|
|
135
|
-
*
|
|
136
|
-
* @eventName ~Annotations#_activateAnnotation
|
|
137
|
-
*/
|
|
138
|
-
export type ActivateAnnotationEvent = {
|
|
139
|
-
name: '_activateAnnotation';
|
|
140
|
-
args: [annotation: Annotation];
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* An internal event that fires when all annotations should be deactivated.
|
|
144
|
-
*
|
|
145
|
-
* @eventName ~Annotations#_deactivateAllAnnotations
|
|
146
|
-
*/
|
|
147
|
-
export type DeactivateAllAnnotationsEvent = {
|
|
148
|
-
name: '_deactivateAllAnnotations';
|
|
149
|
-
args: [];
|
|
150
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* @module comments/annotations/annotations
|
|
3
|
+
* @publicApi
|
|
4
|
+
*/
|
|
5
|
+
import { ContextPlugin, type Context, type Editor } from 'ckeditor5/src/core.js';
|
|
6
|
+
import type { View } from 'ckeditor5/src/ui.js';
|
|
7
|
+
import { type Locale } from 'ckeditor5/src/utils.js';
|
|
8
|
+
import Annotation, { type AnnotationTarget } from './annotation.js';
|
|
9
|
+
import AnnotationCollection from './annotationcollection.js';
|
|
10
|
+
import AnnotationView, { type AnnotationMainView } from './view/annotationview.js';
|
|
11
|
+
/**
|
|
12
|
+
* Stores and manages all {@link module:comments/annotations/annotation~Annotation annotations} created
|
|
13
|
+
* for the entire {@link module:core/context~Context} or {@link module:core/editor/editor~Editor}.
|
|
14
|
+
*
|
|
15
|
+
* It allows for {@link module:comments/annotations/annotations~Annotations#add adding} and
|
|
16
|
+
* {@link module:comments/annotations/annotations~Annotations#remove removing} annotations.
|
|
17
|
+
*
|
|
18
|
+
* It manages {@link module:comments/annotations/annotations~Annotations#activate activating} and
|
|
19
|
+
* {@link module:comments/annotations/annotations~Annotations#deactivateAll deactivating} annotations. Using those methods will
|
|
20
|
+
* result in setting {@link module:comments/annotations/annotationsuis~AnnotationUI#activeAnnotation} in the appropriate
|
|
21
|
+
* {@link module:comments/annotations/annotationsuis~AnnotationsUI annotations UI} plugins.
|
|
22
|
+
*
|
|
23
|
+
* All active annotations are stored in {@link module:comments/annotations/annotations~Annotations#activeAnnotations}.
|
|
24
|
+
*
|
|
25
|
+
* `Annotations` is linked with {@link module:comments/annotations/annotationsuis~AnnotationsUIs}, which listens to events fired by
|
|
26
|
+
* `Annotations` and propagates information to and from annotations UI plugins.
|
|
27
|
+
*/
|
|
28
|
+
export default class Annotations extends ContextPlugin {
|
|
29
|
+
/**
|
|
30
|
+
* A set of currently active annotations.
|
|
31
|
+
*
|
|
32
|
+
* @observable
|
|
33
|
+
*/
|
|
34
|
+
activeAnnotations: Set<Annotation>;
|
|
35
|
+
/**
|
|
36
|
+
* A collection of all annotations. It should not be operated on directly.
|
|
37
|
+
*/
|
|
38
|
+
readonly collection: AnnotationCollection;
|
|
39
|
+
/**
|
|
40
|
+
* @inheritDoc
|
|
41
|
+
*/
|
|
42
|
+
static get pluginName(): "Annotations";
|
|
43
|
+
/**
|
|
44
|
+
* @inheritDoc
|
|
45
|
+
*/
|
|
46
|
+
constructor(context: Context | Editor);
|
|
47
|
+
/**
|
|
48
|
+
* Adds an annotation to the collection.
|
|
49
|
+
*/
|
|
50
|
+
add(annotation: Annotation): void;
|
|
51
|
+
/**
|
|
52
|
+
* Removes the given annotation from the collection.
|
|
53
|
+
*/
|
|
54
|
+
remove(annotation: Annotation): void;
|
|
55
|
+
/**
|
|
56
|
+
* Refreshes the visibility of annotations based on the visibility of their annotation targets.
|
|
57
|
+
*
|
|
58
|
+
* This method should be called when one or more annotations' targets changed their visibility,
|
|
59
|
+
* for example when one of the editors was shown or hidden.
|
|
60
|
+
*
|
|
61
|
+
* This method recalculates all annotations' {@link module:comments/annotations/annotation~Annotation#isVisible `isVisible`} property.
|
|
62
|
+
*/
|
|
63
|
+
refreshVisibility(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Refreshes the positioning of all visible annotations and sorts them topmost and leftmost.
|
|
66
|
+
*/
|
|
67
|
+
refreshPositioning(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Returns the annotation that "contains" the given annotation view's inner view.
|
|
70
|
+
*/
|
|
71
|
+
getByInnerView(innerView: View): Annotation | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Deactivates all active annotations.
|
|
74
|
+
*
|
|
75
|
+
* @fires _deactivateAllAnnotations
|
|
76
|
+
*/
|
|
77
|
+
deactivateAll(): void;
|
|
78
|
+
/**
|
|
79
|
+
* @inheritDoc
|
|
80
|
+
*/
|
|
81
|
+
destroy(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Activates the given annotation.
|
|
84
|
+
*
|
|
85
|
+
* If annotations UI that handles the given annotation already has an active annotation,
|
|
86
|
+
* then it deactivates it and activates the provided one.
|
|
87
|
+
*
|
|
88
|
+
* @fires _activateAnnotation
|
|
89
|
+
*/
|
|
90
|
+
activate(annotation: Annotation): void;
|
|
91
|
+
/**
|
|
92
|
+
* Creates an annotation.
|
|
93
|
+
*
|
|
94
|
+
* ```ts
|
|
95
|
+
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
96
|
+
*
|
|
97
|
+
* const annotation = annotations.createAnnotation( {
|
|
98
|
+
* view: annotationView,
|
|
99
|
+
* target: document.getElementById( 'target' ),
|
|
100
|
+
* type: 'comment'
|
|
101
|
+
* } );
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @returns An annotation.
|
|
105
|
+
*/
|
|
106
|
+
createAnnotation(options: AnnotationOptions): Annotation;
|
|
107
|
+
/**
|
|
108
|
+
* Creates an annotation view wrapper for the annotation content.
|
|
109
|
+
*
|
|
110
|
+
* ```ts
|
|
111
|
+
* const innerView = createCustomView();
|
|
112
|
+
* const annotationView = annotations.createAnnotationView( editor.locale, innerView );
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* @returns An annotation view.
|
|
116
|
+
*/
|
|
117
|
+
createAnnotationView(locale: Locale, view: AnnotationMainView): AnnotationView;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The configuration options which are used to create new {@link module:comments/annotations/annotation~Annotation annotations}.
|
|
121
|
+
*
|
|
122
|
+
* @param view The annotation view.
|
|
123
|
+
* @param target The annotation target.
|
|
124
|
+
* @param type The annotation type.
|
|
125
|
+
* @param isVisible The initial visibility of the annotation.
|
|
126
|
+
*/
|
|
127
|
+
export interface AnnotationOptions {
|
|
128
|
+
view: AnnotationView;
|
|
129
|
+
target: AnnotationTarget;
|
|
130
|
+
type: string | (() => string);
|
|
131
|
+
isVisible?: boolean;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* An internal event that fires when the annotation should be activated.
|
|
135
|
+
*
|
|
136
|
+
* @eventName ~Annotations#_activateAnnotation
|
|
137
|
+
*/
|
|
138
|
+
export type ActivateAnnotationEvent = {
|
|
139
|
+
name: '_activateAnnotation';
|
|
140
|
+
args: [annotation: Annotation];
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* An internal event that fires when all annotations should be deactivated.
|
|
144
|
+
*
|
|
145
|
+
* @eventName ~Annotations#_deactivateAllAnnotations
|
|
146
|
+
*/
|
|
147
|
+
export type DeactivateAllAnnotationsEvent = {
|
|
148
|
+
name: '_deactivateAllAnnotations';
|
|
149
|
+
args: [];
|
|
150
|
+
};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5a99=['element','focusTracker','listenTo','Annotations','deactivateAll','_addActiveAnnotation','collection','getByInnerView','add','change:isVisible','stopListening','_bindAnnotationsToVisibleAnnotations','refreshVisibility','delete','pluginName','refreshPositioning','has','view','fire','destroy','_activateAnnotation','_visibleAnnotations','remove','activeAnnotations','isVisible','source'];(function(_0x59d138,_0x5a9928){const _0x5a84f9=function(_0x18fa55){while(--_0x18fa55){_0x59d138['push'](_0x59d138['shift']());}};_0x5a84f9(++_0x5a9928);}(_0x5a99,0x1dd));const _0x5a84=function(_0x59d138,_0x5a9928){_0x59d138=_0x59d138-0x0;let _0x5a84f9=_0x5a99[_0x59d138];return _0x5a84f9;};import{ContextPlugin as _0x14d2ba}from'ckeditor5/src/core.js';import _0x3d0bdf from'./annotation.js';import _0x18883b from'./annotationcollection.js';import _0x28232b from'./view/annotationview.js';export default class b extends _0x14d2ba{static get[_0x5a84('0x5')](){return _0x5a84('0x14');}constructor(_0x47ddb4){super(_0x47ddb4),this[_0x5a84('0x17')]=new _0x18883b(),this['_visibleAnnotations']=new _0x18883b(),this['set']('activeAnnotations',new Set()),this[_0x5a84('0x2')]();}[_0x5a84('0x19')](_0x5b217c){this[_0x5a84('0x17')][_0x5a84('0x19')](_0x5b217c);}[_0x5a84('0xd')](_0x502335){this[_0x5a84('0x17')][_0x5a84('0xd')](_0x502335),_0x502335[_0x5a84('0xa')]();}[_0x5a84('0x3')](){for(const _0x37531d of this['collection'])_0x37531d[_0x5a84('0x3')]();}[_0x5a84('0x6')](){this['_visibleAnnotations'][_0x5a84('0x6')]();}[_0x5a84('0x18')](_0x4a6554){return this[_0x5a84('0x17')]['getByInnerView'](_0x4a6554);}[_0x5a84('0x15')](){this['fire']('_deactivateAllAnnotations');}[_0x5a84('0xa')](){for(const _0x34665c of this[_0x5a84('0x17')])_0x34665c[_0x5a84('0xa')]();this[_0x5a84('0xc')][_0x5a84('0xa')](),this[_0x5a84('0x17')][_0x5a84('0xa')](),super[_0x5a84('0xa')]();}['activate'](_0x48e6c0){this[_0x5a84('0x9')](_0x5a84('0xb'),_0x48e6c0);}['createAnnotation'](_0xa2492){return new _0x3d0bdf(_0xa2492);}['createAnnotationView'](_0x35c266,_0x42f684){return new _0x28232b(_0x35c266,_0x42f684);}[_0x5a84('0x16')](_0x1c528d){const _0x1c9701=new Set(this[_0x5a84('0xe')]);_0x1c9701[_0x5a84('0x19')](_0x1c528d),this[_0x5a84('0xe')]=_0x1c9701;}['_removeActiveAnnotation'](_0x5953b7){const _0x3f02df=new Set(this[_0x5a84('0xe')]);_0x3f02df[_0x5a84('0x4')](_0x5953b7),this['activeAnnotations']=_0x3f02df;}[_0x5a84('0x2')](){const _0x37781a=this[_0x5a84('0x17')],_0x1c5a41=this['_visibleAnnotations'];function _0x50a938(_0x4228e2){const _0x371cb6=_0x4228e2[_0x5a84('0x10')];_0x371cb6[_0x5a84('0xf')]&&!_0x1c5a41['has'](_0x371cb6)?_0x1c5a41[_0x5a84('0x19')](_0x371cb6):!_0x371cb6['isVisible']&&_0x1c5a41[_0x5a84('0x7')](_0x371cb6)&&_0x1c5a41[_0x5a84('0xd')](_0x371cb6),_0x371cb6[_0x5a84('0x8')][_0x5a84('0x12')][_0x5a84('0xd')](_0x371cb6['view'][_0x5a84('0x11')]),_0x371cb6[_0x5a84('0x8')]['focusTracker'][_0x5a84('0x19')](_0x371cb6['view'][_0x5a84('0x11')]);}this[_0x5a84('0x13')](_0x37781a,_0x5a84('0x19'),(_0x1689fc,_0x4a0dab)=>{_0x4a0dab[_0x5a84('0xf')]&&_0x1c5a41['add'](_0x4a0dab),this['listenTo'](_0x4a0dab,_0x5a84('0x0'),_0x50a938);}),this['listenTo'](_0x37781a,_0x5a84('0xd'),(_0x410f44,_0x3d9224)=>{_0x1c5a41[_0x5a84('0x7')](_0x3d9224)&&_0x1c5a41[_0x5a84('0xd')](_0x3d9224),this[_0x5a84('0x1')](_0x3d9224,_0x5a84('0x0'),_0x50a938);});}}
|