Drag-and-Drop को आसान बनाएं: Declarative Dragging

मूल शीर्षक: Declarative Dragging

यह क्यों महत्वपूर्ण है

यह तकनीक educators, game designers और math tool builders के लिए drag interaction बनाना सुलभ बना सकती है।

Joshua Horowitz, Andrew Blinn और Jeffrey Heer ने UIST 2026 में Best Paper Award जीता। उनकी तकनीक 'Declarative Dragging' drag-and-drop इंटरफ़ेस बनाना बेहद सरल बनाती है — बिना फालतू geometry कोड के।

drag-and-drop इंटरफ़ेस बनाना हमेशा से झंझट भरा रहा है — geometry, animation, feedback हैंडल करना developers को थका देता है। इसी समस्या को हल करने के लिए तीन शोधकर्ताओं ने एक नया तरीका सोचा: Declarative Dragging।

इसका मूल विचार सरल है। बजाय यह बताने के कि dragging के दौरान क्या होगा, आप बस यह बताते हैं कि किसी element को drag करने पर application किन states में जा सकती है। बाकी काम D2 इंजन खुद करता है — वह उन states को speculatively render करता है, हर rendering में dragged element की position निकालता है, और इन 'possible worlds' को मिलाकर एक smooth interaction तैयार करता है।

इस तकनीक की library का नाम Dragology है, जो SVG-based web interfaces के लिए बनाई गई है। यह composable है — यानी simple drag behaviors को जोड़कर जटिल interactions बनाई जा सकती हैं। Snapping, floating, और transitions जैसे modifiers अलग से जोड़े जा सकते हैं।

इस विचार की शुरुआत 2022 में Andrew Blinn के एक math game prototype से हुई थी। 2023 में Seattle में एक walk के दौरान Josh Horowitz को यह idea सुनाया गया। 2024 में Josh ने एक friend के tree structures पर काम देखते हुए इसे library का रूप दिया, और Andrew के साथ मिलकर इसे Declarative Dragging में बदला। demos में algebra, bézier curve, card piles, braid जैसे interactive examples शामिल हैं।

स्रोत

declarative-dragging.github.io — मूल लेख पढ़ें →