led-matrix-ts
Version:
Highly customizable led matrix for the browser
18 lines • 657 B
JavaScript
export class Renderer {
constructor(parameters) {
}
render(display) {
if (this._parameters.element == null) {
this._parameters.element = document.getElementById(this._parameters.elementId);
if (this._parameters.element == null) {
throw `Could not find the element to render led matrix`;
}
}
else {
if (this._parameters.element.clientHeight == 0 || this._parameters.element.clientWidth == 0) {
this._parameters.element = document.getElementById(this._parameters.elementId);
}
}
}
}
//# sourceMappingURL=renderer.js.map