@drincs/pixi-vn 0.6.12 → 0.6.13
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/functions/Importer.js +10 -7
- package/dist/functions/Importer.js.map +1 -1
- package/dist/functions/Importer.mjs +10 -7
- package/dist/functions/Importer.mjs.map +1 -1
- package/dist/functions/index.js +10 -7
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +10 -7
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -2867,13 +2867,16 @@ function importPixiVNJson(data) {
|
|
|
2867
2867
|
console.error("[Pixi'VN] Error parsing imported Pixi'VN JSON: data is not an object");
|
|
2868
2868
|
return;
|
|
2869
2869
|
}
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2870
|
+
if (data.labels) {
|
|
2871
|
+
let labels = data.labels;
|
|
2872
|
+
for (const labelId in labels) {
|
|
2873
|
+
try {
|
|
2874
|
+
const steps = labels[labelId];
|
|
2875
|
+
let label = new LabelJson2(labelId, steps);
|
|
2876
|
+
saveLabel(label);
|
|
2877
|
+
} catch (e) {
|
|
2878
|
+
console.error(`[Pixi'VN] Error creating JSON label ${labelId}`, e);
|
|
2879
|
+
}
|
|
2877
2880
|
}
|
|
2878
2881
|
}
|
|
2879
2882
|
}
|