"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const domToUnit_1 = require("../../../../../util/parser/domToUnit");
const _ids_1 = require("../../../../_ids");
class DomToUnit extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['type', 'text'],
            o: ['unit'],
        }, {}, system, _ids_1.ID_DOM_TO_UNIT);
    }
    f({ type, text }, done) {
        const unit = (0, domToUnit_1.domToUnit)(this.__system, type, text, {
            width: 200,
            height: 200,
        });
        done({
            unit,
        });
    }
}
exports.default = DomToUnit;
//# sourceMappingURL=index.js.map