UNPKG

@gmetrixr/rjson

Version:
19 lines (18 loc) 620 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const r_1 = require("../../../r"); /** * Converts pano image and pano video's rotation_offset to pano_yaw_correction */ class Migration { execute(projectJson) { const pJson = projectJson; const projectF = r_1.r.record(pJson); for (const e of projectF.getAllDeepChildren(r_1.RT.element)) { r_1.r.record(e).changePropertyName("rotation_offset", "pano_yaw_correction"); } projectF.set(r_1.rtp.project.version, 112); } } const migration = new Migration(); exports.default = migration;