@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
package/dist/index.mjs
CHANGED
|
@@ -1644,13 +1644,16 @@ function importPixiVNJson(data) {
|
|
|
1644
1644
|
console.error("[Pixi'VN] Error parsing imported Pixi'VN JSON: data is not an object");
|
|
1645
1645
|
return;
|
|
1646
1646
|
}
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1647
|
+
if (data.labels) {
|
|
1648
|
+
let labels = data.labels;
|
|
1649
|
+
for (const labelId in labels) {
|
|
1650
|
+
try {
|
|
1651
|
+
const steps = labels[labelId];
|
|
1652
|
+
let label = new LabelJson2(labelId, steps);
|
|
1653
|
+
saveLabel(label);
|
|
1654
|
+
} catch (e) {
|
|
1655
|
+
console.error(`[Pixi'VN] Error creating JSON label ${labelId}`, e);
|
|
1656
|
+
}
|
|
1654
1657
|
}
|
|
1655
1658
|
}
|
|
1656
1659
|
}
|