Package Exports
- fabric-near-erasing
- fabric-near-erasing/dist/fabric.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fabric-near-erasing) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Fabric.js
Forked Fabric.js@v5.3.1
and @types/fabric
.
It includes both, eliminating the need to install @types/fabric. Additionally, within the build package, apart from fabric, it also incorporates an erasing
.
Addition
Add next dir from Fabric.js@v6.0.0-rc.0
for fix image clip error.
It is not within the constructed package,so need manual copy to your project. If the official 6.0.0 package has been released, it is advisable to use the official version.
Usage: Copy next
to your project and import AheadAPI
.
class <your class> extends AheadAPI {
// ...
onClip() {
// ...
this.sendObjectToPlane(clipPath, undefined, target.calcTransformMatrix());
newRect.set({ clipPath });
}
}