@threedddplus/logoeditor 0.0.32 → 0.0.33
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/dist/logoeditor.cjs.development.js +7 -2
- package/dist/logoeditor.cjs.development.js.map +1 -1
- package/dist/logoeditor.cjs.production.min.js +1 -1
- package/dist/logoeditor.cjs.production.min.js.map +1 -1
- package/dist/logoeditor.esm.js +7 -2
- package/dist/logoeditor.esm.js.map +1 -1
- package/package.json +1 -1
@@ -4057,9 +4057,14 @@ var initCanvas = function initCanvas() {
|
|
4057
4057
|
// .flat()
|
4058
4058
|
// ),
|
4059
4059
|
// ];
|
4060
|
-
var allColor = []
|
4060
|
+
var allColor = [];
|
4061
|
+
canv == null ? void 0 : (_canv$getObjects = canv.getObjects()) == null ? void 0 : _canv$getObjects.map(function (item) {
|
4061
4062
|
return item['colorFill'] && Object.values(item['colorFill']);
|
4062
|
-
}).flat().filter(Boolean))
|
4063
|
+
}).flat().filter(Boolean).forEach(function (color) {
|
4064
|
+
if (!allColor.includes(color)) {
|
4065
|
+
allColor.push(color);
|
4066
|
+
}
|
4067
|
+
}); // FOR REMOVING ALL DUPLICATE COLOR CODES
|
4063
4068
|
// const allColor =[];
|
4064
4069
|
use3dddPlus.setState({
|
4065
4070
|
allColor: allColor
|