Skip to content

amoyjs/constraint

Repository files navigation

@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)

Releases

No releases published

Packages

No packages published