"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DimensionXform = void 0;
const base_xform_1 = require("../base-xform.js");
class DimensionXform extends base_xform_1.BaseXform {
    get tag() {
        return "dimension";
    }
    render(xmlStream, model) {
        if (model) {
            xmlStream.leafNode("dimension", { ref: model });
        }
    }
    parseOpen(node) {
        if (node.name === "dimension") {
            this.model = node.attributes.ref;
            return true;
        }
        return false;
    }
    parseText() { }
    parseClose() {
        return false;
    }
}
exports.DimensionXform = DimensionXform;
