/
githubmirror
/
react-beautiful-dnd
Обзор
Документация
Войти
/
githubmirror
/
react-beautiful-dnd
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/state/no-impact.js
33 строки
565 B
Alex Reardon
12.0 (#1487)
29 окт 2019, 01:40
Не верифицирован
29 окт 2019, 01:40
24a8e60
Код
Авторство
О чём код?
// @flow import type { DisplacementGroups, DragImpact, DisplacedBy, LiftEffect, } from '../types'; import { origin } from './position'; export const noDisplacedBy: DisplacedBy = { point: origin, value: 0, }; export const emptyGroups: DisplacementGroups = { invisible: {}, visible: {}, all: [], }; const noImpact: DragImpact = { displaced: emptyGroups, displacedBy: noDisplacedBy, at: null, }; export default noImpact; export const noAfterCritical: LiftEffect = { inVirtualList: false, effected: {}, displacedBy: noDisplacedBy, };