@amoy/draggify
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

@amoy/draggify

pixi.js draggable extension

Usage

import { use, Scene } from '@amoy/scene'
import draggify from '@amoy/draggify'

use(draggify)

// @scenes/home/index.ts
class Home extends Scene {
    create() {
        const ball = Sprite.from('ball')
        ball.draggify()
        // now `ball` can be dragged.
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @amoy/draggify

Weekly Downloads

2

Version

0.2.1

License

MIT

Unpacked Size

27.8 kB

Total Files

13

Last publish

Collaborators

  • toadwoo
  • paopaocat
  • justclear
  • xd_tayde
  • warmrabbit