@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
16 lines (14 loc) • 490 B
JavaScript
// src/functions/ExportUtility.ts
function createExportableElement(element) {
try {
let elementString = JSON.stringify(element);
return JSON.parse(elementString);
} catch (e) {
console.error("[Pixi'VN] Error creating exportable element", e);
throw new Error("[Pixi'VN] Error creating exportable element");
}
}
exports.createExportableElement = createExportableElement;
//# sourceMappingURL=ExportUtility.js.map
//# sourceMappingURL=ExportUtility.js.map
;