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 });
}
}
- Add loading image failed status
// utils/misc.js:467
// Placeholder image when image loading fails,it will reload when page refresh.
// Just setting once, it will be effective for all fabric.Image objects.
fabric.Object.prototype.loadImageFiledSrc = '/xxx.png'
- When two elements overlap on the Z-axis, if the element at the bottom is selected, clicking and dragging the overlapping part of the two elements will not switch to the topmost element
// _searchPossibleTargets:811-825
// how to use
fabric.Object.prototype.moveWithOverlapping = true