1 | import type { BackendFactory, DragDropManager } from 'dnd-core'
|
2 |
|
3 | import type { TouchBackendContext, TouchBackendOptions } from './interfaces.js'
|
4 | import { TouchBackendImpl } from './TouchBackendImpl.js'
|
5 |
|
6 | export * from './interfaces.js'
|
7 | export * from './TouchBackendImpl.js'
|
8 |
|
9 | export 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 | }
|