"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DrawingXform = void 0;
const base_xform_1 = require("../base-xform.js");
class DrawingXform extends base_xform_1.BaseXform {
    get tag() {
        return "drawing";
    }
    render(xmlStream, model) {
        if (model) {
            xmlStream.leafNode(this.tag, { "r:id": model.rId });
        }
    }
    parseOpen(node) {
        switch (node.name) {
            case this.tag:
                this.model = {
                    rId: node.attributes["r:id"]
                };
                return true;
            default:
                return false;
        }
    }
    parseText() { }
    parseClose() {
        return false;
    }
}
exports.DrawingXform = DrawingXform;
