canvas-editor-engine 1.1.32 → 1.1.34
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.
|
@@ -21,19 +21,22 @@ class ProjectFileSerializer {
|
|
|
21
21
|
});
|
|
22
22
|
return tempImageData;
|
|
23
23
|
};
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
});
|
|
36
|
-
return
|
|
24
|
+
const test = imageDataProcessor(rowProjects[0].state.current.imageData);
|
|
25
|
+
console.log('test', test);
|
|
26
|
+
// const projects = rowProjects.map((project) => {
|
|
27
|
+
// project.state.current.imageData = imageDataProcessor(project.state.current.imageData);
|
|
28
|
+
// project.state.history = project.state.history.map((historyLine) => {
|
|
29
|
+
// historyLine.stateValue.tempImageData = imageDataProcessor(historyLine.stateValue.tempImageData);
|
|
30
|
+
// return historyLine;
|
|
31
|
+
// });
|
|
32
|
+
// project.state.cache = project.state.cache.map((historyLine) => {
|
|
33
|
+
// historyLine.stateValue.tempImageData = imageDataProcessor(historyLine.stateValue.tempImageData);
|
|
34
|
+
// return historyLine;
|
|
35
|
+
// });
|
|
36
|
+
// return project;
|
|
37
|
+
// });
|
|
38
|
+
// return projects;
|
|
39
|
+
return [{}];
|
|
37
40
|
}
|
|
38
41
|
saveProjects(projects) {
|
|
39
42
|
this.file.save(JSON.stringify(projects));
|