@ckeditor/ckeditor5-minimap 0.0.0-internal-20241017.0

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.
@@ -0,0 +1,58 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 minimap/minimappositiontrackerview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ /**
11
+ * The position tracker visualizing the visible subset of the content. Displayed over the minimap.
12
+ *
13
+ * @internal
14
+ */
15
+ export default class MinimapPositionTrackerView extends View {
16
+ /**
17
+ * The CSS `height` of the tracker visualizing the subset of the content visible to the user.
18
+ *
19
+ * @readonly
20
+ */
21
+ height: number;
22
+ /**
23
+ * The CSS `top` of the tracker, used to move it vertically over the minimap.
24
+ *
25
+ * @readonly
26
+ */
27
+ top: number;
28
+ /**
29
+ * The scroll progress (in %) displayed over the tracker when being dragged by the user.
30
+ *
31
+ * @readonly
32
+ */
33
+ scrollProgress: number;
34
+ /**
35
+ * Indicates whether the tracker is being dragged by the user (e.g. using the mouse).
36
+ *
37
+ * @internal
38
+ * @readonly
39
+ */
40
+ _isDragging: boolean;
41
+ constructor(locale: Locale);
42
+ /**
43
+ * @inheritDoc
44
+ */
45
+ render(): void;
46
+ /**
47
+ * Sets the new height of the tracker to visualize the subset of the content visible to the user.
48
+ */
49
+ setHeight(newHeight: number): void;
50
+ /**
51
+ * Sets the top offset of the tracker to move it around vertically.
52
+ */
53
+ setTopOffset(newOffset: number): void;
54
+ /**
55
+ * Sets the scroll progress (in %) to inform the user using a label when the tracker is being dragged.
56
+ */
57
+ setScrollProgress(newProgress: number): void;
58
+ }
@@ -0,0 +1,78 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 minimap/minimappositiontrackerview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import { toUnit, global } from 'ckeditor5/src/utils.js';
10
+ const toPx = /* #__PURE__ */ toUnit('px');
11
+ /**
12
+ * The position tracker visualizing the visible subset of the content. Displayed over the minimap.
13
+ *
14
+ * @internal
15
+ */
16
+ export default class MinimapPositionTrackerView extends View {
17
+ constructor(locale) {
18
+ super(locale);
19
+ const bind = this.bindTemplate;
20
+ this.set('height', 0);
21
+ this.set('top', 0);
22
+ this.set('scrollProgress', 0);
23
+ this.set('_isDragging', false);
24
+ this.setTemplate({
25
+ tag: 'div',
26
+ attributes: {
27
+ class: [
28
+ 'ck',
29
+ 'ck-minimap__position-tracker',
30
+ bind.if('_isDragging', 'ck-minimap__position-tracker_dragging')
31
+ ],
32
+ style: {
33
+ top: bind.to('top', top => toPx(top)),
34
+ height: bind.to('height', height => toPx(height))
35
+ },
36
+ 'data-progress': bind.to('scrollProgress')
37
+ },
38
+ on: {
39
+ mousedown: bind.to(() => {
40
+ this._isDragging = true;
41
+ })
42
+ }
43
+ });
44
+ }
45
+ /**
46
+ * @inheritDoc
47
+ */
48
+ render() {
49
+ super.render();
50
+ this.listenTo(global.document, 'mousemove', (evt, data) => {
51
+ if (!this._isDragging) {
52
+ return;
53
+ }
54
+ this.fire('drag', data.movementY);
55
+ }, { useCapture: true });
56
+ this.listenTo(global.document, 'mouseup', () => {
57
+ this._isDragging = false;
58
+ }, { useCapture: true });
59
+ }
60
+ /**
61
+ * Sets the new height of the tracker to visualize the subset of the content visible to the user.
62
+ */
63
+ setHeight(newHeight) {
64
+ this.height = newHeight;
65
+ }
66
+ /**
67
+ * Sets the top offset of the tracker to move it around vertically.
68
+ */
69
+ setTopOffset(newOffset) {
70
+ this.top = newOffset;
71
+ }
72
+ /**
73
+ * Sets the scroll progress (in %) to inform the user using a label when the tracker is being dragged.
74
+ */
75
+ setScrollProgress(newProgress) {
76
+ this.scrollProgress = newProgress;
77
+ }
78
+ }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 minimap/minimapview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import { type Locale } from 'ckeditor5/src/utils.js';
10
+ export type MinimapViewOptions = {
11
+ domRootClone: HTMLElement;
12
+ pageStyles: Array<string | {
13
+ href: string;
14
+ }>;
15
+ scaleRatio: number;
16
+ useSimplePreview?: boolean;
17
+ extraClasses?: string;
18
+ };
19
+ /**
20
+ * The main view of the minimap. It renders the original content but scaled down with a tracker element
21
+ * visualizing the subset of the content visible to the user and allowing interactions (scrolling, dragging).
22
+ *
23
+ * @internal
24
+ */
25
+ export default class MinimapView extends View {
26
+ /**
27
+ * An instance of the tracker view displayed over the minimap.
28
+ */
29
+ private readonly _positionTrackerView;
30
+ /**
31
+ * The scale ratio of the minimap relative to the original editing DOM root with the content.
32
+ */
33
+ private readonly _scaleRatio;
34
+ /**
35
+ * An instance of the iframe view that hosts the minimap.
36
+ */
37
+ private readonly _minimapIframeView;
38
+ /**
39
+ * Creates an instance of the minimap view.
40
+ */
41
+ constructor({ locale, scaleRatio, pageStyles, extraClasses, useSimplePreview, domRootClone }: {
42
+ locale: Locale;
43
+ } & MinimapViewOptions);
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ destroy(): void;
48
+ /**
49
+ * Returns the DOM {@link module:utils/dom/rect~Rect} height of the minimap.
50
+ */
51
+ get height(): number;
52
+ /**
53
+ * Returns the number of available space (pixels) the position tracker (visible subset of the content) can use to scroll vertically.
54
+ */
55
+ get scrollHeight(): number;
56
+ /**
57
+ * @inheritDoc
58
+ */
59
+ render(): void;
60
+ /**
61
+ * Sets the new height of the minimap (in px) to respond to the changes in the original editing DOM root.
62
+ *
63
+ * **Note**:The provided value should be the `offsetHeight` of the original editing DOM root.
64
+ */
65
+ setContentHeight(newHeight: number): void;
66
+ /**
67
+ * Sets the minimap scroll progress.
68
+ *
69
+ * The minimap scroll progress is linked to the original editing DOM root and its scrollable container (ancestor).
70
+ * Changing the progress will alter the vertical position of the minimap (and its position tracker) and give the user an accurate
71
+ * overview of the visible document.
72
+ *
73
+ * **Note**: The value should be between 0 and 1. 0 when the DOM root has not been scrolled, 1 when the
74
+ * scrolling has reached the end.
75
+ */
76
+ setScrollProgress(newScrollProgress: number): void;
77
+ /**
78
+ * Sets the new height of the tracker (in px) to visualize the subset of the content visible to the user.
79
+ */
80
+ setPositionTrackerHeight(trackerHeight: number): void;
81
+ /**
82
+ * @param data DOM event data
83
+ */
84
+ private _handleMinimapClick;
85
+ /**
86
+ * @param data DOM event data
87
+ */
88
+ private _handleMinimapMouseWheel;
89
+ }
90
+ /**
91
+ * Fired when the minimap view is clicked.
92
+ *
93
+ * @eventName ~MinimapView#click
94
+ * @param percentage The number between 0 and 1 representing a place in the minimap (its height) that was clicked.
95
+ */
96
+ export type MinimapClickEvent = {
97
+ name: 'click';
98
+ args: [percentage: number];
99
+ };
100
+ /**
101
+ * Fired when the position tracker is dragged or the minimap is scrolled via mouse wheel.
102
+ *
103
+ * @eventName ~MinimapView#drag
104
+ * @param movementY The vertical movement of the minimap as a result of dragging or scrolling.
105
+ */
106
+ export type MinimapDragEvent = {
107
+ name: 'drag';
108
+ args: [movementY: number];
109
+ };
@@ -0,0 +1,137 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 minimap/minimapview
7
+ */
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import { Rect } from 'ckeditor5/src/utils.js';
10
+ import MinimapIframeView from './minimapiframeview.js';
11
+ import MinimapPositionTrackerView from './minimappositiontrackerview.js';
12
+ /**
13
+ * The main view of the minimap. It renders the original content but scaled down with a tracker element
14
+ * visualizing the subset of the content visible to the user and allowing interactions (scrolling, dragging).
15
+ *
16
+ * @internal
17
+ */
18
+ export default class MinimapView extends View {
19
+ /**
20
+ * Creates an instance of the minimap view.
21
+ */
22
+ constructor({ locale, scaleRatio, pageStyles, extraClasses, useSimplePreview, domRootClone }) {
23
+ super(locale);
24
+ const bind = this.bindTemplate;
25
+ this._positionTrackerView = new MinimapPositionTrackerView(locale);
26
+ this._positionTrackerView.delegate('drag').to(this);
27
+ this._scaleRatio = scaleRatio;
28
+ this._minimapIframeView = new MinimapIframeView(locale, {
29
+ useSimplePreview,
30
+ pageStyles,
31
+ extraClasses,
32
+ scaleRatio,
33
+ domRootClone
34
+ });
35
+ this.setTemplate({
36
+ tag: 'div',
37
+ attributes: {
38
+ class: [
39
+ 'ck',
40
+ 'ck-minimap'
41
+ ]
42
+ },
43
+ children: [
44
+ this._positionTrackerView
45
+ ],
46
+ on: {
47
+ click: bind.to(this._handleMinimapClick.bind(this)),
48
+ wheel: bind.to(this._handleMinimapMouseWheel.bind(this))
49
+ }
50
+ });
51
+ }
52
+ /**
53
+ * @inheritDoc
54
+ */
55
+ destroy() {
56
+ this._minimapIframeView.destroy();
57
+ super.destroy();
58
+ }
59
+ /**
60
+ * Returns the DOM {@link module:utils/dom/rect~Rect} height of the minimap.
61
+ */
62
+ get height() {
63
+ return new Rect(this.element).height;
64
+ }
65
+ /**
66
+ * Returns the number of available space (pixels) the position tracker (visible subset of the content) can use to scroll vertically.
67
+ */
68
+ get scrollHeight() {
69
+ return Math.max(0, Math.min(this.height, this._minimapIframeView.height) - this._positionTrackerView.height);
70
+ }
71
+ /**
72
+ * @inheritDoc
73
+ */
74
+ render() {
75
+ super.render();
76
+ this._minimapIframeView.render();
77
+ this.element.appendChild(this._minimapIframeView.element);
78
+ }
79
+ /**
80
+ * Sets the new height of the minimap (in px) to respond to the changes in the original editing DOM root.
81
+ *
82
+ * **Note**:The provided value should be the `offsetHeight` of the original editing DOM root.
83
+ */
84
+ setContentHeight(newHeight) {
85
+ this._minimapIframeView.setHeight(newHeight * this._scaleRatio);
86
+ }
87
+ /**
88
+ * Sets the minimap scroll progress.
89
+ *
90
+ * The minimap scroll progress is linked to the original editing DOM root and its scrollable container (ancestor).
91
+ * Changing the progress will alter the vertical position of the minimap (and its position tracker) and give the user an accurate
92
+ * overview of the visible document.
93
+ *
94
+ * **Note**: The value should be between 0 and 1. 0 when the DOM root has not been scrolled, 1 when the
95
+ * scrolling has reached the end.
96
+ */
97
+ setScrollProgress(newScrollProgress) {
98
+ const iframeView = this._minimapIframeView;
99
+ const positionTrackerView = this._positionTrackerView;
100
+ // The scrolling should end when the bottom edge of the iframe touches the bottom edge of the minimap.
101
+ if (iframeView.height < this.height) {
102
+ iframeView.setTopOffset(0);
103
+ positionTrackerView.setTopOffset((iframeView.height - positionTrackerView.height) * newScrollProgress);
104
+ }
105
+ else {
106
+ const totalOffset = iframeView.height - this.height;
107
+ iframeView.setTopOffset(-totalOffset * newScrollProgress);
108
+ positionTrackerView.setTopOffset((this.height - positionTrackerView.height) * newScrollProgress);
109
+ }
110
+ positionTrackerView.setScrollProgress(Math.round(newScrollProgress * 100));
111
+ }
112
+ /**
113
+ * Sets the new height of the tracker (in px) to visualize the subset of the content visible to the user.
114
+ */
115
+ setPositionTrackerHeight(trackerHeight) {
116
+ this._positionTrackerView.setHeight(trackerHeight * this._scaleRatio);
117
+ }
118
+ /**
119
+ * @param data DOM event data
120
+ */
121
+ _handleMinimapClick(data) {
122
+ const positionTrackerView = this._positionTrackerView;
123
+ if (data.target === positionTrackerView.element) {
124
+ return;
125
+ }
126
+ const trackerViewRect = new Rect(positionTrackerView.element);
127
+ const diff = data.clientY - trackerViewRect.top - trackerViewRect.height / 2;
128
+ const percentage = diff / this._minimapIframeView.height;
129
+ this.fire('click', percentage);
130
+ }
131
+ /**
132
+ * @param data DOM event data
133
+ */
134
+ _handleMinimapMouseWheel(data) {
135
+ this.fire('drag', data.deltaY * this._scaleRatio);
136
+ }
137
+ }
package/src/utils.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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 minimap/utils
7
+ */
8
+ import { Rect } from 'ckeditor5/src/utils.js';
9
+ import type { Editor } from 'ckeditor5/src/core.js';
10
+ /**
11
+ * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and
12
+ * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the
13
+ * source root.
14
+ *
15
+ * @internal
16
+ * @param editor The editor instance the original editing root belongs to.
17
+ * @param rootName The name of the root to clone.
18
+ * @returns The editing root DOM clone element.
19
+ */
20
+ export declare function cloneEditingViewDomRoot(editor: Editor, rootName?: string): HTMLElement;
21
+ /**
22
+ * Harvests all web page styles, for instance, to allow re-using them in an `<iframe>` preserving the look of the content.
23
+ *
24
+ * The returned data format is as follows:
25
+ *
26
+ * ```ts
27
+ * [
28
+ * 'p { color: red; ... } h2 { font-size: 2em; ... } ...',
29
+ * '.spacing { padding: 1em; ... }; ...',
30
+ * '...',
31
+ * { href: 'http://link.to.external.stylesheet' },
32
+ * { href: '...' }
33
+ * ]
34
+ * ```
35
+ *
36
+ * **Note**: For stylesheets with `href` different than window origin, an object is returned because
37
+ * accessing rules of these styles may cause CORS errors (depending on the configuration of the web page).
38
+ *
39
+ * @internal
40
+ */
41
+ export declare function getPageStyles(): Array<string | {
42
+ href: string;
43
+ }>;
44
+ /**
45
+ * Gets dimensions rectangle according to passed DOM element. Returns whole window's size for `body` element.
46
+ *
47
+ * @internal
48
+ */
49
+ export declare function getDomElementRect(domElement: HTMLElement): Rect;
50
+ /**
51
+ * Gets client height according to passed DOM element. Returns window's height for `body` element.
52
+ *
53
+ * @internal
54
+ */
55
+ export declare function getClientHeight(domElement: HTMLElement): number;
56
+ /**
57
+ * Returns the DOM element itself if it's not a `body` element, whole window otherwise.
58
+ *
59
+ * @internal
60
+ */
61
+ export declare function getScrollable(domElement: HTMLElement): Window | HTMLElement;
package/src/utils.js ADDED
@@ -0,0 +1,97 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, 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
+ /* global CSSMediaRule */
6
+ /**
7
+ * @module minimap/utils
8
+ */
9
+ import { Rect, global } from 'ckeditor5/src/utils.js';
10
+ import { DomConverter, Renderer } from 'ckeditor5/src/engine.js';
11
+ /**
12
+ * Clones the editing view DOM root by using a dedicated pair of {@link module:engine/view/renderer~Renderer} and
13
+ * {@link module:engine/view/domconverter~DomConverter}. The DOM root clone updates incrementally to stay in sync with the
14
+ * source root.
15
+ *
16
+ * @internal
17
+ * @param editor The editor instance the original editing root belongs to.
18
+ * @param rootName The name of the root to clone.
19
+ * @returns The editing root DOM clone element.
20
+ */
21
+ export function cloneEditingViewDomRoot(editor, rootName) {
22
+ const viewDocument = editor.editing.view.document;
23
+ const viewRoot = viewDocument.getRoot(rootName);
24
+ const domConverter = new DomConverter(viewDocument);
25
+ const renderer = new Renderer(domConverter, viewDocument.selection);
26
+ const domRootClone = editor.editing.view.getDomRoot().cloneNode();
27
+ domConverter.bindElements(domRootClone, viewRoot);
28
+ renderer.markToSync('children', viewRoot);
29
+ renderer.markToSync('attributes', viewRoot);
30
+ viewRoot.on('change:children', (evt, node) => renderer.markToSync('children', node));
31
+ viewRoot.on('change:attributes', (evt, node) => renderer.markToSync('attributes', node));
32
+ viewRoot.on('change:text', (evt, node) => renderer.markToSync('text', node));
33
+ renderer.render();
34
+ editor.editing.view.on('render', () => renderer.render());
35
+ // TODO: Cleanup after destruction.
36
+ editor.on('destroy', () => {
37
+ domConverter.unbindDomElement(domRootClone);
38
+ });
39
+ return domRootClone;
40
+ }
41
+ /**
42
+ * Harvests all web page styles, for instance, to allow re-using them in an `<iframe>` preserving the look of the content.
43
+ *
44
+ * The returned data format is as follows:
45
+ *
46
+ * ```ts
47
+ * [
48
+ * 'p { color: red; ... } h2 { font-size: 2em; ... } ...',
49
+ * '.spacing { padding: 1em; ... }; ...',
50
+ * '...',
51
+ * { href: 'http://link.to.external.stylesheet' },
52
+ * { href: '...' }
53
+ * ]
54
+ * ```
55
+ *
56
+ * **Note**: For stylesheets with `href` different than window origin, an object is returned because
57
+ * accessing rules of these styles may cause CORS errors (depending on the configuration of the web page).
58
+ *
59
+ * @internal
60
+ */
61
+ export function getPageStyles() {
62
+ return Array.from(global.document.styleSheets)
63
+ .map(styleSheet => {
64
+ // CORS
65
+ if (styleSheet.href && !styleSheet.href.startsWith(global.window.location.origin)) {
66
+ return { href: styleSheet.href };
67
+ }
68
+ return Array.from(styleSheet.cssRules)
69
+ .filter(rule => !(rule instanceof CSSMediaRule))
70
+ .map(rule => rule.cssText)
71
+ .join(' \n');
72
+ });
73
+ }
74
+ /**
75
+ * Gets dimensions rectangle according to passed DOM element. Returns whole window's size for `body` element.
76
+ *
77
+ * @internal
78
+ */
79
+ export function getDomElementRect(domElement) {
80
+ return new Rect(domElement === global.document.body ? global.window : domElement);
81
+ }
82
+ /**
83
+ * Gets client height according to passed DOM element. Returns window's height for `body` element.
84
+ *
85
+ * @internal
86
+ */
87
+ export function getClientHeight(domElement) {
88
+ return domElement === global.document.body ? global.window.innerHeight : domElement.clientHeight;
89
+ }
90
+ /**
91
+ * Returns the DOM element itself if it's not a `body` element, whole window otherwise.
92
+ *
93
+ * @internal
94
+ */
95
+ export function getScrollable(domElement) {
96
+ return domElement === global.document.body ? global.window : domElement;
97
+ }
@@ -0,0 +1,80 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, 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
+ :root {
7
+ --ck-color-minimap-tracker-background: 208, 0%, 51%;
8
+ --ck-color-minimap-iframe-outline: hsl(0deg 0% 75%);
9
+ --ck-color-minimap-iframe-shadow: hsl(0deg 0% 0% / 11%);
10
+ --ck-color-minimap-progress-background: hsl(0,0%,40%);
11
+ }
12
+
13
+ .ck.ck-minimap {
14
+ position: absolute;
15
+ user-select: none;
16
+ background: var(--ck-color-base-background);
17
+
18
+ &,
19
+ & iframe {
20
+ width: 100%;
21
+ height: 100%;
22
+ }
23
+
24
+ & iframe {
25
+ border: 0;
26
+ pointer-events: none;
27
+ position: relative;
28
+ outline: 1px solid var(--ck-color-minimap-iframe-outline);
29
+ box-shadow: 0 2px 5px var(--ck-color-minimap-iframe-shadow);
30
+ margin: 0;
31
+ }
32
+
33
+ & .ck.ck-minimap__position-tracker {
34
+ position: absolute;
35
+ width: 100%;
36
+ top: 0;
37
+ background: hsla( var(--ck-color-minimap-tracker-background), .2 );
38
+ z-index: 1;
39
+ transition: background 100ms ease-in-out;
40
+
41
+
42
+ @media (prefers-reduced-motion: reduce) {
43
+ transition: none;
44
+ }
45
+
46
+ &:hover {
47
+ background:hsla( var(--ck-color-minimap-tracker-background), .3 );
48
+ }
49
+
50
+ &.ck-minimap__position-tracker_dragging,
51
+ &.ck-minimap__position-tracker_dragging:hover {
52
+ background:hsla( var(--ck-color-minimap-tracker-background), .4 );
53
+
54
+ &::after {
55
+ opacity: 1;
56
+ }
57
+ }
58
+
59
+ &::after {
60
+ content: attr(data-progress) "%";
61
+ position: absolute;
62
+ top: 5px;
63
+ right: 5px;
64
+ background: var(--ck-color-minimap-progress-background);
65
+ color: var(--ck-color-base-background);
66
+ border: 1px solid var(--ck-color-base-background);
67
+ padding: 2px 4px;
68
+ font-size: 10px;
69
+ border-radius: 3px;
70
+ opacity: 0;
71
+ transition: opacity 100ms ease-in-out;
72
+
73
+
74
+ @media (prefers-reduced-motion: reduce) {
75
+ transition: none;
76
+ }
77
+ }
78
+ }
79
+ }
80
+