You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.stackConfig = { // Default setting only allows UP, LEFT and RIGHT so you can override this as below allowedDirections: [Direction.UP, Direction.DOWN, Direction.LEFT, Direction.RIGHT], // Now need to send offsetX and offsetY with element instead of just offset throwOutConfidence: (offsetX, offsetY, element) => { return Math.min(Math.max(Math.abs(offsetX) / (element.offsetWidth / 1.7), Math.abs(offsetY) / (element.offsetHeight / 2)), 1); }, throwOutDistance: (d) => { return 800; } }
The text was updated successfully, but these errors were encountered:
The element object is coming through as undefined
this.stackConfig = { // Default setting only allows UP, LEFT and RIGHT so you can override this as below allowedDirections: [Direction.UP, Direction.DOWN, Direction.LEFT, Direction.RIGHT], // Now need to send offsetX and offsetY with element instead of just offset throwOutConfidence: (offsetX, offsetY, element) => { return Math.min(Math.max(Math.abs(offsetX) / (element.offsetWidth / 1.7), Math.abs(offsetY) / (element.offsetHeight / 2)), 1); }, throwOutDistance: (d) => { return 800; } }
The text was updated successfully, but these errors were encountered: