UNPKG

530 BPlain TextView Raw
1import type { BackendFactory, DragDropManager } from 'dnd-core'
2
3import type { TouchBackendContext, TouchBackendOptions } from './interfaces.js'
4import { TouchBackendImpl } from './TouchBackendImpl.js'
5
6export * from './interfaces.js'
7export * from './TouchBackendImpl.js'
8
9export const TouchBackend: BackendFactory = function createBackend(
10 manager: DragDropManager,
11 context: TouchBackendContext = {},
12 options: Partial<TouchBackendOptions> = {},
13): TouchBackendImpl {
14 return new TouchBackendImpl(manager, context, options)
15}