"use strict";var i=Object.defineProperty;var p=(a,e,t)=>e in a?i(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var r=(a,e,t)=>p(a,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("three"),u=require("./assets/texture/bg.png.js"),h=require("./assets/texture/guangquan01.png.js"),l=require("./assets/texture/guangquan02.png.js"),d=require("./assets/texture/huiguang.png.js"),g=require("./assets/texture/gaoguang1.png.js"),c=require("./assets/texture/flyLine2.png.js");require("d3-geo");require("three/examples/jsm/controls/OrbitControls");const q=require("../../../../utils/mini3d/utils/Resource.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");require("three/examples/jsm/renderers/CSS3DRenderer");require("lodash");class y{constructor(e=null,t){r(this,"instance");r(this,"onLoadCallback");this.res=t,this.onLoadCallback=e,this.init()}init(){this.instance=new q.Resource,this.instance.addLoader(o.FileLoader,"FileLoader"),this.instance.on("onProgress",(t,n,s)=>{(n/s*100).toFixed(2)+""}),this.instance.on("onLoad",()=>{this.onLoadCallback&&this.onLoadCallback()});const e=[{type:"Texture",name:"gaoguang1",path:g.default},{type:"Texture",name:"topMap",path:this.res.topMap},{type:"Texture",name:"topNormal",path:this.res.topNormal},{type:"Texture",name:"sideMap",path:this.res.sideMap},{type:"Texture",name:"pathLine",path:this.res.pathLine},{type:"Texture",name:"gridRippleMap",path:this.res.gridRippleMap},{type:"Texture",name:"gridRippleAlphaMap",path:this.res.gridRippleAlphaMap},{type:"Texture",name:"rotateBorder1Map",path:this.res.rotateBorder1Map},{type:"Texture",name:"rotateBorder2Map",path:this.res.rotateBorder2Map},{type:"Texture",name:"flyLine",path:c.default},{type:"Texture",name:"huiguang",path:d.default},{type:"Texture",name:"guangquan1",path:h.default},{type:"Texture",name:"guangquan2",path:l.default},{type:"Texture",name:"bg",path:u.default}];this.instance.loadAll(e)}}exports.Assets=y;
