@vue-dnd-kit/core 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-dnd-kit/core",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Core functionality for Vue DnD Kit - a lightweight Vue 3 library for building performant and accessible drag and drop interfaces",
5
5
  "author": "ZiZIGY",
6
6
  "license": "MIT",
@@ -1,28 +0,0 @@
1
- import { IInternalWorker } from '../utils/createInternalWorker';
2
- export interface ICollisionBox {
3
- x: number;
4
- y: number;
5
- width: number;
6
- height: number;
7
- }
8
- export interface ICollisionWorkerInput {
9
- containerBox: ICollisionBox;
10
- pointer: {
11
- x: number;
12
- y: number;
13
- };
14
- /** Packed as [x, y, width, height, ...] — 4 values per element */
15
- elements: number[];
16
- elementCount: number;
17
- zones: number[];
18
- zoneCount: number;
19
- config: {
20
- minOverlapPercent: number;
21
- };
22
- }
23
- export interface ICollisionWorkerResult {
24
- elementIndices: number[];
25
- zoneIndices: number[];
26
- }
27
- export declare function getCollisionWorker(): IInternalWorker<ICollisionWorkerInput, ICollisionWorkerResult>;
28
- export declare function terminateCollisionWorker(): void;
@@ -1,9 +0,0 @@
1
- export interface IInternalWorker<T, R> {
2
- run: (data: T) => Promise<R>;
3
- terminate: () => void;
4
- readonly isSupported: boolean;
5
- }
6
- export interface ICreateInternalWorkerOptions {
7
- localDependencies?: Function[];
8
- }
9
- export declare function createInternalWorker<T, R>(fn: (data: T) => R, options?: ICreateInternalWorkerOptions): IInternalWorker<T, R>;