@ckeditor/ckeditor5-clipboard 38.0.1 → 38.1.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.
@@ -1,94 +1,94 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- /**
6
- * @module clipboard/dragdroptarget
7
- */
8
- import { Plugin } from '@ckeditor/ckeditor5-core';
9
- import { type Range, type ViewElement, type ViewRange } from '@ckeditor/ckeditor5-engine';
10
- /**
11
- * Part of the Drag and Drop handling. Responsible for finding and displaying the drop target.
12
- *
13
- * @internal
14
- */
15
- export default class DragDropTarget extends Plugin {
16
- /**
17
- * A delayed callback removing the drop marker.
18
- *
19
- * @internal
20
- */
21
- readonly removeDropMarkerDelayed: import("@ckeditor/ckeditor5-utils").DelayedFunc<() => void>;
22
- /**
23
- * A throttled callback updating the drop marker.
24
- */
25
- private readonly _updateDropMarkerThrottled;
26
- /**
27
- * A throttled callback reconverting the drop parker.
28
- */
29
- private readonly _reconvertMarkerThrottled;
30
- /**
31
- * The horizontal drop target line view.
32
- */
33
- private _dropTargetLineView;
34
- /**
35
- * DOM Emitter.
36
- */
37
- private _domEmitter;
38
- /**
39
- * Map of document scrollable elements.
40
- */
41
- private _scrollables;
42
- /**
43
- * @inheritDoc
44
- */
45
- static get pluginName(): 'DragDropTarget';
46
- /**
47
- * @inheritDoc
48
- */
49
- init(): void;
50
- /**
51
- * @inheritDoc
52
- */
53
- destroy(): void;
54
- /**
55
- * Finds the drop target range and updates the drop marker.
56
- *
57
- * @internal
58
- */
59
- updateDropMarker(targetViewElement: ViewElement, targetViewRanges: Array<ViewRange> | null, clientX: number, clientY: number, blockMode: boolean): void;
60
- /**
61
- * Finds the final drop target range.
62
- *
63
- * @internal
64
- */
65
- getFinalDropRange(targetViewElement: ViewElement, targetViewRanges: Array<ViewRange> | null, clientX: number, clientY: number, blockMode: boolean): Range | null;
66
- /**
67
- * Removes the drop target marker.
68
- *
69
- * @internal
70
- */
71
- removeDropMarker(): void;
72
- /**
73
- * Creates downcast conversion for the drop target marker.
74
- */
75
- private _setupDropMarker;
76
- /**
77
- * Updates the drop target marker to the provided range.
78
- *
79
- * @param targetRange The range to set the marker to.
80
- */
81
- private _updateDropMarker;
82
- /**
83
- * Creates the UI element for vertical (in-line) drop target.
84
- */
85
- private _createDropTargetPosition;
86
- /**
87
- * Updates the horizontal drop target line.
88
- */
89
- private _updateDropTargetLine;
90
- /**
91
- * Finds the closest scrollable element rect for the given view element.
92
- */
93
- private _getScrollableRect;
94
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module clipboard/dragdroptarget
7
+ */
8
+ import { Plugin } from '@ckeditor/ckeditor5-core';
9
+ import { type Range, type ViewElement, type ViewRange } from '@ckeditor/ckeditor5-engine';
10
+ /**
11
+ * Part of the Drag and Drop handling. Responsible for finding and displaying the drop target.
12
+ *
13
+ * @internal
14
+ */
15
+ export default class DragDropTarget extends Plugin {
16
+ /**
17
+ * A delayed callback removing the drop marker.
18
+ *
19
+ * @internal
20
+ */
21
+ readonly removeDropMarkerDelayed: import("@ckeditor/ckeditor5-utils").DelayedFunc<() => void>;
22
+ /**
23
+ * A throttled callback updating the drop marker.
24
+ */
25
+ private readonly _updateDropMarkerThrottled;
26
+ /**
27
+ * A throttled callback reconverting the drop parker.
28
+ */
29
+ private readonly _reconvertMarkerThrottled;
30
+ /**
31
+ * The horizontal drop target line view.
32
+ */
33
+ private _dropTargetLineView;
34
+ /**
35
+ * DOM Emitter.
36
+ */
37
+ private _domEmitter;
38
+ /**
39
+ * Map of document scrollable elements.
40
+ */
41
+ private _scrollables;
42
+ /**
43
+ * @inheritDoc
44
+ */
45
+ static get pluginName(): "DragDropTarget";
46
+ /**
47
+ * @inheritDoc
48
+ */
49
+ init(): void;
50
+ /**
51
+ * @inheritDoc
52
+ */
53
+ destroy(): void;
54
+ /**
55
+ * Finds the drop target range and updates the drop marker.
56
+ *
57
+ * @internal
58
+ */
59
+ updateDropMarker(targetViewElement: ViewElement, targetViewRanges: Array<ViewRange> | null, clientX: number, clientY: number, blockMode: boolean): void;
60
+ /**
61
+ * Finds the final drop target range.
62
+ *
63
+ * @internal
64
+ */
65
+ getFinalDropRange(targetViewElement: ViewElement, targetViewRanges: Array<ViewRange> | null, clientX: number, clientY: number, blockMode: boolean): Range | null;
66
+ /**
67
+ * Removes the drop target marker.
68
+ *
69
+ * @internal
70
+ */
71
+ removeDropMarker(): void;
72
+ /**
73
+ * Creates downcast conversion for the drop target marker.
74
+ */
75
+ private _setupDropMarker;
76
+ /**
77
+ * Updates the drop target marker to the provided range.
78
+ *
79
+ * @param targetRange The range to set the marker to.
80
+ */
81
+ private _updateDropMarker;
82
+ /**
83
+ * Creates the UI element for vertical (in-line) drop target.
84
+ */
85
+ private _createDropTargetPosition;
86
+ /**
87
+ * Updates the horizontal drop target line.
88
+ */
89
+ private _updateDropTargetLine;
90
+ /**
91
+ * Finds the closest scrollable element rect for the given view element.
92
+ */
93
+ private _getScrollableRect;
94
+ }