constrain for pixi.js.
npm i @amoy/constraint
# or
yarn add @amoy/constraint.putCenter(offsetX: number = 0, offsetY: number = 0).putLeft(offsetX: number = 0).putRight(offsetX: number = 0).putTop(offsetY: number = 0).putBottom(offsetY: number = 0)