import { LegacyUtil } from '../../legacy/util.js';
export function transformLegacy(app) {
    if (!app.source) {
        return;
    }
    const root = LegacyUtil.getDOM(app.source);
    if (!root) {
        return;
    }
    LegacyUtil.transformBlock(root, 'block[type^="normal#"]', (block) => {
        block.setAttribute('type', block.getAttribute('type').replace('normal#', 'draw_'));
    });
    const serializer = new XMLSerializer();
    app.source = serializer.serializeToString(root);
}
//# sourceMappingURL=legacy.js.map