5.3.8 • Published 4 months ago

fabric-near-erasing v5.3.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Fabric.js

Official Documentation

Official Github Repository

Forked Fabric.js@v5.3.1 and @types/fabric.

Fixed some bugs and added some features. See Difference.

Difference

  1. 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 });
    }
}
  1. 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";
  1. 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;
  1. Add new Textbox wrap mode, it will auto wrap when change width, like keynote.
// src/controls.actions.js:692-694

// how to use
new fabric.Textbox("text", {
  // ...
  autoWrapAfterChangeWidth: true,
});
  1. When removing the export to the left, top, scaleX, scaleY, do to Fixed Angle parameters, because everywhere when the repair is imported to the accuracy of the loss, as a result of Fixed the problem. See Discussions
// src/shapes/object.class.js:843-880
5.3.8

4 months ago

5.3.7

4 months ago

5.3.6

4 months ago

5.3.5

5 months ago

5.3.3

5 months ago

5.3.2

5 months ago

5.3.1

5 months ago

5.3.4

5 months ago

5.3.0-types8

7 months ago

5.3.0-types10

6 months ago

5.3.0-types6

7 months ago

5.3.0-types7

7 months ago

5.3.0-types5

9 months ago

5.3.0-types4

9 months ago

5.3.0-types3

9 months ago

5.3.0-types2

9 months ago

5.3.0-types1

9 months ago

5.3.0

9 months ago