|
|
@@ -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}
|