You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
453 B
15 lines
453 B
import type { Position } from 'css-box-model';
|
|
import type { DroppableDimension, Viewport } from '../../types';
|
|
import withDroppableDisplacement from './with-droppable-displacement';
|
|
import withViewportDisplacement from './with-viewport-displacement';
|
|
|
|
export default (
|
|
page: Position,
|
|
droppable: DroppableDimension,
|
|
viewport: Viewport,
|
|
): Position =>
|
|
withDroppableDisplacement(
|
|
droppable,
|
|
withViewportDisplacement(viewport, page),
|
|
);
|