在终章会放出静态文件,目前只是放出代码 import{Constant}from‘./Constant’; import{Poly}from‘./Poly’; import{Earth}from‘./Earth’; exportclassCourseGui{ constructor(){ this.moveCursor=true; this.constructionDone=false; this.dateRangeIsManipulated=false; if(CourseGui._Instance){ thrownewError(‘Error:Instantiationfailed:U...

在终章会放出静态文件,目前只是放出代码 var__extends=(this&&this.__extends)||function(c,b){ for(varfinb){ if(b.hasOwnProperty(f)){ c[f]=b[f] } }; functiona(){ this.constructor=c } c.prototype=b=null?Object.create(b):(a.prototype=b.prototype,newa()) }; (function(BABYLON){ varbp=(function(bq){ __extends(bp,bq);...

在终章会放出静态文件,目前只是放出代码 /ParseGis类负责解析GIS数据并在3D场景中创建多边形。/ import{Poly}from‘./Poly’ exportclassParseGis{ constructor(y,Q){ this.scene=y; letbK=[]; letbJ=0; for(letbN=0;bN<Q.features.length;bN){ if(Q.features[bN].geometry!=null){ if(Q.features[bN].geometry.type‘Polygon’){ for(letm=0;m<Q.features[b...

在终章会放出静态文件,目前只是放出代码 import{Compute}from‘./Compute’; import{Constant}from‘./Constant’ varBABYLON=window.BABYLON var__extends=(this&&this.__extends)||function(c,b){ for(varfinb){ if(b.hasOwnProperty(f)){ c[f]=b[f] } }; functiona(){ this.constructor=c } c.prototype=b=null?Object.create(b):(a....

在终章会放出静态文件,目前只是放出代码 import{CameraLight}from‘./CameraLight’; import{Compute}from‘./Compute’; import{OutLine}from‘./OutLine’; import{TweetPanel}from‘./TweetPanel’; import{Poly}from‘./Poly’; exportclassUserEvent{ constructor(y,bm){ lets=this; this.scene=y; this.environment=CameraLight.getInstance(y);...

在终章会放出静态文件,目前只是放出代码 import{Poly}from‘./Poly’ exportclassOutLine{ constructor(y,z){ this.index=z; this.linesPointArray=[]; /该代码块正在检查是否存在先前创建的“OutLine”类的实例。如果存在,它会处理该实例的“lineSystem”属性。然后,它检查当前索引(“z”)是否与先前创建的实例的索引相同。如果它们相同,它将先前创建的实例设置为“null”并返回。如果它们不相同,它还会将先前创建的实例设置为“null”。这可确保一次只有一个“OutLine”实例处于活动状态...

在终章会放出静态文件,目前只是放出代码Mat工具类 /Mat类负责设置和管理3D场景中使用的材质,包括地球、月球和国家的材质。/ exportclassMat{ / •构造函数初始化场景并设置countriesMat数组,并确保只能创建Mat类的一个实例。 •@paramy参数“y”是传递给构造函数的场景对象。它用于设置类实例的“场景”属性。 / constructor(y){ this.scene=y; this.countriesMat=[]; if(Mat._instance){ thrownewError(‘Error:Instantiationfailed:UseSingl...

在终章会放出静态文件,目前只是放出代码 基础类ComputeClass负责坐标计算和一些空间运算和颜色计算 import{Constant}from‘./Constant’; import{Poly}from‘./Poly’; exportclassComputeClass{ /vec3ToLatLong函数用于将表示球体上的点的3D矢量转换为其相应的纬度和经度坐标。/ vec3ToLatLong(i,cY){ this.LatLong=BABYLON.Vector2.Zero(); this.Lon=Math.acos(i.x/Math.sqrt(Math.pow(i.x,2)+Math...

在终章会放出静态文件,目前只是放出代码 基础类ConstantClass负责球的定义参数和静态目录 classConstantClass{ /上面的代码在JavaScript中定义了各种变量和常量。这些变量用于存储与地球直径、不同元素的偏移、图像和数据文件的URL以及事件类型相关的值。该代码还包括gribs的文件名数组,它们是天气预报文件。/ constructor(){ this.EarthDiameter=16; this.EarthOffset=0.37; this.IslandOffset=0.1; this.SeaLevelOffset=0.03; this.ImocaOffse...

在终章会放出静态文件,目前只是放出代码 import{Constant}from‘./Constant’; import{Compute}from‘./Compute’; import{Imoca}from‘./Imoca’; import{GribsToFullVertexShader}from‘./GribsToFullVertexShader’; import{CameraLight}from‘./CameraLight’; import{Loader}from‘./Loader’; import{RankGui}from‘./RankGui’; import{CourseGui}f...

在终章会放出静态文件,目前只是放出代码 import{Constant}from‘./Constant’; import{Compute}from‘./Compute’; import{Loader}from‘./Loader’; import{RankGui}from‘./RankGui’; exportclassImoca{ constructor(y,w,u,i,x,t,v){ lets=this; this.scene=y; this.name=w; this.instanceID=u; this.pos=i; this.rank=x; this.dToGoal=t; this.l...

在终章会放出静态文件,目前只是放出代码 import{Race}from‘./Race’; exportclassRankGui{ constructor(){ this.cellInstance=[]; this.counter=0; this.buildBoard() } /buildBoard()函数负责在DOM(文档对象模型)中创建和设置RankGui板。/ buildBoard(){ RankGui.THAT=this; this.board=document.createElement(‘div’); this.board.style.cursor=‘pointer’; thi...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

这次我们用pixi.js和arcgisjs结合 我们先定义一下传入数据结构symbol暂时不做 letoption={ renderer:{ type:“simple”, symbol:{ } }, data:[ { geometry:[12956152.73135875,4855356.473704897], attributes:{ name:“北京” } }, { geometry:[12697872.012783196,2577456.5937789795], attributes:{ name:“深圳” } } ] }; 对于data数据,toScreen方法参考链接提示app...

关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~