this.stackConfig = {
allowedDirections: [ Direction.LEFT, Direction.RIGHT],
throwOutConfidence: (offsetX, offsetY, element) => {
// console.log('throwOutConfidence',offsetX, offsetY, element)
return Math.min(Math.abs(offsetX) / (element.offsetWidth / 5), 1);
},
transform: (element, x, y, r) => {
// console.log('transform')
this.onItemMove(element, x, y, r);
},
throwOutDistance: (d) => {
// console.log('throwOutDistance')
return 800;
}
};