Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isTargetTransparent() now samples the cache directly.
Previously, isTargetTransparent would do a paint from the cache to the contextCache which has more overhead and is slower. With this commit, fabricjs will test the cache canvas directly using x/y coordinates calculated with respect to the target object center. This is more performant since it avoids an extra render on every call to isTargetTransparent.
- Loading branch information