@anov/gis 1.7.0 → 1.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/resources/static/modelData/gltf/treePlane3.glb +0 -0
- package/package.json +16 -17
- package/dist/Documentation/images/CesiumLogo.png +0 -0
- package/dist/Documentation/images/arrflow.png +0 -0
- package/dist/Documentation/images/bingAerial.png +0 -0
- package/dist/Documentation/images/bingAerialLabels.png +0 -0
- package/dist/Documentation/images/bingRoads.png +0 -0
- package/dist/Documentation/images/blueblack.png +0 -0
- package/dist/Documentation/images/circle_blue.png +0 -0
- package/dist/Documentation/images/circle_red.png +0 -0
- package/dist/Documentation/images/circle_yellow.png +0 -0
- package/dist/Documentation/images/cloud.jpg +0 -0
- package/dist/Documentation/images/defpoint.png +0 -0
- package/dist/Documentation/images/esriWorldImagery.png +0 -0
- package/dist/Documentation/images/fence.png +0 -0
- package/dist/Documentation/images/gaode_img.png +0 -0
- package/dist/Documentation/images/gnjg.png +0 -0
- package/dist/Documentation/images/google_vec.png +0 -0
- package/dist/Documentation/images/lighting.png +0 -0
- package/dist/Documentation/images/linegradient.png +0 -0
- package/dist/Documentation/images/modelicon.png +0 -0
- package/dist/Documentation/images/rader-g.png +0 -0
- package/dist/Documentation/images/space_line.png +0 -0
- package/dist/Documentation/images/tdt_ter.png +0 -0
- package/dist/Documentation/images/tdt_vec.png +0 -0
- package/dist/Documentation/images/wall1.png +0 -0
- package/dist/Documentation/images/wall2.png +0 -0
- package/dist/Documentation/images/wallflow.png +0 -0
- package/dist/Documentation/images/wallgradient.png +0 -0
- package/dist/Documentation/images/wallgradients.png +0 -0
- package/dist/Documentation/images/wallline.png +0 -0
- package/dist/Documentation/images/walltest.png +0 -0
- package/dist/Documentation/images/water/waterNormals.jpg +0 -0
- package/packages/applyfn/dist/applyfn.js +0 -2
- package/packages/applyfn/dist/applyfn.js.LICENSE.txt +0 -58
- package/packages/applyfn/dist/resources/static/images/CesiumLogo.png +0 -0
- package/packages/applyfn/dist/resources/static/images/arrflow.png +0 -0
- package/packages/applyfn/dist/resources/static/images/bingAerial.png +0 -0
- package/packages/applyfn/dist/resources/static/images/bingAerialLabels.png +0 -0
- package/packages/applyfn/dist/resources/static/images/bingRoads.png +0 -0
- package/packages/applyfn/dist/resources/static/images/blueblack.png +0 -0
- package/packages/applyfn/dist/resources/static/images/circle_blue.png +0 -0
- package/packages/applyfn/dist/resources/static/images/circle_red.png +0 -0
- package/packages/applyfn/dist/resources/static/images/circle_yellow.png +0 -0
- package/packages/applyfn/dist/resources/static/images/cloud.jpg +0 -0
- package/packages/applyfn/dist/resources/static/images/defpoint.png +0 -0
- package/packages/applyfn/dist/resources/static/images/esriWorldImagery.png +0 -0
- package/packages/applyfn/dist/resources/static/images/fence.png +0 -0
- package/packages/applyfn/dist/resources/static/images/gaode_img.png +0 -0
- package/packages/applyfn/dist/resources/static/images/gnjg.png +0 -0
- package/packages/applyfn/dist/resources/static/images/google_vec.png +0 -0
- package/packages/applyfn/dist/resources/static/images/lighting.png +0 -0
- package/packages/applyfn/dist/resources/static/images/linegradient.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/defaultAoMap.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20190822174435390_175394.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20191031184212596_905709.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20200806165146658_256607.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20200806165346717_486629.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20200806165622546_803071.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20200826135728680_6831.jpg +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210705153914377_78335.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210830164501048_827000.jpg +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210901124557738_616270.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210903160322248_95608.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210923091557876_521316.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210923160630983_827755.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210924144045361_133335.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210929112546465_180900.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20210929112717971_977031.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211008163556563_43307.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211013100646278_238652.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211013145109837_634585.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123110027743_601871.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123113228587_341516.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123113257568_206251.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123113506512_748696.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123113517511_203536.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123123833410_547758.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123123851020_584675.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/icon_20211123141857319_304851.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00/normal.jpg +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/00//345/205/211/347/202/271/351/273/221/347/231/27502.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld_top4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/bld_top5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/win1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci0/win1@.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld_top4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/bld_top5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/win1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/win2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/win3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/win4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci1/win5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci2/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci2/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci2/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci2/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci2/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci2/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci3/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci3/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/Sci4/bld_top4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld10.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld6.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld7.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld8.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/bld9.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/icon_20220215143622644_123389.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/top_03.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/top_1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/top_2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/top_3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/top_4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/top_6.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/base/top_7.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co0.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co6.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/color1/co7.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-anime.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top10.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top11.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top8.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld-top9.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld10.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld11.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld6.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld7.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld8.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/bld9.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/no-anime.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/realism/wall_10000.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/green.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/line_blue1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/line_p.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/purple1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/red.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/red1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/road1.PNG +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/road/yellow1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/water/color.png +0 -0
- package/packages/applyfn/dist/resources/static/images/modelData/building/water/refraction.jpg +0 -0
- package/packages/applyfn/dist/resources/static/images/modelicon.png +0 -0
- package/packages/applyfn/dist/resources/static/images/rader-g.png +0 -0
- package/packages/applyfn/dist/resources/static/images/space_line.png +0 -0
- package/packages/applyfn/dist/resources/static/images/tdt_ter.png +0 -0
- package/packages/applyfn/dist/resources/static/images/tdt_vec.png +0 -0
- package/packages/applyfn/dist/resources/static/images/wall1.png +0 -0
- package/packages/applyfn/dist/resources/static/images/wall2.png +0 -0
- package/packages/applyfn/dist/resources/static/images/wallflow.png +0 -0
- package/packages/applyfn/dist/resources/static/images/wallgradient.png +0 -0
- package/packages/applyfn/dist/resources/static/images/wallgradients.png +0 -0
- package/packages/applyfn/dist/resources/static/images/wallline.png +0 -0
- package/packages/applyfn/dist/resources/static/images/walltest.png +0 -0
- package/packages/applyfn/dist/resources/static/images/water/waterNormals.jpg +0 -0
- package/packages/applyfn/dist/resources/static/images/water/waterNormalsSmall.jpg +0 -0
- package/packages/applyfn/dist/resources/static/js/viewerCesiumNavigationMixin.js +0 -2
- package/packages/applyfn/dist/resources/static/js/viewerCesiumNavigationMixin.js.LICENSE.txt +0 -10
- package/packages/applyfn/dist/resources/static/modelData/building/00/defaultAoMap.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20190822174435390_175394.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20191031184212596_905709.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20200806165146658_256607.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20200806165346717_486629.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20200806165622546_803071.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20200826135728680_6831.jpg +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210705153914377_78335.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210830164501048_827000.jpg +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210901124557738_616270.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210903160322248_95608.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210923091557876_521316.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210923160630983_827755.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210924144045361_133335.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210929112546465_180900.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20210929112717971_977031.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211008163556563_43307.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211013100646278_238652.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211013145109837_634585.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123110027743_601871.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123113228587_341516.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123113257568_206251.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123113506512_748696.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123113517511_203536.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123123833410_547758.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123123851020_584675.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/icon_20211123141857319_304851.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00/normal.jpg +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/00//345/205/211/347/202/271/351/273/221/347/231/27502.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld_top4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/bld_top5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/win1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci0/win1@.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld_top4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/bld_top5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/win1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/win2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/win3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/win4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci1/win5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci2/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci2/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci2/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci2/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci2/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci2/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci3/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci3/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld_top1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld_top2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld_top3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/Sci4/bld_top4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld10.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld6.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld7.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld8.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/bld9.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/icon_20220215143622644_123389.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/top_03.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/top_1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/top_2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/top_3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/top_4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/top_6.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/base/top_7.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co0.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co6.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/color1/co7.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-anime.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top10.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top11.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top8.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld-top9.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld10.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld11.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld2.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld3.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld4.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld5.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld6.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld7.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld8.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/bld9.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/no-anime.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/realism/wall_10000.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/green.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/line_blue1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/line_p.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/purple1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/red.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/red1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/road1.PNG +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/road/yellow1.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/water/color.png +0 -0
- package/packages/applyfn/dist/resources/static/modelData/building/water/refraction.jpg +0 -0
- package/packages/applyfn/dist/resources/static/modelData/road/river_pg_110000.json +0 -2756
- package/packages/cesiumthreelib/rollup.config.mjs +0 -30
- package/packages/cesiumthreelib/tsconfig.json +0 -22
- package/packages/cityengine/dist/anovcity.js +0 -2
- package/packages/cityengine/dist/anovcity.js.LICENSE.txt +0 -3
- package/packages/cityengine/dist/packages_cityengine_src_libs_geobuf_js.anovcity.js +0 -40
- package/packages/ui/dist/demo.html +0 -10
- package/packages/ui/dist/ui.common.js +0 -2513
- package/packages/ui/dist/ui.css +0 -1
- package/packages/ui/dist/ui.umd.js +0 -2523
- package/packages/ui/dist/ui.umd.min.js +0 -1
- /package/dist/{Documentation/images/water → resources/static/modelData/images}/waterNormalsSmall.jpg +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import pkg from './package.json' assert { type: 'json' };
|
|
2
|
-
import rollupReplace from '@rollup/plugin-replace';
|
|
3
|
-
import rollupTypescript from '@rollup/plugin-typescript';
|
|
4
|
-
import typescript from 'typescript';
|
|
5
|
-
|
|
6
|
-
const license = `/*!
|
|
7
|
-
* ${ pkg.name }
|
|
8
|
-
*/`;
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
input: 'src/index.ts',
|
|
12
|
-
output: [
|
|
13
|
-
{
|
|
14
|
-
format: 'es',
|
|
15
|
-
file: pkg.module,
|
|
16
|
-
banner: license,
|
|
17
|
-
indent: '\t',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
format: 'cjs',
|
|
21
|
-
file: pkg.main,
|
|
22
|
-
banner: license,
|
|
23
|
-
indent: '\t',
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
plugins: [
|
|
27
|
-
rollupReplace( { preventAssignment: true, __VERSION: pkg.version } ),
|
|
28
|
-
rollupTypescript( { typescript } ),
|
|
29
|
-
],
|
|
30
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": "src",
|
|
4
|
-
"outDir": "./dist",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"target": "es2017",
|
|
7
|
-
"lib": ["es2017", "dom"],
|
|
8
|
-
"strict": true,
|
|
9
|
-
"removeComments": false,
|
|
10
|
-
"experimentalDecorators": true,
|
|
11
|
-
"noImplicitAny": true,
|
|
12
|
-
"noImplicitThis": true,
|
|
13
|
-
"noImplicitReturns": true,
|
|
14
|
-
"noUnusedLocals": true,
|
|
15
|
-
"noUnusedParameters": true,
|
|
16
|
-
"strictNullChecks": true,
|
|
17
|
-
"strictFunctionTypes": true,
|
|
18
|
-
"noFallthroughCasesInSwitch": true
|
|
19
|
-
},
|
|
20
|
-
"include": ["src/**/*"],
|
|
21
|
-
"exclude": ["node_modules"]
|
|
22
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see anovcity.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ANOVCITY",[],t):"object"==typeof exports?exports.ANOVCITY=t():e.ANOVCITY=t()}(self,(()=>(()=>{var __webpack_modules__={898:()=>{var scriptText='!function (e) { if ("object" == typeof exports && "undefined" != typeof module) module.exports = e(); else if ("function" == typeof define && define.amd) define([], e); else { ("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).geobuf = e() } }(function () { return function o(a, u, f) { function l(t, e) { if (!u[t]) { if (!a[t]) { var r = "function" == typeof require && require; if (!e && r) return r(t, !0); if (s) return s(t, !0); var n = new Error("Cannot find module \'" + t + "\'"); throw n.code = "MODULE_NOT_FOUND", n } var i = u[t] = { exports: {} }; a[t][0].call(i.exports, function (e) { var r = a[t][1][e]; return l(r || e) }, i, i.exports, o, a, u, f) } return u[t].exports } for (var s = "function" == typeof require && require, e = 0; e < f.length; e++)l(f[e]); return l }({ 1: [function (e, r, t) { "use strict"; var o, a, u, l, s; r.exports = function (e) { l = 2, s = Math.pow(10, 6), u = null, o = [], a = []; var r = e.readFields(n, {}); return o = null, r }; var f = ["Point", "MultiPoint", "LineString", "MultiLineString", "Polygon", "MultiPolygon", "GeometryCollection"]; function n(e, r, t) { var n, i; 1 === e ? o.push(t.readString()) : 2 === e ? l = t.readVarint() : 3 === e ? s = Math.pow(10, t.readVarint()) : 4 === e ? (n = t, (i = r).type = "FeatureCollection", i.features = [], n.readMessage(c, i)) : 5 === e ? d(t, r) : 6 === e && p(t, r) } function d(e, r) { r.type = "Feature"; var t = e.readMessage(i, r); return t.hasOwnProperty("geometry") || (t.geometry = null), t } function p(e, r) { return e.readMessage(g, r) } function c(e, r, t) { 1 === e ? r.features.push(d(t, {})) : 13 === e ? a.push(y(t)) : 15 === e && h(t, r) } function i(e, r, t) { 1 === e ? r.geometry = p(t, {}) : 11 === e ? r.id = t.readString() : 12 === e ? r.id = t.readSVarint() : 13 === e ? a.push(y(t)) : 14 === e ? r.properties = h(t, {}) : 15 === e && h(t, r) } function g(e, r, t) { var n, i, o; 1 === e ? r.type = f[t.readVarint()] : 2 === e ? u = t.readPackedVarint() : 3 === e ? (i = t, "Point" === (o = (n = r).type) ? n.coordinates = function (e) { for (var r = e.readVarint() + e.pos, t = []; e.pos < r;)t.push(e.readSVarint() / s); return t }(i) : "MultiPoint" === o ? n.coordinates = w(i) : "LineString" === o ? n.coordinates = w(i) : "MultiLineString" === o ? n.coordinates = M(i) : "Polygon" === o ? n.coordinates = M(i, !0) : "MultiPolygon" === o && (n.coordinates = function (e) { var r = e.readVarint() + e.pos; if (!u) return [[v(e, r, null, !0)]]; for (var t = [], n = 1, i = 0; i < u[0]; i++) { for (var o = [], a = 0; a < u[n]; a++)o.push(v(e, r, u[n + 1 + a], !0)); n += u[n] + 1, t.push(o) } return u = null, t }(i))) : 4 === e ? (r.geometries = r.geometries || [], r.geometries.push(p(t, {}))) : 13 === e ? a.push(y(t)) : 15 === e && h(t, r) } function y(e) { for (var r = e.readVarint() + e.pos, t = null; e.pos < r;) { var n = e.readVarint() >> 3; 1 === n ? t = e.readString() : 2 === n ? t = e.readDouble() : 3 === n ? t = e.readVarint() : 4 === n ? t = -e.readVarint() : 5 === n ? t = e.readBoolean() : 6 === n && (t = JSON.parse(e.readString())) } return t } function h(e, r) { for (var t = e.readVarint() + e.pos; e.pos < t;)r[o[e.readVarint()]] = a[e.readVarint()]; return a = [], r } function v(e, r, t, n) { var i, o, a = 0, u = [], f = []; for (o = 0; o < l; o++)f[o] = 0; for (; t ? a < t : e.pos < r;) { for (i = [], o = 0; o < l; o++)f[o] += e.readSVarint(), i[o] = f[o] / s; u.push(i), a++ } return n && u.push(u[0]), u } function w(e) { return v(e, e.readVarint() + e.pos) } function M(e, r) { var t = e.readVarint() + e.pos; if (!u) return [v(e, t, null, r)]; for (var n = [], i = 0; i < u.length; i++)n.push(v(e, t, u[i], r)); return u = null, n } }, {}], 2: [function (e, r, t) { "use strict"; r.exports = function (e, r) { a = {}, o = [], f = i = 0, l = 1, function e(r) { var t, n; if ("FeatureCollection" === r.type) for (t = 0; t < r.features.length; t++)e(r.features[t]); else if ("Feature" === r.type) for (n in null !== r.geometry && e(r.geometry), r.properties) g(n); else if ("Point" === r.type) c(r.coordinates); else if ("MultiPoint" === r.type) p(r.coordinates); else if ("GeometryCollection" === r.type) for (t = 0; t < r.geometries.length; t++)e(r.geometries[t]); else if ("LineString" === r.type) p(r.coordinates); else if ("Polygon" === r.type || "MultiLineString" === r.type) d(r.coordinates); else if ("MultiPolygon" === r.type) for (t = 0; t < r.coordinates.length; t++)d(r.coordinates[t]); for (n in r) S(n, r.type) || g(n) }(e), l = Math.min(l, u); for (var t = Math.ceil(Math.log(l) / Math.LN10), n = 0; n < o.length; n++)r.writeStringField(1, o[n]); 2 !== f && r.writeVarintField(2, f); 6 !== t && r.writeVarintField(3, t); "FeatureCollection" === e.type ? r.writeMessage(4, y, e) : "Feature" === e.type ? r.writeMessage(5, h, e) : r.writeMessage(6, v, e); return a = null, r.finish() }; var a, i, o, f, l, u = 1e6, s = { Point: 0, MultiPoint: 1, LineString: 2, MultiLineString: 3, Polygon: 4, MultiPolygon: 5, GeometryCollection: 6 }; function d(e) { for (var r = 0; r < e.length; r++)p(e[r]) } function p(e) { for (var r = 0; r < e.length; r++)c(e[r]) } function c(e) { f = Math.max(f, e.length); for (var r = 0; r < e.length; r++)for (; Math.round(e[r] * l) / l !== e[r] && l < u;)l *= 10 } function g(e) { void 0 === a[e] && (o.push(e), a[e] = i++) } function y(e, r) { for (var t = 0; t < e.features.length; t++)r.writeMessage(1, h, e.features[t]); w(e, r, !0) } function h(e, r) { null !== e.geometry && r.writeMessage(1, v, e.geometry), void 0 !== e.id && ("number" == typeof e.id && e.id % 1 == 0 ? r.writeSVarintField(12, e.id) : r.writeStringField(11, e.id)), e.properties && w(e.properties, r), w(e, r, !0) } function v(e, r) { r.writeVarintField(1, s[e.type]); var t = e.coordinates; if ("Point" === e.type) !function (e, r) { for (var t = [], n = 0; n < f; n++)t.push(Math.round(e[n] * l)); r.writePackedSVarint(3, t) }(t, r); else if ("MultiPoint" === e.type) V(t, r); else if ("LineString" === e.type) V(t, r); else if ("MultiLineString" === e.type) m(t, r); else if ("Polygon" === e.type) m(t, r, !0); else if ("MultiPolygon" === e.type) !function (e, r) { var t, n, i = e.length; if (1 !== i || 1 !== e[0].length) { var o = [i]; for (t = 0; t < i; t++)for (o.push(e[t].length), n = 0; n < e[t].length; n++)o.push(e[t][n].length - 1); r.writePackedVarint(2, o) } var a = []; for (t = 0; t < i; t++)for (n = 0; n < e[t].length; n++)P(a, e[t][n], !0); r.writePackedSVarint(3, a) }(t, r); else if ("GeometryCollection" === e.type) for (var n = 0; n < e.geometries.length; n++)r.writeMessage(4, v, e.geometries[n]); w(e, r, !0) } function w(e, r, t) { var n = [], i = 0; for (var o in e) t && S(o, e.type) || (r.writeMessage(13, M, e[o]), n.push(a[o]), n.push(i++)); r.writePackedVarint(t ? 15 : 14, n) } function M(e, r) { if (null !== e) { var t = typeof e; "string" === t ? r.writeStringField(1, e) : "boolean" === t ? r.writeBooleanField(5, e) : "object" === t ? r.writeStringField(6, JSON.stringify(e)) : "number" === t && (e % 1 != 0 ? r.writeDoubleField(2, e) : 0 <= e ? r.writeVarintField(3, e) : r.writeVarintField(4, -e)) } } function V(e, r) { var t = []; P(t, e), r.writePackedSVarint(3, t) } function m(e, r, t) { var n, i = e.length; if (1 !== i) { var o = []; for (n = 0; n < i; n++)o.push(e[n].length - (t ? 1 : 0)); r.writePackedVarint(2, o) } var a = []; for (n = 0; n < i; n++)P(a, e[n], t); r.writePackedSVarint(3, a) } function P(e, r, t) { var n, i, o = r.length - (t ? 1 : 0), a = new Array(f); for (i = 0; i < f; i++)a[i] = 0; for (n = 0; n < o; n++)for (i = 0; i < f; i++) { var u = Math.round(r[n][i] * l) - a[i]; e.push(u), a[i] += u } } function S(e, r) { if ("type" === e) return !0; if ("FeatureCollection" === r) { if ("features" === e) return !0 } else if ("Feature" === r) { if ("id" === e || "properties" === e || "geometry" === e) return !0 } else if ("GeometryCollection" === r) { if ("geometries" === e) return !0 } else if ("coordinates" === e) return !0; return !1 } }, {}], 3: [function (e, r, t) { "use strict"; t.encode = e("./encode"), t.decode = e("./decode") }, { "./decode": 1, "./encode": 2 }] }, {}, [3])(3) });';eval(scriptText)},921:e=>{e.exports="varying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\n varying vec3 v_position;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\nuniform sampler2D topImage;//屋顶\r\nuniform sampler2D myImage;//墙\r\nuniform sampler2D animImage;//动画飞线\r\nuniform sampler2D WinImage;//窗户\r\n uniform vec3 C_position;\r\n uniform vec3 C_normal;\r\n uniform mat3 C_Matrix;\r\n uniform float wallAlpha;\r\n\r\nvec4 T3dPoi (sampler2D T,vec3 Position,vec3 normal, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,Position.z);\r\n vec2 yz = vec2(Position.y,Position.z);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n\r\n vec4 T3dPoi1 (sampler2D T,vec3 Position,vec3 normal,float height, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,height/loop);\r\n vec2 yz = vec2(Position.y,height/loop);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n // mat3 getRotationMatrix(vec3 from, vec3 to) {\r\n // vec3 v = cross(from, to);\r\n // float c = dot(from, to);\r\n // float k = 1.0 / (1.0 + c);\r\n // //Check if vectors are nearly parallel\r\n // if (c > 0.9999) {\r\n // return mat3(1.0); // Return identity matrix if vectors are nearly parallel\r\n // }\r\n // mat3 rotationMatrix;\r\n // rotationMatrix[0][0] = v.x * v.x * k + c;\r\n // rotationMatrix[0][1] = v.x * v.y * k - v.z;\r\n // rotationMatrix[0][2] = v.x * v.z * k + v.y;\r\n // rotationMatrix[1][0] = v.y * v.x * k + v.z;\r\n // rotationMatrix[1][1] = v.y * v.y * k + c;\r\n // rotationMatrix[1][2] = v.y * v.z * k - v.x;\r\n // rotationMatrix[2][0] = v.z * v.x * k - v.y;\r\n // rotationMatrix[2][1] = v.z * v.y * k + v.x;\r\n // rotationMatrix[2][2] = v.z * v.z * k + c;\r\n\r\n // return rotationMatrix;\r\n // }\r\n\r\n \r\nvoid main() {\r\n vec3 positionToEyeEC = -v_positionEC;\r\n\r\n vec3 normalEC = normalize(v_normalEC);\r\n #ifdef FACE_FORWARD\r\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\r\n #endif\r\n\r\n czm_materialInput materialInput;\r\n materialInput.normalEC = normalEC;\r\n materialInput.positionToEyeEC = positionToEyeEC; \r\n materialInput.st = v_st;\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n\r\n vec3 normal_d = czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0));\r\n float dotProduct = dot(v_normal, normal_d);\r\n \r\n\r\n // mat3 rotationMatrix = getRotationMatrix(vec3(0.0, 0.0, 1.0),C_normal); \r\n// vec3 w_position = rotationMatrix * v_position;\r\n// vec3 w_normal =rotationMatrix * v_normal;\r\n vec3 w_position = C_Matrix * v_position;\r\n vec3 w_normal =C_Matrix * v_normal;\r\n\r\n if(dotProduct > 0.95) {\r\n\r\n // material.diffuse = vec3(0.9);\r\n material.diffuse = texture(topImage, materialInput.st).rgb+vec3(0.4);\r\n \r\n } else {\r\n //material.diffuse = texture(myImage, materialInput.st).rgb;\r\n material.diffuse = vec3(fract(w_position.z*0.01));\r\n material.diffuse = T3dPoi1(myImage,w_position,w_normal,materialInput.st.t,0.02).rgb; \r\n material.diffuse *= vec3(clamp((materialInput.st.t*1.5-0.2)+0.2,0.,1.5))*0.5+vec3(0.6); \r\n \r\n float dis= max(max((materialInput.st.x*31.-30.), 1.-(materialInput.st.x*31.)),max((materialInput.st.y*51.-50.), 1.-(materialInput.st.y*51.)));\r\n //float dis= max(max((materialInput.st.x*v_dist-(v_dist-1.)), 1.-(materialInput.st.x*v_dist)),max((materialInput.st.y*51.-50.), 1.-(materialInput.st.y*51.)));\r\n \r\n material.diffuse -= vec3(clamp(dis,0.,1.));\r\n // material.diffuse = vec3(materialInput.st.x);\r\n\r\n float time = fract(czm_frameNumber / 360.0); \r\n material.alpha= wallAlpha; \r\n\r\n \r\n } \r\n gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\r\n // gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\r\n}\r\n"},205:e=>{e.exports="//#version 300 es\r\n precision highp float;\r\n uniform sampler2D colorTexture;\r\n in vec2 v_textureCoordinates;\r\n out vec4 fragColor;\r\n\r\n uniform vec3 ShaColor;\r\n\r\n void main() {\r\n\r\nvec2 screenCenter = vec2(0.5, 0.5);\r\n// 计算当前纹理坐标到中心点的距离\r\nvec2 toCenter = v_textureCoordinates - screenCenter;\r\nfloat dist = pow(length(toCenter),2.0);\r\n\r\nfloat maxOffset = 0.01; // 最大的偏移量(在屏幕边缘处)\r\n\r\n// 计算红绿通道的偏移量,根据距离逐渐增加\r\nvec2 redOffset = normalize(toCenter) * dist * maxOffset;\r\nvec2 greenOffset = -normalize(toCenter) * dist * maxOffset * 0.8; // 绿色偏移可以稍微小一些\r\n\r\n// 从输入纹理中获取颜色\r\nvec4 originalColor = texture(colorTexture, v_textureCoordinates);\r\n\r\n// 获取不同颜色通道的纹理颜色\r\nvec4 redColor = texture(colorTexture, v_textureCoordinates + redOffset);\r\nvec4 greenColor = texture(colorTexture, v_textureCoordinates + greenOffset);\r\nvec4 blueColor = texture(colorTexture, v_textureCoordinates); // 蓝色通道不偏移\r\n// 组合偏移后的颜色通道\r\nvec4 shiftedColor = vec4(redColor.r, greenColor.g, blueColor.b, originalColor.a);\r\n\r\n// vec2 vUv =v_textureCoordinates;\r\n// vec2 uv = vUv; \r\n// vec2 st = uv * 5.0;\r\n \r\n fragColor = shiftedColor;\r\n\r\n }"},47:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n float time = fract(czm_frameNumber * speed / 1000.0);\r\n material.diffuse = color.rgb;\r\n material.alpha = color.a * fract(st.s-time);\r\n return material;\r\n}"},594:e=>{e.exports="uniform sampler2D image;\r\nuniform vec4 color;\r\nuniform float speed;\r\nuniform float percent;\r\nuniform float gradient;\r\nuniform float offset;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\nczm_material material = czm_getDefaultMaterial(materialInput);\r\nvec2 st = materialInput.st;\r\nfloat t =fract((czm_frameNumber) * speed / 600.0+offset);\r\nt *= (1.0 + percent);\r\nvec4 colorImage = texture(image, vec2(smoothstep(t- percent, t, st.s) * step(-t, -st.s), st.t));\r\n\r\nfloat alpha = smoothstep(t- percent, t, st.s) * step(-t, -st.s);\r\n//float alpha = fract(st.s-czm_frameNumber/60.+offset);\r\nalpha += gradient;\r\nmaterial.diffuse = colorImage.rgb*1.3;\r\nmaterial.alpha =colorImage.a;\r\nreturn material;\r\n}"},610:e=>{e.exports="varying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\n varying vec3 v_position;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\nuniform sampler2D topImage;//屋顶\r\nuniform sampler2D myImage;//墙\r\nuniform sampler2D animImage;//动画飞线\r\nuniform sampler2D WinImage;//窗户\r\n uniform vec3 C_position;\r\n uniform vec3 C_normal;\r\n uniform float wallAlpha;\r\n\r\nvec4 T3dPoi (sampler2D T,vec3 Position,vec3 normal, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,Position.z);\r\n vec2 yz = vec2(Position.y,Position.z);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n\r\n vec4 T3dPoi1 (sampler2D T,vec3 Position,vec3 normal,float height, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,height/loop);\r\n vec2 yz = vec2(Position.y,height/loop);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n mat3 getRotationMatrix(vec3 from, vec3 to) {\r\n vec3 v = cross(from, to);\r\n float c = dot(from, to);\r\n float k = 1.0 / (1.0 + c);\r\n //Check if vectors are nearly parallel\r\n if (c > 0.9999) {\r\n return mat3(1.0); // Return identity matrix if vectors are nearly parallel\r\n }\r\n mat3 rotationMatrix;\r\n rotationMatrix[0][0] = v.x * v.x * k + c;\r\n rotationMatrix[0][1] = v.x * v.y * k - v.z;\r\n rotationMatrix[0][2] = v.x * v.z * k + v.y;\r\n rotationMatrix[1][0] = v.y * v.x * k + v.z;\r\n rotationMatrix[1][1] = v.y * v.y * k + c;\r\n rotationMatrix[1][2] = v.y * v.z * k - v.x;\r\n rotationMatrix[2][0] = v.z * v.x * k - v.y;\r\n rotationMatrix[2][1] = v.z * v.y * k + v.x;\r\n rotationMatrix[2][2] = v.z * v.z * k + c;\r\n\r\n return rotationMatrix;\r\n }\r\n\r\n \r\n\r\nvoid main() {\r\n vec3 positionToEyeEC = -v_positionEC;\r\n\r\n vec3 normalEC = normalize(v_normalEC);\r\n #ifdef FACE_FORWARD\r\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\r\n #endif\r\n\r\n czm_materialInput materialInput;\r\n materialInput.normalEC = normalEC;\r\n materialInput.positionToEyeEC = positionToEyeEC; \r\n materialInput.st = v_st;\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n\r\n vec3 normal_d = czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0));\r\n float dotProduct = dot(v_normal, normal_d);\r\n \r\n vec3 teP = v_positionMC-C_position;\r\n\r\n mat3 rotationMatrix = getRotationMatrix(vec3(0.0, 0.0, 1.0),C_normal); \r\n vec3 w_position = rotationMatrix * v_position;\r\n vec3 w_normal =rotationMatrix * v_normal;\r\n\r\n\r\n\r\n if(dotProduct > 0.95) {\r\n\r\n material.diffuse = texture(topImage, materialInput.st).rgb;\r\n \r\n \r\n } else {\r\n //material.diffuse = texture(myImage, materialInput.st).rgb;\r\n material.diffuse = vec3(fract(w_position.z*0.01));\r\n material.diffuse = T3dPoi1(myImage,w_position,w_normal,materialInput.st.t,0.02).rgb; \r\n material.diffuse *= vec3(clamp(max((materialInput.st.t*1.25-0.2),(-materialInput.st.t*5.+1.)*0.5)*0.6+0.4,0.,1.));///这个是模拟特定图片黑白光影,叠加有体感\r\n float time = fract(czm_frameNumber / 360.0); \r\n material.emission = T3dPoi1(animImage,w_position,w_normal,materialInput.st.t-time,0.02).rgb; \r\n material.emission += T3dPoi(WinImage,w_position,w_normal,0.003).rgb*2.;//*(sin(czm_frameNumber*0.05)*10.+11.)\r\n material.alpha= wallAlpha; \r\n } \r\n\r\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\r\n}\r\n\r\n"},379:e=>{e.exports="varying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\n varying vec3 v_position;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\n varying vec3 v_lightDirection;\r\n varying vec3 v_viewDirection;\r\n\r\nuniform sampler2D topImage;//屋顶\r\nuniform sampler2D myImage;//墙\r\nuniform sampler2D animImage;//动画飞线\r\nuniform sampler2D WinImage;//窗户\r\n uniform vec3 C_position;\r\n uniform vec3 C_normal;\r\n uniform mat3 C_Matrix;\r\n uniform float wallAlpha;\r\n\r\nvec4 T3dPoi (sampler2D T,vec3 Position,vec3 normal, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,Position.z);\r\n vec2 yz = vec2(Position.y,Position.z);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n\r\n vec4 T3dPoi1 (sampler2D T,vec3 Position,vec3 normal,float height, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,height/loop);\r\n vec2 yz = vec2(Position.y,height/loop);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n // mat3 getRotationMatrix(vec3 from, vec3 to) {\r\n // vec3 v = cross(from, to);\r\n // float c = dot(from, to);\r\n // float k = 1.0 / (1.0 + c);\r\n // //Check if vectors are nearly parallel\r\n // if (c > 0.9999) {\r\n // return mat3(1.0); // Return identity matrix if vectors are nearly parallel\r\n // }\r\n // mat3 rotationMatrix;\r\n // rotationMatrix[0][0] = v.x * v.x * k + c;\r\n // rotationMatrix[0][1] = v.x * v.y * k - v.z;\r\n // rotationMatrix[0][2] = v.x * v.z * k + v.y;\r\n // rotationMatrix[1][0] = v.y * v.x * k + v.z;\r\n // rotationMatrix[1][1] = v.y * v.y * k + c;\r\n // rotationMatrix[1][2] = v.y * v.z * k - v.x;\r\n // rotationMatrix[2][0] = v.z * v.x * k - v.y;\r\n // rotationMatrix[2][1] = v.z * v.y * k + v.x;\r\n // rotationMatrix[2][2] = v.z * v.z * k + c;\r\n\r\n // return rotationMatrix;\r\n // }\r\n\r\n float DigitBin( const int x ){\r\n return x==0?480599.0:x==1?139810.0:x==2?476951.0:x==3?476999.0:x==4?350020.0:x==5?464711.0:x==6?464727.0:x==7?476228.0:x==8?481111.0:x==9?481095.0:0.0;\r\n}\r\n\r\nfloat PrintValue( vec2 vStringCoords, float fValue, float fMaxDigits, float fDecimalPlaces )\r\n{ \r\n if ((vStringCoords.y < 0.0) || (vStringCoords.y >= 1.0)) return 0.0;\r\n \r\n bool bNeg = ( fValue < 0.0 );\r\n\tfValue = abs(fValue);\r\n \r\n\tfloat fLog10Value = log2(abs(fValue)) / log2(10.0);\r\n\tfloat fBiggestIndex = max(floor(fLog10Value), 0.0);\r\n\tfloat fDigitIndex = fMaxDigits - floor(vStringCoords.x);\r\n\tfloat fCharBin = 0.0;\r\n\tif(fDigitIndex > (-fDecimalPlaces - 1.01)) {\r\n\t\tif(fDigitIndex > fBiggestIndex) {\r\n\t\t\tif((bNeg) && (fDigitIndex < (fBiggestIndex+1.5))) fCharBin = 1792.0;\r\n\t\t} else {\t\t\r\n\t\t\tif(fDigitIndex == -1.0) {\r\n\t\t\t\tif(fDecimalPlaces > 0.0) fCharBin = 2.0;\r\n\t\t\t} else {\r\n float fReducedRangeValue = fValue;\r\n if(fDigitIndex < 0.0) { fReducedRangeValue = fract( fValue ); fDigitIndex += 1.0; }\r\n\t\t\t\tfloat fDigitValue = (abs(fReducedRangeValue / (pow(10.0, fDigitIndex))));\r\n fCharBin = DigitBin(int(floor(mod(fDigitValue, 10.0))));\r\n\t\t\t}\r\n }\r\n\t}\r\n return floor(mod((fCharBin / pow(2.0, floor(fract(vStringCoords.x) * 4.0) + (floor(vStringCoords.y * 5.0) * 4.0))), 2.0));\r\n}\r\n\r\n\r\n\r\nvoid main() {\r\n vec3 positionToEyeEC = -v_positionEC;\r\n\r\n vec3 normalEC = normalize(v_normalEC);\r\n #ifdef FACE_FORWARD\r\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\r\n #endif\r\n\r\n czm_materialInput materialInput;\r\n materialInput.normalEC = normalEC;\r\n materialInput.positionToEyeEC = positionToEyeEC; \r\n materialInput.st = v_st;\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n\r\n vec3 normal_d = czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0));\r\n float dotProduct = dot(v_normal, normal_d);\r\n \r\n vec3 teP = v_positionMC-C_position;\r\n\r\n // mat3 rotationMatrix = getRotationMatrix(vec3(0.0, 0.0, 1.0),C_normal); \r\n //vec3 w_position = rotationMatrix * v_position;\r\n vec3 w_position = C_Matrix * v_position;\r\n //vec3 w_normal =rotationMatrix * v_normal;\r\n vec3 w_normal =C_Matrix * v_normal;\r\n\r\n////////debug\r\nvec3 vColour = vec3(0);\r\n vec2 vFontSize = vec2(8.0, 15.0);\r\n float fDigits;\r\n float fDecimalPlaces; \r\n vColour = mix( vColour, vec3(1.0, 0.0, 1.0), PrintValue( (materialInput.st*500. - vec2(184.0, 5.0)) / vFontSize,\r\n 500., 2.0, 0.0));\r\n///////////\r\n vec3 normal = normalize(v_normal);\r\n vec3 lightDir = normalize(v_lightDirection);\r\n vec3 viewDir = normalize(v_viewDirection);\r\n float lambertTerm = max(dot(normal, lightDir), 0.0);\r\n\r\n if(dotProduct > 0.95) {\r\n\r\n material.diffuse = texture(topImage, materialInput.st).rgb;\r\n material.diffuse += lambertTerm*0.3-0.1;\r\n // material.diffuse += vColour;\r\n \r\n } else {\r\n //material.diffuse = texture(myImage, materialInput.st).rgb;\r\n material.diffuse = vec3(fract(w_position.z*0.05));\r\n material.diffuse = T3dPoi1(myImage,w_position,w_normal,materialInput.st.t,0.02).rgb; \r\n material.diffuse *= vec3(max((materialInput.st.t*1.25-0.2),(-materialInput.st.t*5.+1.))*0.4+0.8);///这个是模拟特定图片黑白光影,叠加有体感\r\n material.diffuse += lambertTerm*0.3-0.1;\r\n float time = fract(czm_frameNumber / 360.0); \r\n material.emission = T3dPoi1(animImage,w_position,w_normal,materialInput.st.t-time,0.02).rgb; \r\n material.emission += T3dPoi(WinImage,w_position,w_normal,0.003).rgb*2.;//*(sin(czm_frameNumber*0.05)*10.+11.)\r\n material.alpha= wallAlpha; \r\n } \r\n\r\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\r\n}"},455:e=>{e.exports="varying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\n varying vec3 v_position;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\nvarying vec3 v_lightDirection;\r\nvarying vec3 v_viewDirection;\r\n\r\nuniform sampler2D topImage;//屋顶\r\nuniform sampler2D myImage;//墙\r\nuniform sampler2D animImage;//动画飞线\r\nuniform sampler2D WinImage;//窗户\r\n uniform vec3 C_position;\r\n uniform vec3 C_normal;\r\n uniform mat3 C_Matrix;\r\n uniform float wallAlpha;\r\n\r\nvec4 T3dPoi (sampler2D T,vec3 Position,vec3 normal, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,Position.z);\r\n vec2 yz = vec2(Position.y,Position.z);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n\r\n vec4 T3dPoi1 (sampler2D T,vec3 Position,vec3 normal,float height, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,height/loop);\r\n vec2 yz = vec2(Position.y,height/loop);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n\r\n\r\nvoid main() {\r\n vec3 positionToEyeEC = -v_positionEC;\r\n\r\n vec3 normalEC = normalize(v_normalEC);\r\n #ifdef FACE_FORWARD\r\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\r\n #endif\r\n\r\n czm_materialInput materialInput;\r\n materialInput.normalEC = normalEC;\r\n materialInput.positionToEyeEC = positionToEyeEC; \r\n materialInput.st = v_st;\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n\r\n vec3 normal_d = czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0));\r\n float dotProduct = dot(v_normal, normal_d);\r\n \r\n// mat3 rotationMatrix = getRotationMatrix(vec3(0.0, 0.0, 1.0),C_normal); \r\n// vec3 w_position = rotationMatrix * v_position;\r\n// vec3 w_normal =rotationMatrix * v_normal;\r\n vec3 w_position = C_Matrix * v_position;\r\n vec3 w_normal =C_Matrix * v_normal;\r\n\r\nvec3 normal = normalize(v_normal);\r\nvec3 lightDir = normalize(v_lightDirection);\r\nvec3 viewDir = normalize(v_viewDirection);\r\n\r\n float fresnelPower= 5.0; // 菲尼尔效果的强度\r\n float fresnelBias= 0.02; // 菲尼尔效果的偏移\r\n float fresnelFactor = fresnelBias + pow(1.0 - abs(dot(normal, viewDir)), fresnelPower); \r\n\r\nfloat roughness=0.02;\r\nvec3 halfDir = normalize(lightDir + viewDir);\r\nfloat specAngle = max(dot(halfDir, normal), 0.0);\r\nfloat specular = pow(specAngle, 1.0 / roughness);\r\n\r\n if(dotProduct > 0.95) {\r\n\r\n material.diffuse = texture(topImage, materialInput.st).rgb*0.2;\r\n material.diffuse += vec3(specular*0.3,specular*0.7,specular)*1.2;\r\n // material.diffuse += vColour;\r\n \r\n } else {\r\n //material.diffuse = texture(myImage, materialInput.st).rgb;\r\n material.diffuse = vec3(fract(w_position.z*0.01));\r\n vec3 imageT = T3dPoi1(myImage,w_position,w_normal,materialInput.st.t,0.02).rgb; \r\n // material.diffuse *= vec3(max((materialInput.st.t*1.25-0.2),(-materialInput.st.t*5.+1.))*0.4+0.8);///这个是模拟特定图片黑白光影,叠加有体感\r\n material.diffuse =mix(vec3(0.),vec3(0.,0.4,1.),imageT.r*2.4);///这个是模拟特定图片黑白光影,叠加有体感\r\n material.diffuse +=fresnelFactor;\r\n\r\n float time = fract(czm_frameNumber / 360.0); \r\n material.emission = T3dPoi1(animImage,w_position,w_normal,materialInput.st.t-time,0.02).rgb; \r\n material.emission += T3dPoi(WinImage,w_position,w_normal,0.003).rgb*2.;//*(sin(czm_frameNumber*0.05)*10.+11.)\r\n material.alpha= wallAlpha; \r\n } \r\n\r\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\r\n}"},186:e=>{e.exports="varying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\n varying vec3 v_position;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\nuniform sampler2D topImage;//屋顶\r\nuniform sampler2D myImage;//墙\r\nuniform sampler2D animImage;//动画飞线\r\nuniform sampler2D WinImage;//窗户\r\n uniform vec3 C_position;\r\n uniform vec3 C_normal;\r\n uniform float wallAlpha;\r\n\r\nvec4 T3dPoi (sampler2D T,vec3 Position,vec3 normal, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,Position.z);\r\n vec2 yz = vec2(Position.y,Position.z);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n\r\n vec4 T3dPoi1 (sampler2D T,vec3 Position,vec3 normal,float height, float loop){\r\n vec2 xy = vec2(Position.x,Position.y);\r\n vec2 xz = vec2(Position.x,height/loop);\r\n vec2 yz = vec2(Position.y,height/loop);\r\n float ix =clamp((abs(normal.x)-0.4)*2.,0.,1.);\r\n float iy =clamp((abs(normal.y)-0.4)*2.,0.,1.);\r\n return mix((mix(texture( T, fract(xy*loop)),texture( T, fract(yz*loop)),ix)),texture( T, fract(xz*loop)),iy);\r\n }\r\n mat3 getRotationMatrix(vec3 from, vec3 to) {\r\n vec3 v = cross(from, to);\r\n float c = dot(from, to);\r\n float k = 1.0 / (1.0 + c);\r\n //Check if vectors are nearly parallel\r\n if (c > 0.9999) {\r\n return mat3(1.0); // Return identity matrix if vectors are nearly parallel\r\n }\r\n mat3 rotationMatrix;\r\n rotationMatrix[0][0] = v.x * v.x * k + c;\r\n rotationMatrix[0][1] = v.x * v.y * k - v.z;\r\n rotationMatrix[0][2] = v.x * v.z * k + v.y;\r\n rotationMatrix[1][0] = v.y * v.x * k + v.z;\r\n rotationMatrix[1][1] = v.y * v.y * k + c;\r\n rotationMatrix[1][2] = v.y * v.z * k - v.x;\r\n rotationMatrix[2][0] = v.z * v.x * k - v.y;\r\n rotationMatrix[2][1] = v.z * v.y * k + v.x;\r\n rotationMatrix[2][2] = v.z * v.z * k + c;\r\n\r\n return rotationMatrix;\r\n }\r\n\r\n \r\nvoid main() {\r\n vec3 positionToEyeEC = -v_positionEC;\r\n\r\n vec3 normalEC = normalize(v_normalEC);\r\n #ifdef FACE_FORWARD\r\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\r\n #endif\r\n\r\n czm_materialInput materialInput;\r\n materialInput.normalEC = normalEC;\r\n materialInput.positionToEyeEC = positionToEyeEC; \r\n materialInput.st = v_st;\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n\r\n vec3 normal_d = czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0));\r\n float dotProduct = dot(v_normal, normal_d);\r\n \r\n vec3 teP = v_positionMC-C_position;\r\n\r\n mat3 rotationMatrix = getRotationMatrix(vec3(0.0, 0.0, 1.0),C_normal); \r\n vec3 w_position = rotationMatrix * v_position;\r\n vec3 w_normal =rotationMatrix * v_normal;\r\n\r\n if(dotProduct > 0.95) {\r\n\r\n material.diffuse = texture(topImage, materialInput.st).rgb;\r\n \r\n } else {\r\n //material.diffuse = texture(myImage, materialInput.st).rgb;\r\n material.diffuse = vec3(fract(w_position.z*0.01));\r\n material.diffuse = T3dPoi1(myImage,w_position,w_normal,materialInput.st.t,0.02).rgb; \r\n material.diffuse *= vec3(clamp((materialInput.st.t*1.5-0.2)+0.2,0.,1.5));///这个是模拟特定图片黑白光影,叠加有体感\r\n \r\n float time = fract(czm_frameNumber / 360.0); \r\n material.emission = T3dPoi1(animImage,w_position,w_normal,materialInput.st.t-time,0.02).rgb; \r\n material.emission += T3dPoi(WinImage,w_position,w_normal,0.003).rgb*2.;//*(sin(czm_frameNumber*0.05)*10.+11.)\r\n material.alpha= wallAlpha; \r\n } \r\n\r\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\r\n}\r\n"},931:e=>{e.exports=" attribute vec3 position3DHigh;\r\n attribute vec3 position3DLow; \r\n attribute vec3 normal;\r\n attribute vec2 st;\r\n \r\n attribute float batchId;\r\n\r\n varying vec3 v_positionMC;\r\n varying vec3 v_positionEC;\r\n varying vec3 v_position;\r\n varying vec3 v_normalEC;\r\n varying vec3 v_normal;\r\n varying vec2 v_st;\r\n varying vec3 v_lightDirection;\r\n varying vec3 v_viewDirection;\r\n\r\n uniform vec3 C_position;\r\n\r\n void main()\r\n {\r\n v_positionMC = position3DHigh + position3DLow;\r\n vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\r\n // v_position = position3DHigh + position3DLow-vec3(-2174016.1406463957, 4382093.674449682, 4079141.9762255107);///相对位置 这个值扔到片元里计算错的不知为何 暂时只能写死放这里\r\n v_position = position3DHigh + position3DLow-C_position;///上面功能好用了就是矫正当前相对位置\r\n // v_position = (czm_model * vec4(v_positionMC, 1.0)).xyz;\r\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\r\n v_normalEC = czm_normal * normal; // normal in eye coordinates\r\n v_normal=normal;\r\n v_st = st;\r\n v_lightDirection = czm_sunDirectionWC;\r\n v_viewDirection = normalize(czm_viewerPositionWC - v_positionMC);\r\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\r\n }"},605:e=>{e.exports="varying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\n\r\nuniform vec4 u_baseColor;\r\nvoid main() {\r\n vec3 positionToEyeEC = -v_positionEC;\r\n\r\n vec3 normalEC = normalize(v_normalEC);\r\n #ifdef FACE_FORWARD\r\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\r\n #endif\r\n\r\n czm_materialInput materialInput;\r\n materialInput.normalEC = normalEC;\r\n materialInput.positionToEyeEC = positionToEyeEC;\r\n materialInput.st = v_st;\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n material.diffuse = u_baseColor.rgb;\r\n\r\n float lambertDiffuse = czm_getLambertDiffuse(czm_lightDirectionEC, material.normal);\r\n vec3 materialDiffuse = material.diffuse * 0.59;\r\n\r\n vec3 ambient = materialDiffuse;\r\n vec3 color = ambient + material.emission;\r\n color += materialDiffuse * lambertDiffuse * czm_lightColor;\r\n\r\n gl_FragColor = vec4(color, material.alpha);\r\n // material.diffuse = vec3(0.5);\r\n // material.specular = 0.4;\r\n // gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\r\n // gl_FragColor.a = 0.9;\r\n// #ifdef FLAT\r\n// gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\r\n// #else\r\n// gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\r\n// #endif\r\n// gl_FragColor = vec4(material.diffuse + material.emission, 1.0);\r\n}"},338:e=>{e.exports="attribute vec3 position3DHigh;\r\nattribute vec3 position3DLow;\r\nattribute vec3 normal;\r\nattribute vec2 st;\r\nattribute float batchId;\r\n\r\nvarying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\nvoid main() {\r\n v_positionMC = position3DHigh + position3DLow;\r\n vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\r\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\r\n v_normalEC = czm_normal * normal; // normal in eye coordinates\r\n v_normal = normal;\r\n v_st = st;\r\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\r\n}"},677:e=>{e.exports="varying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\nuniform sampler2D topImage;//屋顶\r\nuniform sampler2D myImage;//墙\r\nvoid main() {\r\n vec3 positionToEyeEC = -v_positionEC;\r\n\r\n vec3 normalEC = normalize(v_normalEC);\r\n #ifdef FACE_FORWARD\r\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\r\n #endif\r\n\r\n czm_materialInput materialInput;\r\n materialInput.normalEC = normalEC;\r\n materialInput.positionToEyeEC = positionToEyeEC;\r\n materialInput.st = v_st;\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n material.specular = 0.5;\r\n vec3 normal_d = czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0));\r\n float dotProduct = dot(v_normal, normal_d);\r\n float lambertDiffuse = 0.0;\r\n if(dotProduct > 0.95) {\r\n material.diffuse = texture(topImage, materialInput.st).rgb;\r\n lambertDiffuse = czm_getLambertDiffuse(vec3(0.0, 1.0, 0.0), material.normal);\r\n } else {\r\n material.diffuse = texture(myImage, materialInput.st).rgb;\r\n lambertDiffuse = czm_getLambertDiffuse(czm_lightDirectionEC, material.normal);\r\n } \r\n // vec3 finalDiffuse = material.diffuse * lambertDiffuse * czm_lightColor;\r\n vec3 materialDiffuse = material.diffuse * 0.66;\r\n\r\n vec3 ambient = materialDiffuse;\r\n vec3 color = ambient + material.emission;\r\n color += materialDiffuse * lambertDiffuse * czm_lightColor;\r\n\r\n gl_FragColor = vec4(color, material.alpha);\r\n}"},128:e=>{e.exports="attribute vec3 position3DHigh;\r\nattribute vec3 position3DLow;\r\nattribute vec3 normal;\r\nattribute vec2 st;\r\nattribute float batchId;\r\n\r\nvarying vec3 v_positionMC;\r\nvarying vec3 v_positionEC;\r\nvarying vec3 v_normalEC;\r\nvarying vec2 v_st;\r\nvarying vec3 v_normal;\r\nvoid main() {\r\n v_positionMC = position3DHigh + position3DLow;\r\n vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\r\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\r\n v_normalEC = czm_normal * normal; // normal in eye coordinates\r\n v_normal = normal;\r\n v_st = st;\r\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\r\n}"},122:(e,t)=>{t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,u=(1<<s)-1,l=u>>1,c=-7,p=r?i-1:0,m=r?-1:1,f=e[t+p];for(p+=m,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+p],p+=m,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+p],p+=m,c-=8);if(0===a)a=1-l;else{if(a===u)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=l}return(f?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,u,l=8*a-i-1,c=(1<<l)-1,p=c>>1,m=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,h=n?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-o))<1&&(o--,u*=2),(t+=o+p>=1?m/u:m*Math.pow(2,1-p))*u>=2&&(o++,u/=2),o+p>=c?(s=0,o=c):o+p>=1?(s=(t*u-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=h,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[r+f]=255&o,f+=h,o/=256,l-=8);e[r+f-h]|=128*d}},317:(e,t,r)=>{"use strict";e.exports=i;var n=r(122);function i(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}i.Varint=0,i.Fixed64=1,i.Bytes=2,i.Fixed32=5;var a=4294967296,o=1/a,s="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");function u(e){return e.type===i.Bytes?e.readVarint()+e.pos:e.pos+1}function l(e,t,r){return r?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function c(e,t,r){var n=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i>=e;i--)r.buf[i+n]=r.buf[i]}function p(e,t){for(var r=0;r<e.length;r++)t.writeVarint(e[r])}function m(e,t){for(var r=0;r<e.length;r++)t.writeSVarint(e[r])}function f(e,t){for(var r=0;r<e.length;r++)t.writeFloat(e[r])}function h(e,t){for(var r=0;r<e.length;r++)t.writeDouble(e[r])}function d(e,t){for(var r=0;r<e.length;r++)t.writeBoolean(e[r])}function v(e,t){for(var r=0;r<e.length;r++)t.writeFixed32(e[r])}function g(e,t){for(var r=0;r<e.length;r++)t.writeSFixed32(e[r])}function y(e,t){for(var r=0;r<e.length;r++)t.writeFixed64(e[r])}function _(e,t){for(var r=0;r<e.length;r++)t.writeSFixed64(e[r])}function b(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function w(e,t,r){e[r]=t,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24}function x(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}i.prototype={destroy:function(){this.buf=null},readFields:function(e,t,r){for(r=r||this.length;this.pos<r;){var n=this.readVarint(),i=n>>3,a=this.pos;this.type=7&n,e(i,t,this),this.pos===a&&this.skip(n)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=b(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=x(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=b(this.buf,this.pos)+b(this.buf,this.pos+4)*a;return this.pos+=8,e},readSFixed64:function(){var e=b(this.buf,this.pos)+x(this.buf,this.pos+4)*a;return this.pos+=8,e},readFloat:function(){var e=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,r,n=this.buf;return t=127&(r=n[this.pos++]),r<128?t:(t|=(127&(r=n[this.pos++]))<<7,r<128?t:(t|=(127&(r=n[this.pos++]))<<14,r<128?t:(t|=(127&(r=n[this.pos++]))<<21,r<128?t:function(e,t,r){var n,i,a=r.buf;if(n=(112&(i=a[r.pos++]))>>4,i<128)return l(e,n,t);if(n|=(127&(i=a[r.pos++]))<<3,i<128)return l(e,n,t);if(n|=(127&(i=a[r.pos++]))<<10,i<128)return l(e,n,t);if(n|=(127&(i=a[r.pos++]))<<17,i<128)return l(e,n,t);if(n|=(127&(i=a[r.pos++]))<<24,i<128)return l(e,n,t);if(n|=(1&(i=a[r.pos++]))<<31,i<128)return l(e,n,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(r=n[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&s?function(e,t,r){return s.decode(e.subarray(t,r))}(this.buf,t,e):function(e,t,r){for(var n="",i=t;i<r;){var a,o,s,u=e[i],l=null,c=u>239?4:u>223?3:u>191?2:1;if(i+c>r)break;1===c?u<128&&(l=u):2===c?128==(192&(a=e[i+1]))&&(l=(31&u)<<6|63&a)<=127&&(l=null):3===c?(a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&((l=(15&u)<<12|(63&a)<<6|63&o)<=2047||l>=55296&&l<=57343)&&(l=null)):4===c&&(a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&((l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,c=1):l>65535&&(l-=65536,n+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),n+=String.fromCharCode(l),i+=c}return n}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==i.Bytes)return e.push(this.readVarint(t));var r=u(this);for(e=e||[];this.pos<r;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==i.Bytes)return e.push(this.readSVarint());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==i.Bytes)return e.push(this.readBoolean());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==i.Bytes)return e.push(this.readFloat());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==i.Bytes)return e.push(this.readDouble());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed32());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed32());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readFixed64());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==i.Bytes)return e.push(this.readSFixed64());var t=u(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===i.Varint)for(;this.buf[this.pos++]>127;);else if(t===i.Bytes)this.pos=this.readVarint()+this.pos;else if(t===i.Fixed32)this.pos+=4;else{if(t!==i.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var r=new Uint8Array(t);r.set(this.buf),this.buf=r,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),w(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),w(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),w(this.buf,-1&e,this.pos),w(this.buf,Math.floor(e*o),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),w(this.buf,-1&e,this.pos),w(this.buf,Math.floor(e*o),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var r,n;if(e>=0?(r=e%4294967296|0,n=e/4294967296|0):(n=~(-e/4294967296),4294967295^(r=~(-e%4294967296))?r=r+1|0:(r=0,n=n+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,r){r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos]=127&e}(r,0,t),function(e,t){var r=(7&e)<<4;t.buf[t.pos++]|=r|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(n,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,r){for(var n,i,a=0;a<t.length;a++){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){n>56319||a+1===t.length?(e[r++]=239,e[r++]=191,e[r++]=189):i=n;continue}if(n<56320){e[r++]=239,e[r++]=191,e[r++]=189,i=n;continue}n=i-55296<<10|n-56320|65536,i=null}else i&&(e[r++]=239,e[r++]=191,e[r++]=189,i=null);n<128?e[r++]=n:(n<2048?e[r++]=n>>6|192:(n<65536?e[r++]=n>>12|224:(e[r++]=n>>18|240,e[r++]=n>>12&63|128),e[r++]=n>>6&63|128),e[r++]=63&n|128)}return r}(this.buf,e,this.pos);var r=this.pos-t;r>=128&&c(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeFloat:function(e){this.realloc(4),n.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),n.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var r=0;r<t;r++)this.buf[this.pos++]=e[r]},writeRawMessage:function(e,t){this.pos++;var r=this.pos;e(t,this);var n=this.pos-r;n>=128&&c(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(e,t,r){this.writeTag(e,i.Bytes),this.writeRawMessage(t,r)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,p,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,m,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,d,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,f,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,h,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,v,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,g,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,y,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,_,t)},writeBytesField:function(e,t){this.writeTag(e,i.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,i.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,i.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,i.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,i.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,i.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,i.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},61:(e,t,r)=>{var n=r(698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,r){return e[t]=r}}function m(e,t,r,n){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),s=new D(n||[]);return o(a,"_invoke",{value:M(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=m;var h={};function d(){}function v(){}function g(){}var y={};p(y,u,(function(){return this}));var _=Object.getPrototypeOf,b=_&&_(_(T([])));b&&b!==r&&a.call(b,u)&&(y=b);var w=g.prototype=d.prototype=Object.create(y);function x(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(i,o,s,u){var l=f(e[i],e,o);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==n(p)&&a.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(a,a):a()}})}function M(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=S(o,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function S(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return v.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=p(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,p(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(C.prototype),p(C.prototype,l,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new C(m(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},x(w),p(w,c,"Generator"),p(w,u,(function(){return this})),p(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=T,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},698:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:(e,t,r)=>{var n=r(61)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{BuildingMathUtil:()=>y,BuildingsPipline:()=>_,Check:()=>w,CitythemeBase:()=>o,Citytheme_Base1:()=>c,Citytheme_Line1:()=>l,Citytheme_Sci0:()=>p,Citytheme_Sci1:()=>f,Citytheme_Sci2:()=>h,Citytheme_Sci3:()=>d,Citytheme_Sci4:()=>v,Citytheme_buildtexture:()=>s,Citytheme_sample:()=>u,CommonUtil:()=>i,CustomBuildingGeometry:()=>n,CustomPrimitive:()=>t,CustomTexture:()=>a,CustomWallGeometry:()=>r,Earth:()=>Mt,IndexDB:()=>e,LayerType:()=>m,LoadingUtil:()=>C,LogUtil:()=>M,RoadPipline:()=>S,SceneLoadUtil:()=>ht,SceneLoader:()=>Ct,ThemeUtil:()=>g,ThreejsTransform:()=>x,TileBuildingsPipline:()=>b,TreesPipline:()=>k,WaterPipline:()=>P});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{default:()=>F});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{default:()=>R});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{default:()=>G});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{default:()=>q});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{default:()=>te});var a={};__webpack_require__.r(a),__webpack_require__.d(a,{default:()=>re});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{default:()=>ue});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{default:()=>fe});var u={};__webpack_require__.r(u),__webpack_require__.d(u,{default:()=>be});var l={};__webpack_require__.r(l),__webpack_require__.d(l,{default:()=>Pe});var c={};__webpack_require__.r(c),__webpack_require__.d(c,{default:()=>Ee});var p={};__webpack_require__.r(p),__webpack_require__.d(p,{default:()=>Ae});var m={};__webpack_require__.r(m),__webpack_require__.d(m,{default:()=>Ve});var f={};__webpack_require__.r(f),__webpack_require__.d(f,{default:()=>We});var h={};__webpack_require__.r(h),__webpack_require__.d(h,{default:()=>Be});var d={};__webpack_require__.r(d),__webpack_require__.d(d,{default:()=>Ne});var v={};__webpack_require__.r(v),__webpack_require__.d(v,{default:()=>Ge});var g={};__webpack_require__.r(g),__webpack_require__.d(g,{default:()=>Ye});var y={};__webpack_require__.r(y),__webpack_require__.d(y,{default:()=>Xe});var _={};__webpack_require__.r(_),__webpack_require__.d(_,{default:()=>$e});var b={};__webpack_require__.r(b),__webpack_require__.d(b,{default:()=>tt});var w={};__webpack_require__.r(w),__webpack_require__.d(w,{default:()=>rt});var x={};__webpack_require__.r(x),__webpack_require__.d(x,{default:()=>it});var C={};__webpack_require__.r(C),__webpack_require__.d(C,{default:()=>ot});var M={};__webpack_require__.r(M),__webpack_require__.d(M,{default:()=>st});var S={};__webpack_require__.r(S),__webpack_require__.d(S,{default:()=>pt});var k={};__webpack_require__.r(k),__webpack_require__.d(k,{default:()=>vt});var P={};function D(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,i)}function T(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){D(a,n,i,o,s,"next",e)}function s(e){D(a,n,i,o,s,"throw",e)}o(void 0)}))}}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function O(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==I(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===I(t)?t:String(t)}function z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O(n.key),n)}}function L(e,t,r){return t&&z(e.prototype,t),r&&z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}__webpack_require__.r(P),__webpack_require__.d(P,{default:()=>bt});var A=__webpack_require__(687),V=__webpack_require__.n(A);function W(e,t,r){return(t=O(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var B=function(){function e(t,r,n){E(this,e),this.dbName=t,this.version=r,this.stores=n,this.db=null}var t,r;return L(e,[{key:"openDB",value:function(){var e=this;return new Promise((function(t,r){e.opened&&t();var n=window.indexedDB.open(e.dbName,e.version);n.onerror=function(e){r(e)},n.onsuccess=function(r){e.db=r.target.result,t(e)},n.onupgradeneeded=function(t){e.db=t.target.result,e.stores.forEach((function(t){e.createStore(t)}))}}))}},{key:"createStore",value:function(e){this.db.objectStoreNames.contains(e)||this.db.createObjectStore(e,{keyPath:"id"}).createIndex("idIndex","id",{unique:!1})}},{key:"addData",value:(r=T(V().mark((function e(t,r){var n=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isKeyExist(t,r.id);case 2:if(!e.sent){e.next=5;break}return e.abrupt("return");case 5:return e.abrupt("return",new Promise((function(e,i){var a=n.db.transaction([t],"readwrite").objectStore(t).add(r);a.onsuccess=function(t){e(t)},a.onerror=function(e){throw i(e),new Error(e.target.error)}})));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"isKeyExist",value:function(e,t){var r=this;return new Promise((function(n,i){var a=r.db.transaction([e]).objectStore(e).getAllKeys();a.onerror=function(e){i(e)},a.onsuccess=function(e){var r,i=(null==a||null===(r=a.result)||void 0===r?void 0:r.includes(t))||!1;n(i)}}))}},{key:"getDataByKey",value:function(e,t){var r=this;return new Promise((function(n,i){var a=r.db.transaction([e],"readonly").objectStore(e).get(t);a.onerror=function(e){i(e)},a.onsuccess=function(e){n(a.result)}}))}},{key:"getFirstData",value:function(e){var t=this;try{return new Promise((function(r,n){t.db.objectStoreNames.contains(e)||r(null);var i=t.db.transaction(e,"readonly").objectStore(e).openCursor();i.onsuccess=function(e){var t=e.target.result;t?(console.log("cursor.value",t.value),r(t.value)):r(null)},i.onerror=function(e){n(e)}}))}catch(e){resolve(null)}}},{key:"cursorGetData",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[];try{return new Promise((function(i,a){t.db.objectStoreNames.contains(e)||i(n);var o,s=t.db.transaction(e,"readonly").objectStore(e),u=s.index("idIndex");if(r){var l=IDBKeyRange.bound(r,r+"");o=u.openCursor(l)}else o=s.openCursor();o.onsuccess=function(e){var t=e.target.result;t?(0===t.value.id.indexOf(r)&&n.push(t.value),t.continue()):i(n)},o.onerror=function(e){a(e)}}))}catch(e){resolve(n)}}},{key:"deleteStore",value:function(e){var t=this.db.transaction([e],"readwrite").objectStore(e).clear();return new Promise((function(e,r){t.onsuccess=function(t){e(t)},t.onerror=function(t){e(t)}}))}},{key:"deleteStoreByKey",value:function(e,t){var r=this.db.transaction([e],"readwrite").objectStore(e).delete(t);return new Promise((function(e,t){r.onsuccess=function(t){e(t)},r.onerror=function(t){e(t)}}))}},{key:"closeDB",value:function(){this.opened=!1,this.db.close(),console.log("数据库已关闭")}}],[{key:"getInstance",value:function(t,r,n){return e._instance||(e._instance=new e(t,r,n)),e._instance}},{key:"deleteDB",value:(t=T(V().mark((function t(r){var n;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=window.indexedDB.deleteDatabase(r),t.abrupt("return",new Promise((function(t,r){n.onerror=function(e){console.log("删除数据库失败"),r("删除数据库失败")},n.onsuccess=function(r){console.log("删除数据库成功"),e._instance=void 0,t("删除数据库成功")}})));case 2:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]),e}();W(B,"_instance",void 0);const F=B,R=function(){function e(t){E(this,e),this.meteData=t.meteData,this.instanceCount=t.instanceCount,this.cacheOption=t.cacheOption,this.useCache=Cesium.defaultValue(t.useCache,!0),this.commandType=Cesium.defaultValue(t.commandType,"Draw"),this.geometry=t.geometry,this.attributeLocations=t.attributeLocations,this.primitiveType=Cesium.defaultValue(t.primitiveType,Cesium.PrimitiveType.TRIANGLES),this.uniformMap=t.uniformMap,this.vertexShaderSource=t.vertexShaderSource,this.fragmentShaderSource=t.fragmentShaderSource,this.renderState=t.renderState||{cull:{enabled:!0,face:Cesium.CullFace.BACK},depthTest:{enabled:!0,func:Cesium.DepthFunction.LESS_OR_EQUAL},colorMask:{red:!0,green:!0,blue:!0,alpha:!0},blending:Cesium.BlendingState.ALPHA_BLEND},this.framebuffer=t.framebuffer,this.outputTexture=t.outputTexture,this.autoClear=Cesium.defaultValue(t.autoClear,!1),this.receiveShadows=Cesium.defaultValue(t.receiveShadows,!0),this.castShadows=Cesium.defaultValue(t.castShadows,!0),this.preExecute=t.preExecute,this.show=!0,this.commandToExecute=void 0,this.clearCommand=void 0,this._state=Cesium.PrimitiveState.READY,this._readyPromise=Cesium.defer(),this.pickIds=[],this.batchTable=null,this.allowPicking=Cesium.defaultValue(t.allowPicking,!1),this.geometryInstances=t.geometryInstances,this.vertexArray=null,this.autoClear&&(this.clearCommand=new Cesium.ClearCommand({color:new Cesium.Color(0,0,0,0),depth:1,framebuffer:this.framebuffer,pass:Cesium.Pass.OPAQUE}))}var t;return L(e,[{key:"readyPromise",get:function(){return this._readyPromise.promise}},{key:"createCommand",value:function(e){switch(this.commandType){case"Draw":this.geometryInstances?(this.appendGeometryBatchIds(),this.geometry=Cesium.GeometryPipeline.combineInstances(this.geometryInstances)[0],this.geometryInstances=[],this.useCache&&this.saveCache(this.geometry)):this.geometry.boundingSphere=new Cesium.BoundingSphere(this.geometry.boundingSphere.center,this.geometry.boundingSphere.radius),this.geometry.boundingSphere.radius/=1,this.attributeLocations=Cesium.GeometryPipeline.createAttributeLocations(this.geometry),this.vertexArray=Cesium.VertexArray.fromGeometry({context:e,geometry:this.geometry,attributeLocations:this.attributeLocations,bufferUsage:Cesium.BufferUsage.STATIC_DRAW});var t=this.createShaderProgram(this.vertexShaderSource,this.fragmentShaderSource,e),r=Cesium.RenderState.fromCache(this.renderState);this.allowPicking&&(this.uniformMap=this.batchTable.getUniformMapCallback()(this.uniformMap));var n=new Cesium.DrawCommand({owner:"custom",pickId:this.allowPicking?"czm_pickColor":void 0,vertexArray:this.vertexArray,primitiveType:this.primitiveType,uniformMap:this.uniformMap,modelMatrix:Cesium.Matrix4.IDENTITY,shaderProgram:t,framebuffer:this.framebuffer,renderState:r,pass:Cesium.Pass.OPAQUE,receiveShadows:this.receiveShadows,castShadows:this.castShadows,boundingVolume:this.geometry.boundingSphere});return this.geometry&&(this.geometry=null),n;case"Compute":return this._readyPromise.resolve(this),new Cesium.ComputeCommand({owner:this,fragmentShaderSource:this.fragmentShaderSource,uniformMap:this.uniformMap,outputTexture:this.outputTexture,persists:!0})}}},{key:"update",value:function(e){this.allowPicking&&!Cesium.defined(this.batchTable)&&this.createBatchTable(e.context),this.allowPicking&&this.batchTable.update(e),Cesium.defined(this.commandToExecute)||(this.commandToExecute=this.createCommand.call(this,e.context)),this._state!==Cesium.PrimitiveState.COMPLETE&&(this._readyPromise.resolve(),this._state=Cesium.PrimitiveState.COMPLETE),this.show&&(Cesium.defined(this.preExecute)&&this.preExecute(),Cesium.defined(this.clearCommand)&&e.commandList.push(this.clearCommand),e.commandList.push(this.commandToExecute))}},{key:"setUniformMap",value:function(e){this.uniformMap=e,this.commandToExecute.uniformMap=e}},{key:"setShaders",value:function(e,t,r){this.vertexShaderSource=e,this.fragmentShaderSource=t,this.commandToExecute.shaderProgram=this.createShaderProgram(e,t,r)}},{key:"appendGeometryBatchIds",value:function(){if(this.allowPicking)for(var e=[],t=0;t<this.geometryInstances.length;t++){var r=this.geometryInstances[t];if(r.geometry){e=void 0,e=[];var n=r.geometry.attributes.position,i=n.values.length/n.componentsPerAttribute;e.push(new Array(i).fill(t)),r.geometry.attributes.batchId={componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:1,values:new Float32Array(e.flat()),normalize:!1}}}}},{key:"updatePickStyle",value:function(e,t){if(this.batchTable){var r=Cesium.defaultValue(t.show,!0),n=Cesium.defaultValue(t.color,null);this.batchTable.setBatchedAttribute(e,0,r?1:0),n&&this.batchTable.setBatchedAttribute(e,1,Cesium.Cartesian4.fromColor(n))}}},{key:"createShaderProgram",value:function(e,t,r){return this.allowPicking&&(e=this.appendPickToVertexShader(e),e=this.batchTable.getVertexShaderCallback()(e),t=this.appendPickToFragmentShader(t)),Cesium.ShaderProgram.fromCache({context:r,attributeLocations:this.attributeLocations,vertexShaderSource:e,fragmentShaderSource:t})}},{key:"appendPickToVertexShader",value:function(e){var t=Cesium.ShaderSource.replaceMain(e,"czm_non_pick_main");return"".concat(t,"\n").concat("\n varying vec4 czm_pickColor;\n varying vec4 v_color;\n varying float v_show;\n void main() {\n czm_non_pick_main();\n czm_pickColor = getPickColor(batchId);\n v_color = getColor(batchId);\n v_show = getShow(batchId);\n }\n ")}},{key:"appendPickToFragmentShader",value:function(e){var t=Cesium.ShaderSource.replaceMain(e,"czm_non_show_main");return"".concat(t,"\n").concat("\n varying vec4 czm_pickColor; \n varying vec4 v_color; \n varying float v_show; \n void main(){ \n if(v_show == 0.) {\n discard;\n }\n czm_non_show_main();\n gl_FragColor = gl_FragColor * v_color;\n }\n ")}},{key:"createBatchTable",value:function(e){if(!this.batchTable){for(var t=this.instanceCount,r=[{functionName:"getShow",componentDatatype:Cesium.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1},{functionName:"getColor",componentDatatype:Cesium.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,normalize:!1},{functionName:"getPickColor",componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1}],n=new Cesium.BatchTable(e,r,t),i=new Cesium.Color,a=0;a<t;a++){var o=e.createPickId({primitive:this,infoData:{id:a,name:"某某某大厦"}});n.setBatchedAttribute(a,0,1),n.setBatchedAttribute(a,1,Cesium.Cartesian4.fromColor(i)),n.setBatchedAttribute(a,2,Cesium.Cartesian4.fromColor(o.color))}this.batchTable=n}}},{key:"isDestroyed",value:function(){return!1}},{key:"destroy",value:function(){if(this.commandToExecute){var e=this.commandToExecute.vertexArray,t=this.commandToExecute.shaderProgram;e.isDestroyed()||e.destroy(),t.isDestroyed&&t.isDestroyed()||t.destroy(),this.commandToExecute.isDestroyed=function(){return!0},this.commandToExecute.uniformMap=void 0,this.commandToExecute.renderState=Cesium.RenderState.removeFromCache(this.commandToExecute.renderState),this.commandToExecute=null}return this.pickId&&(this.pickId.destroy(),this.pickId=null),this.pickIds&&(this.pickIds.forEach((function(e){e.destroy()})),this.pickIds=[]),Cesium.destroyObject(this)}},{key:"saveCache",value:(t=T(V().mark((function e(t){var r,n,i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.cacheOption){e.next=2;break}return e.abrupt("return");case 2:return r=this.cacheOption.dbName,n=this.cacheOption.version,i=this.cacheOption.stores,a=this.cacheOption.storeName,o=this.cacheOption.key,s=F.getInstance(r,n,i),e.next=10,s.openDB();case 10:return u={id:o,instanceCount:this.instanceCount,meteData:this.meteData,value:t},e.next=13,s.addData(a,u);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();var N=new Cesium.Cartesian3,j=new Cesium.Cartesian3,U=new Cesium.Cartesian3;const G=function(){function e(){E(this,e)}return L(e,null,[{key:"createGeometry",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.positions=e.positions||[],this.height=e.height||100,this.textureWidth=e.textureWidth||100,this.baseHeight=e.baseHeight;for(var t=[],r=[],n=[],i=[],a=(this.textureWidth,this.isClockWise(this.positions)?this.positions.reverse():this.positions),o=this.height,s=0;s<a.length-1;s++){var u=a[s],l=a[s+1],c=this.setHeight(u,this.baseHeight),p=this.setHeight(l,this.baseHeight);t.push(c.x,c.y,c.z),t.push(p.x,p.y,p.z);var m=this.setHeight(u,o+this.baseHeight),f=this.setHeight(l,o+this.baseHeight);t.push(f.x,f.y,f.z),t.push(m.x,m.y,m.z);var h=[4*s+0,4*s+1+0,4*s+2+0];i.push.apply(i,h);var d=[4*s+0,4*s+2+0,4*s+3+0];i.push.apply(i,d),Cesium.Cartesian3.subtract(l,u,j),Cesium.Cartesian3.subtract(f,u,U),Cesium.Cartesian3.cross(j,U,N),Cesium.Cartesian3.normalize(N,N),n.push(N.x,N.y,N.z),n.push(N.x,N.y,N.z),n.push(N.x,N.y,N.z),n.push(N.x,N.y,N.z),r.push.apply(r,[0,0,1,0,1,1,0,1])}return new Cesium.Geometry({attributes:{position:new Cesium.GeometryAttribute({componentDatatype:Cesium.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:t}),normal:new Cesium.GeometryAttribute({componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:n,normalize:!1}),st:new Cesium.GeometryAttribute({componentDatatype:Cesium.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:r,normalize:!1})},indices:i,primitiveType:Cesium.PrimitiveType.TRIANGLES,boundingSphere:Cesium.BoundingSphere.fromVertices(t)})}},{key:"setHeight",value:function(e,t){var r=Cesium.Cartographic.fromCartesian(e);return r.height=t,Cesium.Cartographic.toCartesian(r)}},{key:"isClockWise",value:function(e){var t=[];return e.forEach((function(e){t.push({x:e.lng,y:e.lat})})),Cesium.PolygonPipeline.computeWindingOrder2D(t)}}]),e}(),q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return E(this,e),this.positions=t.positions,this.height=t.height,this.baseHeight=t.baseHeight||0,this.wallTextureWidth=t.wallTextureWidth,this.init()}return L(e,[{key:"init",value:function(){var e=new Cesium.GeometryInstance({geometry:G.createGeometry({positions:this.positions,textureWidth:this.wallTextureWidth,height:this.height,baseHeight:this.baseHeight})}),t=new Cesium.GeometryInstance({geometry:Cesium.PolygonGeometry.createGeometry(new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(this.positions),height:this.height+this.baseHeight}))}),r=Cesium.GeometryPipeline.combineInstances([e,t])[0];return e=null,t=null,r}}]),e}();var H,Y,X={};function K(e){var t=null;t=e||Cesium.Cartesian3.fromDegrees(116.3866336,40.0135969);var r,n=Cesium.Ellipsoid.WGS84.geodeticSurfaceNormal(t),i=new Cesium.Cartesian3(0,0,1),a=n,o=Cesium.Cartesian3.cross(i,a,new Cesium.Cartesian3),s=Cesium.Cartesian3.dot(i,a),u=1/(1+s);return{BeijgNormal1:n,BeijingPosition1:t,rotationMatrixArray1:[(r=s>.9999?Cesium.Matrix3.IDENTITY:new Cesium.Matrix3(o.x*o.x*u+s,o.x*o.y*u-o.z,o.x*o.z*u+o.y,o.y*o.x*u+o.z,o.y*o.y*u+s,o.y*o.z*u-o.x,o.z*o.x*u-o.y,o.z*o.y*u+o.x,o.z*o.z*u+s))[0],r[3],r[6],r[1],r[4],r[7],r[2],r[5],r[8]]}}function J(e,t){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J(e,t)}function $(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J(e,t)}function Q(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}!function(e,t){Y=Cesium.Cartesian3.fromDegrees(116.3866336,40.0135969),H=Cesium.Ellipsoid.WGS84.geodeticSurfaceNormal(Y);var r,n=new Cesium.Cartesian3(0,0,1),i=H,a=Cesium.Cartesian3.cross(n,i,new Cesium.Cartesian3),o=Cesium.Cartesian3.dot(n,i),s=1/(1+o);r=o>.9999?Cesium.Matrix3.IDENTITY:new Cesium.Matrix3(a.x*a.x*s+o,a.x*a.y*s-a.z,a.x*a.z*s+a.y,a.y*a.x*s+a.z,a.y*a.y*s+o,a.y*a.z*s-a.x,a.z*a.x*s-a.y,a.z*a.y*s+a.x,a.z*a.z*s+o),X=[r[0],r[3],r[6],r[1],r[4],r[7],r[2],r[5],r[8]],console.log(X)}();var Z=__webpack_require__(317),ee=__webpack_require__.n(Z),te=function(){function e(){E(this,e)}return L(e,null,[{key:"debounceLastCall",value:function(e,t){var r,n,i;return function(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];n=o,i=this,r&&clearTimeout(r),r=setTimeout((function(){console.log("debounceLastCall=================================="),e.apply(i,n)}),t)}}},{key:"throttle",value:function(e,t){var r=0;return function(){var n=arguments,i=Date.now();i-r>t&&(r=i,e.apply(this,n))}}},{key:"getFile",value:function(e,t){if("data"!=this.dataType)return fetch(e,{responseType:"arraybuffer"}).then((function(e){return e.arrayBuffer()})).then((function(e){var r=new(ee())(e),n=geobuf.decode(r);t(n)})).catch((function(e){console.log(e),console.log("解析pbf文件失败"),t({})}));var r=geobuf.decode(new(ee())(e));t(r)}},{key:"getGisRequestUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseUrl,r=e.regionPolygon,n=e.regionCode,i=e.layer,a=e.releation,o="";if(r){var s="POLYGON(("+ANOVGIS.Parse.parsePositions(r).map((function(e){return"".concat(e.lng," ").concat(e.lat)})).join(",")+"))";o=t+"geometry=".concat(s,"&layer=").concat(i,"&releation=").concat(a)}else n&&(o=t+"layer=".concat(i,"&releation=").concat(a,"&zcode=").concat(n));return o}},{key:"shuffleArray",value:function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=[e[r],e[t]];e[t]=n[0],e[r]=n[1]}}},{key:"divideArrayIntoTen",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;this.shuffleArray(e);for(var r=Math.ceil(e.length/t),n=[],i=0;i<e.length;i+=r)n.push(e.slice(i,i+r));return n}},{key:"checkURL",value:function(e){if("string"!=typeof e)return{isString:!1,isURL:!1,isRelativePath:!1};var t=/^(https?:\/\/)[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!$&'()*+,;=]+$/.test(e);return{isString:!0,isURL:t,isRelativePath:(e.startsWith("./")||e.startsWith("../"))&&!t}}},{key:"clone",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(null===e||"object"!==I(e))return e;var r=new e.constructor;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];r[n]=t?this.clone(i,t):i}return r}},{key:"traverseObject",value:function(e,t){if("object"===I(e)&&null!==e)for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];t(r,n,e),"object"===I(n)&&null!==n&&this.traverseObject(n,t)}}},{key:"getAbsoulteUrl",value:function(e){return this.checkURL(e).isRelativePath?Cesium.buildModuleUrl(e):e}},{key:"treatSccNode",value:function(e){var t=this,r=this.clone(e,!0);return this.traverseObject(r,(function(e,r,n){if(n[e]=t.getAbsoulteUrl(r),"string"==typeof r){var i=Cesium.Color.fromCssColorString(r);i&&(n[e]=i)}})),r}}]),e}();const re=function(){function e(t){E(this,e),this.context=t}return L(e,[{key:"generateMipmap",value:function(e,t,r,n){t=Cesium.defaultValue(t,Cesium.MipmapHint.DONT_CARE),e._hasMipmap=!0;var i=e._context._gl,a=e._textureTarget;i.hint(i.GENERATE_MIPMAP_HINT,t),i.activeTexture(i.TEXTURE0),i.bindTexture(a,e._texture),i.texParameteri(a,i.TEXTURE_MIN_LOD,r),i.texParameteri(a,i.TEXTURE_MAX_LOD,n),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAX_LEVEL,5),i.generateMipmap(a),i.bindTexture(a,null)}},{key:"getMipmapTexture",value:function(e){var t=this;Cesium.Resource.createIfNeeded(e.url).fetchImage().then((function(r){var n;n=Cesium.defined(r.internalFormat)?new Cesium.Texture({context:t.context,pixelFormat:r.internalFormat,width:r.width,height:r.height,source:{arrayBufferView:r.bufferView}}):new Cesium.Texture({context:t.context,source:r}),e.mipmap&&(t.generateMipmap(n,Cesium.MipmapHint.NICEST,e.minLod,e.maxLod),n.sampler=new Cesium.Sampler({wrapS:Cesium.TextureWrap.REPEAT,wrapT:Cesium.TextureWrap.REPEAT,minificationFilter:Cesium.TextureMinificationFilter.LINEAR_MIPMAP_NEAREST,magnificationFilter:Cesium.TextureMagnificationFilter.LINEAR,maximumAnisotropy:16})),e.sampler&&(n.sampler=e.sampler),e.callback(n)}))}},{key:"getMipmapTexturePromise",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=te.treatSccNode(t);var r=Cesium.defaultValue(t.minLod,0),n=Cesium.defaultValue(t.maxLod,1e3),i=t.url,a=Cesium.defaultValue(t.mipmap,!0),o=t.sampler;return new Promise((function(t,s){e.getMipmapTexture({url:i,mipmap:a,sampler:o,minLod:r,maxLod:n,callback:function(e){t(e)}})}))}}]),e}(),ne="environment",ie="buildings",ae="roads",oe="waters",se="all";var ue=function(){function e(){E(this,e)}var t,r;return L(e,null,[{key:"use",value:(r=T(V().mark((function e(t,r,n,i){var a,o=this,s=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(a=s.length>4&&void 0!==s[4]?s[4]:se)==ne?this.setEnvironment(t):a==ie?(this.setBuilding(t),setTimeout((function(){o.setBuilding(t)}),2e3)):a==ae?n&&this.setRoad(n):a==oe?i&&this.setWater(i):a==se&&(this.setEnvironment(t),this.setBuilding(t),setTimeout((function(){o.setBuilding(t)}),2e3),n&&this.setRoad(n),i&&this.setWater(i));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,n,i){return r.apply(this,arguments)})},{key:"unUse",value:(t=T(V().mark((function t(r){var n,i;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.treePipline&&(e.treePipline.show=!0),e.bloom&&r.scene.postProcessStages.remove(e.bloom),e.postProcessStage&&r.scene.postProcessStages.remove(e.postProcessStage),r.scene.postProcessStages.removeAll(),(n=r.imageryLayers.get(0)).brightness=1,n.contrast=1,n.gamma=1,n.saturation=1,n.hue=0,r.imageryLayers.length>1&&((i=r.imageryLayers.get(1)).brightness=1,i.contrast=1,i.gamma=1,i.saturation=1),r.scene.skyAtmosphere.hueShift=0,r.scene.skyAtmosphere.saturationShift=0,r.scene.skyAtmosphere.brightnessShift=0;case 14:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]),e}();W(ue,"bloom",null),W(ue,"postProcessStage",null),W(ue,"fs",null),W(ue,"vs",null),W(ue,"buildingMaterials",null),W(ue,"treePipline",null);var le=__webpack_require__(128),ce=__webpack_require__.n(le),pe=__webpack_require__(677),me=__webpack_require__.n(pe);var fe=function(e){var t,r,n,i,a,o;function s(){return E(this,s),Q(void 0)}return $(s,e),s,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(s,null,[{key:"setTrees",value:(o=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ue.treePipline=t,t.show=!1;case 2:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,10,1,0,0,0))),t.nativeObjCesium.clockViewModel.currentTime=r,ANOVGIS.LayerControlUitl.setSelectedImagery(t,4);case 3:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBuildingMaterials(t);case 2:r=e.sent,ue.vs=ce(),ue.fs=me(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=15;break}if((o=r[a]).height!=i.height){e.next=12;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(ce(),me(),t.scene.frameState.context);case 12:a++,e.next=4;break;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.forEach((function(e){var t=Math.random();e.setWidth(3),e.setUniformMap({color:new Cesium.Color(1,0,0,.8),speed:6,percent:.8,gradient:.6,image:"./static/modelData/building/road/line_p.png",offset:t})}));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(100,100,57)")});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["realism/bld11.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["realism/bld11.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:50,textureWidth:50,material:["realism/bld9.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:80,textureWidth:50,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:110,textureWidth:110,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:130,textureWidth:50,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:170,textureWidth:50,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:200,textureWidth:50,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:300,textureWidth:50,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:400,textureWidth:50,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}},{height:1e4,textureWidth:100,material:["realism/wall_10000.png","realism/bld-anime.png"],topMaterial:["realism/bld-top.png"],buildingdatas:[],loopT:.01,uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!0,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),e.next=5,Promise.all([i,o]);case 5:s=e.sent,u={myImage:function(){return s[0]},topImage:function(){return s[1]}},t.uniformMap=u;case 8:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),s}(ue),he=__webpack_require__(338),de=__webpack_require__.n(he),ve=__webpack_require__(605),ge=__webpack_require__.n(ve),ye=__webpack_require__(47),_e=__webpack_require__.n(ye);var be=function(e){var t,r,n,i,a,o;function s(){var e;return E(this,s),e.name="Citytheme_sample",Q(e)}return $(s,e),s,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(s,null,[{key:"use",value:(o=T(V().mark((function e(t,r,n,i){var a=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.setEnvironment(t),this.setBuilding(t),setTimeout((function(){a.setBuilding(t)}),2e3),n&&this.setRoad(n),i&&this.setWater(i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,10,8,0,0,0))),t.nativeObjCesium.clockViewModel.currentTime=r,ANOVGIS.LayerControlUitl.setSelectedImagery(t,2);case 3:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r,n=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBuildingMaterials(t);case 2:r=e.sent,ue.vs=de(),ue.fs=ge(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(i){var a,o,s,u,l;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.meteData&&"buildings"==i.meteData.type){e.next=2;break}return e.abrupt("return");case 2:a=i.meteData,o=0;case 4:if(!(o<r.length)){e.next=16;break}if((s=r[o]).height!=a.height){e.next=13;break}return e.next=9,Ye.getNewUniformMap(i.uniformMap,s.uniformMap,null===(u=i.infoData)||void 0===u?void 0:u.position);case 9:l=e.sent,i.setUniformMap(l),i.setShaders(de(),ge(),t.scene.frameState.context),i.meteData.themeName=n.name;case 13:o++,e.next=4;break;case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=_e(),t.forEach((function(e){e.setShaderSource(r),e.setUniformMap({speed:5,color:ANOVGIS.Color.ORANGE.withAlpha(.8)}),e.setWidth(4)}));case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(17,38,57)")});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ye.getDefaultMaterials());case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),s}(ue),we=__webpack_require__(931),xe=__webpack_require__.n(we),Ce=__webpack_require__(921),Me=__webpack_require__.n(Ce),Se=__webpack_require__(594),ke=__webpack_require__.n(Se);var Pe=function(e){var t,r,n,i,a;function o(){return E(this,o),Q(void 0)}return $(o,e),o,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(o,null,[{key:"setEnvironment",value:(a=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ANOVGIS.LayerControlUitl.setSelectedImagery(t,2);case 1:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.getBuildingMaterials(t);case 3:r=e.sent,ue.vs=xe(),ue.fs=Me(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=16;break}if((o=r[a]).height!=i.height){e.next=13;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(xe(),Me(),t.scene.frameState.context);case 13:a++,e.next=4;break;case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 9:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.forEach((function(e){e.setShaderSource(ke()),e.setUniformMap({color:new Cesium.Color(1,0,0,.7),speed:5,percent:.9,gradient:.2,image:"./static/modelData/building/road/yellow1.png"}),e.setWidth(5)}));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({reflectMap:"./static/modelData/building/water/refraction.jpg",specularMap_6:"",normalMap_0:"./static/modelData/images/waterNormalsSmall.jpg",frequency_1:800,animationSpeed_2:.02,amplitude_3:10,baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(59,150,160)"),blendColor_5:ANOVGIS.Color.fromCssColorString("rgb(17,38,57)"),specularIntensity_7:.4,fadeFactor_8:1,C_position:Y,C_normal:H,C_Matrix:X});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["color1/co1.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co7.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["color1/co2.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co6.png"],buildingdatas:[],uniformMap:{}},{height:50,textureWidth:50,material:["color1/co3.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co5.png"],buildingdatas:[],uniformMap:{}},{height:80,textureWidth:50,material:["color1/co4.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co4.png"],buildingdatas:[],uniformMap:{}},{height:110,textureWidth:110,material:["color1/co5.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co2.png"],buildingdatas:[],uniformMap:{}},{height:130,textureWidth:50,material:["color1/co6.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co2.png"],buildingdatas:[],uniformMap:{}},{height:170,textureWidth:50,material:["color1/co7.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co2.png"],buildingdatas:[],uniformMap:{}},{height:200,textureWidth:50,material:["color1/co2.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co2.png"],buildingdatas:[],uniformMap:{}},{height:300,textureWidth:50,material:["color1/co1.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co5.png"],buildingdatas:[],uniformMap:{}},{height:400,textureWidth:50,material:["color1/co3.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co7.png"],buildingdatas:[],uniformMap:{}},{height:1e4,textureWidth:100,material:["color1/co6.png","color1/co0.png","color1/co0.png"],topMaterial:["color1/co2.png"],buildingdatas:[],uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!0,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),s=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[1]}),u=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[2]}),e.next=7,Promise.all([i,o,s,u]);case 7:l=e.sent,c={myImage:function(){return l[0]},WinImage:function(){return l[3]},wallAlpha:function(){return.9},animImage:function(){return l[2]},topImage:function(){return l[1]},C_position:function(){return Y},C_normal:function(){return H},C_Matrix:function(){return X}},t.uniformMap=c;case 10:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),o}(ue),De=__webpack_require__(610),Te=__webpack_require__.n(De);var Ee=function(e){var t,r,n,i,a;function o(){return E(this,o),Q(void 0)}return $(o,e),o,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(o,null,[{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r,n;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=Cesium.PostProcessStageLibrary.createBloomStage()).enabled=!0,r.uniforms.glowOnly=!1,r.uniforms.contrast=128,r.uniforms.brightness=-5,r.uniforms.delta=1,r.uniforms.sigma=2,r.uniforms.stepSize=5,t.scene.postProcessStages.add(r),this.bloom=r,Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,6,2,2,0,0))),t.scene.globe.enableLighting=!0,t.scene.shadowMap.enabled=!1,ANOVGIS.LayerControlUitl.setSelectedImagery(t,2),(n=t.imageryLayers.get(0)).brightness=.7,n.contrast=1.1,n.gamma=.8,n.saturation=.1,n.hue=0;case 20:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBuildingMaterials(t);case 2:r=e.sent,ue.vs=xe(),ue.fs=Te(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=15;break}if((o=r[a]).height!=i.height){e.next=12;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(xe(),Te(),t.scene.frameState.context);case 12:a++,e.next=4;break;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.forEach((function(e){e.setShaderSource(ke()),e.setUniformMap({color:new Cesium.Color(1,0,0,.5),speed:5,percent:.9,gradient:.2,image:"./static/modelData/building/road/yellow1.png"})}));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({reflectMap:"./static/modelData/building/water/refraction.jpg",specularMap_6:"",normalMap_0:"./static/modelData/images/waterNormalsSmall.jpg",frequency_1:800,animationSpeed_2:.02,amplitude_3:10,baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(59,150,160)"),blendColor_5:ANOVGIS.Color.fromCssColorString("rgb(17,38,57)"),specularIntensity_7:.4,fadeFactor_8:1,C_position:Y,C_normal:H,C_Matrix:X});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["Base/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Base/top_1.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["Base/bld2.png","realism/bld-anime.png","Sci1/win2.png"],topMaterial:["Base/top_1.png"],buildingdatas:[],uniformMap:{}},{height:50,textureWidth:50,material:["Base/bld3.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Base/top_3.png"],buildingdatas:[],uniformMap:{}},{height:80,textureWidth:50,material:["Base/bld4.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Base/top_4.png"],buildingdatas:[],uniformMap:{}},{height:110,textureWidth:110,material:["Base/bld5.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Base/top_2.png"],buildingdatas:[],uniformMap:{}},{height:130,textureWidth:50,material:["Base/bld6.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Base/top_1.png"],buildingdatas:[],uniformMap:{}},{height:170,textureWidth:50,material:["Base/bld7.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Base/top_7.png"],buildingdatas:[],uniformMap:{}},{height:200,textureWidth:50,material:["Base/bld8.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Base/top_1.png"],buildingdatas:[],uniformMap:{}},{height:300,textureWidth:50,material:["Base/bld9.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Base/top_7.png"],buildingdatas:[],uniformMap:{}},{height:400,textureWidth:50,material:["Base/bld10.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Base/top_7.png"],buildingdatas:[],uniformMap:{}},{height:1e4,textureWidth:100,material:["Base/bld10.png","realism/bld-anime.png","Sci1/win5.png"],topMaterial:["Base/top_7.png"],buildingdatas:[],uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!0,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),s=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[1]}),u=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[2]}),e.next=7,Promise.all([i,o,s,u]);case 7:l=e.sent,c={myImage:function(){return l[0]},WinImage:function(){return l[3]},wallAlpha:function(){return.95},animImage:function(){return l[2]},topImage:function(){return l[1]},C_position:function(){return Y},C_normal:function(){return H},C_Matrix:function(){return X}},t.uniformMap=c;case 10:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),o}(ue),Ie=__webpack_require__(379),Oe=__webpack_require__.n(Ie),ze=__webpack_require__(205),Le=__webpack_require__.n(ze);var Ae=function(e){var t,r,n,i,a,o;function s(){return E(this,s),Q(void 0)}return $(s,e),s,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(s,null,[{key:"use",value:(o=T(V().mark((function e(t,r,n,i){var a=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.setEnvironment(t),this.setBuilding(t),setTimeout((function(){a.setBuilding(t)}),2e3),n&&this.setRoad(n),i&&this.setWater(i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r,n,i,a,o;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=Cesium.PostProcessStageLibrary.createBloomStage()).enabled=!0,r.uniforms.glowOnly=!1,r.uniforms.contrast=128,r.uniforms.brightness=-.4,r.uniforms.delta=1,r.uniforms.sigma=3.7,r.uniforms.stepSize=4.5,t.scene.postProcessStages.add(r),ue.bloom=r,n=Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,6,2,2,0,0))),t.nativeObjCesium.clockViewModel.currentTime=n,t.scene.globe.enableLighting=!0,t.scene.shadowMap.enabled=!1,ANOVGIS.LayerControlUitl.setSelectedImagery(t,4),(i=t.imageryLayers.get(0)).brightness=.7,i.contrast=1.1,i.gamma=.8,i.saturation=.1,i.hue=0,(a=t.imageryLayers.get(1)).brightness=.4,a.contrast=.6,a.gamma=.4,a.saturation=.1,o=new Cesium.PostProcessStage({uniforms:{},fragmentShader:Le()}),ue.postProcessStage=o,t.scene.postProcessStages.add(o);case 29:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBuildingMaterials(t);case 2:r=e.sent,ue.vs=xe(),ue.fs=Oe(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=15;break}if((o=r[a]).height!=i.height){e.next=12;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(xe(),Oe(),t.scene.frameState.context);case 12:a++,e.next=4;break;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.forEach((function(e){e.setShaderSource(roadImag);var t=Math.random();e.setWidth(5),e.setUniformMap({color:new Cesium.Color(1,0,0,.5),speed:5,percent:.9,gradient:.2,image:"./static/modelData/building/road/red.png",offset:t})}));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(100,100,57)")});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["Sci0/bld1.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["Sci0/bld1.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:50,textureWidth:50,material:["Sci0/bld1.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:80,textureWidth:50,material:["Sci0/bld2.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:110,textureWidth:110,material:["Sci0/bld2.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:130,textureWidth:50,material:["Sci0/bld3.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:170,textureWidth:50,material:["Sci0/bld3.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:200,textureWidth:50,material:["Sci0/bld4.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top4.png"],buildingdatas:[],uniformMap:{}},{height:300,textureWidth:50,material:["Sci0/bld4.png","realism/bld-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top4.png"],buildingdatas:[],uniformMap:{}},{height:400,textureWidth:50,material:["Sci0/bld4.png","realism/no-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top5.png"],buildingdatas:[],uniformMap:{}},{height:1e4,textureWidth:100,material:["Sci0/bld4.png","realism/no-anime.png","Sci0/win1.png"],topMaterial:["Sci0/bld_top5.png"],buildingdatas:[],uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!1,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),s=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[1]}),u=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[2]}),e.next=7,Promise.all([i,o,s,u]);case 7:l=e.sent,c={myImage:function(){return l[0]},WinImage:function(){return l[3]},wallAlpha:function(){return.8},animImage:function(){return l[2]},topImage:function(){return l[1]},C_position:function(){return Y},C_normal:function(){return H},C_Matrix:function(){return X}},t.uniformMap=c;case 10:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),s}(ue);const Ve={terrainLayer_xyz:"terrainLayer_xyz",tiles_buildings:"tiles_buildings",pbfsfile_buildings:"pbfsfile_buildings",buildings:"buildings",roads:"roads",waters:"waters",trees:"trees",wms:"wms",wmts:"wmts",tileset:"3dtiles",model:"model",html:"html"};var We=function(e){var t,r,n,i,a,o;function s(){return E(this,s),Q(void 0)}return $(s,e),s,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(s,null,[{key:"use",value:(o=T(V().mark((function e(t,r,n,i){var a,o=this,s=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(a=s.length>4&&void 0!==s[4]?s[4]:se)==ne?this.setEnvironment(t):a==ie?(this.setBuilding(t),setTimeout((function(){o.setBuilding(t)}),2e3)):a==ae?n&&this.setRoad(n):a==oe?i&&this.setWater(i):a==se&&(this.setEnvironment(t),this.setBuilding(t),setTimeout((function(){o.setBuilding(t)}),2e3),n&&this.setRoad(n),i&&this.setWater(i));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=Cesium.PostProcessStageLibrary.createBloomStage()).enabled=!0,r.uniforms.glowOnly=!1,r.uniforms.contrast=128,r.uniforms.brightness=-.4,r.uniforms.delta=1,r.uniforms.sigma=3.7,r.uniforms.stepSize=4.5,t.scene.postProcessStages.add(r),ue.bloom=r,n=Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,6,2,2,0,0))),t.nativeObjCesium.clockViewModel.currentTime=n,t.scene.globe.enableLighting=!0,t.scene.shadowMap.enabled=!1,ANOVGIS.LayerControlUitl.setSelectedImagery(t,4),(i=t.imageryLayers.get(0)).brightness=.7,i.contrast=.9,i.gamma=.8,i.saturation=.8,i.hue=0,(a=t.imageryLayers.get(1)).brightness=.5,a.contrast=.9,a.gamma=.5,a.saturation=.2;case 26:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,this.getBuildingMaterials(t);case 3:r=e.sent,ue.vs=xe(),ue.fs=Oe(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=15;break}if((o=r[a]).height!=i.height){e.next=12;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(xe(),Oe(),t.scene.frameState.context);case 12:a++,e.next=4;break;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 9:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.forEach((function(e){e.setShaderSource(ke());var t=Math.random();e.setWidth(5),e.setUniformMap({color:new Cesium.Color(1,0,0,.5),speed:5,percent:.9,gradient:.2,image:"./static/modelData/building/road/yellow1.png",offset:t})}));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({reflectMap:"./static/modelData/building/water/refraction.jpg",specularMap_6:"",normalMap_0:"./static/modelData/images/waterNormalsSmall.jpg",frequency_1:800,animationSpeed_2:.02,amplitude_3:10,baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(59,150,160)"),blendColor_5:ANOVGIS.Color.fromCssColorString("rgb(17,38,57)"),specularIntensity_7:.4,fadeFactor_8:1,C_position:Y,C_normal:H,C_Matrix:X});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["Sci1/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci1/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["Sci1/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci1/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:50,textureWidth:50,material:["Sci1/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci1/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:80,textureWidth:50,material:["Sci1/bld2.png","realism/bld-anime.png","Sci1/win2.png"],topMaterial:["Sci1/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:110,textureWidth:110,material:["Sci1/bld2.png","realism/bld-anime.png","Sci1/win2.png"],topMaterial:["Sci1/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:130,textureWidth:50,material:["Sci1/bld3.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci1/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:170,textureWidth:50,material:["Sci1/bld3.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci1/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:200,textureWidth:50,material:["Sci1/bld4.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci1/bld_top4.png"],buildingdatas:[],uniformMap:{}},{height:300,textureWidth:50,material:["Sci1/bld4.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci1/bld_top4.png"],buildingdatas:[],uniformMap:{}},{height:400,textureWidth:50,material:["Sci1/bld4.png","realism/bld-anime.png","Sci1/win5.png"],topMaterial:["Sci1/bld_top5.png"],buildingdatas:[],uniformMap:{}},{height:1e4,textureWidth:100,material:["Sci1/bld4.png","realism/bld-anime.png","Sci1/win5.png"],topMaterial:["Sci1/bld_top5.png"],buildingdatas:[],uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!1,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),s=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[1]}),u=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[2]}),e.next=7,Promise.all([i,o,s,u]);case 7:l=e.sent,c={myImage:function(){return l[0]},WinImage:function(){return l[3]},wallAlpha:function(){return.8},animImage:function(){return l[2]},topImage:function(){return l[1]},C_position:function(){return Y},C_normal:function(){return H},C_Matrix:function(){return X}},t.uniformMap=c;case 10:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),s}(ue);var Be=function(e){var t,r,n,i,a,o;function s(){return E(this,s),Q(void 0)}return $(s,e),s,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(s,null,[{key:"use",value:(o=T(V().mark((function e(t,r,n,i){var a=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.setEnvironment(t),this.setBuilding(t),setTimeout((function(){a.setBuilding(t)}),2e3),n&&this.setRoad(n),i&&this.setWater(i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=Cesium.PostProcessStageLibrary.createBloomStage()).enabled=!0,r.uniforms.glowOnly=!1,r.uniforms.contrast=128,r.uniforms.brightness=-.4,r.uniforms.delta=1,r.uniforms.sigma=3.7,r.uniforms.stepSize=4,t.scene.postProcessStages.add(r),ue.bloom=r,n=Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,6,2,2,0,0))),t.nativeObjCesium.clockViewModel.currentTime=n,t.scene.globe.enableLighting=!0,t.scene.shadowMap.enabled=!1,ANOVGIS.LayerControlUitl.setSelectedImagery(t,4),(i=t.imageryLayers.get(0)).brightness=.7,i.contrast=.9,i.gamma=.6,i.saturation=3.5,i.hue=0,(a=t.imageryLayers.get(1)).brightness=.6,a.contrast=.9,a.gamma=.6,a.saturation=.1;case 26:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBuildingMaterials(t);case 2:r=e.sent,ue.vs=xe(),ue.fs=Oe(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=15;break}if((o=r[a]).height!=i.height){e.next=12;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(xe(),Oe(),t.scene.frameState.context);case 12:a++,e.next=4;break;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.forEach((function(e){e.setShaderSource(ke());var t=Math.random();e.setWidth(8),e.setUniformMap({color:new Cesium.Color(1,0,0,.5),speed:5,percent:.9,gradient:.2,image:"./static/modelData/building/road/red1.png",offset:t})}));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({reflectMap:"./static/modelData/building/water/refraction.jpg",specularMap_6:"",normalMap_0:"./static/modelData/images/waterNormalsSmall.jpg",frequency_1:800,animationSpeed_2:.02,amplitude_3:5,baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(71,131,210)"),blendColor_5:ANOVGIS.Color.fromCssColorString("rgb(17,38,57)"),specularIntensity_7:.4,fadeFactor_8:1,C_position:Y,C_normal:H,C_Matrix:X});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["Sci2/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci2/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["Sci2/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci2/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:50,textureWidth:50,material:["Sci2/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci2/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:80,textureWidth:50,material:["Sci2/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci2/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:110,textureWidth:110,material:["Sci2/bld2.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci2/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:130,textureWidth:50,material:["Sci2/bld2.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci2/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:170,textureWidth:50,material:["Sci2/bld2.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci2/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:200,textureWidth:50,material:["Sci2/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci2/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:300,textureWidth:50,material:["Sci2/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci2/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:400,textureWidth:50,material:["Sci2/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci2/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:1e4,textureWidth:100,material:["Sci2/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci2/bld_top3.png"],buildingdatas:[],uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!1,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),s=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[1]}),u=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[2]}),e.next=7,Promise.all([i,o,s,u]);case 7:l=e.sent,c={myImage:function(){return l[0]},WinImage:function(){return l[3]},wallAlpha:function(){return.7},animImage:function(){return l[2]},topImage:function(){return l[1]},C_position:function(){return Y},C_normal:function(){return H},C_Matrix:function(){return X}},t.uniformMap=c;case 10:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),s}(ue),Fe=__webpack_require__(455),Re=__webpack_require__.n(Fe);var Ne=function(e){var t,r,n,i,a,o;function s(){return E(this,s),Q(void 0)}return $(s,e),s,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(s,null,[{key:"use",value:(o=T(V().mark((function e(t,r,n,i){var a=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.setEnvironment(t),this.setBuilding(t),setTimeout((function(){a.setBuilding(t)}),2e3),n&&this.setRoad(n),i&&this.setWater(i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=Cesium.PostProcessStageLibrary.createBloomStage()).enabled=!0,r.uniforms.glowOnly=!1,r.uniforms.contrast=128,r.uniforms.brightness=-.4,r.uniforms.delta=1,r.uniforms.sigma=3.7,r.uniforms.stepSize=4,t.scene.postProcessStages.add(r),ue.bloom=r,n=Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,6,2,.1,0,0))),t.nativeObjCesium.clockViewModel.currentTime=n,t.scene.globe.enableLighting=!0,t.scene.shadowMap.enabled=!1,ANOVGIS.LayerControlUitl.setSelectedImagery(t,4),(i=t.imageryLayers.get(0)).brightness=.7,i.contrast=.9,i.gamma=.7,i.saturation=2.9,i.hue=0,(a=t.imageryLayers.get(1)).brightness=.5,a.contrast=.9,a.gamma=.5,a.saturation=.2;case 26:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBuildingMaterials(t);case 2:r=e.sent,ue.vs=xe(),ue.fs=Re(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=15;break}if((o=r[a]).height!=i.height){e.next=12;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(xe(),Re(),t.scene.frameState.context);case 12:a++,e.next=4;break;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.forEach((function(e){e.setShaderSource(ke());var t=Math.random();e.setWidth(5),e.setUniformMap({color:new Cesium.Color(1,0,0,.5),speed:5,percent:.9,gradient:.2,image:"./static/modelData/building/road/green.png",offset:t})}));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({reflectMap:"./static/modelData/building/water/refraction.jpg",specularMap_6:"",normalMap_0:"./static/modelData/images/waterNormalsSmall.jpg",frequency_1:800,animationSpeed_2:.02,amplitude_3:10,baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(59,150,160)"),blendColor_5:ANOVGIS.Color.fromCssColorString("rgb(17,38,57)"),specularIntensity_7:.4,fadeFactor_8:1,C_position:Y,C_normal:H,C_Matrix:X});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:50,textureWidth:50,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:80,textureWidth:50,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:110,textureWidth:110,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:130,textureWidth:50,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:170,textureWidth:50,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:200,textureWidth:50,material:["Sci3/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:300,textureWidth:50,material:["Sci2/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:400,textureWidth:50,material:["Sci2/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:1e4,textureWidth:100,material:["Sci2/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci3/bld_top1.png"],buildingdatas:[],uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!1,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),s=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[1]}),u=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[2]}),e.next=7,Promise.all([i,o,s,u]);case 7:l=e.sent,c={myImage:function(){return l[0]},WinImage:function(){return l[3]},wallAlpha:function(){return.7},animImage:function(){return l[2]},topImage:function(){return l[1]},C_position:function(){return Y},C_normal:function(){return H},C_Matrix:function(){return X}},t.uniformMap=c;case 10:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),s}(ue),je=__webpack_require__(186),Ue=__webpack_require__.n(je);var Ge=function(e){var t,r,n,i,a,o;function s(){return E(this,s),Q(void 0)}return $(s,e),s,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),L(s,null,[{key:"use",value:(o=T(V().mark((function e(t,r,n,i){var a=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.setEnvironment(t),this.setBuilding(t),setTimeout((function(){a.setBuilding(t)}),2e3),n&&this.setRoad(n),i&&this.setWater(i);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return o.apply(this,arguments)})},{key:"setEnvironment",value:(a=T(V().mark((function e(t){var r,n,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=Cesium.PostProcessStageLibrary.createBloomStage()).enabled=!0,r.uniforms.glowOnly=!1,r.uniforms.contrast=128,r.uniforms.brightness=-.4,r.uniforms.delta=1,r.uniforms.sigma=3.7,r.uniforms.stepSize=4,t.scene.postProcessStages.add(r),ue.bloom=r,n=Cesium.JulianDate.fromDate(new Date(Date.UTC(2024,6,2,2,0,0))),t.nativeObjCesium.clockViewModel.currentTime=n,t.scene.globe.enableLighting=!0,t.scene.shadowMap.enabled=!1,ANOVGIS.LayerControlUitl.setSelectedImagery(t,4),(i=t.imageryLayers.get(0)).brightness=.5,i.contrast=.9,i.gamma=.4,i.saturation=.8,i.hue=.2;case 21:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"setBuilding",value:(i=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getBuildingMaterials(t);case 2:r=e.sent,ue.vs=xe(),ue.fs=Ue(),ue.buildingMaterials=r,t.scene.primitives._primitives.forEach(function(){var e=T(V().mark((function e(n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.meteData&&"buildings"==n.meteData.type){e.next=2;break}return e.abrupt("return");case 2:i=n.meteData,a=0;case 4:if(!(a<r.length)){e.next=15;break}if((o=r[a]).height!=i.height){e.next=12;break}return e.next=9,Ye.getNewUniformMap(n.uniformMap,o.uniformMap,null===(s=n.infoData)||void 0===s?void 0:s.position);case 9:u=e.sent,n.setUniformMap(u),n.setShaders(xe(),Ue(),t.scene.frameState.context);case 12:a++,e.next=4;break;case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 8:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"setRoad",value:(n=T(V().mark((function e(t){var r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=Math.random(),t.forEach((function(e){e.setShaderSource(ke()),e.lineWidth<5&&(e.setWidth(5),e.setUniformMap({color:new Cesium.Color(1,0,0,.5),speed:5,percent:.9,gradient:.2,offset:r,image:"./static/modelData/building/road/line_blue1.png"})),e.setWidth(10),e.setUniformMap({image:"./static/modelData/building/road/yellow1.png"})}));case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"setWater",value:(r=T(V().mark((function e(t){return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.setUniformMap({reflectMap:"./static/modelData/building/water/refraction.jpg",specularMap_6:"",normalMap_0:"./static/modelData/images/waterNormalsSmall.jpg",frequency_1:800,animationSpeed_2:.02,amplitude_3:10,baseWaterColor_4:ANOVGIS.Color.fromCssColorString("rgb(59,150,160)"),blendColor_5:ANOVGIS.Color.fromCssColorString("rgb(17,38,57)"),specularIntensity_7:.4,fadeFactor_8:1,C_position:Y,C_normal:H,C_Matrix:X});case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"getBuildingMaterials",value:(t=T(V().mark((function e(t){var r,n,i,a;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=[{height:10,textureWidth:30,material:["Sci4/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci4/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:20,textureWidth:50,material:["Sci4/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci4/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:50,textureWidth:50,material:["Sci4/bld1.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci4/bld_top1.png"],buildingdatas:[],uniformMap:{}},{height:80,textureWidth:50,material:["Sci4/bld2.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci4/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:110,textureWidth:110,material:["Sci4/bld2.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci4/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:130,textureWidth:50,material:["Sci4/bld2.png","realism/bld-anime.png","Sci1/win1.png"],topMaterial:["Sci4/bld_top2.png"],buildingdatas:[],uniformMap:{}},{height:170,textureWidth:50,material:["Sci4/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci4/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:200,textureWidth:50,material:["Sci4/bld3.png","realism/bld-anime.png","Sci1/win4.png"],topMaterial:["Sci4/bld_top3.png"],buildingdatas:[],uniformMap:{}},{height:300,textureWidth:50,material:["Sci4/bld4.png","realism/bld-anime.png","Sci1/win5.png"],topMaterial:["Sci4/bld_top4.png"],buildingdatas:[],uniformMap:{}},{height:400,textureWidth:50,material:["Sci4/bld4.png","realism/bld-anime.png","Sci1/win5.png"],topMaterial:["Sci4/bld_top4.png"],buildingdatas:[],uniformMap:{}},{height:1e4,textureWidth:100,material:["Sci4/bld4.png","realism/bld-anime.png","Sci1/win5.png"],topMaterial:["Sci4/bld_top4.png"],buildingdatas:[],uniformMap:{}}],n=new re(t.scene.context),i=V().mark((function e(){var t,i,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r[a],i=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[0],mipmap:!1,minLod:0,maxLod:1e3,sampler:null}),o=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.topMaterial[0]}),s=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[1]}),u=n.getMipmapTexturePromise({url:"./static/modelData/building/"+t.material[2]}),e.next=7,Promise.all([i,o,s,u]);case 7:l=e.sent,c={myImage:function(){return l[0]},WinImage:function(){return l[3]},wallAlpha:function(){return.7},animImage:function(){return l[2]},topImage:function(){return l[1]},C_position:function(){return Y},C_normal:function(){return H},C_Matrix:function(){return X}},t.uniformMap=c;case 10:case"end":return e.stop()}}),e)})),a=0;case 4:if(!(a<r.length)){e.next=9;break}return e.delegateYield(i(),"t0",6);case 6:a++,e.next=4;break;case 9:return e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),s}(ue);function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ye=function(){function e(){E(this,e)}var t;return L(e,null,[{key:"setTheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.earth,n=e.piplineType,i=r.viewer,a=r.treePipline,o=r.roadPipline,s=r.waterPipline;ue.unUse(i),"Citytheme_sample"==t?be.use(i,a,o,s,n):"Citytheme_Line1"==t?Pe.use(i,a,o,s,n):"Citytheme_Base1"==t?Ee.use(i,a,o,s,n):"Citytheme_buildtexture"==t?fe.use(i,a,o,s,n):"Citytheme_Sci0"==t?Ae.use(i,a,o,s,n):"Citytheme_Sci1"==t?We.use(i,a,o,s,n):"Citytheme_Sci2"==t?Be.use(i,a,o,s,n):"Citytheme_Sci3"==t?Ne.use(i,a,o,s,n):"Citytheme_Sci4"==t&&Ge.use(i,a,o,s,n),setTimeout((function(){}),1500)}},{key:"getDefaultMaterials",value:function(){return[{height:10,textureWidth:30,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.DARKGRAY}}},{height:20,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.DARKGREY}}},{height:50,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.LIGHTGREY}}},{height:80,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.LIGHTGREY}}},{height:110,textureWidth:110,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.LIGHTSTEELBLUE}}},{height:130,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.LIGHTSTEELBLUE}}},{height:170,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.LIGHTSTEELBLUE}}},{height:200,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.LIGHTSTEELBLUE}}},{height:300,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.LIGHTSTEELBLUE}}},{height:400,textureWidth:50,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.DEEPSKYBLUE}}},{height:1e4,textureWidth:100,material:[],topMaterial:[],buildingdatas:[],uniformMap:{u_baseColor:function(){return Cesium.Color.DEEPSKYBLUE}}}]}},{key:"getFrameState",value:function(e){return this.frameState||(this.frameState=new ANOVGIS.FrameSate(e)),this.frameState.getCommondInfo()}},{key:"formatMemoryString",value:function(e){var t=e/1048576;return t<1?t.toLocaleString(void 0,stringOptions):Math.round(t).toLocaleString()}},{key:"getNewUniformMap",value:(t=T(V().mark((function e(t,r,n){var i,a,o,s,u;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=He(He({},t),r),r.C_position&&n){e.next=3;break}return e.abrupt("return",i);case 3:return a=Cesium.Rectangle.center(n),o=ANOVGIS.Transform.transformCartographicToCartesian(a),s=K(o),u=He(He(He({},t),r),{},{C_position:function(){return s.BeijingPosition1},C_normal:function(){return s.BeijgNormal1},C_Matrix:function(){return s.rotationMatrixArray1}}),e.abrupt("return",u);case 8:case"end":return e.stop()}}),e)}))),function(e,r,n){return t.apply(this,arguments)})}]),e}();W(Ye,"frameState",null);const Xe=function(){function e(){E(this,e)}return L(e,null,[{key:"showhidePolygonBuildings",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.positions,r=e.isShow,n=void 0===r||r,i=e.primitives;if(t)for(var a=0;a<i.length;a++){var o=i[a],s=this.rectangleToPolygonPositions(o.infoData.position);if(this.isPolygonIntersectPolygon(t,s))for(var u=o.meteData.instancePositions,l=0;l<u.length;l++){var c=u[l],p=this.isPolygonIntersectPolygon(t,c);n?(!p&&o.updatePickStyle(l,{show:!n}),p&&o.updatePickStyle(l,{show:n})):p&&o.updatePickStyle(l,{show:n})}else o.show=!n}}},{key:"showhidePolygonBuildings2",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.positions,r=e.isShow,n=void 0===r||r,i=e.primitives,a=e.extentPolygon;if(t&&i instanceof Array)for(var o=0;o<i.length;o++){var s=i[o];if(s.meteData&&s.meteData.instancePositions)for(var u=s.meteData.instancePositions,l=0;l<u.length;l++){var c=u[l],p=this.isPolygonIntersectPolygon(t,c),m=this.isPolygonIntersectPolygon(a,c);n?(!p&&s.updatePickStyle(l,{show:!1}),p&&s.updatePickStyle(l,{show:!0})):p?s.updatePickStyle(l,{show:!1}):m&&s.updatePickStyle(l,{show:!0})}}}},{key:"isPolygonIntersectPolygon",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)return!1;var n=Cesium.Rectangle.fromCartesianArray(e),i=[];i.push(Cesium.Math.toDegrees(n.west),Cesium.Math.toDegrees(n.south),Cesium.Math.toDegrees(n.east),Cesium.Math.toDegrees(n.north));var a=ANOVGIS.Transform.transformCartesianArrayToWGS84Array(e).map((function(e){return[e.lng,e.lat]})),o=Cesium.Rectangle.fromCartesianArray(t),s=[];s.push(Cesium.Math.toDegrees(o.west),Cesium.Math.toDegrees(o.south),Cesium.Math.toDegrees(o.east),Cesium.Math.toDegrees(o.north));var u=ANOVGIS.Transform.transformCartesianArrayToWGS84Array(t).map((function(e){return[e.lng,e.lat]}));return r?ANOVGIS.CoordUtil.isPolygonContainsPolygon(a,u,i,s):ANOVGIS.CoordUtil.isPolygonsIntersect2(a,u,i,s)}},{key:"showHideAllBuildings",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=0;r<e.scene.primitives._primitives.length;r++){var n=e.scene.primitives._primitives[r];n.infoData&&n.infoData.type==Ve.buildings&&(n.show=t)}}},{key:"clearDatas",value:function(e,t){if(t)for(var r=function(r){var i=e.scene.primitives._primitives[r];i.infoData&&t.find((function(e){return i.infoData.type==e}))&&(e.scene.primitives.remove(i),r--),n=r},n=0;n<e.scene.primitives._primitives.length;n++)r(n)}},{key:"rectangleToPolygonPositions",value:function(e){var t=[],r=Cesium.Cartesian3.fromRadians(e.west,e.south),n=Cesium.Cartesian3.fromRadians(e.east,e.south),i=Cesium.Cartesian3.fromRadians(e.west,e.north),a=Cesium.Cartesian3.fromRadians(e.east,e.north);return t.push(r),t.push(n),t.push(a),t.push(i),t.push(r),t}}]),e}();function Ke(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Je(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Je(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const $e=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,e),this.clampToTerrain=Cesium.defaultValue(t.clampToTerrain,!1),this.daysThreshold=Cesium.defaultValue(t.daysThreshold,3),this.dataType=t.dataType||"url",this.infoData=t.infoData,this.useCache=Cesium.defaultValue(t.useCache,!0),this.datasArr=t.datasArr||[],this.buildingMaterials=t.buildingMaterials||Ye.getDefaultMaterials(),this.allowPicking=Cesium.defaultValue(t.allowPicking,!1),this.receiveShadows=Cesium.defaultValue(t.receiveShadows,!1),this.castShadows=Cesium.defaultValue(t.castShadows,!1),this.vertexShaderSource=Cesium.defaultValue(t.vertexShaderSource,de()),this.fragmentShaderSource=Cesium.defaultValue(t.fragmentShaderSource,ge()),this.extentPolygon=t.extentPolygon,this.viewer=t.viewer||window.viewer,this._show=!0}var t,r,n,i,a;return L(e,[{key:"show",get:function(){return this._show},set:function(e){this._show=e;for(var t=0;t<this.viewer.scene.primitives._primitives.length;t++){var r=this.viewer.scene.primitives._primitives[t];r.infoData&&r.infoData.type==Ve.buildings&&(r.show=e)}}},{key:"remove",value:function(){var e=this;this.primitives.forEach((function(t){t.infoData&&t.infoData.type==Ve.buildings&&e.viewer.scene.primitives.remove(t)}))}},{key:"destroy",value:function(){return this.remove(),Cesium.destroyObject(this)}},{key:"add",value:(a=T(V().mark((function e(){var t,r,n=this,i=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:0,!this.useCache){e.next=10;break}return e.next=4,this.getCacheData(this.datasArr,t);case 4:if(!((r=e.sent).length>0)){e.next=10;break}return console.log("建筑"+this.datasArr[t].name+"采用缓存了___"),r.forEach(function(){var e=T(V().mark((function e(t,r){var i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.buildingMaterials.find((function(e){return t.id.endsWith(e.height)})),e.next=3,n.addBuildPrimitiveCache(i,t.value,t.instanceCount,t.meteData);case 3:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()),t<this.datasArr.length-1&&this.add(t+1,this.datasArr),e.abrupt("return");case 10:te.getFile(this.datasArr[t].url,function(){var e=T(V().mark((function e(r){var i,a,o,s,u,l,c,p,m,f,h,d,v,g;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return");case 2:if(console.log("建筑"+n.datasArr[t].name+"没采用缓存"),i=r.features){e.next=6;break}return e.abrupt("return");case 6:a=Ke(i),e.prev=7,a.s();case 9:if((o=a.n()).done){e.next=29;break}if(s=o.value,!((u=s.geometry.coordinates[0]).length<3)){e.next=14;break}return e.abrupt("continue",27);case 14:l=s.properties.height,s.properties.floor&&(l=3*s.properties.floor),c={positions:Cesium.Cartesian3.fromDegreesArray(u.flat()),height:l},n.clampToTerrain&&(c.baseHeight=s.properties.height),p=0;case 19:if(!(p<n.buildingMaterials.length)){e.next=27;break}if(m=n.buildingMaterials[p],!(l<m.height)){e.next=24;break}return m.buildingdatas.push(c),e.abrupt("break",27);case 24:p++,e.next=19;break;case 27:e.next=9;break;case 29:e.next=34;break;case 31:e.prev=31,e.t0=e.catch(7),a.e(e.t0);case 34:return e.prev=34,a.f(),e.finish(34);case 37:f=!0,h=Xe.rectangleToPolygonPositions(n.infoData.position),Xe.isPolygonIntersectPolygon(n.extentPolygon,h,!0)||(f=!1),d=0;case 42:if(!(d<n.buildingMaterials.length)){e.next=53;break}if(0!=(v=n.buildingMaterials[d]).buildingdatas.length){e.next=46;break}return e.abrupt("continue",50);case 46:g={dbName:"ANOV_City",version:1,stores:[Ve.buildings,Ve.roads,Ve.waters,Ve.trees],storeName:Ve.buildings,key:n.datasArr[t].name+"_"+v.height},n.useCache||(g=null),n.addBuildPrimitive(v,g,f),v.buildingdatas=[];case 50:d++,e.next=42;break;case 53:t<n.datasArr.length-1&&n.add(t+1);case 54:case"end":return e.stop()}}),e,null,[[7,31,34,37]])})));return function(t){return e.apply(this,arguments)}}());case 11:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"openIndexDB",value:(i=T(V().mark((function e(){var t;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=F.getInstance("ANOV_City",1,[Ve.buildings,Ve.roads,Ve.waters,Ve.trees]),e.next=3,t.openDB();case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getCacheData",value:(n=T(V().mark((function e(t,r){var n,i;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.openIndexDB();case 2:return n=e.sent,e.next=5,n.cursorGetData(Ve.buildings,t[r].name);case 5:return i=e.sent,e.abrupt("return",i);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"addBuildPrimitive",value:(r=T(V().mark((function e(t,r){var n,i,a,o,s,u,l,c,p,m,f,h=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=!(h.length>2&&void 0!==h[2])||h[2],i=t.buildingdatas,a=[],o=[],s=0;case 5:if(!(s<i.length)){e.next=19;break}if(u=i[s],l=u.positions,n){e.next=12;break}if(Xe.isPolygonIntersectPolygon(this.extentPolygon,l)){e.next=12;break}return e.abrupt("continue",16);case 12:c=u.height,p=new q({positions:l,height:c,baseHeight:u.baseHeight,wallTextureWidth:t.textureWidth}),o.push(l),a.push(new Cesium.GeometryInstance({geometry:p}));case 16:s++,e.next=5;break;case 19:if(0!=a.length){e.next=21;break}return e.abrupt("return");case 21:return e.next=23,Ye.getNewUniformMap(t.uniformMap,this.infoData.position);case 23:m=e.sent,(f=new R({meteData:{type:Ve.buildings,height:t.height,themeName:null,instancePositions:o,timestamp:Date.now()},useCache:n,instanceCount:a.length,cacheOption:r,allowPicking:this.allowPicking,geometryInstances:a,receiveShadows:this.receiveShadows,castShadows:this.castShadows,uniformMap:m,vertexShaderSource:this.vertexShaderSource,fragmentShaderSource:this.fragmentShaderSource})).infoData=this.infoData,this.viewer.scene.primitives.add(f);case 27:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"addBuildPrimitiveCache",value:(t=T(V().mark((function e(t,r,n,i){var a,o,s=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Ye.getNewUniformMap(t.uniformMap,this.infoData.position);case 4:a=e.sent,(o=new R({meteData:i,instanceCount:n,cacheOption:null,allowPicking:this.allowPicking,geometry:r,receiveShadows:this.receiveShadows,castShadows:this.castShadows,uniformMap:a,vertexShaderSource:this.vertexShaderSource,fragmentShaderSource:this.fragmentShaderSource})).infoData=this.infoData,o.show=!1,this.viewer.scene.primitives.add(o),o.readyPromise.then((function(){Xe.showhidePolygonBuildings2({positions:s.extentPolygon,isShow:!0,primitives:[o]}),o.show=!0}));case 10:case"end":return e.stop()}}),e,this)}))),function(e,r,n,i){return t.apply(this,arguments)})}]),e}();function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var et=void 0;const tt=function(){function e(t){E(this,e),this.imageryUrl=t.imageryUrl||"http://172.16.222.108:7000/nopng/{z}/{x}/{y}.png",this.pbfUrl=t.pbfUrl||"http://172.16.222.108:7000/building/level/x/y.pbf",this.baseOptions=t,this.tileLevel=t.tileLevel||13,this.extentPolygon=t.extentPolygon,this.tileLoadEventCallback=void 0,this.tileRemovedEventCallback=void 0,this.viewer=t.viewer||window.viewer,this._show=!0}return L(e,[{key:"show",get:function(){return this._show},set:function(e){this._show=e,et&&(et.show=e);for(var t=0;t<this.viewer.scene.primitives._primitives.length;t++){var r=this.viewer.scene.primitives._primitives[t];r.infoData&&r.infoData.type==Ve.buildings&&(r.show=e)}}},{key:"remove",value:function(){et&&this.viewer.imageryLayers.remove(et),et=void 0,this.tileLoadEventCallback&&this.tileLoadEventCallback(),this.tileRemovedEventCallback&&this.tileRemovedEventCallback()}},{key:"setExtent",value:function(e){this.extentPolygon=e,this.baseOptions.extentPolygon=e}},{key:"destroy",value:function(){return this.remove(),Cesium.destroyObject(this)}},{key:"add",value:function(){var e=this,t=Cesium.Rectangle.MAX_VALUE;this.extentPolygon&&(t=Cesium.Rectangle.fromCartesianArray(this.extentPolygon));var r=new ANOVGIS.ImageryLayerFactory.createXYZImageryLayer({url:this.imageryUrl,enablePickFeatures:!1,minLevel:this.tileLevel,maxLevel:this.tileLevel,rectangle:t});(et=this.viewer.imageryLayers.addImageryProvider(r)).alpha=0,this.tileLoadEventCallback=r.tileLoadEvent.addEventListener((function(t,n,i,a){e.viewer.cityThemeChanging||i==e.tileLevel&&a&&a.then((function(a){var o=new Cesium.Rectangle;r.tilingScheme.tileXYToRectangle(t,n,i,o),e.loadTileBuildings(t,n,i,o)}))})),this.tileRemovedEventCallback=et.tileRemoved.addEventListener((function(t){if(t.level==e.tileLevel&&!e.viewer.cityThemeChanging)for(var r="".concat(t.level,"_").concat(t.x,"_").concat(t.y),n=0;n<e.viewer.scene.primitives._primitives.length;n++){var i=e.viewer.scene.primitives._primitives[n];i.infoData&&i.infoData.type==Ve.buildings&&i.infoData.tile==r&&(console.log("隐藏建筑瓦片===============",r),e.viewer.scene.primitives._primitives.length<500?i.show=!1:e.viewer.scene.primitives.remove(i))}}))}},{key:"loadTileBuildings",value:function(e,t,r,n){var i=!1,a="".concat(r,"_").concat(e,"_").concat(t),o=Xe.rectangleToPolygonPositions(n);if(Xe.isPolygonIntersectPolygon(this.extentPolygon,o,!1)){for(var s=0;s<this.viewer.scene.primitives._primitives.length;s++){var u=this.viewer.scene.primitives._primitives[s];u.infoData&&u.infoData.type==Ve.buildings&&u.infoData.tile==a&&(console.log("显示建筑瓦片===============",a),u.show=!0,i=!0)}if(!i){var l=[{url:this.pbfUrl.replace("level",r).replace("x",e).replace("y",t),name:"".concat(r,"_").concat(e,"_").concat(t)}],c=Ze(Ze({},this.baseOptions),{},{buildingMaterials:ue.buildingMaterials,vertexShaderSource:ue.vs,fragmentShaderSource:ue.fs,datasArr:l,infoData:{type:Ve.buildings,position:n,tile:"".concat(r,"_").concat(e,"_").concat(t)}});new $e(c).add(0)}}else console.log("=============building tile not in polygon extent===================")}}]),e}();var rt=function(){function e(){E(this,e)}var t;return L(e,null,[{key:"deleteExpireDB",value:(t=T(V().mark((function e(){var t,r,n,i,a,o,s=arguments;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>0&&void 0!==s[0]?s[0]:3,n=F.getInstance("ANOV_City",1,[Ve.buildings,Ve.roads,Ve.waters,Ve.trees]),e.next=4,n.openDB();case 4:return e.next=6,n.getFirstData(Ve.buildings);case 6:if(i=e.sent,n.closeDB(),i){e.next=10;break}return e.abrupt("return");case 10:if(a=null===(t=i.meteData)||void 0===t?void 0:t.timestamp,o=Date.now()-24*r*60*60*1e3,a&&!(o>a)){e.next=16;break}return e.next=15,F.deleteDB("ANOV_City");case 15:console.log("缓存数据库ANOV_City已删除");case 16:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),e}(),nt=ANOVGIS.Transform;const it=function(){function e(t){E(this,e),this.syncMode=Cesium.defaultValue(t.syncMode,1),this.autoSyncMode=Cesium.defaultValue(t.autoSyncMode,!0),this.viewer=t.viewer,this.worldCoorOriginCesium=t.worldCoorOriginCesium,this.threeCamera=t.threeCamera,this.Vector3=t.Vector3,this.Matrix4=t.Matrix4,this.Group=t.Group,this.threeRenderer=t.threeRenderer,this.threeScene=t.threeScene,this.threeControls=t.threeControls,this.threeExtent=t.threeExtent||{minLon:-180,minLat:-90,maxLon:180,maxLat:90,maxHeight:1e7},this.threeContainer=t.threeContainer,this.cesiumContainer=t.cesiumContainer}return L(e,[{key:"setWorldCoorOriginCesium",value:function(e){this.worldCoorOriginCesium=e}},{key:"setThreeExtent",value:function(e){this.threeExtent=e}},{key:"init",value:function(){var e=this;this.viewer.scene.postUpdate.addEventListener((function(){1==e.syncMode&&e.updateCamera()})),this.autoSyncMode&&this.initMouseEvent()}},{key:"initMouseEvent",value:function(){if(this.autoSyncMode){1===this.syncMode?(this.threeContainer.style.pointerEvents="none",this.viewer.scene.screenSpaceCameraController.enableInputs=!0):(this.threeContainer.style.pointerEvents="auto",this.viewer.scene.screenSpaceCameraController.enableInputs=!1);var e=this;document.addEventListener("mousemove",(function(t){if(e.autoSyncMode&&e.threeCamera){var r=t.pageX,n=t.pageY,i=new Cesium.Cartesian2(r,n),a=nt.transformWindowToWGS84(i,window.viewer),o=e.viewer.scene.camera.positionCartographic.height;if(a.lng>e.threeExtent.minLon&&a.lng<e.threeExtent.maxLon&&a.lat>e.threeExtent.minLat&&a.lat<e.threeExtent.maxLat&&o<e.threeExtent.maxHeight){if(e.threeContainer.style.pointerEvents="auto",e.viewer.scene.screenSpaceCameraController.enableInputs=!1,2===e.syncMode)return;e.threeCamera&&(e.syncMode=2)}else{if(e.threeContainer.style.pointerEvents="none",e.viewer.scene.screenSpaceCameraController.enableInputs=!0,1===e.syncMode)return;e.threeCamera&&(e.syncMode=1)}}}))}}},{key:"resetOrigin",value:function(e){this.threeExtent=e.threeExtent,this.worldCoorOriginCesium=e.worldCoorOriginCesium}},{key:"getPointOnRay",value:function(e,t,r){return{x:e.x+t.x*r,y:e.y+t.y*r,z:e.z+t.z*r}}},{key:"localThreeToWorldPosCesium",value:function(e,t,r){var n=window.Cesium.Transforms.eastNorthUpToFixedFrame(this.worldCoorOriginCesium),i=new window.Cesium.Cartesian3(e,-r,t);return window.Cesium.Matrix4.multiplyByPoint(n,i,new window.Cesium.Cartesian3)}},{key:"worldCesiumTolocalThree",value:function(e){var t=window.Cesium.Transforms.eastNorthUpToFixedFrame(this.worldCoorOriginCesium),r=window.Cesium.Matrix4.inverseTransformation(t,new window.Cesium.Matrix4),n=window.Cesium.Matrix4.multiplyByPoint(r,e,new window.Cesium.Cartesian3);return new Cesium.Cartesian3(n.x,n.z,-n.y)}},{key:"getCesiumDirectionFromThree",value:function(e,t,r){var n=this.getPointOnRay(t,r,1),i=this.localThreeToWorldPosCesium(n.x,n.y,n.z),a=new Cesium.Cartesian3;return Cesium.Cartesian3.subtract(i,e,a),Cesium.Cartesian3.normalize(a,a),a}},{key:"getThreeDirectionFromCesium",value:function(e,t,r){var n=this.getPointOnRay(t,r,1),i=this.worldCesiumTolocalThree(n),a=new Cesium.Cartesian3;return Cesium.Cartesian3.subtract(i,e,a),Cesium.Cartesian3.normalize(a,a),a}},{key:"frustumFromThreeToCesium",value:function(){if(!this.threeCamera)return null;var e={},t=Cesium.Math.toRadians(this.threeCamera.fov),r=2*Math.atan(Math.tan(.5*t)*this.threeCamera.aspect);return this.threeCamera.aspect<=1&&(r=t),e.near=this.threeCamera.near,e.far=this.threeCamera.far,e.aspectRatio=this.threeCamera.aspect,e.fov=r,e}},{key:"frustumFromCesiumToThree",value:function(){var e=this.viewer.camera;if(!e)return null;var t={};return t.fov=window.Cesium.Math.toDegrees(e.frustum.fovy),t.near=e.frustum.near,t.far=e.frustum.far,t.aspect=e.frustum.aspectRatio,t}},{key:"syncCesiumCameraToThree",value:function(){this.threeRenderer.setPixelRatio(window.devicePixelRatio),this.threeControls.enabled=!1;var e=this.viewer.scene.camera,t=e.positionWC,r=e.directionWC,n=e.upWC,i=this.worldCesiumTolocalThree(t),a=this.getThreeDirectionFromCesium(i,t,r),o=this.getThreeDirectionFromCesium(i,t,n),s=this.frustumFromCesiumToThree();this.threeCamera.aspect=s.aspect,this.threeCamera.near=s.near,this.threeCamera.far=s.far,this.threeCamera.fov=s.fov,this.threeCamera.position.x=i.x,this.threeCamera.position.y=i.y,this.threeCamera.position.z=i.z,this.viewer.scene.camera.positionCartographic.height>5e4?(this.threeCamera.up.x=o.x,this.threeCamera.up.y=o.y,this.threeCamera.up.z=o.z):(this.threeCamera.up.x=0,this.threeCamera.up.y=1,this.threeCamera.up.z=0);var u=new this.Vector3;this.threeCamera.getWorldPosition(u);var l=this.getControsTarget(u,a);if(0==a.y&&(a.y=1),-u.y/a.y<0){var c=this.getPointOnRay(t,r,1);l=this.worldCesiumTolocalThree(c)}l&&this.threeControls.target.copy(l),this.threeControls.enabled=!0,this.threeCamera.aspect=this.threeContainer.clientWidth/this.threeContainer.clientHeight,this.threeCamera.updateProjectionMatrix(),this.threeRenderer.setSize(this.threeContainer.clientWidth,this.threeContainer.clientHeight),this.threeControls.update()}},{key:"syncThreeCameraToCesium",value:function(){window.cameraRigY||(window.cameraRigY=new this.Group,cameraRigY.add(this.threeCamera),this.threeScene.add(cameraRigY));var e=new this.Vector3,t=new this.Vector3;this.threeCamera.getWorldDirection(e),this.threeCamera.getWorldPosition(t);var r=(new this.Matrix4).makeRotationFromQuaternion(this.threeCamera.quaternion),n=new this.Vector3(0,1,0).clone().applyMatrix4(r),i=this.localThreeToWorldPosCesium(t.x,t.y,t.z),a=this.getCesiumDirectionFromThree(i,t,e),o=this.getCesiumDirectionFromThree(i,t,n),s=this.frustumFromThreeToCesium();this.viewer.scene.camera.frustum.aspectRatio=s.aspectRatio,this.viewer.scene.camera.frustum.near=s.near,this.viewer.scene.camera.frustum.far=s.far,this.viewer.scene.camera.frustum.fov=s.fov,this.viewer.scene.camera.setView({destination:i,orientation:{direction:a,up:o}}),this.viewer.nativeObjCesium.render()}},{key:"getControsTarget",value:function(e,t){0==t.y&&(t.y=1);var r=-e.y/t.y,n=(new this.Vector3).copy(t).multiplyScalar(r).add(e);return n.y=0,n}},{key:"calculateAnglesWithAxes",value:function(e){var t=new this.Vector3(e.x,e.y,e.z),r=new this.Vector3(1,0,0),n=new this.Vector3(0,1,0),i=new this.Vector3(0,0,1),a=t.dot(r)/1,o=t.dot(n)/1,s=t.dot(i)/1;return{thetaX:Math.acos(a),thetaY:Math.acos(o),thetaZ:Math.acos(s)}}},{key:"updateControls",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e||(e=new this.Vector3,this.threeCamera.getWorldDirection(e));var t=new this.Vector3;this.threeCamera.getWorldPosition(t);var r=this.getControsTarget(t,e);r&&this.threeControls.target.copy(r)}},{key:"updateCamera",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-88,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:90,r=Cesium.Math.toDegrees(this.viewer.camera.pitch);if(!(r>e&&r<t)){this.viewer.scene.screenSpaceCameraController.enableTilt=!1;var n=this.viewer.camera.position,i=this.viewer.camera.heading,a=this.viewer.camera.roll;r<e&&(r=e),r>t&&(r=t),r=Cesium.Math.toRadians(r),this.viewer.camera.setView({destination:n,orientation:{heading:i,pitch:r,roll:a}}),viewer.scene.screenSpaceCameraController.enableTilt=!0}}}]),e}();var at;const ot={setText:function(e){at&&(at.text=e)},showLoading:function(){window.ELEMENT?at=window.ELEMENT.Loading.service({lock:!1,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.8)",text:"数据加载中,请稍后。。。"}):console.error("没有引入ELEMENT UI")},hideLoading:function(){at&&at.close()}},st=function(){function e(){E(this,e)}return L(e,null,[{key:"getTimeSpan",value:function(e){var t=(new Date-e)/1e3;return e=new Date,t.toFixed(2)}},{key:"consoleTime",value:function(e,t){var r=this.getTimeSpan(e);return console.log("".concat(t,":").concat(r," 秒")),r}}]),e}();function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var pt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,e),this.viewer=t.viewer||window.viewer,this.lineWidth=t.lineWidth||10,this.uniforms=te.clone(t.uniforms),this.shaderSource=t.shaderSource||ke(),this.primitive=null,this.roadFeatures=null,this._show=!0}return L(e,[{key:"show",get:function(){return this._show},set:function(e){this._show=e;for(var t=0;t<this.viewer.scene.primitives._primitives.length;t++){var r=this.viewer.scene.primitives._primitives[t];r.infoData&&r.infoData.type==Ve.roads&&(r.show=e)}}},{key:"remove",value:function(){this.primitive&&this.viewer.scene.primitives.remove(this.primitive)}},{key:"destroy",value:function(){return this.remove(),Cesium.destroyObject(this)}},{key:"setShaderSource",value:function(e){this.primitive&&(this.shaderSource=e,this.primitive.appearance.material.shaderSource=e)}},{key:"setUniformMap",value:function(e){if(this.primitive){var t=ct(ct({},this.uniforms),te.treatSccNode(e));this.uniforms=t,this.primitive.appearance.material.uniforms=t}}},{key:"setWidth",value:function(e){this.lineWidth=e,this.remove(),this.primitive=null,this.add(this.roadFeatures)}},{key:"add",value:function(e){var t=this;if(e){var r=e;this.roadFeatures=e,this.uniforms.images&&delete this.uniforms.images;var n,i=new Cesium.Material({fabric:{uniforms:this.uniforms,source:this.shaderSource},translucent:function(e){return!0}}),a=[],o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ut(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ut(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(r);try{for(o.s();!(n=o.n()).done;){var s=n.value,u=Cesium.Cartesian3.fromDegreesArray(s.geometry.coordinates.flat()),l=new Cesium.GeometryInstance({geometry:new Cesium.GroundPolylineGeometry({positions:u,width:this.lineWidth,arcType:Cesium.ArcType.RHUMB})});a.push(l)}}catch(e){o.e(e)}finally{o.f()}Cesium.GroundPolylinePrimitive.initializeTerrainHeights().then((function(){t.primitive=t.viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:a,appearance:new Cesium.PolylineMaterialAppearance({material:i}),allowPicking:!1,releaseGeometryInstances:!0,vertexCacheOptimize:!0,compressVertices:!0,interleave:!0})),t.primitive.infoData={type:Ve.roads}}))}}}]),e}();function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ht={loadWMS:function(e,t){var r={url:t.url,layers:t.layers,parameters:t.parameters,selectedHighlight:t.highlight};t.extent&&(r.rectangle=Cesium.Rectangle.fromDegrees(t.extent.xmin,t.extent.ymin,t.extent.xmax,t.extent.ymax));var n=ANOVGIS.ImageryLayerFactory.createImageryLayer(ANOVGIS.ImageryType.WMS,r);t.popupOptions&&n.bindPopup(ft({viewer:e},t.popupOptions)),t.popupOptions&&n.addEventListener(ANOVGIS.MouseEventType.CLICK,(function(e){var r=t.popupOptions.infoData,i={title:"",fieldsMap:[]};r.title&&("field"==r.title.type?i.title=e.feature.data.properties[r.title.value]:"static"==r.title.type&&(i.title=r.title.value)),r.fieldsMap&&r.fieldsMap.forEach((function(t){var r={};r.nameC=t.nameC,"field"==t.type?r.value=e.feature.data.properties[t.value]:"static"==t.type&&(r.value=t.value),i.fieldsMap.push(r)})),n.popup.show(e.position,i),console.log(e)}));var i=e.imageryLayers.addImageryProvider(n);return e.flyTo(i),i},laodTileset:function(e,t){var r=this,n=new ANOVGIS.TilesetLayer;e.addLayer(n);var i=new ANOVGIS.Tileset({url:t.url,highlight:t.highlight,selectedHighlight:t.selectedHighlight}),a=new ANOVGIS.TilesetStyle(t.styleOptions);return i.setStyle(a),n.addGraphic(i),t.popupOptions&&n.bindPopup(ft({viewer:e},t.popupOptions)),t.popupOptions&&n.addEventListener(ANOVGIS.MouseEventType.CLICK,(function(e){var i=t.popupOptions.infoData,a=r.parseInfoData("3dtiles",e,i);n.popup.show(e.position,a),console.log(e)})),n.bindTooltip(ft({viewer:e},t.toolTipOptions)),n.addEventListener(ANOVGIS.MouseEventType.MOUSE_MOVE,(function(e){var i=t.toolTipOptions.infoData,a=r.parseInfoData("3dtiles",e,i);n.tooltip.show(e.position,a)})),n},getPropertyFunc:function(e,t){return"wms"===e?{type:"Array",value:t.feature.data.properties}:"3dtiles"===e?{type:"Function",value:t.feature.getProperty.bind(t.feature)}:void 0},parseInfoData:function(e,t,r){var n=this.getPropertyFunc(e,t),i={title:"",fieldsMap:[]};if(r.textContent){var a="";"field"==r.textContent.type?"Array"===n.type?a=n.value[r.textContent.value]:"Function"===n.type&&(a=n.value(r.textContent.value)):"static"==r.textContent.type&&(a=r.textContent.value),i=a}else r.title&&("field"==r.title.type?"Array"===n.type?i.title=n.value[r.title.value]:"Function"===n.type&&(i.title=n.value(r.title.value)):"static"==r.title.type&&(i.title=r.title.value)),r.fieldsMap&&r.fieldsMap.forEach((function(e){var t={};t.nameC=e.nameC,"field"==e.type?"Array"===n.type?t.value=n.value[e.value]:"Function"===n.type&&(t.value=n.value(e.value)):"static"==e.type&&(t.value=e.value),i.fieldsMap.push(t)}));return i},loadTerrain:function(e,t){e.terrainProvider=new Cesium.CesiumTerrainProvider(t)}};var dt=void 0;const vt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,e),this.url=t.url||"http://172.16.222.108/data/tree/UMD%20Tree%20height/{z}/{x}/{y}.png",this.viewer=t.viewer||window.viewer,this.tileLevel=t.tileLevel||13,this._show=!0,this.useCache=Cesium.defaultValue(t.useCache,!0),this.daysThreshold=Cesium.defaultValue(t.daysThreshold,3),this.tileLoadEventCallback=void 0,this.tileRemovedEventCallback=void 0,this.extentPolygon=t.extentPolygon}var t,r,n,i;return L(e,[{key:"show",get:function(){return this._show},set:function(e){this._show=e,dt&&(dt.show=e);for(var t=0;t<this.viewer.scene.primitives._primitives.length;t++){var r=this.viewer.scene.primitives._primitives[t];r.infoData&&r.infoData.type==Ve.trees&&(r.show=e)}}},{key:"remove",value:function(){dt&&this.viewer.imageryLayers.remove(dt),dt=void 0,this.tileLoadEventCallback&&this.tileLoadEventCallback(),this.tileRemovedEventCallback&&this.tileRemovedEventCallback()}},{key:"destroy",value:function(){return this.remove(),Cesium.destroyObject(this)}},{key:"setExtent",value:function(e){this.extentPolygon=e,this.remove()}},{key:"add",value:function(){var e=this,t=Cesium.Rectangle.MAX_VALUE;this.extentPolygon&&(t=Cesium.Rectangle.fromCartesianArray(this.extentPolygon));var r=new ANOVGIS.ImageryLayerFactory.createXYZImageryLayer({url:this.url,enablePickFeatures:!1,minLevel:this.tileLevel,maxLevel:this.tileLevel,rectangle:t});(dt=this.viewer.imageryLayers.addImageryProvider(r)).show=this.show,dt.alpha=0,this.tileLoadEventCallback=r.tileLoadEvent.addEventListener((function(t,r,n,i){n==e.tileLevel&&i&&i.then((function(i){e.loadTileTree_(i,t,r,n)}))})),this.tileRemovedEventCallback=dt.tileRemoved.addEventListener((function(t){if(t.level==e.tileLevel&&!e.viewer.cityThemeChanging)for(var r="".concat(t.level,"_").concat(t.x,"_").concat(t.y),n=0;n<e.viewer.scene.primitives._primitives.length;n++){var i=e.viewer.scene.primitives._primitives[n];if(i.infoData&&i.infoData.type==Ve.trees&&i.infoData.tile==r){console.log("隐藏树瓦片===============",r),e.viewer.scene.primitives._primitives.length<500?i.show=!1:e.viewer.scene.primitives.remove(i);break}}}))}},{key:"computeDegrees",value:function(e,t,r,n){var i=new Cesium.Rectangle;return e.tilingScheme.tileXYToRectangle(t,r,n,i),i}},{key:"loadTileTree_",value:(i=T(V().mark((function e(t,r,n,i){var a,o,s,u,l,c,p;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=!1,o="".concat(i,"_").concat(r,"_").concat(n),s=0;case 3:if(!(s<this.viewer.scene.primitives._primitives.length)){e.next=13;break}if(!(u=this.viewer.scene.primitives._primitives[s]).infoData||u.infoData.type!=Ve.trees||u.infoData.tile!=o){e.next=10;break}return console.log("显示树瓦片===============",o),u.show=!0,a=!0,e.abrupt("break",13);case 10:s++,e.next=3;break;case 13:if(!a){e.next=15;break}return e.abrupt("return");case 15:if(l=this.computeDegrees(dt.imageryProvider,r,n,i),!this.useCache){e.next=25;break}return e.next=19,this.getCacheData(o);case 19:if(!((c=e.sent).length>0)){e.next=25;break}return console.log("树"+o+"采用缓存了"),(p=this.viewer.scene.primitives.add(new Cesium.ModelInstanceCollection({url:"../modelData/gltf/treePlane3.glb",instances:c[0].value,allowPicking:!1,incrementallyLoadTextures:!1,shadows:Cesium.ShadowMode.DISABLED})))&&(p.infoData={type:Ve.trees,position:l,tile:"".concat(i,"_").concat(r,"_").concat(n)}),e.abrupt("return");case 25:console.log("树"+o+"没采用缓存"),this.loadTileTree(t,l,r,n,i);case 27:case"end":return e.stop()}}),e,this)}))),function(e,t,r,n){return i.apply(this,arguments)})},{key:"getCacheData",value:(n=T(V().mark((function e(t){var r,n;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.openIndexDB();case 2:return r=e.sent,e.next=5,r.cursorGetData(Ve.trees,t);case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"openIndexDB",value:(r=T(V().mark((function e(){var t;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=F.getInstance("ANOV_City",1,[Ve.buildings,Ve.roads,Ve.waters,Ve.trees]),e.next=3,t.openDB();case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"loadTileTree",value:function(e,t,r,n,i){if(!t)return null;var a="".concat(i,"_").concat(r,"_").concat(n),o=Cesium.Math.toDegrees(t.west),s=Cesium.Math.toDegrees(t.south),u=Cesium.Math.toDegrees(t.east),l=Cesium.Math.toDegrees(t.north),c=document.createElement("canvas"),p=c.getContext("2d");c.width=e.width,c.height=e.height,p.drawImage(e,0,0,e.width,e.height);for(var m=p.getImageData(0,0,e.width,e.height).data,f=[],h=[],d=0;d<e.height;d++)for(var v=0;v<e.width;v++){var g=m[4*(d*e.width+v)+1];g>50&&g<130&&h.push({x:v,y:d,brightness:g})}var y=h;h.length<100||(y=h.length<500?this.gridSimplification(h,1):(h.length,this.gridSimplification(h,2)));for(var _=0;_<y.length;_++)for(var b=y[_],w=b.x,x=b.y,C=b.brightness,M=o+w/e.width*(u-o),S=s+x/e.height*(l-s),k=Cesium.Cartesian3.fromDegrees(M,S),P=0;P<1;P++)f.push({position:k,brightness:C});var D=f.map((function(e){var t=e.position,r=e.brightness,n=Math.random(),i=15*n-7,a=15*Math.random()-7,o=.01*Math.random(),s=Cesium.Matrix3.fromRotationZ(n*Math.PI*2),u=r/255*.9+.1,l=Cesium.Matrix4.fromScale(new Cesium.Cartesian3(u*n*2,u*n*2,u*n*2)),c=Cesium.Transforms.eastNorthUpToFixedFrame(t),p=Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(i,a,o));return Cesium.Matrix4.multiply(c,p,c),Cesium.Matrix4.multiplyByMatrix3(c,s,c),Cesium.Matrix4.multiply(c,l,c),{modelMatrix:c}})),T=this.viewer.scene.primitives.add(new Cesium.ModelInstanceCollection({url:"../modelData/gltf/treePlane3.glb",instances:D,allowPicking:!1,incrementallyLoadTextures:!1,shadows:Cesium.ShadowMode.DISABLED})),E={type:Ve.trees,timestamp:Date.now()};this.useCache&&this.saveCache(D,E,a,D.length),T&&(T.infoData={type:Ve.trees,position:t,tile:a})}},{key:"gridSimplification",value:function(e,t){var r={};return e.forEach((function(e){var n=Math.floor(e.x/t)+","+Math.floor(e.y/t);r[n]||(r[n]=e)})),Object.values(r)}},{key:"saveCache",value:(t=T(V().mark((function e(t,r,n,i){var a,o,s,u,l,c;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={dbName:"ANOV_City",version:1,stores:[Ve.buildings,Ve.roads,Ve.waters,Ve.trees],storeName:Ve.trees},o=a.dbName,s=a.version,u=a.stores,l=a.storeName,c=F.getInstance(o,s,u),e.next=8,c.openDB();case 8:return e.next=10,c.addData(l,{id:n,instanceCount:i,meteData:r,value:t});case 10:case"end":return e.stop()}}),e)}))),function(e,r,n,i){return t.apply(this,arguments)})}]),e}();function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,e),this.url=te.getAbsoulteUrl(t.url),this.uniforms=t.uniforms,this.primitives=[],this.viewer=t.viewer||window.viewer,this._show=!0}return L(e,[{key:"setUniformMap",value:function(e){var t=_t(_t({},this.uniforms),te.treatSccNode(e));this.primitives.forEach((function(e){t.offset=Math.random(),e.appearance.material.uniforms=t}))}},{key:"show",get:function(){return this._show},set:function(e){this._show=e;for(var t=0;t<this.viewer.scene.primitives._primitives.length;t++){var r=this.viewer.scene.primitives._primitives[t];r.infoData&&r.infoData.type==Ve.waters&&(r.show=e)}}},{key:"remove",value:function(){var e=this;this.primitives.forEach((function(t){e.viewer.scene.primitives.remove(t)}))}},{key:"destroy",value:function(){return this.remove(),Cesium.destroyObject(this)}},{key:"add",value:function(){var e=this;fetch(this.url).then((function(e){return e.json()})).then((function(t){var r,n=new Cesium.Material({fabric:{uniforms:e.uniforms,source:"uniform sampler2D specularMap_6;\n uniform sampler2D reflectMap;\n uniform sampler2D normalMap_0;\n uniform vec4 baseWaterColor_4;\n uniform vec4 blendColor_5;\n uniform float frequency_1;\n uniform float animationSpeed_2;\n uniform float amplitude_3;\n uniform float specularIntensity_7;\n uniform float fadeFactor_8;\n uniform vec3 C_normal;\n uniform mat3 C_Matrix;\n uniform vec3 C_position;\n \n \n //varying vec3 v_positionEC;\n varying vec3 v_normal;\n // varying highp vec3 v_positionMC;\n varying vec3 v_position;\n\n // mat3 getRotationMatrix(vec3 from, vec3 to) {\n // vec3 v = cross(from, to);\n // float c = dot(from, to);\n // float k = 1.0 / (1.0 + c);\n // //Check if vectors are nearly parallel\n // if (c > 0.9999) {\n // return mat3(1.0); // Return identity matrix if vectors are nearly parallel\n // }\n // mat3 rotationMatrix;\n // rotationMatrix[0][0] = v.x * v.x * k + c;\n // rotationMatrix[0][1] = v.x * v.y * k - v.z;\n // rotationMatrix[0][2] = v.x * v.z * k + v.y;\n // rotationMatrix[1][0] = v.y * v.x * k + v.z;\n // rotationMatrix[1][1] = v.y * v.y * k + c;\n // rotationMatrix[1][2] = v.y * v.z * k - v.x;\n // rotationMatrix[2][0] = v.z * v.x * k - v.y;\n // rotationMatrix[2][1] = v.z * v.y * k + v.x;\n // rotationMatrix[2][2] = v.z * v.z * k + c;\n // return rotationMatrix;\n // }\n \n \n czm_material czm_getMaterial(czm_materialInput materialInput)\n {\n czm_material material = czm_getDefaultMaterial(materialInput);\n \n //mat3 rotationMatrix = getRotationMatrix(vec3(0.0, 0.0, 1.0),C_normal); \n \n vec3 newv_w_Position=v_position -C_position;\n //vec3 w_position = rotationMatrix * v_position;\n // vec3 w_position = C_Matrix * v_position;\n vec3 w_position = C_Matrix * newv_w_Position;\n \n float time = czm_frameNumber * animationSpeed_2;\n \n // fade is a function of the distance from the fragment and the frequency_1 of the waves\n float fade = max(1.0, (length(materialInput.positionToEyeEC) / 10000000000.0) * frequency_1 * fadeFactor_8);\n \n float specularMapValue = texture2D(specularMap_6, vec2(w_position.x,w_position.y)*0.001).r;\n // float specularMapValue = texture2D(specularMap_6, materialInput.st).r;\n \n // note: not using directional motion at this time, just set the angle to 0.0;\n vec4 noise = czm_getWaterNoise(normalMap_0,vec2(w_position.x,w_position.y)*0.001 * frequency_1, time, 0.0);\n // vec4 noise = czm_getWaterNoise(normalMap_0, materialInput.st * frequency_1, time, 0.0);\n vec3 normalTangentSpace = noise.xyz * vec3(1.0, 1.0, (1.0 / amplitude_3));\n \n // fade out the normal perturbation as we move further from the water surface\n normalTangentSpace.xy /= fade;\n \n // attempt to fade out the normal perturbation as we approach non water areas (low specular map value)\n normalTangentSpace = mix(vec3(0.0, 0.0, 50.0), normalTangentSpace, specularMapValue);\n \n normalTangentSpace = normalize(normalTangentSpace);\n \n // get ratios for alignment of the new normal vector with a vector perpendicular to the tangent plane\n float tsPerturbationRatio = clamp(dot(normalTangentSpace, vec3(0.0, 0.0, 1.0)), 0.0, 1.0);\n \n // fade out water effect as specular map value decreases\n material.alpha = mix(blendColor_5.a, baseWaterColor_4.a, specularMapValue) * specularMapValue;\n //material.alpha =0.1;\n // base color is a blend of the water and non-water color based on the value from the specular map\n // may need a uniform blend factor to better control this\n material.diffuse = mix(blendColor_5.rgb, baseWaterColor_4.rgb, specularMapValue);\n \n // diffuse highlights are based on how perturbed the normal is\n material.diffuse += (0.1 * tsPerturbationRatio);\n \n material.diffuse = texture2D(reflectMap, fract(gl_FragCoord.xy*0.0005)+noise.xy*0.1 ).xyz*baseWaterColor_4.rgb ;\n \n //material.diffuse = vec3(fract(vec2(w_position.x,w_position.y)*0.01),0.);\n \n material.normal = normalize(materialInput.tangentToEyeMatrix * normalTangentSpace);\n \n material.specular = specularIntensity_7;\n material.shininess = 4.0;\n \n return material;\n }\n"}}),i=[],a=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return gt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}(t.features);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(0!=o.geometry.coordinates.length&&"MultiPolygon"!=o.geometry.type){var s=Cesium.Cartesian3.fromDegreesArray(o.geometry.coordinates[0].flat()),u=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(s)})});i.push(u)}}}catch(e){a.e(e)}finally{a.f()}var l=new Cesium.MaterialAppearance({isTranslucent:!0,uniformMap:{},material:n,vertexShaderSource:"\n attribute vec3 position3DHigh;\n attribute vec3 position3DLow; \n attribute vec3 normal;\n attribute vec2 st;\n attribute float batchId;\n \n varying vec3 v_positionEC;\n varying vec3 v_position;\n varying vec3 v_normalEC;\n varying vec3 v_normal;\n varying vec2 v_st;\n varying highp vec3 v_positionMC;\n \n uniform vec3 C_position;\n\n \n void main()\n {\n vec4 p = czm_translateRelativeToEye(position3DHigh, position3DLow);\n v_positionMC = position3DHigh + position3DLow;\n \n vec4 test =czm_computePosition(); \n // v_position = test.xyz;\n // v_position = position3DHigh + position3DLow-vec3(-2174016.1406463957, 4382093.674449682, 4079141.9762255107);///相对位置 这个值扔到片元里计算错的不知为何 暂时只能写死放这里\n // v_position = position3DHigh + position3DLow-C_position;///上面功能好用了就是矫正当前相对位置\n v_position = position3DHigh + position3DLow;//zhf\n v_positionEC = (czm_modelViewRelativeToEye * p).xyz; // position in eye coordinates\n v_normalEC = czm_normal * normal; // normal in eye coordinates\n v_normal=normal;\n v_st = st;\n gl_Position = czm_modelViewProjectionRelativeToEye * p;\n }\n",fragmentShaderSource:" //varying vec3 v_positionMC;\n varying highp vec3 v_positionMC;\n varying vec3 v_positionEC;\n varying vec2 v_st;\n void main()\n {\n czm_materialInput materialInput;\n vec3 normalEC = normalize(czm_normal3D * czm_geodeticSurfaceNormal(v_positionMC, vec3(0.0), vec3(1.0)));\n #ifdef FACE_FORWARD\n normalEC = faceforward(normalEC, vec3(0.0, 0.0, 1.0), -normalEC);\n #endif\n materialInput.s = v_st.s;\n materialInput.st = v_st;\n materialInput.str = vec3(v_st, 0.0);\n materialInput.normalEC = normalEC;\n materialInput.tangentToEyeMatrix = czm_eastNorthUpToEyeCoordinates(v_positionMC, materialInput.normalEC);\n vec3 positionToEyeEC = -v_positionEC;\n materialInput.positionToEyeEC = positionToEyeEC;\n czm_material material = czm_getMaterial(materialInput);\n \n #ifdef FLAT\n gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n #else\n gl_FragColor = czm_phong(normalize(positionToEyeEC), material, czm_lightDirectionEC);\n gl_FragColor.a=0.6;\n #endif\n \n }\n"}),c=e.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:i,appearance:l,allowPicking:!1,releaseGeometryInstances:!0,vertexCacheOptimize:!1,compressVertices:!1,classificationType:Cesium.ClassificationType.TERRAIN}));e.primitives.push(c)})).catch((function(e){return console.log("error",e)}))}}]),e}();function wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ct=function(){function e(t){E(this,e),this.options=t,this.url=t.url}var t,r,n,i;return L(e,[{key:"loadScene",value:(i=T(V().mark((function e(t){var r,n,i,a=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.urlLoad(this.url);case 2:if(r=e.sent){e.next=5;break}return e.abrupt("return");case 5:return n=r.scene,i=new ANOVGIS.Viewer(n.container,xt({},n)),t.viewer=i,this.themeName=this.options.themeName||r.themes.curTheme,this.loadTerrain(t,r),Ye.setTheme({name:this.themeName,earth:t,piplineType:ne}),i.addEventListener(ANOVGIS.ViewerEventType.FLY_COMPLETE,(function(){a.loadData(t,r)})),e.abrupt("return",i);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"loadTerrain",value:(n=T(V().mark((function e(t,r){var n,i,a,o,s;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=t.viewer,i=te.treatSccNode(r),this.themeName=this.options.themeName||i.themes.curTheme,a=i.layers,o=0;o<a.length;o++)(s=a[o]).type==Ve.terrainLayer_xyz&&(n.terrainProvider=new Cesium.CesiumTerrainProvider(s.renderOptions));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"loadData",value:(r=T(V().mark((function e(t,r){var n,i,a,o,s,u,l=this;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.viewer,i=r.scene.extentPolygon,a=te.treatSccNode(r),o=a.layers,this.layers=[],s=V().mark((function e(){var r,a,s,c,p,m,f,h,d,v,g,y,_,b,w,x;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=o[u]).type==Ve.wms?(a=ht.loadWMS(n,r),l.layers.push(a)):r.type==Ve.tileset?(s=ht.laodTileset(n,r),l.layers.push(s)):r.type==Ve.tiles_buildings?((c=new tt(xt(xt(xt({viewer:n},r.requestOptions),r.renderOptions),{},{extentPolygon:i}))).add(),t.buildingPipline=c,Ye.setTheme({name:l.themeName,earth:t,piplineType:ie})):r.type==Ve.pbfsfile_buildings?new $e(xt(xt(xt({viewer:n},r.requestOptions),r.renderOptions),{},{extentPolygon:i})).add(0):r.type==Ve.roads?(p=[],m=te.getGisRequestUrl(xt({regionPolygon:i},r.requestOptions)),te.getFile(m,(function(e){if(e&&e.features){var i=e.features;console.log("道路条数:",i.length),te.divideArrayIntoTen(i,r.renderOptions.divide||4).forEach((function(e){for(var i=Math.random(),a=xt({viewer:n},r.renderOptions),o=0;o<a.uniforms.images.length;o++){var s=a.uniforms.images[o];if(i<s.offset){a.uniforms.image=s.image,a.lineWidth=s.lineWidth,a.uniforms.offset=i;break}}var u=new pt(a);u.add(e),p.push(u),t.roadPipline=p}))}}))):r.type==Ve.trees?((f=new vt(xt(xt(xt({viewer:n},r.requestOptions),r.renderOptions),{},{extentPolygon:i}))).add(),t.treePipline=f):r.type==Ve.waters&&(h=ANOVGIS.center(i),d=ANOVGIS.Transform.transformWGS84ToCartesian(h),v=K(d),g=v.BeijgNormal1,y=v.BeijingPosition1,_=v.rotationMatrixArray1,b=xt(xt({},r.renderOptions.uniforms),{},{C_position:y,C_normal:g,C_Matrix:_}),w=xt(xt({},r.renderOptions),{},{uniforms:b}),(x=new bt(xt(xt({viewer:n},r.requestOptions),w))).add(),t.waterPipline=x);case 2:case"end":return e.stop()}}),e)})),u=0;case 7:if(!(u<o.length)){e.next=12;break}return e.delegateYield(s(),"t0",9);case 9:u++,e.next=7;break;case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"urlLoad",value:(t=T(V().mark((function e(t){var r,n;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&!(t.length<6)&&".json"==t.slice(-5)){e.next=3;break}return console.error("只能读取场景json文件,请重新选择"),e.abrupt("return");case 3:return e.prev=3,e.next=6,fetch(t);case 6:return r=e.sent,e.next=9,r.json();case 9:if(!(n=e.sent)){e.next=15;break}return console.log("场景载入成功!"),e.abrupt("return",n);case 15:console.error("不满足场景json格式");case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(3),console.error("读取场景json文件失败!");case 21:case"end":return e.stop()}}),e,null,[[3,18]])}))),function(e){return t.apply(this,arguments)})}]),e}(),Mt=(__webpack_require__(898),function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};E(this,e),this.options=t,this.themeName=ANOVGIS.defaultValue(t.themeName,"")}var t;return L(e,[{key:"load",value:(t=T(V().mark((function e(){var t,r;return V().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new Ct(this.options),e.next=3,t.loadScene(this);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}())})(),__webpack_exports__})()));
|