Skip to content
项目

关于

用于 Web SVG 的声明式拖拽

网站与应用开发

这些数字如何统计

实测星标增长

24小时
+2
7天
+21
15天
+107
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Dragology

Dragology is a library for making high-quality, novel drag-and-drop interfaces.

The best explanation of the ideas behind Dragology can be found at Declarative Dragging. This README focuses on getting you started using the library itself.

Install

npm install dragology

Or use your package manager of choice.

Using Dragology

While we have not yet prepared documentation for Dragology, we have other resources which might be enough to get you going:

  • Dragology is based on some new concepts: model-driven and composable dragging. We suggest starting with the Declarative Dragging homepage and checking out videos / PDFs from there.
  • examples/consumer, in this repository, is a self-contained example of importing and using Dragology in a Vite project. We hope it helps you get started.
  • We have a lot of demos. You can play with them here and then look in src/demos to see how they're built.
  • docs/AGENTS.md is written by LLMs, intended for LLMs working with the Dragology library. While we regret offering you slop in lieu of actual documentation, it's probably better than nothing.

Working in this repo

To work on Dragology itself (not necessary to use it as a library!), clone this repo and run:

pnpm install
pnpm run dev

Then open http://localhost:5173 (or whatever the CLI output suggests) to view the Vite dev server with auto-refreshing demos.

AGENTS.md (in the root directory) has some helpful pointers on navigating the development process in this repo, if you can stomach the indignity of being talked at like an LLM.

探索相关项目

加载中…