@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.
@@ -4049,9 +4049,14 @@ var initCanvas = function initCanvas() {
4049
4049
  // .flat()
4050
4050
  // ),
4051
4051
  // ];
4052
- var allColor = [].concat(new Set(canv == null ? void 0 : (_canv$getObjects = canv.getObjects()) == null ? void 0 : _canv$getObjects.map(function (item) {
4052
+ var allColor = [];
4053
+ canv == null ? void 0 : (_canv$getObjects = canv.getObjects()) == null ? void 0 : _canv$getObjects.map(function (item) {
4053
4054
  return item['colorFill'] && Object.values(item['colorFill']);
4054
- }).flat().filter(Boolean))); // FOR REMOVING ALL DUPLICATE COLOR CODES
4055
+ }).flat().filter(Boolean).forEach(function (color) {
4056
+ if (!allColor.includes(color)) {
4057
+ allColor.push(color);
4058
+ }
4059
+ }); // FOR REMOVING ALL DUPLICATE COLOR CODES
4055
4060
  // const allColor =[];
4056
4061
  use3dddPlus.setState({
4057
4062
  allColor: allColor