"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("three");require("d3-geo");require("three/examples/jsm/controls/OrbitControls");require("three/examples/jsm/loaders/GLTFLoader");require("three/examples/jsm/loaders/DRACOLoader.js");require("three/examples/jsm/libs/lil-gui.module.min");require("three/examples/jsm/utils/BufferGeometryUtils");require("three/examples/jsm/renderers/CSS3DRenderer");const d=require("../../../../utils/mini3d/components/Plane.js");require("lodash");const l=require("../map/utils.js");function B(e,r,a=!0){const i=e.scene.getObjectByName("rotateBorder1");i&&e.scene.remove(i);const c=e.scene.getObjectByName("rotateBorder2");c&&e.scene.remove(c);const s=100,u=l.getTextureResource(e,"rotateBorder1Map",r.rotateBorder1.texture,"map"),p=l.getTextureResource(e,"rotateBorder2Map",r.rotateBorder2.texture,"map"),o=new d.Plane(e,{width:s*r.rotateBorder1.size,needRotate:!0,rotateSpeed:r.rotateBorder1.rotateSpeed*.001,material:new t.MeshBasicMaterial({...u,color:new t.Color(r.rotateBorder1.color||"#48afff"),transparent:!0,opacity:r.rotateBorder1.opacity,depthWrite:!1,blending:t.AdditiveBlending}),position:new t.Vector3(0,.17,0)});o.instance.renderOrder=6,a&&o.instance.scale.set(0,0,0),o.instance.visible=r.rotateBorder1.show,o.instance.name="rotateBorder1",o.setParent(e.scene);const n=new d.Plane(e,{width:s*r.rotateBorder2.size,needRotate:!0,rotateSpeed:r.rotateBorder2.rotateSpeed*.001,material:new t.MeshBasicMaterial({...p,color:new t.Color(r.rotateBorder2.color||"#48afff"),transparent:!0,opacity:r.rotateBorder2.opacity,depthWrite:!1,blending:t.AdditiveBlending}),position:new t.Vector3(0,.16,0)});n.instance.renderOrder=6,a&&n.instance.scale.set(0,0,0),n.instance.visible=r.rotateBorder2.show,n.instance.name="rotateBorder2",n.setParent(e.scene),e.rotateBorder1=o.instance,e.rotateBorder2=n.instance}exports.createFloorRotateBorder=B;
