import{createWebglDefaultConfig,webglCreator,SceneCacheType}from"../webgl";import createMetaMethods from"./meta";import webglPlugin from"../plugin/webgl";import webglEvent from"../event/webgl";import createNodeServerInstance,{createCloudEngine}from"../unity/server";import{cesiumCreator,createCesiumDefaultConfig}from"../cesium";import unityPlugin from"../plugin/unity";export{SceneCacheType,webglPlugin,createCloudEngine,unityPlugin};export async function createWebglEngine(a){let b=createWebglDefaultConfig(),c={...b,plugins:[webglPlugin.renderPass(),webglPlugin.light([{type:"DirectionalLight",color:16777215,intensity:.8},{type:"AmbientLight",color:16777215,intensity:.8}]),webglPlugin.orbitControl()]},d=webglCreator(a?a(c):c),e=createMetaMethods(d);return c.plugins.forEach(a=>{e.plugin.use(a)}),webglEvent.Click({})(e),webglEvent.Dblclick({})(e),webglEvent.Hover(c.themes.hover)(e),e}export async function createNodeServer(a){return createNodeServerInstance(a)}export async function createCesiumEngine(a){let b=createCesiumDefaultConfig(),c={...b};return cesiumCreator(a?a(c):c)}