Jelajahi Sumber

Docs: Improved formatting.

Aleksander Nowodzinski 5 tahun lalu
induk
melakukan
eee1d31e40
1 mengubah file dengan 23 tambahan dan 24 penghapusan
  1. 23 24
      packages/ckeditor5-widget/src/utils.js

+ 23 - 24
packages/ckeditor5-widget/src/utils.js

@@ -348,30 +348,29 @@ export function viewToModelPositionOutsideModelElement( model, viewElementMatche
  * It comes in handy when a widget is longer than the visual viewport of the web browser and/or upper/lower boundaries
  * of a widget are off screen because of the web page scroll.
  *
- *	                (A)                                 (B)                                 (C)
- *
- *	                                                                            ┌─┄┄┄┄┄┄┄┄Widget┄┄┄┄┄┄┄┄┄┄┐
- *	                                                                            ┊                         ┊
- *	                                        ┌─┄┄┄┄┄┄┄┄┄Widget┄┄┄┄┄┄┄┄┄┐         ┊                         ┊
- *	                                        ┊                         ┊         ┊                         ┊
- *	 ┌────────────Viewport───────────┐   ┌──╁─────────Viewport────────╁──┐   ┌──╁────────Viewport─────────╁──┐
- *	 │  ┏━━━━━━━━━━Widget━━━━━━━━━┓  │   │  ┃            ^            ┃  │   │  ┃                         ┃  │
- *	 │  ┃            ^            ┃  │   │  ┃   ╭───────/ \───────╮   ┃  │   │  ┃                         ┃  │
- *	 │  ┃   ╭───────/ \───────╮   ┃  │   │  ┃   │     Balloon     │   ┃  │   │  ┃                         ┃  │
- *	 │  ┃   │     Balloon     │   ┃  │   │  ┃   ╰─────────────────╯   ┃  │   │  ┃                         ┃  │
- *	 │  ┃   ╰─────────────────╯   ┃  │   │  ┃                         ┃  │   │  ┃                         ┃  │
- *	 │  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃                         ┃  │
- *	 │  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃   ╭─────────────────╮   ┃  │
- *	 │  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃   │     Balloon     │   ┃  │
- *	 │  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃   ╰───────\ /───────╯   ┃  │
- *	 │  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃            V            ┃  │
- *	 │  ┃                         ┃  │   │  ┃                         ┃  │   │  ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛  │
- *	 └──╀─────────────────────────╀──┘   └──╀─────────────────────────╀──┘   └───────────────────────────────┘
- *	    ┊                         ┊         ┊                         ┊
- *	    ┊                         ┊         └┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘
- *	    ┊                         ┊
- *	    └┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘
- *
+ *	               (A)                                 (B)                                 (C)
+ *
+ *	                                                                           ┌─┄┄┄┄┄┄┄┄Widget┄┄┄┄┄┄┄┄┄┄┐
+ *	                                                                           ┊                         ┊
+ *	                                       ┌─┄┄┄┄┄┄┄┄┄Widget┄┄┄┄┄┄┄┄┄┐         ┊                         ┊
+ *	                                       ┊                         ┊         ┊                         ┊
+ *	┌────────────Viewport───────────┐   ┌──╁─────────Viewport────────╁──┐   ┌──╁────────Viewport─────────╁──┐
+ *	│  ┏━━━━━━━━━━Widget━━━━━━━━━┓  │   │  ┃            ^            ┃  │   │  ┃                         ┃  │
+ *	│  ┃            ^            ┃  │   │  ┃   ╭───────/ \───────╮   ┃  │   │  ┃                         ┃  │
+ *	│  ┃   ╭───────/ \───────╮   ┃  │   │  ┃   │     Balloon     │   ┃  │   │  ┃                         ┃  │
+ *	│  ┃   │     Balloon     │   ┃  │   │  ┃   ╰─────────────────╯   ┃  │   │  ┃                         ┃  │
+ *	│  ┃   ╰─────────────────╯   ┃  │   │  ┃                         ┃  │   │  ┃                         ┃  │
+ *	│  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃                         ┃  │
+ *	│  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃   ╭─────────────────╮   ┃  │
+ *	│  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃   │     Balloon     │   ┃  │
+ *	│  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃   ╰───────\ /───────╯   ┃  │
+ *	│  ┃                         ┃  │   │  ┃                         ┃  │   │  ┃            V            ┃  │
+ *	│  ┃                         ┃  │   │  ┃                         ┃  │   │  ┗━━━━━━━━━━━━━━━━━━━━━━━━━┛  │
+ *	└──╀─────────────────────────╀──┘   └──╀─────────────────────────╀──┘   └───────────────────────────────┘
+ *	   ┊                         ┊         ┊                         ┊
+ *	   ┊                         ┊         └┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘
+ *	   ┊                         ┊
+ *	   └┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘
  *
  * **Note**: Works best if used together with
  * {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView.defaultPositions default `BalloonPanelView` positions}