@jacksonli2002/designable-core
v1.0.0-beta.45-touch.6
Published
**This is a fork of [@designable/core](https://github.com/alibaba/designable) with iPad touch support.**
Readme
@jacksonli2002/designable-core
This is a fork of @designable/core 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
elementFromPointfor 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
npm install @jacksonli2002/designable-core
# or
yarn add @jacksonli2002/designable-core🚀 Usage
Use it exactly like the original @designable/core:
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.tsto add touch event support (touchstart, touchmove, touchend, touchcancel) - Enhanced
getEventCoordinatesmethod 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
