[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/ -> viewport.js (summary)

(no description)

File Size: 540 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 10 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _arrayWithoutHoles()
  _iterableToArray()
  _nonIterableSpread()
  _toConsumableArray()
  setIsMatching()
  reducer()
  isViewportMatch()

Functions
Functions that are not part of a class:

__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

setIsMatching(values)   X-Ref
Returns an action object used in signalling that viewport queries have been
updated. Values are specified as an object of breakpoint query keys where
value represents whether query matches.

return: {Object} Action object.
param: {Object} values Breakpoint query matches.

reducer()   X-Ref
Reducer returning the viewport state, as keys of breakpoint queries with
boolean value representing whether query is matched.

return: {Object} Updated state.
param: {Object} state  Current state.
param: {Object} action Dispatched action.

isViewportMatch(state, query)   X-Ref
Returns true if the viewport matches the given query, or false otherwise.

return: {boolean} Whether viewport matches query.
param: {Object} state Viewport state object.
param: {string} query Query string. Includes operator and breakpoint name,



Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1