thematic-earth
Version:
HTML-based, whole-Earth thematic maps using locally hosted data layers
2 lines • 1.26 kB
JavaScript
/* Copyright (c) 2023 Read Write Tools. Legal use subject to the Thematic Earth Software License Agreement. */
import expect from'../dev/expect.js';export default class BasePanel{constructor(e){expect(e,'ThematicEarthElement'),this.thematicEarthElement=e,this.signal=e.signal}getElementById(e){return expect(e,'String'),expect(this.thematicEarthElement.menu,'Menu'),expect(this.thematicEarthElement.menu.rwtDockablePanels,'RwtDockablePanels'),this.thematicEarthElement.menu.rwtDockablePanels.shadowRoot.getElementById(e)}querySelector(e){return expect(e,'String'),expect(this.thematicEarthElement.menu,'Menu'),expect(this.thematicEarthElement.menu.rwtDockablePanels,'RwtDockablePanels'),this.thematicEarthElement.menu.rwtDockablePanels.shadowRoot.querySelector(e)}querySelectorAll(e){return expect(e,'String'),expect(this.thematicEarthElement.menu,'Menu'),expect(this.thematicEarthElement.menu.rwtDockablePanels,'RwtDockablePanels'),this.thematicEarthElement.menu.rwtDockablePanels.shadowRoot.querySelectorAll(e)}getDockablePanels(){return expect(this.thematicEarthElement.menu,'Menu'),expect(this.thematicEarthElement.menu.rwtDockablePanels,'RwtDockablePanels'),this.thematicEarthElement.menu.rwtDockablePanels}registerBroadcasters(){}registerReceivers(){}}