"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CfvoXform = void 0;
const base_xform_1 = require("../../base-xform.js");
class CfvoXform extends base_xform_1.BaseXform {
    get tag() {
        return "cfvo";
    }
    render(xmlStream, model) {
        xmlStream.leafNode(this.tag, {
            type: model.type,
            val: model.value
        });
    }
    parseOpen(node) {
        this.model = {
            type: node.attributes.type,
            value: base_xform_1.BaseXform.toFloatValue(node.attributes.val)
        };
    }
    parseClose(name) {
        return name !== this.tag;
    }
}
exports.CfvoXform = CfvoXform;
