Say Hello to OCTOFAN
The world's first H2-powered multirole heavy duty drone with
switchable nacelles
*/
export class SquareGrid extends AeroElement {
/** @type {HTMLElement } */
sectionNode;
type;
props;
/** @type {HTMLDivElement} */
deckNode;
/** @type{boolean} */
hasBackgroundImage = false;
/** @type{boolean} */
isBackgroundImageLoaded = false;
/** @type{string} */
backgroundImagePath;
constructor(type, props) {
super();
this.type = type;
this.props = props;
}
/**
*
* @param {WebPage} page
* @param {*} state
* @returns
*/
build(page) {
/* CSS requirements */
page.css_requireStylesheet("/aero/SquareGrid.css");
/* build nodes */
this.sectionNode = document.createElement("section");
this.sectionNode.classList.add("square-grid-wrapper");
this.setType(this.type);
this.setTheme(this.props.theme ? this.props.theme : "light");
/*