fabric 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/HEADER.js +1 -1
- package/README.md +3 -1
- package/dist/fabric.js +312 -101
- package/dist/fabric.min.js +1 -1
- package/{.travis.yml → old-travis-reference.yml} +0 -5
- package/package.json +6 -4
- package/src/brushes/base_brush.class.js +18 -0
- package/src/brushes/circle_brush.class.js +3 -0
- package/src/brushes/pencil_brush.class.js +3 -0
- package/src/brushes/spray_brush.class.js +3 -0
- package/src/canvas.class.js +45 -28
- package/src/controls.actions.js +1 -1
- package/src/controls.render.js +1 -1
- package/src/mixins/canvas_events.mixin.js +17 -11
- package/src/shapes/group.class.js +34 -31
- package/src/shapes/image.class.js +15 -2
- package/src/shapes/itext.class.js +3 -2
- package/src/shapes/object.class.js +12 -2
- package/src/shapes/text.class.js +38 -13
- package/src/static_canvas.class.js +10 -1
- package/src/util/misc.js +53 -0
- package/src/util/path.js +55 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.4.0]
|
|
4
|
+
|
|
5
|
+
- fix(fabric.Object) wrong variable name `cornerStrokeColor ` [#6981](https://github.com/fabricjs/fabric.js/pull/6981)
|
|
6
|
+
- fix(fabric.Text): underline color with text style ( regression from text on a path) [#6974](https://github.com/fabricjs/fabric.js/pull/6974)
|
|
7
|
+
- fix(fabric.Image): Cache CropX and CropY cache properties [#6924](https://github.com/fabricjs/fabric.js/pull/6924)
|
|
8
|
+
- fix(fabric.Canvas): Add target to each selection event [#6858](https://github.com/fabricjs/fabric.js/pull/6858)
|
|
9
|
+
- fix(fabric.Image): fix wrong scaling value for the y axis in renderFill [#6778](https://github.com/fabricjs/fabric.js/pull/6778)
|
|
10
|
+
- fix(fabric.Canvas): set isMoving on real movement only [#6856](https://github.com/fabricjs/fabric.js/pull/6856)
|
|
11
|
+
- fix(fabric.Group) make addWithUpdate compatible with nested groups [#6774](https://github.com/fabricjs/fabric.js/pull/6774)
|
|
12
|
+
- fix(Fabric.Text): Add path to text export and import [#6844](https://github.com/fabricjs/fabric.js/pull/6844)
|
|
13
|
+
- fix(fabric.Canvas) Remove controls check in the pixel accuracy target [#6798](https://github.com/fabricjs/fabric.js/pull/6798)
|
|
14
|
+
- feat(fabric.Canvas): Added activeOn 'up/down' property [#6807](https://github.com/fabricjs/fabric.js/pull/6807)
|
|
15
|
+
- feat(fabric.BaseBrush): limitedToCanvasSize property to brush [#6719](https://github.com/fabricjs/fabric.js/pull/6719)
|
|
16
|
+
|
|
17
|
+
## [4.3.1]
|
|
18
|
+
|
|
19
|
+
- fix(fabric.Control) implement targetHasOneFlip using shorthand [#6823](https://github.com/fabricjs/fabric.js/pull/6823)
|
|
20
|
+
- fix(fabric.Text) fix typo in cacheProperties preventing cache clear to work [#6775](https://github.com/fabricjs/fabric.js/pull/6775)
|
|
21
|
+
- fix(fabric.Canvas): Update backgroundImage and overlayImage coordinates on zoom change [#6777](https://github.com/fabricjs/fabric.js/pull/6777)
|
|
22
|
+
- fix(fabric.Object): add strokeuniform to object toObject output. [#6772](https://github.com/fabricjs/fabric.js/pull/6772)
|
|
23
|
+
- fix(fabric.Text): Improve path's angle detection for text on a path [#6755](https://github.com/fabricjs/fabric.js/pull/6755)
|
|
24
|
+
|
|
3
25
|
## [4.3.0]
|
|
4
26
|
|
|
5
27
|
- fix(fabric.Textbox): Do not let splitbygrapheme split text previously unwrapped [#6621](https://github.com/fabricjs/fabric.js/pull/6621)
|
package/HEADER.js
CHANGED
package/README.md
CHANGED
|
@@ -85,12 +85,14 @@ After this, you can import fabric like so:
|
|
|
85
85
|
const fabric = require("fabric").fabric;
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
Or you can use this instead if your
|
|
88
|
+
Or you can use this instead if your build pipeline supports ES6 imports:
|
|
89
89
|
|
|
90
90
|
```
|
|
91
91
|
import { fabric } from "fabric";
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
+
NOTE: es6 imports won't work in browser or with bundlers which expect es6 module like vite. Use commonjs syntax instead.
|
|
95
|
+
|
|
94
96
|
See [the example section](#examples-of-use) for usage examples.
|
|
95
97
|
|
|
96
98
|
<h3 id="fabric-building">Building</h3>
|