[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 1080 lines (40 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__webpack_require__(moduleId) X-Ref |
No description |
getDefault() X-Ref |
No description |
getModuleExports() X-Ref |
No description |
_arrayWithoutHoles(arr) X-Ref |
No description |
_iterableToArray(iter) X-Ref |
No description |
_nonIterableSpread() X-Ref |
No description |
_toConsumableArray(arr) X-Ref |
No description |
isSelectionForward(selection) X-Ref |
Returns true if the given selection object is in the forward direction, or false otherwise. return: {boolean} Whether the selection is forward. param: {Selection} selection Selection object to check. |
isHorizontalEdge(container, isReverse) X-Ref |
Check whether the selection is horizontally at the edge of the container. return: {boolean} True if at the horizontal edge, false if not. param: {Element} container Focusable element. param: {boolean} isReverse Set to true to check left, false for right. |
isVerticalEdge(container, isReverse) X-Ref |
Check whether the selection is vertically at the edge of the container. return: {boolean} True if at the edge, false if not. param: {Element} container Focusable element. param: {boolean} isReverse Set to true to check top, false for bottom. |
getRectangleFromRange(range) X-Ref |
Get the rectangle of a given Range. return: {DOMRect} The rectangle. param: {Range} range The range. |
computeCaretRect(container) X-Ref |
Get the rectangle for the selection in a container. return: {?DOMRect} The rectangle. param: {Element} container Editable container. |
placeCaretAtHorizontalEdge(container, isReverse) X-Ref |
Places the caret at start or end of a given element. param: {Element} container Focusable element. param: {boolean} isReverse True for end, false for start. |
caretRangeFromPoint(doc, x, y) X-Ref |
Polyfill. Get a collapsed range for a given point. return: {?Range} The best range for the given point. param: {Document} doc The document of the range. param: {number} x Horizontal position within the current viewport. param: {number} y Vertical position within the current viewport. |
hiddenCaretRangeFromPoint(doc, x, y, container) X-Ref |
Get a collapsed range for a given point. Gives the container a temporary high z-index (above any UI). This is preferred over getting the UI nodes and set styles there. return: {?Range} The best range for the given point. param: {Document} doc The document of the range. param: {number} x Horizontal position within the current viewport. param: {number} y Vertical position within the current viewport. param: {Element} container Container in which the range is expected to be found. |
placeCaretAtVerticalEdge(container, isReverse, rect) X-Ref |
Places the caret at the top or bottom of a given element. param: {Element} container Focusable element. param: {boolean} isReverse True for bottom, false for top. param: {DOMRect} [rect] The rectangle to position the caret with. param: {boolean} [mayUseScroll=true] True to allow scrolling, false to disallow. |
isTextField(element) X-Ref |
Check whether the given element is a text field, where text field is defined by the ability to select within the input, or that it is contenteditable. See: https://html.spec.whatwg.org/#textFieldSelection return: {boolean} True if the element is an text field, false if not. param: {HTMLElement} element The HTML element. |
documentHasSelection() X-Ref |
Check wether the current document has a selection. This checks both for focus in an input field and general text selection. return: {boolean} True if there is selection, false if not. |
isEntirelySelected(element) X-Ref |
Check whether the contents of the element have been entirely selected. Returns true if there is no possibility of selection. return: {boolean} True if entirely selected, false if not. param: {Element} element The element to check. |
getScrollContainer(node) X-Ref |
Given a DOM node, finds the closest scrollable container node. return: {?Element} Scrollable container node, if found. param: {Element} node Node from which to start. |
getOffsetParent(node) X-Ref |
Returns the closest positioned element, or null under any of the conditions of the offsetParent specification. Unlike offsetParent, this function is not limited to HTMLElement and accepts any Node (e.g. Node.TEXT_NODE). return: {?Node} Offset parent. param: {Node} node Node from which to find offset parent. |
replace(processedNode, newNode) X-Ref |
Given two DOM nodes, replaces the former with the latter in the DOM. return: {void} param: {Element} processedNode Node to be removed. param: {Element} newNode Node to be inserted in its place. |
remove(node) X-Ref |
Given a DOM node, removes it from the DOM. return: {void} param: {Element} node Node to be removed. |
insertAfter(newNode, referenceNode) X-Ref |
Given two DOM nodes, inserts the former in the DOM as the next sibling of the latter. return: {void} param: {Element} newNode Node to be inserted. param: {Element} referenceNode Node after which to perform the insertion. |
unwrap(node) X-Ref |
Unwrap the given node. This means any child nodes are moved to the parent. return: {void} param: {Node} node The node to unwrap. |
replaceTag(node, tagName, doc) X-Ref |
Replaces the given node with a new node with the given tag name. return: {Element} The new node. param: {Element} node The node to replace param: {string} tagName The new tag name. param: {Document} doc The document of the node. |
isVisible(element) X-Ref |
Returns true if the specified element is visible (i.e. neither display: none nor visibility: hidden). return: {boolean} Whether element is visible. param: {Element} element DOM element to test. |
isValidFocusableArea(element) X-Ref |
Returns true if the specified area element is a valid focusable element, or false otherwise. Area is only focusable if within a map where a named map referenced by an image somewhere in the document. return: {boolean} Whether area element is valid for focus. param: {Element} element DOM area element to test. |
find(context) X-Ref |
Returns all focusable elements within a given context. return: {Element[]} Focusable elements. param: {Element} context Element in which to search. |
getTabIndex(element) X-Ref |
Returns the tab index of the given element. In contrast with the tabIndex property, this normalizes the default (0) to avoid browser inconsistencies, operating under the assumption that this function is only ever called with a focusable node. return: {?number} Tab index of element (default 0). param: {Element} element Element from which to retrieve. |
isTabbableIndex(element) X-Ref |
Returns true if the specified element is tabbable, or false otherwise. return: {boolean} Whether element is tabbable. param: {Element} element Element to test. |
mapElementToObjectTabbable(element, index) X-Ref |
An array map callback, returning an object with the element value and its array index location as properties. This is used to emulate a proper stable sort where equal tabIndex should be left in order of their occurrence in the document. return: {Object} Mapped object with element, index. param: {Element} element Element. param: {number} index Array index of element. |
mapObjectTabbableToElement(object) X-Ref |
An array map callback, returning an element of the given mapped object's element value. return: {Element} Mapped object element. param: {Object} object Mapped object with index. |
compareObjectTabbables(a, b) X-Ref |
A sort comparator function used in comparing two objects of mapped elements. return: {number} Comparator result. param: {Object} a First object to compare. param: {Object} b Second object to compare. |
find(context) X-Ref |
No description |
Generated: Mon Jan 7 01:00:05 2019 | Cross-referenced by PHPXref 0.7.1 |