Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

functions.native.ts 865B

1234567891011121314151617181920212223242526272829303132
  1. import { IStateful } from '../../app/types';
  2. import { toState } from '../../redux/functions';
  3. /**
  4. *
  5. * Returns the client width.
  6. *
  7. * @param {(Function|Object)} stateful - The (whole) redux state, or redux's
  8. * {@code getState} function to be used to retrieve the state
  9. * features/base/config.
  10. * @returns {number}
  11. */
  12. export function getClientWidth(stateful: IStateful) {
  13. const state = toState(stateful)['features/base/responsive-ui'];
  14. return state.clientWidth;
  15. }
  16. /**
  17. *
  18. * Returns the client height.
  19. *
  20. * @param {(Function|Object)} stateful - The (whole) redux state, or redux's
  21. * {@code getState} function to be used to retrieve the state
  22. * features/base/config.
  23. * @returns {number}
  24. */
  25. export function getClientHeight(stateful: IStateful) {
  26. const state = toState(stateful)['features/base/responsive-ui'];
  27. return state.clientHeight;
  28. }