fabric 6.0.1 → 6.0.2
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 +6 -0
- package/dist/index.js +19 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/index.mjs +19 -8
- package/dist/index.mjs.map +1 -1
- package/dist/index.node.cjs +19 -8
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +19 -8
- package/dist/index.node.mjs.map +1 -1
- package/dist/package.json.min.mjs +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/Observable.d.ts +8 -0
- package/dist/src/Observable.d.ts.map +1 -1
- package/dist/src/Observable.min.mjs.map +1 -1
- package/dist/src/Observable.mjs +8 -0
- package/dist/src/Observable.mjs.map +1 -1
- package/dist/src/shapes/Object/Object.d.ts +9 -7
- package/dist/src/shapes/Object/Object.d.ts.map +1 -1
- package/dist/src/shapes/Object/Object.min.mjs.map +1 -1
- package/dist/src/shapes/Object/Object.mjs +9 -7
- package/dist/src/shapes/Object/Object.mjs.map +1 -1
- package/dist/src/shapes/Text/Text.d.ts +2 -2
- package/dist/src/shapes/Text/Text.d.ts.map +1 -1
- package/dist/src/shapes/Text/Text.min.mjs.map +1 -1
- package/dist/src/shapes/Text/Text.mjs.map +1 -1
- package/dist/src/util/misc/objectEnlive.d.ts +1 -0
- package/dist/src/util/misc/objectEnlive.d.ts.map +1 -1
- package/dist/src/util/misc/objectEnlive.min.mjs.map +1 -1
- package/dist/src/util/misc/objectEnlive.mjs +1 -0
- package/dist/src/util/misc/objectEnlive.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Observable.ts +8 -0
- package/src/shapes/Object/Object.ts +9 -7
- package/src/shapes/Text/Text.ts +2 -2
- package/src/util/misc/objectEnlive.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [next]
|
|
4
4
|
|
|
5
|
+
## [6.0.2]
|
|
6
|
+
|
|
7
|
+
- fix(TS): Type fixes and improved JSDOCS. [#9978](https://github.com/fabricjs/fabric.js/pull/9978)
|
|
8
|
+
|
|
9
|
+
## [6.0.1]
|
|
10
|
+
|
|
5
11
|
- chore(): export InteractiveFabricObject to tweak default values [#9963](https://github.com/fabricjs/fabric.js/pull/9963)
|
|
6
12
|
- chore(): use deconstruction and constants in place of strings to save some bytes of code [#9593](https://github.com/fabricjs/fabric.js/pull/9593)
|
|
7
13
|
- tests(): Start moving visual tests to playwrigth [#9481](https://github.com/fabricjs/fabric.js/pull/9481)
|
package/dist/index.js
CHANGED
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
}
|
|
408
408
|
const cache = new Cache();
|
|
409
409
|
|
|
410
|
-
var version = "6.0.
|
|
410
|
+
var version = "6.0.2";
|
|
411
411
|
|
|
412
412
|
// use this syntax so babel plugin see this import here
|
|
413
413
|
const VERSION = version;
|
|
@@ -635,6 +635,14 @@
|
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
+
/**
|
|
639
|
+
* Unsubscribe all event listeners for eventname.
|
|
640
|
+
* Do not use this pattern. You could kill internal fabricJS events.
|
|
641
|
+
* We know we should have protected events for internal flows, but we don't have yet
|
|
642
|
+
* @deprecated
|
|
643
|
+
* @param {string} eventName event name (eg. 'after:render')
|
|
644
|
+
*/
|
|
645
|
+
|
|
638
646
|
/**
|
|
639
647
|
* unsubscribe an event listener
|
|
640
648
|
* @param {string} eventName event name (eg. 'after:render')
|
|
@@ -1893,6 +1901,7 @@
|
|
|
1893
1901
|
});
|
|
1894
1902
|
};
|
|
1895
1903
|
/**
|
|
1904
|
+
* @TODO type this correctly.
|
|
1896
1905
|
* Creates corresponding fabric instances from their object representations
|
|
1897
1906
|
* @param {Object[]} objects Objects to enliven
|
|
1898
1907
|
* @param {EnlivenObjectOptions} [options]
|
|
@@ -6969,18 +6978,20 @@
|
|
|
6969
6978
|
}
|
|
6970
6979
|
|
|
6971
6980
|
/**
|
|
6972
|
-
* The class type.
|
|
6973
|
-
* This is used for serialization purposes and internally it can be used
|
|
6974
|
-
* to identify classes.
|
|
6975
|
-
*
|
|
6976
|
-
*
|
|
6981
|
+
* The class type.
|
|
6982
|
+
* This is used for serialization and deserialization purposes and internally it can be used
|
|
6983
|
+
* to identify classes.
|
|
6984
|
+
* When we transform a class in a plain JS object we need a way to recognize which class it was,
|
|
6985
|
+
* and the type is the way we do that. It has no other purposes and you should not give one.
|
|
6986
|
+
* Hard to reach on instances and please do not use to drive instance's logic (this.constructor.type).
|
|
6987
|
+
* To idenfity a class use instanceof class ( instanceof Rect ).
|
|
6988
|
+
* We do not do that in fabricJS code because we want to try to have code splitting possible.
|
|
6977
6989
|
*/
|
|
6978
6990
|
|
|
6979
6991
|
/**
|
|
6980
6992
|
* Legacy identifier of the class. Prefer using utils like isType or instanceOf
|
|
6981
6993
|
* Will be removed in fabric 7 or 8.
|
|
6982
|
-
* The setter exists
|
|
6983
|
-
* could be set in the instance
|
|
6994
|
+
* The setter exists to avoid type errors in old code and possibly current deserialization code.
|
|
6984
6995
|
* @TODO add sustainable warning message
|
|
6985
6996
|
* @type string
|
|
6986
6997
|
* @deprecated
|