open-index/open-npm huggingface dataset:
npm package: @jacksonli2002/designable-core
Description: **This is a fork of [@designable/core](https://github.com/alibaba/designable) with iPad touch support.**
Latest version: 1.0.0-beta.45-touch.6

# @jacksonli2002/designable-core

**This is a fork of [@designable/core](https://github.com/alibaba/designable) with iPad touch support.**

## ✨ Added Features

- 🎯 **iPad Touch Drag & Drop Support** - Full support for touch events on iPad and other touch devices
- 📱 **Touch Event Handling** - Proper touch coordinate extraction using `elementFromPoint` for accurate target detection
- 🎨 **Visual Feedback** - Ghost widget and insertion indicators work correctly with touch interactions
- 🔄 **Backward Compatible** - All existing mouse-based functionality remains unchanged

## 📦 Installation

```bash
npm install @jacksonli2002/designable-core
# or
yarn add @jacksonli2002/designable-core
```

## 🚀 Usage

Use it exactly like the original `@designable/core`:

```typescript
import { Engine } from '@jacksonli2002/designable-core'
// All APIs are the same as the original package
```

## 🔧 Changes from Original

Based on version `1.0.0-beta.45`, with the following modifications:

- Modified `src/drivers/DragDropDriver.ts` to add touch event support (touchstart, touchmove, touchend, touchcancel)
- Enhanced `getEventCoordinates` method to properly handle touch events
- Added `document.elementFromPoint()` for accurate target detection during touch drag operations

## 📄 Original Package

Designable's core models, effects, events, drivers

Original repository: https://github.com/alibaba/designable