Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 328 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 328 Bytes

@amoy/constraint

constrain for pixi.js.

Get Started

npm i @amoy/constraint
# or
yarn add @amoy/constraint

API

  • .putCenter(offsetX: number = 0, offsetY: number = 0)
  • .putLeft(offsetX: number = 0)
  • .putRight(offsetX: number = 0)
  • .putTop(offsetY: number = 0)
  • .putBottom(offsetY: number = 0)