@joergmittaglawo/dmvconfig
Version:
DMV Configuration scripts for Lawo V__matrix Distributed Multiviewers.
45 lines (44 loc) • 1.52 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.All = exports.SingleMipMapAsArrayRow = exports.SingleMipMap = exports.lower = exports.lift = void 0;
const VScript = require("vscript");
exports.lift = {
SingleMipMap: (kwl, socket) => kwl ? (new SingleMipMap(new VScript.Subtree(socket, kwl))) : null,
SingleMipMapValidation: (x, _) => { return x ? { stream_a: x[0], stream_b: x[1] } : null; }
};
exports.lower = {
SingleMipMap: (ref) => ref ? ref.raw.kwl : null,
SingleMipMapValidation: (x) => x ? [x.stream_a, x.stream_b] : null
};
class SingleMipMap {
constructor(raw) {
this.raw = raw;
}
get validation() {
return new VScript.rKeyword(this, "validation", { lift: exports.lift.SingleMipMapValidation, lower: exports.lower.SingleMipMapValidation });
}
}
exports.SingleMipMap = SingleMipMap;
class SingleMipMapAsArrayRow extends SingleMipMap {
constructor(st, index, parent) {
super(st);
this.index = index;
this.parent = parent;
}
}
exports.SingleMipMapAsArrayRow = SingleMipMapAsArrayRow;
class All {
constructor(raw) {
this.raw = raw;
}
get mode_1() {
return new VScript.rKeyword(this, "mode_1");
}
get mode_2() {
return new VScript.rKeyword(this, "mode_2");
}
get mip_map_output() {
return new VScript.StronglyTypedArray(this, "mip_map_output", (st, index, parent) => new SingleMipMapAsArrayRow(st, index, parent));
}
}
exports.All = All;