@vue-dnd-kit/devtools
v1.1.0
Published
Vue DnD Kit DevTools Plugin
Readme
Vue Drag & Drop Library - DevTools Package
Enhanced Debugging
Vue DnD Kit DevTools provides specialized debugging tools for your drag and drop applications:
- 🔍 Store state visualization - inspect the complete state of your DnD system
- 📊 Visual feedback - see your drag elements, drop zones, and their relationships
- 🔄 Real-time updates - observe state changes as they happen during interactions
- 🧪 Testing aid - quickly identify issues in complex drag and drop scenarios
Powerful Inspector Panels
The DevTools package extends Vue DevTools with multiple specialized panels:
📱 Full Store Overview
- Complete visibility into the DnD store
- Access to all internal state values
- Reactive updates as operations occur
🖱️ Pointer Tracking
- Monitor cursor/touch position
- View start and current positions
- Inspect pixel and percentage offsets
🧩 Elements Inspector
- View all registered draggable elements
- Track visibility status
- Monitor selection state
🎯 Drop Zones Panel
- Inspect registered drop zones
- Check visibility and hover states
- Debug zone constraints
📦 Container Tools
- View active containers
- Monitor component references
- Debug container relationships
👆 Hover States
- Track elements under the cursor
- Monitor intersection states
- Debug hover-related issues
Installation
Choose your preferred package manager:
npm install @vue-dnd-kit/devtools @vue-dnd-kit/core @vueuse/coreyarn add @vue-dnd-kit/devtools @vue-dnd-kit/core @vueuse/corepnpm install @vue-dnd-kit/devtools @vue-dnd-kit/core @vueuse/coreSetup
Register the DevTools extension in your main.ts/js file:
import { createApp } from 'vue';
import App from './App.vue';
import VueDnDKitPlugin from '@vue-dnd-kit/core';
import VueDnDKitDevtools from '@vue-dnd-kit/devtools';
const app = createApp(App);
app.use(VueDnDKitPlugin);
app.use(VueDnDKitDevtools);
app.mount('#app');Usage
Once installed and registered, the DevTools extension will automatically:
- Register with Vue DevTools
- Add a "DnD Kit" panel to the inspector
- Display real-time state information as you interact with your application
No additional code is required in your components to enable the debugging features.
