Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

✨ Releasing Neodrag v2.0 ✨ - Smaller bundle size! (Up to 15%) - 5 new features - Multiple bug fixes - Faster runtime performance And, the most important: NEW DOCS!

94,714 görüntüleme • 3 yıl önce •via X (Twitter)

11 Yorum

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

Check it out at

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

New features(common across all frameworks) 1️⃣ legacyTranslate If `false`, uses the modern `translate` property instead of transform. This allows you to apply your own transforms without having to deal with existing transform property set by neodrag

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

2️⃣ transform Now apply your custom `transform` function. Return the string and it will be applied to the `transform` CSS property. Or get access to the rootNode from arguments, and change manually

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

3️⃣ recomputeBounds Are your bounds changing as you are dragging? Configure when Neodrag recomputes your bounds with this new option.

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

4️⃣ More event data! Now your events give you access to the root node (rootNode) on which your draggable is applied and the node which is being dragged, in case you have multiple handles

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

5️⃣ New output formats Now neodrag ships with an unminified and minified build rather than only minified. For Vite, Rollup, Webpack, unminified build is used in development, and minified in production. This gives you the highly minified source code shipped with this library!

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

6️⃣ Use pointer events Neodrag now uses Pointer Events instead of mouse and touch events, reducing the total number of events. Pointer events are also better throttled to the event loop, so dragging should feel slightly smoother on slower devices

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

🐛🔨 Bug fixes - Right click doesn't trigger dragging anymore - Fix dragging when grid snap is provided as 0

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

specific fixes: Remove @neodrag/svelte/global. No longer shipped, the action and event types are all shipped with the package itself.

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

specific fixes: @neodrag/solid/globals no longer shipped. The base types for `use:draggable` are shipped directly with the library, no longer need to import separately

{PuruVijay}.svelte profil fotoğrafı
{PuruVijay}.svelte3 yıl önce

That's all for now! Let me know what you think about these changes and docs site 😁

Benzer Videolar