UNPKG

@yuebai008/cli

Version:

Command line interface for rapid qg-minigame development

1 lines 443 B
import*as Legacy from"../../ui/legacy/legacy.js";let windowBoundsServiceImplInstance;export class WindowBoundsServiceImpl{static instance(e={forceNew:null}){const{forceNew:n}=e;return windowBoundsServiceImplInstance&&!n||(windowBoundsServiceImplInstance=new WindowBoundsServiceImpl),windowBoundsServiceImplInstance}getDevToolsBoundingElement(){return Legacy.InspectorView.InspectorView.maybeGetInspectorViewInstance()?.element||document.body}}