import { BaseXform } from "../../base-xform.js";
class VmlPositionXform extends BaseXform {
    constructor(model) {
        super();
        this._model = model || {};
        this.model = {};
    }
    get tag() {
        return this._model?.tag ?? "";
    }
    render(xmlStream, model, type) {
        if (type && model === type[2]) {
            xmlStream.leafNode(this.tag);
        }
        else if (type && this.tag === "x:SizeWithCells" && model === type[1]) {
            xmlStream.leafNode(this.tag);
        }
    }
    parseOpen(node) {
        switch (node.name) {
            case this.tag:
                this.model = {};
                this.model[this.tag] = true;
                return true;
            default:
                return false;
        }
    }
    parseText() { }
    parseClose() {
        return false;
    }
}
export { VmlPositionXform };
