@rtzh/engine 0.0.11 → 0.0.13

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.
Files changed (518) hide show
  1. package/Build/ThirdParty/Workers/zip-web-worker.js +656 -518
  2. package/Build/Workers/{chunk-7QPQGSS3.js → chunk-2J26NSQJ.js} +5 -5
  3. package/Build/Workers/{chunk-23CHWHW6.js → chunk-2QUYHF2A.js} +4 -4
  4. package/Build/Workers/{chunk-F7IITURY.js → chunk-2ZWJOYYZ.js} +3 -3
  5. package/Build/Workers/{chunk-DLRIAMQF.js → chunk-3ENHMKKX.js} +2 -2
  6. package/Build/Workers/{chunk-DHWZGIOA.js → chunk-3J7LZYZG.js} +5 -5
  7. package/Build/Workers/{chunk-F4Q3VOCC.js → chunk-3KDCIRQI.js} +7 -7
  8. package/Build/Workers/{chunk-IVDXHQYL.js → chunk-3M6XQXJL.js} +5 -5
  9. package/Build/Workers/{chunk-K6PDZWHZ.js → chunk-3P5AO3U5.js} +5 -5
  10. package/Build/Workers/{chunk-3L7XBXFS.js → chunk-47CWFJX6.js} +5 -5
  11. package/Build/Workers/{chunk-FUFHIXPT.js → chunk-4DH5OOWE.js} +4 -4
  12. package/Build/Workers/{chunk-GDHDJK32.js → chunk-4G6JR2MZ.js} +10 -10
  13. package/Build/Workers/{chunk-EDFDPOY6.js → chunk-4VAD4BJM.js} +1 -1
  14. package/Build/Workers/{chunk-5WKGRIN6.js → chunk-4VMTI2WC.js} +6 -6
  15. package/Build/Workers/{chunk-5D3ECYS3.js → chunk-55JFCPW4.js} +4 -4
  16. package/Build/Workers/{chunk-3CD4WIF4.js → chunk-5CVGPIDD.js} +2 -2
  17. package/Build/Workers/{chunk-IXM65GBF.js → chunk-5DTY5JIA.js} +4 -4
  18. package/Build/Workers/{chunk-CTARL7CY.js → chunk-623LOZW5.js} +13 -13
  19. package/Build/Workers/{chunk-FYW5UQ24.js → chunk-6JO3MGIQ.js} +12 -12
  20. package/Build/Workers/{chunk-HAR6Y2HP.js → chunk-6SYRFK5R.js} +2 -2
  21. package/Build/Workers/{chunk-ATC2WXI4.js → chunk-6TITDWW4.js} +17 -17
  22. package/Build/Workers/{chunk-MJVNNURF.js → chunk-6WNAMM2J.js} +12 -12
  23. package/Build/Workers/{chunk-7EU3DIKZ.js → chunk-6ZPTOV5S.js} +18 -18
  24. package/Build/Workers/{chunk-QDNIPHD7.js → chunk-74FGX7I7.js} +12 -12
  25. package/Build/Workers/{chunk-KMZXZUA7.js → chunk-7DG7QQQ6.js} +5 -5
  26. package/Build/Workers/{chunk-4BJHO56J.js → chunk-7DUCNF2V.js} +6 -6
  27. package/Build/Workers/{chunk-I3VVEQQ6.js → chunk-7IJ6YJDR.js} +9 -9
  28. package/Build/Workers/{chunk-LSGHTNF5.js → chunk-A3KVKXRR.js} +13 -13
  29. package/Build/Workers/{chunk-6HB2DMC2.js → chunk-A3OQ66NS.js} +16 -16
  30. package/Build/Workers/{chunk-APOATHFZ.js → chunk-A44RSIOC.js} +4 -4
  31. package/Build/Workers/{chunk-5SVTAJRH.js → chunk-ADOJA3C4.js} +12 -12
  32. package/Build/Workers/{chunk-CGAHG2LR.js → chunk-ALHM5LNB.js} +2 -2
  33. package/Build/Workers/{chunk-DKJMD2HX.js → chunk-AM7WOPMS.js} +6 -6
  34. package/Build/Workers/{chunk-3ZDA3MBK.js → chunk-ASKKSAO2.js} +6 -6
  35. package/Build/Workers/{chunk-5UKR42KW.js → chunk-AUOSJ7RD.js} +14 -14
  36. package/Build/Workers/{chunk-6RUDXAFC.js → chunk-AUWAGN3U.js} +16 -16
  37. package/Build/Workers/{chunk-AEURJQ3B.js → chunk-B3SSRLUO.js} +2 -2
  38. package/Build/Workers/{chunk-ET7LWDHA.js → chunk-B7PKU4HH.js} +2 -2
  39. package/Build/Workers/{chunk-GPWELPVQ.js → chunk-B7SQOHFY.js} +7 -7
  40. package/Build/Workers/{chunk-4SZJ3KRD.js → chunk-BGIF6VMP.js} +3 -3
  41. package/Build/Workers/{chunk-72YPCD72.js → chunk-BHYR5M4Y.js} +17 -17
  42. package/Build/Workers/{chunk-243UEBJF.js → chunk-BIPYGVES.js} +10 -10
  43. package/Build/Workers/{chunk-4GPHI5UY.js → chunk-BLMLQN3N.js} +10 -10
  44. package/Build/Workers/{chunk-KGQGZ7PF.js → chunk-BLPBGSIN.js} +12 -12
  45. package/Build/Workers/{chunk-6BIU5AL4.js → chunk-BU5W4J4F.js} +10 -10
  46. package/Build/Workers/{chunk-2LMIHR6B.js → chunk-BVMMZTO2.js} +2 -2
  47. package/Build/Workers/{chunk-3SVEN5QG.js → chunk-C3DT73MC.js} +10 -10
  48. package/Build/Workers/{chunk-DVTKM7FF.js → chunk-CD2WSWPY.js} +4 -4
  49. package/Build/Workers/{chunk-HFCJLXTG.js → chunk-CHAPQYGD.js} +1 -1
  50. package/Build/Workers/{chunk-2UNHFFAZ.js → chunk-CXC4JSSY.js} +5 -5
  51. package/Build/Workers/{chunk-6MYDYE24.js → chunk-DB2NML4I.js} +1 -1
  52. package/Build/Workers/{chunk-32ZGDYJY.js → chunk-DKP3PVXJ.js} +18 -18
  53. package/Build/Workers/{chunk-CV5JLCHF.js → chunk-DLNCIAY5.js} +13 -13
  54. package/Build/Workers/{chunk-FD62YGTB.js → chunk-DMQ2K2CH.js} +7 -7
  55. package/Build/Workers/{chunk-J766O3PA.js → chunk-DN54YAFV.js} +4 -4
  56. package/Build/Workers/{chunk-7BQLJI3P.js → chunk-DQLCJMOH.js} +10 -10
  57. package/Build/Workers/{chunk-565HBO3F.js → chunk-DU24KQOE.js} +6 -6
  58. package/Build/Workers/{chunk-7AS3X42P.js → chunk-E3YEHNIJ.js} +10 -10
  59. package/Build/Workers/{chunk-45SKJP37.js → chunk-EAXGQLHV.js} +4 -4
  60. package/Build/Workers/{chunk-4NAHNN5G.js → chunk-ECYQUWGD.js} +10 -10
  61. package/Build/Workers/{chunk-FARHIBOA.js → chunk-EPAJ4UIR.js} +1 -1
  62. package/Build/Workers/{chunk-54AFUJNV.js → chunk-EUE3UD5F.js} +11 -11
  63. package/Build/Workers/{chunk-DAYNPAVN.js → chunk-EXMUTZB4.js} +2 -2
  64. package/Build/Workers/{chunk-CQB3KRGK.js → chunk-F2MK22SO.js} +7 -7
  65. package/Build/Workers/{chunk-IYAZCFAC.js → chunk-F4XSN4LN.js} +6 -6
  66. package/Build/Workers/{chunk-54LZ6OUD.js → chunk-F5SRLVVZ.js} +17 -17
  67. package/Build/Workers/{chunk-LGMONS4O.js → chunk-FAVFRMK5.js} +7 -7
  68. package/Build/Workers/{chunk-EWDHM5NC.js → chunk-FBSLGF4L.js} +1 -1
  69. package/Build/Workers/{chunk-IY53MZW2.js → chunk-FKKXVIQS.js} +2 -2
  70. package/Build/Workers/{chunk-FRUZKVBP.js → chunk-FNX2KJDD.js} +6 -6
  71. package/Build/Workers/{chunk-J2S3WMUZ.js → chunk-FPEAW6NQ.js} +6 -6
  72. package/Build/Workers/{chunk-ADQVXDEJ.js → chunk-FQBOVVHM.js} +16 -16
  73. package/Build/Workers/{chunk-CQ5PWUMS.js → chunk-GAZENUEZ.js} +1 -1
  74. package/Build/Workers/{chunk-7BOVULMD.js → chunk-GBB5VIA3.js} +2 -2
  75. package/Build/Workers/{chunk-7R74V5Z3.js → chunk-HTMJEEON.js} +8 -8
  76. package/Build/Workers/{chunk-B3FJJGCH.js → chunk-HTTTEW64.js} +4 -4
  77. package/Build/Workers/{chunk-I5JHYEIE.js → chunk-HZ4N44YJ.js} +8 -8
  78. package/Build/Workers/{chunk-IEEHNZ36.js → chunk-HZQONEX2.js} +8 -8
  79. package/Build/Workers/{chunk-5W4ISZGQ.js → chunk-I4CJV4A3.js} +14 -14
  80. package/Build/Workers/{chunk-OBQVOEPZ.js → chunk-IB22JEKK.js} +5 -5
  81. package/Build/Workers/{chunk-F6JVBOM5.js → chunk-IG64RWHT.js} +11 -11
  82. package/Build/Workers/{chunk-6AUSOZOL.js → chunk-IK5A56IF.js} +7 -7
  83. package/Build/Workers/{chunk-JUJONRWD.js → chunk-ILNFTW5Z.js} +11 -11
  84. package/Build/Workers/{chunk-7X6CLAD2.js → chunk-IMC7L6CL.js} +9 -9
  85. package/Build/Workers/{chunk-JRPAFYGJ.js → chunk-IPBVNANG.js} +17 -17
  86. package/Build/Workers/{chunk-6J63N735.js → chunk-IUIXI2XJ.js} +6 -6
  87. package/Build/Workers/{chunk-2ZXYLPPT.js → chunk-J3WRL2GC.js} +2 -2
  88. package/Build/Workers/{chunk-HKSICPYV.js → chunk-J6DW5QIM.js} +1 -1
  89. package/Build/Workers/{chunk-2ZR6KBRW.js → chunk-JCJRAI2M.js} +8 -8
  90. package/Build/Workers/{chunk-E7SFSMUX.js → chunk-JEFN4ZPU.js} +2 -2
  91. package/Build/Workers/{chunk-AMJRLIO3.js → chunk-JF6HRK66.js} +11 -11
  92. package/Build/Workers/{chunk-7KOMCIWI.js → chunk-JFOADEL2.js} +8 -8
  93. package/Build/Workers/{chunk-56MKFDJH.js → chunk-JNSU4PGT.js} +12 -12
  94. package/Build/Workers/{chunk-6ZF4QOFM.js → chunk-JPORXJB2.js} +6 -6
  95. package/Build/Workers/{chunk-6YSUD2OH.js → chunk-JTH56QYP.js} +7 -7
  96. package/Build/Workers/{chunk-G7PGTG3P.js → chunk-K5QIQSHR.js} +13 -13
  97. package/Build/Workers/{chunk-H33FCT5U.js → chunk-KN3RXSGH.js} +9 -9
  98. package/Build/Workers/{chunk-4SC4KVID.js → chunk-KTUWGLXR.js} +10 -10
  99. package/Build/Workers/{chunk-E3NHG3TR.js → chunk-KWI3TOQ3.js} +5 -5
  100. package/Build/Workers/{chunk-553BNJPP.js → chunk-L63MA7DS.js} +8 -8
  101. package/Build/Workers/{chunk-CXDJ7YNS.js → chunk-LBVC3PWG.js} +4 -4
  102. package/Build/Workers/{chunk-32GOIUYC.js → chunk-LKCPP73L.js} +5 -5
  103. package/Build/Workers/{chunk-6YT2LZ3Z.js → chunk-LKUMU7VD.js} +4 -4
  104. package/Build/Workers/{chunk-DPTYP7J3.js → chunk-LUA5G72O.js} +1 -1
  105. package/Build/Workers/{chunk-3NSMZ3XW.js → chunk-MBKDVX63.js} +17 -17
  106. package/Build/Workers/{chunk-GYIGOBV2.js → chunk-MSYP7LPX.js} +9 -9
  107. package/Build/Workers/{chunk-EJVGOIOW.js → chunk-MZWPVY6R.js} +7 -7
  108. package/Build/Workers/{chunk-7RAUHLDW.js → chunk-N557LIW2.js} +3 -3
  109. package/Build/Workers/{chunk-BQRZMSMM.js → chunk-NGTONEWG.js} +4 -4
  110. package/Build/Workers/{chunk-6F4HKBHD.js → chunk-NLAR3AKL.js} +6 -6
  111. package/Build/Workers/{chunk-4IXXMXPJ.js → chunk-ODIGZZ3R.js} +10 -10
  112. package/Build/Workers/{chunk-BIJHMMCD.js → chunk-OF3WIS5R.js} +4 -4
  113. package/Build/Workers/{chunk-EFHDO3L2.js → chunk-OHWONB5E.js} +4 -4
  114. package/Build/Workers/{chunk-EE4T7VKT.js → chunk-OTYYR4HA.js} +12 -12
  115. package/Build/Workers/{chunk-GCZNJHST.js → chunk-OVJADFWR.js} +5 -5
  116. package/Build/Workers/{chunk-MPHEIDPB.js → chunk-OWR6KGDV.js} +1 -1
  117. package/Build/Workers/{chunk-FNI64UKI.js → chunk-PEZ2F4AC.js} +5 -5
  118. package/Build/Workers/{chunk-5T4DXPEL.js → chunk-PJEU2YDM.js} +8 -8
  119. package/Build/Workers/{chunk-4GZLJPDW.js → chunk-PNJB4ARY.js} +8 -8
  120. package/Build/Workers/{chunk-2CZLDPAQ.js → chunk-PSGQHI7V.js} +2 -2
  121. package/Build/Workers/{chunk-37WPNI52.js → chunk-PTBF7YWH.js} +1 -1
  122. package/Build/Workers/{chunk-HHUKBKWS.js → chunk-Q2GNXOAO.js} +11 -11
  123. package/Build/Workers/{chunk-2Y2KA6PM.js → chunk-QCRUW3OJ.js} +13 -13
  124. package/Build/Workers/{chunk-4CQDMEZY.js → chunk-QG2AN7NK.js} +6 -6
  125. package/Build/Workers/{chunk-D3FNWB3Q.js → chunk-QICSE57I.js} +4 -4
  126. package/Build/Workers/{chunk-2VN5W6HA.js → chunk-QM26UZ4G.js} +5 -5
  127. package/Build/Workers/{chunk-4C4UR2S6.js → chunk-QMUEVSBY.js} +10 -10
  128. package/Build/Workers/{chunk-IRG63TBY.js → chunk-QNTU5YFH.js} +1 -1
  129. package/Build/Workers/{chunk-FHM3HFYM.js → chunk-RGAJSVVU.js} +10 -10
  130. package/Build/Workers/{chunk-6KA3AJM6.js → chunk-RJJMDQTR.js} +6 -6
  131. package/Build/Workers/{chunk-HBL3QZ2L.js → chunk-RLMDD7LI.js} +6 -6
  132. package/Build/Workers/{chunk-5L3PEFKO.js → chunk-RMYM65KX.js} +1 -1
  133. package/Build/Workers/{chunk-5VWFNSLF.js → chunk-RWZLJD75.js} +2 -2
  134. package/Build/Workers/{chunk-3JPA6GA3.js → chunk-S3QVNBQ2.js} +12 -12
  135. package/Build/Workers/{chunk-4UBPBH32.js → chunk-SCDH4DI7.js} +5 -5
  136. package/Build/Workers/{chunk-HC6DDPFU.js → chunk-SKWZGTC6.js} +7 -7
  137. package/Build/Workers/{chunk-GZMTBQM2.js → chunk-SL6RUOEJ.js} +4 -4
  138. package/Build/Workers/{chunk-763Q2YKY.js → chunk-SUTV4NUG.js} +14 -14
  139. package/Build/Workers/{chunk-J2CUNLQP.js → chunk-T3CBEYZZ.js} +9 -9
  140. package/Build/Workers/{chunk-4FEDW3WT.js → chunk-T6IEXU63.js} +8 -8
  141. package/Build/Workers/{chunk-FYZVCB32.js → chunk-TBIPO5CH.js} +1 -1
  142. package/Build/Workers/{chunk-74HENCNJ.js → chunk-TDP5NGTP.js} +6 -6
  143. package/Build/Workers/{chunk-KWFCDTXS.js → chunk-TDQUDFAH.js} +9 -9
  144. package/Build/Workers/{chunk-FCSN7XOU.js → chunk-TEAYSUTK.js} +1 -1
  145. package/Build/Workers/{chunk-O5QH7XD5.js → chunk-TSB4I6D6.js} +1 -1
  146. package/Build/Workers/{chunk-H2MM7FMU.js → chunk-TVCOYHIQ.js} +17 -17
  147. package/Build/Workers/{chunk-5DPCF65K.js → chunk-TVVFCSTW.js} +5 -5
  148. package/Build/Workers/{chunk-27JI7F7B.js → chunk-UCLPK6WA.js} +2 -2
  149. package/Build/Workers/{chunk-JM4TFRYQ.js → chunk-ULWGQGIU.js} +2 -2
  150. package/Build/Workers/{chunk-42I3QSKJ.js → chunk-UR5UUI2S.js} +1 -1
  151. package/Build/Workers/{chunk-HEKLTOOR.js → chunk-UTAFOZR6.js} +4 -4
  152. package/Build/Workers/{chunk-6TWMNB7Q.js → chunk-V4BLFYXZ.js} +6 -6
  153. package/Build/Workers/{chunk-6GNLKYQO.js → chunk-VH4ZDU2H.js} +6 -6
  154. package/Build/Workers/{chunk-3PWX65TL.js → chunk-VH6ZXWXV.js} +14 -14
  155. package/Build/Workers/{chunk-ASGXCLGL.js → chunk-VU5DFAMV.js} +4 -4
  156. package/Build/Workers/{chunk-MEFWVMG6.js → chunk-WAJ236EA.js} +11 -11
  157. package/Build/Workers/{chunk-AFZVC5JN.js → chunk-WDTR5ZPN.js} +12 -12
  158. package/Build/Workers/{chunk-3ZJ6X3BW.js → chunk-WJ74Z47X.js} +5 -5
  159. package/Build/Workers/{chunk-ET7K6FSD.js → chunk-WKYBYW6H.js} +14 -14
  160. package/Build/Workers/{chunk-54SSO7NS.js → chunk-WMSJG24O.js} +5 -5
  161. package/Build/Workers/{chunk-G6PDJHNG.js → chunk-WTKUVRNG.js} +7 -7
  162. package/Build/Workers/{chunk-3YO7HM5H.js → chunk-X7RJMQRF.js} +7 -7
  163. package/Build/Workers/{chunk-5UHIRI2A.js → chunk-XH535OLG.js} +2 -2
  164. package/Build/Workers/{chunk-MHEKNHOF.js → chunk-XMN6BU5T.js} +13 -13
  165. package/Build/Workers/{chunk-LVU4AZC6.js → chunk-XOKZRQNH.js} +7 -7
  166. package/Build/Workers/{chunk-73EGVDOC.js → chunk-Y6KZOXMR.js} +14 -14
  167. package/Build/Workers/{chunk-53AFSDGM.js → chunk-YF767F7T.js} +1 -1
  168. package/Build/Workers/{chunk-72Q33KL6.js → chunk-YGPS3DPM.js} +1 -1
  169. package/Build/Workers/{chunk-BCYABDWF.js → chunk-YLNURUBI.js} +18 -18
  170. package/Build/Workers/{chunk-5MCUZL44.js → chunk-YMGBVMJH.js} +6 -6
  171. package/Build/Workers/{chunk-ENIF6OQ5.js → chunk-ZESIYF5P.js} +5 -5
  172. package/Build/Workers/{chunk-BHTWF7UG.js → chunk-ZSDJVMQL.js} +2 -2
  173. package/Build/Workers/combineGeometry.js +24 -24
  174. package/Build/Workers/createBoxGeometry.js +18 -18
  175. package/Build/Workers/createBoxOutlineGeometry.js +16 -16
  176. package/Build/Workers/createCircleGeometry.js +26 -26
  177. package/Build/Workers/createCircleOutlineGeometry.js +19 -19
  178. package/Build/Workers/createCoplanarPolygonGeometry.js +33 -33
  179. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
  180. package/Build/Workers/createCorridorGeometry.js +29 -29
  181. package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
  182. package/Build/Workers/createCylinderGeometry.js +20 -20
  183. package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
  184. package/Build/Workers/createEllipseGeometry.js +26 -26
  185. package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
  186. package/Build/Workers/createEllipsoidGeometry.js +19 -19
  187. package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
  188. package/Build/Workers/createFrustumGeometry.js +18 -18
  189. package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
  190. package/Build/Workers/createGeometry.js +24 -24
  191. package/Build/Workers/createGroundPolylineGeometry.js +22 -22
  192. package/Build/Workers/createPlaneGeometry.js +16 -16
  193. package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
  194. package/Build/Workers/createPolygonGeometry.js +32 -32
  195. package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
  196. package/Build/Workers/createPolylineGeometry.js +25 -25
  197. package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
  198. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
  199. package/Build/Workers/createRectangleGeometry.js +27 -27
  200. package/Build/Workers/createRectangleOutlineGeometry.js +20 -20
  201. package/Build/Workers/createSimplePolylineGeometry.js +23 -23
  202. package/Build/Workers/createSphereGeometry.js +19 -19
  203. package/Build/Workers/createSphereOutlineGeometry.js +18 -18
  204. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  205. package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
  206. package/Build/Workers/createVectorTileGeometries.js +24 -24
  207. package/Build/Workers/createVectorTilePoints.js +13 -13
  208. package/Build/Workers/createVectorTilePolygons.js +22 -22
  209. package/Build/Workers/createVectorTilePolylines.js +14 -14
  210. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
  211. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
  212. package/Build/Workers/createVerticesFromHeightmap.js +22 -22
  213. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
  214. package/Build/Workers/createWallGeometry.js +24 -24
  215. package/Build/Workers/createWallOutlineGeometry.js +23 -23
  216. package/Build/Workers/decodeDraco.js +10 -10
  217. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
  218. package/Build/Workers/decodeI3S.js +10 -10
  219. package/Build/Workers/gaussianSplatSorter.js +4 -4
  220. package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
  221. package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
  222. package/Build/Workers/transcodeKTX2.js +6 -6
  223. package/Build/Workers/transferTypedArrayTest.js +1 -1
  224. package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
  225. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
  226. package/README.md +69 -69
  227. package/Source/Scene/Model/CPUStylingPipelineStage.js +4 -1
  228. package/Source/Scene/Model/CustomShader.js +26 -4
  229. package/Source/Scene/Model/CustomShaderPipelineStage.js +20 -5
  230. package/Source/Scene/Model/CustomShaderTranslucencyMode.js +8 -0
  231. package/Source/Scene/Model/MaterialPipelineStage.js +919 -919
  232. package/Source/Scene/Model/ModelDrawCommand.js +58 -3
  233. package/Source/Shaders/Model/CPUStylingStageFS.glsl +3 -0
  234. package/Source/Shaders/Model/CPUStylingStageFS.js +3 -0
  235. package/Source/Shaders/Model/CPUStylingStageVS.glsl +3 -0
  236. package/Source/Shaders/Model/CPUStylingStageVS.js +3 -0
  237. package/Source/Shaders/Model/ModelFS.glsl +15 -0
  238. package/Source/Shaders/Model/ModelFS.js +15 -0
  239. package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
  240. package/index.d.ts +15 -1
  241. package/index.js +27 -27
  242. package/package.json +1 -1
  243. package/Build/Workers/chunk-2B7VLWK3.js +0 -58
  244. package/Build/Workers/chunk-2OWEFNS4.js +0 -97
  245. package/Build/Workers/chunk-2YAONTGQ.js +0 -476
  246. package/Build/Workers/chunk-324L25HV.js +0 -352
  247. package/Build/Workers/chunk-3EZBCDBK.js +0 -439
  248. package/Build/Workers/chunk-3QLIXW6V.js +0 -778
  249. package/Build/Workers/chunk-3WRJXCJS.js +0 -497
  250. package/Build/Workers/chunk-3WT5VKYM.js +0 -101
  251. package/Build/Workers/chunk-4DIL24GG.js +0 -1460
  252. package/Build/Workers/chunk-4DQ3ODGO.js +0 -629
  253. package/Build/Workers/chunk-52UUGJQ6.js +0 -288
  254. package/Build/Workers/chunk-5A4OWIAY.js +0 -511
  255. package/Build/Workers/chunk-5IOA3NCI.js +0 -8366
  256. package/Build/Workers/chunk-5RMI6LFO.js +0 -692
  257. package/Build/Workers/chunk-5VDZEVQX.js +0 -788
  258. package/Build/Workers/chunk-5WAMP6Z4.js +0 -299
  259. package/Build/Workers/chunk-5ZMMQ7HE.js +0 -37
  260. package/Build/Workers/chunk-64VDO4BW.js +0 -114
  261. package/Build/Workers/chunk-664SI23B.js +0 -368
  262. package/Build/Workers/chunk-6BNIWSFA.js +0 -940
  263. package/Build/Workers/chunk-7C2MOK27.js +0 -57
  264. package/Build/Workers/chunk-7EFYX4FL.js +0 -642
  265. package/Build/Workers/chunk-7MMYV5PM.js +0 -288
  266. package/Build/Workers/chunk-AVNHAFMV.js +0 -114
  267. package/Build/Workers/chunk-AWMYTHW4.js +0 -101
  268. package/Build/Workers/chunk-B5ZUBUPB.js +0 -398
  269. package/Build/Workers/chunk-BGG3BP2R.js +0 -280
  270. package/Build/Workers/chunk-BJHSYHOQ.js +0 -97
  271. package/Build/Workers/chunk-BLZILZWF.js +0 -2719
  272. package/Build/Workers/chunk-BM6ZG63T.js +0 -171
  273. package/Build/Workers/chunk-BYTLHM7N.js +0 -414
  274. package/Build/Workers/chunk-C3G2NDXM.js +0 -162
  275. package/Build/Workers/chunk-CCPKBCZD.js +0 -171
  276. package/Build/Workers/chunk-CMAG5O53.js +0 -1483
  277. package/Build/Workers/chunk-CR6BZUQC.js +0 -1443
  278. package/Build/Workers/chunk-DBM2NHJ5.js +0 -352
  279. package/Build/Workers/chunk-DIA4J2DB.js +0 -497
  280. package/Build/Workers/chunk-E5BSDIGY.js +0 -139
  281. package/Build/Workers/chunk-EDVAQGDJ.js +0 -2719
  282. package/Build/Workers/chunk-EPVJ5OOH.js +0 -8366
  283. package/Build/Workers/chunk-ERYOZBVC.js +0 -171
  284. package/Build/Workers/chunk-F2BQY3GT.js +0 -1317
  285. package/Build/Workers/chunk-FRF5LWIM.js +0 -299
  286. package/Build/Workers/chunk-FSYQE5XE.js +0 -55
  287. package/Build/Workers/chunk-FTHCZAWE.js +0 -44
  288. package/Build/Workers/chunk-FTXEOX64.js +0 -1067
  289. package/Build/Workers/chunk-G2KELS4I.js +0 -138
  290. package/Build/Workers/chunk-GAQXLBFJ.js +0 -1483
  291. package/Build/Workers/chunk-GCPD37SU.js +0 -1054
  292. package/Build/Workers/chunk-GEH53ULL.js +0 -299
  293. package/Build/Workers/chunk-GJFIEALZ.js +0 -387
  294. package/Build/Workers/chunk-GLA2PT5T.js +0 -476
  295. package/Build/Workers/chunk-GMOKUODV.js +0 -352
  296. package/Build/Workers/chunk-GNGGEDZK.js +0 -352
  297. package/Build/Workers/chunk-GNGZG6C6.js +0 -162
  298. package/Build/Workers/chunk-GWLEBUVI.js +0 -2058
  299. package/Build/Workers/chunk-H3BSU65R.js +0 -1067
  300. package/Build/Workers/chunk-HEFUSHA6.js +0 -3514
  301. package/Build/Workers/chunk-HHN2M3ES.js +0 -682
  302. package/Build/Workers/chunk-HKII76UV.js +0 -1800
  303. package/Build/Workers/chunk-HLIXASKN.js +0 -476
  304. package/Build/Workers/chunk-HM4MH5IG.js +0 -138
  305. package/Build/Workers/chunk-HWUHUN7Z.js +0 -387
  306. package/Build/Workers/chunk-I7LWED3Z.js +0 -101
  307. package/Build/Workers/chunk-IB2XQV6U.js +0 -101
  308. package/Build/Workers/chunk-IC2JHDCI.js +0 -114
  309. package/Build/Workers/chunk-IEBTKCMB.js +0 -497
  310. package/Build/Workers/chunk-IHOM6QXV.js +0 -439
  311. package/Build/Workers/chunk-IK4D64GY.js +0 -439
  312. package/Build/Workers/chunk-IKMU6YHA.js +0 -288
  313. package/Build/Workers/chunk-IYXLSOLF.js +0 -692
  314. package/Build/Workers/chunk-J4PNHKWO.js +0 -2719
  315. package/Build/Workers/chunk-JFLJS4QU.js +0 -1443
  316. package/Build/Workers/chunk-JJD7S2CV.js +0 -3514
  317. package/Build/Workers/chunk-JJWMDUOJ.js +0 -44
  318. package/Build/Workers/chunk-JNNIPGJU.js +0 -163
  319. package/Build/Workers/chunk-JOQFYJZ2.js +0 -692
  320. package/Build/Workers/chunk-JQ7IQ56G.js +0 -837
  321. package/Build/Workers/chunk-JWEZXKBE.js +0 -73
  322. package/Build/Workers/chunk-K2PUGKEO.js +0 -2058
  323. package/Build/Workers/chunk-KFOT2YV5.js +0 -138
  324. package/Build/Workers/chunk-KMJD5APO.js +0 -162
  325. package/Build/Workers/chunk-KOVKY3HB.js +0 -198
  326. package/Build/Workers/chunk-KQ4ET526.js +0 -163
  327. package/Build/Workers/chunk-KWX3CJFT.js +0 -198
  328. package/Build/Workers/chunk-L2QIVAZV.js +0 -3514
  329. package/Build/Workers/chunk-L33HPENB.js +0 -75
  330. package/Build/Workers/chunk-LENXRROQ.js +0 -398
  331. package/Build/Workers/chunk-LFQ63ZU4.js +0 -455
  332. package/Build/Workers/chunk-LHJDLAZT.js +0 -1483
  333. package/Build/Workers/chunk-LJHG4PJQ.js +0 -305
  334. package/Build/Workers/chunk-LNS36LUZ.js +0 -2058
  335. package/Build/Workers/chunk-LPJHTJDQ.js +0 -305
  336. package/Build/Workers/chunk-LRW2QXMW.js +0 -352
  337. package/Build/Workers/chunk-LUUEGFLT.js +0 -305
  338. package/Build/Workers/chunk-LW2VGHDM.js +0 -1800
  339. package/Build/Workers/chunk-LXM2ZC4V.js +0 -288
  340. package/Build/Workers/chunk-LXMLERGC.js +0 -1067
  341. package/Build/Workers/chunk-LXOUU2I5.js +0 -219
  342. package/Build/Workers/chunk-M7EEEKQE.js +0 -476
  343. package/Build/Workers/chunk-MB2ZJQR3.js +0 -55
  344. package/Build/Workers/chunk-MCJRXFRL.js +0 -102
  345. package/Build/Workers/chunk-MCNY7SPD.js +0 -139
  346. package/Build/Workers/chunk-MLL4AAXV.js +0 -1460
  347. package/Build/Workers/chunk-MPCZC3G6.js +0 -414
  348. package/Build/Workers/chunk-MRLJERN3.js +0 -114
  349. package/Build/Workers/chunk-MWN26ZEM.js +0 -280
  350. package/Build/Workers/chunk-MXKQUDTP.js +0 -55
  351. package/Build/Workers/chunk-NEF7XO5W.js +0 -940
  352. package/Build/Workers/chunk-NIWB6UMY.js +0 -198
  353. package/Build/Workers/chunk-NJEG7WRW.js +0 -387
  354. package/Build/Workers/chunk-NL7US44X.js +0 -171
  355. package/Build/Workers/chunk-NOJAQPXU.js +0 -102
  356. package/Build/Workers/chunk-NSRZZEHH.js +0 -455
  357. package/Build/Workers/chunk-NUMQ72QV.js +0 -55
  358. package/Build/Workers/chunk-NXZJKIYD.js +0 -97
  359. package/Build/Workers/chunk-O224ZEA5.js +0 -58
  360. package/Build/Workers/chunk-O4MZOV3C.js +0 -414
  361. package/Build/Workers/chunk-O5ICO3AS.js +0 -682
  362. package/Build/Workers/chunk-O6T3T3V3.js +0 -97
  363. package/Build/Workers/chunk-OAFZ26QL.js +0 -837
  364. package/Build/Workers/chunk-OBM2JYMG.js +0 -75
  365. package/Build/Workers/chunk-OC63Z35M.js +0 -280
  366. package/Build/Workers/chunk-OD7UYXFV.js +0 -352
  367. package/Build/Workers/chunk-ODZZZGXK.js +0 -219
  368. package/Build/Workers/chunk-OEAC5XUG.js +0 -73
  369. package/Build/Workers/chunk-OFTWEOW2.js +0 -1483
  370. package/Build/Workers/chunk-OIJH6LAY.js +0 -497
  371. package/Build/Workers/chunk-OJFVD5ZS.js +0 -778
  372. package/Build/Workers/chunk-OJNPKCEL.js +0 -73
  373. package/Build/Workers/chunk-OOIZ7CHP.js +0 -114
  374. package/Build/Workers/chunk-OQK27J4J.js +0 -139
  375. package/Build/Workers/chunk-OTDNJAYJ.js +0 -55
  376. package/Build/Workers/chunk-OX4DGIUJ.js +0 -788
  377. package/Build/Workers/chunk-PEEYBEL5.js +0 -2058
  378. package/Build/Workers/chunk-PEUDXOFI.js +0 -241
  379. package/Build/Workers/chunk-PGYA2CMO.js +0 -642
  380. package/Build/Workers/chunk-PKXFFIEZ.js +0 -57
  381. package/Build/Workers/chunk-PQLZOYZE.js +0 -642
  382. package/Build/Workers/chunk-PSDWIJMU.js +0 -219
  383. package/Build/Workers/chunk-PU44PXY2.js +0 -75
  384. package/Build/Workers/chunk-PW3GQAXA.js +0 -3514
  385. package/Build/Workers/chunk-Q2X2Z7JH.js +0 -241
  386. package/Build/Workers/chunk-Q2YRPH7V.js +0 -1067
  387. package/Build/Workers/chunk-Q36VXWGP.js +0 -57
  388. package/Build/Workers/chunk-Q4XPVYXJ.js +0 -476
  389. package/Build/Workers/chunk-QEGQDFX2.js +0 -1045
  390. package/Build/Workers/chunk-QFN5B75P.js +0 -1054
  391. package/Build/Workers/chunk-QGXE4VZ3.js +0 -55
  392. package/Build/Workers/chunk-QIEHP7O4.js +0 -280
  393. package/Build/Workers/chunk-QOLOPE4O.js +0 -1317
  394. package/Build/Workers/chunk-QY55DT53.js +0 -97
  395. package/Build/Workers/chunk-R2AFDOIY.js +0 -778
  396. package/Build/Workers/chunk-R3PTQZ6H.js +0 -44
  397. package/Build/Workers/chunk-R5U3MYPS.js +0 -198
  398. package/Build/Workers/chunk-RBLCJVK6.js +0 -73
  399. package/Build/Workers/chunk-RGD6RGTH.js +0 -138
  400. package/Build/Workers/chunk-RJ564LVX.js +0 -398
  401. package/Build/Workers/chunk-RJIH4MDC.js +0 -241
  402. package/Build/Workers/chunk-RJVB3K2X.js +0 -511
  403. package/Build/Workers/chunk-RNZ5L3W4.js +0 -387
  404. package/Build/Workers/chunk-RO7SDGOD.js +0 -352
  405. package/Build/Workers/chunk-RORZNBGJ.js +0 -299
  406. package/Build/Workers/chunk-RRBGLANL.js +0 -55
  407. package/Build/Workers/chunk-RT7PY6BH.js +0 -2719
  408. package/Build/Workers/chunk-RTJ6L5O4.js +0 -163
  409. package/Build/Workers/chunk-SAD42JSM.js +0 -102
  410. package/Build/Workers/chunk-SBR7MW44.js +0 -139
  411. package/Build/Workers/chunk-SCF2OVAZ.js +0 -219
  412. package/Build/Workers/chunk-SCNCHSTQ.js +0 -642
  413. package/Build/Workers/chunk-SFM3GNS2.js +0 -682
  414. package/Build/Workers/chunk-SG56ZOPD.js +0 -788
  415. package/Build/Workers/chunk-SHQEATE2.js +0 -1045
  416. package/Build/Workers/chunk-SJX7UJNW.js +0 -241
  417. package/Build/Workers/chunk-SKXE77AM.js +0 -139
  418. package/Build/Workers/chunk-SLYUIIFB.js +0 -455
  419. package/Build/Workers/chunk-SPL7JK6K.js +0 -1054
  420. package/Build/Workers/chunk-SPPYSEH2.js +0 -1460
  421. package/Build/Workers/chunk-SQSWONTJ.js +0 -241
  422. package/Build/Workers/chunk-SRLJWNU2.js +0 -368
  423. package/Build/Workers/chunk-SSE2O2SB.js +0 -1460
  424. package/Build/Workers/chunk-SX6GJD6B.js +0 -837
  425. package/Build/Workers/chunk-SXISWCV7.js +0 -58
  426. package/Build/Workers/chunk-SYCWSSRX.js +0 -1443
  427. package/Build/Workers/chunk-SZELHE7Q.js +0 -163
  428. package/Build/Workers/chunk-SZQC2TUH.js +0 -368
  429. package/Build/Workers/chunk-T4LDJBKR.js +0 -124
  430. package/Build/Workers/chunk-TAWVKT4B.js +0 -58
  431. package/Build/Workers/chunk-TBASKFFL.js +0 -124
  432. package/Build/Workers/chunk-TBEKWAR5.js +0 -73
  433. package/Build/Workers/chunk-TDGGEIZE.js +0 -398
  434. package/Build/Workers/chunk-TE277WT3.js +0 -280
  435. package/Build/Workers/chunk-TEZGNCXH.js +0 -8366
  436. package/Build/Workers/chunk-TFL2ZV77.js +0 -692
  437. package/Build/Workers/chunk-THWXTO7B.js +0 -57
  438. package/Build/Workers/chunk-TIQZUI5N.js +0 -44
  439. package/Build/Workers/chunk-TKJHRY4V.js +0 -511
  440. package/Build/Workers/chunk-TLXEQ5QY.js +0 -778
  441. package/Build/Workers/chunk-TQ63SH2Z.js +0 -352
  442. package/Build/Workers/chunk-TSNKYHSC.js +0 -305
  443. package/Build/Workers/chunk-TYQ7MNMK.js +0 -37
  444. package/Build/Workers/chunk-U267N6IJ.js +0 -299
  445. package/Build/Workers/chunk-U3VI26GL.js +0 -162
  446. package/Build/Workers/chunk-U77FLUQF.js +0 -368
  447. package/Build/Workers/chunk-UIMHSWDJ.js +0 -455
  448. package/Build/Workers/chunk-UIYQEJ5H.js +0 -1054
  449. package/Build/Workers/chunk-UJ72JOGF.js +0 -511
  450. package/Build/Workers/chunk-ULWO6TCN.js +0 -352
  451. package/Build/Workers/chunk-UO3AWZR3.js +0 -352
  452. package/Build/Workers/chunk-UQSQNTEF.js +0 -368
  453. package/Build/Workers/chunk-USWXYJRX.js +0 -1045
  454. package/Build/Workers/chunk-UTDSEOTC.js +0 -288
  455. package/Build/Workers/chunk-UTXXZ7XH.js +0 -940
  456. package/Build/Workers/chunk-UUKLWTJC.js +0 -2719
  457. package/Build/Workers/chunk-UY7I27VQ.js +0 -1800
  458. package/Build/Workers/chunk-UZXJSLDO.js +0 -3514
  459. package/Build/Workers/chunk-V2TRFTCU.js +0 -1317
  460. package/Build/Workers/chunk-V4I3IKAK.js +0 -1460
  461. package/Build/Workers/chunk-V7QHEF6O.js +0 -1317
  462. package/Build/Workers/chunk-VFC54WB7.js +0 -940
  463. package/Build/Workers/chunk-VG7NX64T.js +0 -37
  464. package/Build/Workers/chunk-VIMRGSM5.js +0 -256
  465. package/Build/Workers/chunk-VL4QTEZC.js +0 -138
  466. package/Build/Workers/chunk-VLB25GGE.js +0 -439
  467. package/Build/Workers/chunk-VP2OAU4C.js +0 -124
  468. package/Build/Workers/chunk-VVKDT4J7.js +0 -837
  469. package/Build/Workers/chunk-VXDOONLH.js +0 -162
  470. package/Build/Workers/chunk-W2EK42GB.js +0 -75
  471. package/Build/Workers/chunk-W2OMUTYA.js +0 -1800
  472. package/Build/Workers/chunk-W3LNGBJU.js +0 -44
  473. package/Build/Workers/chunk-W4DV7TAL.js +0 -8366
  474. package/Build/Workers/chunk-WDMHDACX.js +0 -1800
  475. package/Build/Workers/chunk-WF224D4A.js +0 -642
  476. package/Build/Workers/chunk-WFTPZ3ZX.js +0 -788
  477. package/Build/Workers/chunk-WHOEQFL4.js +0 -682
  478. package/Build/Workers/chunk-WLIQ26XU.js +0 -455
  479. package/Build/Workers/chunk-WOEPS2UA.js +0 -171
  480. package/Build/Workers/chunk-WWLWTSMV.js +0 -55
  481. package/Build/Workers/chunk-WX2ZANQC.js +0 -940
  482. package/Build/Workers/chunk-WZJEAPEP.js +0 -629
  483. package/Build/Workers/chunk-XEB4GEXW.js +0 -629
  484. package/Build/Workers/chunk-XFKTM6GN.js +0 -2058
  485. package/Build/Workers/chunk-XHGB5IOL.js +0 -1045
  486. package/Build/Workers/chunk-XHNWVOIJ.js +0 -219
  487. package/Build/Workers/chunk-XKBR7TJB.js +0 -398
  488. package/Build/Workers/chunk-XMIENZET.js +0 -256
  489. package/Build/Workers/chunk-XNKQLSHI.js +0 -629
  490. package/Build/Workers/chunk-XOXF37BU.js +0 -1317
  491. package/Build/Workers/chunk-XXD3TQVI.js +0 -837
  492. package/Build/Workers/chunk-XYRT4RDI.js +0 -1045
  493. package/Build/Workers/chunk-XZINQPR6.js +0 -124
  494. package/Build/Workers/chunk-XZN7KCY3.js +0 -1054
  495. package/Build/Workers/chunk-YC6PFDXQ.js +0 -8366
  496. package/Build/Workers/chunk-YCTK62TY.js +0 -1483
  497. package/Build/Workers/chunk-YFJB3US4.js +0 -102
  498. package/Build/Workers/chunk-YLKTSY65.js +0 -414
  499. package/Build/Workers/chunk-YLSZYTTO.js +0 -102
  500. package/Build/Workers/chunk-YMXATXRN.js +0 -57
  501. package/Build/Workers/chunk-YQXKIGXX.js +0 -414
  502. package/Build/Workers/chunk-YR3LX3PR.js +0 -497
  503. package/Build/Workers/chunk-YVRD2PO5.js +0 -124
  504. package/Build/Workers/chunk-YWPKCFKZ.js +0 -1443
  505. package/Build/Workers/chunk-YWSB7PZP.js +0 -511
  506. package/Build/Workers/chunk-Z24A5EMJ.js +0 -387
  507. package/Build/Workers/chunk-Z4IW5XUY.js +0 -788
  508. package/Build/Workers/chunk-Z5MHVJGN.js +0 -778
  509. package/Build/Workers/chunk-ZBRVFEGF.js +0 -256
  510. package/Build/Workers/chunk-ZCPCQJBX.js +0 -198
  511. package/Build/Workers/chunk-ZEEVOFG2.js +0 -256
  512. package/Build/Workers/chunk-ZFHCP7RN.js +0 -692
  513. package/Build/Workers/chunk-ZHHEFNHL.js +0 -37
  514. package/Build/Workers/chunk-ZI5GDNEV.js +0 -305
  515. package/Build/Workers/chunk-ZS7KQSEM.js +0 -439
  516. package/Build/Workers/chunk-ZVXETFPZ.js +0 -1067
  517. package/Build/Workers/chunk-ZXZTWDTN.js +0 -682
  518. package/Build/Workers/chunk-ZYTMDBCR.js +0 -1443
@@ -1,352 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.5
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- IndexDatatype_default
28
- } from "./chunk-OQK27J4J.js";
29
- import {
30
- Math_default
31
- } from "./chunk-IEBTKCMB.js";
32
- import {
33
- DeveloperError_default
34
- } from "./chunk-RTJ6L5O4.js";
35
- import {
36
- defined_default
37
- } from "./chunk-W2EK42GB.js";
38
-
39
- // packages/engine/Source/Core/TerrainProvider.js
40
- function TerrainProvider() {
41
- DeveloperError_default.throwInstantiationError();
42
- }
43
- Object.defineProperties(TerrainProvider.prototype, {
44
- /**
45
- * Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing
46
- * to the event, you will be notified of the error and can potentially recover from it. Event listeners
47
- * are passed an instance of {@link TileProviderError}.
48
- * @memberof TerrainProvider.prototype
49
- * @type {Event<TerrainProvider.ErrorEvent>}
50
- * @readonly
51
- */
52
- errorEvent: {
53
- get: DeveloperError_default.throwInstantiationError
54
- },
55
- /**
56
- * Gets the credit to display when this terrain provider is active. Typically this is used to credit
57
- * the source of the terrain.
58
- * @memberof TerrainProvider.prototype
59
- * @type {Credit}
60
- * @readonly
61
- */
62
- credit: {
63
- get: DeveloperError_default.throwInstantiationError
64
- },
65
- /**
66
- * Gets the tiling scheme used by the provider.
67
- * @memberof TerrainProvider.prototype
68
- * @type {TilingScheme}
69
- * @readonly
70
- */
71
- tilingScheme: {
72
- get: DeveloperError_default.throwInstantiationError
73
- },
74
- /**
75
- * Gets a value indicating whether or not the provider includes a water mask. The water mask
76
- * indicates which areas of the globe are water rather than land, so they can be rendered
77
- * as a reflective surface with animated waves.
78
- * @memberof TerrainProvider.prototype
79
- * @type {boolean}
80
- * @readonly
81
- */
82
- hasWaterMask: {
83
- get: DeveloperError_default.throwInstantiationError
84
- },
85
- /**
86
- * Gets a value indicating whether or not the requested tiles include vertex normals.
87
- * @memberof TerrainProvider.prototype
88
- * @type {boolean}
89
- * @readonly
90
- */
91
- hasVertexNormals: {
92
- get: DeveloperError_default.throwInstantiationError
93
- },
94
- /**
95
- * Gets an object that can be used to determine availability of terrain from this provider, such as
96
- * at points and in rectangles. This property may be undefined if availability
97
- * information is not available.
98
- * @memberof TerrainProvider.prototype
99
- * @type {TileAvailability|undefined}
100
- * @readonly
101
- */
102
- availability: {
103
- get: DeveloperError_default.throwInstantiationError
104
- }
105
- });
106
- var regularGridIndicesCache = [];
107
- TerrainProvider.getRegularGridIndices = function(width, height) {
108
- if (width * height >= Math_default.FOUR_GIGABYTES) {
109
- throw new DeveloperError_default(
110
- "The total number of vertices (width * height) must be less than 4,294,967,296."
111
- );
112
- }
113
- let byWidth = regularGridIndicesCache[width];
114
- if (!defined_default(byWidth)) {
115
- regularGridIndicesCache[width] = byWidth = [];
116
- }
117
- let indices = byWidth[height];
118
- if (!defined_default(indices)) {
119
- if (width * height < Math_default.SIXTY_FOUR_KILOBYTES) {
120
- indices = byWidth[height] = new Uint16Array(
121
- (width - 1) * (height - 1) * 6
122
- );
123
- } else {
124
- indices = byWidth[height] = new Uint32Array(
125
- (width - 1) * (height - 1) * 6
126
- );
127
- }
128
- addRegularGridIndices(width, height, indices, 0);
129
- }
130
- return indices;
131
- };
132
- var regularGridAndEdgeIndicesCache = [];
133
- TerrainProvider.getRegularGridIndicesAndEdgeIndices = function(width, height) {
134
- if (width * height >= Math_default.FOUR_GIGABYTES) {
135
- throw new DeveloperError_default(
136
- "The total number of vertices (width * height) must be less than 4,294,967,296."
137
- );
138
- }
139
- let byWidth = regularGridAndEdgeIndicesCache[width];
140
- if (!defined_default(byWidth)) {
141
- regularGridAndEdgeIndicesCache[width] = byWidth = [];
142
- }
143
- let indicesAndEdges = byWidth[height];
144
- if (!defined_default(indicesAndEdges)) {
145
- const indices = TerrainProvider.getRegularGridIndices(width, height);
146
- const edgeIndices = getEdgeIndices(width, height);
147
- const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
148
- const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
149
- const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
150
- const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
151
- indicesAndEdges = byWidth[height] = {
152
- indices,
153
- westIndicesSouthToNorth,
154
- southIndicesEastToWest,
155
- eastIndicesNorthToSouth,
156
- northIndicesWestToEast
157
- };
158
- }
159
- return indicesAndEdges;
160
- };
161
- var regularGridAndSkirtAndEdgeIndicesCache = [];
162
- TerrainProvider.getRegularGridAndSkirtIndicesAndEdgeIndices = function(width, height) {
163
- if (width * height >= Math_default.FOUR_GIGABYTES) {
164
- throw new DeveloperError_default(
165
- "The total number of vertices (width * height) must be less than 4,294,967,296."
166
- );
167
- }
168
- let byWidth = regularGridAndSkirtAndEdgeIndicesCache[width];
169
- if (!defined_default(byWidth)) {
170
- regularGridAndSkirtAndEdgeIndicesCache[width] = byWidth = [];
171
- }
172
- let indicesAndEdges = byWidth[height];
173
- if (!defined_default(indicesAndEdges)) {
174
- const gridVertexCount = width * height;
175
- const gridIndexCount = (width - 1) * (height - 1) * 6;
176
- const edgeVertexCount = width * 2 + height * 2;
177
- const edgeIndexCount = Math.max(0, edgeVertexCount - 4) * 6;
178
- const vertexCount = gridVertexCount + edgeVertexCount;
179
- const indexCount = gridIndexCount + edgeIndexCount;
180
- const edgeIndices = getEdgeIndices(width, height);
181
- const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
182
- const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
183
- const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
184
- const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
185
- const indices = IndexDatatype_default.createTypedArray(vertexCount, indexCount);
186
- addRegularGridIndices(width, height, indices, 0);
187
- TerrainProvider.addSkirtIndices(
188
- westIndicesSouthToNorth,
189
- southIndicesEastToWest,
190
- eastIndicesNorthToSouth,
191
- northIndicesWestToEast,
192
- gridVertexCount,
193
- indices,
194
- gridIndexCount
195
- );
196
- indicesAndEdges = byWidth[height] = {
197
- indices,
198
- westIndicesSouthToNorth,
199
- southIndicesEastToWest,
200
- eastIndicesNorthToSouth,
201
- northIndicesWestToEast,
202
- indexCountWithoutSkirts: gridIndexCount
203
- };
204
- }
205
- return indicesAndEdges;
206
- };
207
- TerrainProvider.getSkirtVertexCount = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast) {
208
- return westIndicesSouthToNorth.length + southIndicesEastToWest.length + eastIndicesNorthToSouth.length + northIndicesWestToEast.length;
209
- };
210
- TerrainProvider.getSkirtIndexCount = function(skirtVertexCount) {
211
- return (skirtVertexCount - 4) * 2 * 3;
212
- };
213
- TerrainProvider.getSkirtIndexCountWithFilledCorners = function(skirtVertexCount) {
214
- return ((skirtVertexCount - 4) * 2 + 4) * 3;
215
- };
216
- TerrainProvider.addSkirtIndices = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
217
- let vertexIndex = vertexCount;
218
- offset = addSkirtIndices(
219
- westIndicesSouthToNorth,
220
- vertexIndex,
221
- indices,
222
- offset
223
- );
224
- vertexIndex += westIndicesSouthToNorth.length;
225
- offset = addSkirtIndices(
226
- southIndicesEastToWest,
227
- vertexIndex,
228
- indices,
229
- offset
230
- );
231
- vertexIndex += southIndicesEastToWest.length;
232
- offset = addSkirtIndices(
233
- eastIndicesNorthToSouth,
234
- vertexIndex,
235
- indices,
236
- offset
237
- );
238
- vertexIndex += eastIndicesNorthToSouth.length;
239
- addSkirtIndices(northIndicesWestToEast, vertexIndex, indices, offset);
240
- };
241
- TerrainProvider.addSkirtIndicesWithFilledCorners = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
242
- TerrainProvider.addSkirtIndices(
243
- westIndicesSouthToNorth,
244
- southIndicesEastToWest,
245
- eastIndicesNorthToSouth,
246
- northIndicesWestToEast,
247
- vertexCount,
248
- indices,
249
- offset
250
- );
251
- const skirtVertexCount = TerrainProvider.getSkirtVertexCount(
252
- westIndicesSouthToNorth,
253
- southIndicesEastToWest,
254
- eastIndicesNorthToSouth,
255
- northIndicesWestToEast
256
- );
257
- const skirtIndexCountWithoutCaps = TerrainProvider.getSkirtIndexCount(skirtVertexCount);
258
- const cornerStartIdx = offset + skirtIndexCountWithoutCaps;
259
- const cornerSWIndex = westIndicesSouthToNorth[0];
260
- const cornerNWIndex = northIndicesWestToEast[0];
261
- const cornerNEIndex = eastIndicesNorthToSouth[0];
262
- const cornerSEIndex = southIndicesEastToWest[0];
263
- const westSouthIndex = vertexCount;
264
- const westNorthIndex = westSouthIndex + westIndicesSouthToNorth.length - 1;
265
- const southEastIndex = westNorthIndex + 1;
266
- const southWestIndex = southEastIndex + southIndicesEastToWest.length - 1;
267
- const eastNorthIndex = southWestIndex + 1;
268
- const eastSouthIndex = eastNorthIndex + eastIndicesNorthToSouth.length - 1;
269
- const northWestIndex = eastSouthIndex + 1;
270
- const northEastIndex = northWestIndex + northIndicesWestToEast.length - 1;
271
- indices[cornerStartIdx + 0] = cornerSWIndex;
272
- indices[cornerStartIdx + 1] = westSouthIndex;
273
- indices[cornerStartIdx + 2] = southWestIndex;
274
- indices[cornerStartIdx + 3] = cornerSEIndex;
275
- indices[cornerStartIdx + 4] = southEastIndex;
276
- indices[cornerStartIdx + 5] = eastSouthIndex;
277
- indices[cornerStartIdx + 6] = cornerNEIndex;
278
- indices[cornerStartIdx + 7] = eastNorthIndex;
279
- indices[cornerStartIdx + 8] = northEastIndex;
280
- indices[cornerStartIdx + 9] = cornerNWIndex;
281
- indices[cornerStartIdx + 10] = northWestIndex;
282
- indices[cornerStartIdx + 11] = westNorthIndex;
283
- };
284
- function getEdgeIndices(width, height) {
285
- const westIndicesSouthToNorth = new Array(height);
286
- const southIndicesEastToWest = new Array(width);
287
- const eastIndicesNorthToSouth = new Array(height);
288
- const northIndicesWestToEast = new Array(width);
289
- let i;
290
- for (i = 0; i < width; ++i) {
291
- northIndicesWestToEast[i] = i;
292
- southIndicesEastToWest[i] = width * height - 1 - i;
293
- }
294
- for (i = 0; i < height; ++i) {
295
- eastIndicesNorthToSouth[i] = (i + 1) * width - 1;
296
- westIndicesSouthToNorth[i] = (height - i - 1) * width;
297
- }
298
- return {
299
- westIndicesSouthToNorth,
300
- southIndicesEastToWest,
301
- eastIndicesNorthToSouth,
302
- northIndicesWestToEast
303
- };
304
- }
305
- function addRegularGridIndices(width, height, indices, offset) {
306
- let index = 0;
307
- for (let j = 0; j < height - 1; ++j) {
308
- for (let i = 0; i < width - 1; ++i) {
309
- const upperLeft = index;
310
- const lowerLeft = upperLeft + width;
311
- const lowerRight = lowerLeft + 1;
312
- const upperRight = upperLeft + 1;
313
- indices[offset++] = upperLeft;
314
- indices[offset++] = lowerLeft;
315
- indices[offset++] = upperRight;
316
- indices[offset++] = upperRight;
317
- indices[offset++] = lowerLeft;
318
- indices[offset++] = lowerRight;
319
- ++index;
320
- }
321
- ++index;
322
- }
323
- }
324
- function addSkirtIndices(edgeIndices, vertexIndex, indices, offset) {
325
- let previousIndex = edgeIndices[0];
326
- const length = edgeIndices.length;
327
- for (let i = 1; i < length; ++i) {
328
- const index = edgeIndices[i];
329
- indices[offset++] = previousIndex;
330
- indices[offset++] = index;
331
- indices[offset++] = vertexIndex;
332
- indices[offset++] = vertexIndex;
333
- indices[offset++] = index;
334
- indices[offset++] = vertexIndex + 1;
335
- previousIndex = index;
336
- ++vertexIndex;
337
- }
338
- return offset;
339
- }
340
- TerrainProvider.heightmapTerrainQuality = 0.25;
341
- TerrainProvider.getEstimatedLevelZeroGeometricErrorForAHeightmap = function(ellipsoid, tileImageWidth, numberOfTilesAtLevelZero) {
342
- return ellipsoid.maximumRadius * 2 * Math.PI * TerrainProvider.heightmapTerrainQuality / (tileImageWidth * numberOfTilesAtLevelZero);
343
- };
344
- TerrainProvider.prototype.requestTileGeometry = DeveloperError_default.throwInstantiationError;
345
- TerrainProvider.prototype.getLevelMaximumGeometricError = DeveloperError_default.throwInstantiationError;
346
- TerrainProvider.prototype.getTileDataAvailable = DeveloperError_default.throwInstantiationError;
347
- TerrainProvider.prototype.loadTileDataAvailability = DeveloperError_default.throwInstantiationError;
348
- var TerrainProvider_default = TerrainProvider;
349
-
350
- export {
351
- TerrainProvider_default
352
- };
@@ -1,299 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.7
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
- import {
27
- Matrix2_default,
28
- Quaternion_default,
29
- Rectangle_default,
30
- Transforms_default
31
- } from "./chunk-7KOMCIWI.js";
32
- import {
33
- Matrix4_default
34
- } from "./chunk-LNS36LUZ.js";
35
- import {
36
- WebGLConstants_default
37
- } from "./chunk-5L3PEFKO.js";
38
- import {
39
- Cartesian2_default,
40
- Cartographic_default
41
- } from "./chunk-E3NHG3TR.js";
42
- import {
43
- Cartesian3_default,
44
- Frozen_default,
45
- Matrix3_default
46
- } from "./chunk-6YT2LZ3Z.js";
47
- import {
48
- Check_default,
49
- DeveloperError_default
50
- } from "./chunk-KQ4ET526.js";
51
- import {
52
- defined_default
53
- } from "./chunk-FYZVCB32.js";
54
-
55
- // packages/engine/Source/Core/GeometryType.js
56
- var GeometryType = {
57
- NONE: 0,
58
- TRIANGLES: 1,
59
- LINES: 2,
60
- POLYLINES: 3
61
- };
62
- var GeometryType_default = Object.freeze(GeometryType);
63
-
64
- // packages/engine/Source/Core/PrimitiveType.js
65
- var PrimitiveType = {
66
- /**
67
- * Points primitive where each vertex (or index) is a separate point.
68
- *
69
- * @type {number}
70
- * @constant
71
- */
72
- POINTS: WebGLConstants_default.POINTS,
73
- /**
74
- * Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.
75
- *
76
- * @type {number}
77
- * @constant
78
- */
79
- LINES: WebGLConstants_default.LINES,
80
- /**
81
- * Line loop primitive where each vertex (or index) after the first connects a line to
82
- * the previous vertex, and the last vertex implicitly connects to the first.
83
- *
84
- * @type {number}
85
- * @constant
86
- */
87
- LINE_LOOP: WebGLConstants_default.LINE_LOOP,
88
- /**
89
- * Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.
90
- *
91
- * @type {number}
92
- * @constant
93
- */
94
- LINE_STRIP: WebGLConstants_default.LINE_STRIP,
95
- /**
96
- * Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.
97
- *
98
- * @type {number}
99
- * @constant
100
- */
101
- TRIANGLES: WebGLConstants_default.TRIANGLES,
102
- /**
103
- * Triangle strip primitive where each vertex (or index) after the first two connect to
104
- * the previous two vertices forming a triangle. For example, this can be used to model a wall.
105
- *
106
- * @type {number}
107
- * @constant
108
- */
109
- TRIANGLE_STRIP: WebGLConstants_default.TRIANGLE_STRIP,
110
- /**
111
- * Triangle fan primitive where each vertex (or index) after the first two connect to
112
- * the previous vertex and the first vertex forming a triangle. For example, this can be used
113
- * to model a cone or circle.
114
- *
115
- * @type {number}
116
- * @constant
117
- */
118
- TRIANGLE_FAN: WebGLConstants_default.TRIANGLE_FAN
119
- };
120
- PrimitiveType.isLines = function(primitiveType) {
121
- return primitiveType === PrimitiveType.LINES || primitiveType === PrimitiveType.LINE_LOOP || primitiveType === PrimitiveType.LINE_STRIP;
122
- };
123
- PrimitiveType.isTriangles = function(primitiveType) {
124
- return primitiveType === PrimitiveType.TRIANGLES || primitiveType === PrimitiveType.TRIANGLE_STRIP || primitiveType === PrimitiveType.TRIANGLE_FAN;
125
- };
126
- PrimitiveType.validate = function(primitiveType) {
127
- return primitiveType === PrimitiveType.POINTS || primitiveType === PrimitiveType.LINES || primitiveType === PrimitiveType.LINE_LOOP || primitiveType === PrimitiveType.LINE_STRIP || primitiveType === PrimitiveType.TRIANGLES || primitiveType === PrimitiveType.TRIANGLE_STRIP || primitiveType === PrimitiveType.TRIANGLE_FAN;
128
- };
129
- var PrimitiveType_default = Object.freeze(PrimitiveType);
130
-
131
- // packages/engine/Source/Core/Geometry.js
132
- function Geometry(options) {
133
- options = options ?? Frozen_default.EMPTY_OBJECT;
134
- Check_default.typeOf.object("options.attributes", options.attributes);
135
- this.attributes = options.attributes;
136
- this.indices = options.indices;
137
- this.primitiveType = options.primitiveType ?? PrimitiveType_default.TRIANGLES;
138
- this.boundingSphere = options.boundingSphere;
139
- this.geometryType = options.geometryType ?? GeometryType_default.NONE;
140
- this.boundingSphereCV = options.boundingSphereCV;
141
- this.offsetAttribute = options.offsetAttribute;
142
- }
143
- Geometry.computeNumberOfVertices = function(geometry) {
144
- Check_default.typeOf.object("geometry", geometry);
145
- let numberOfVertices = -1;
146
- for (const property in geometry.attributes) {
147
- if (geometry.attributes.hasOwnProperty(property) && defined_default(geometry.attributes[property]) && defined_default(geometry.attributes[property].values)) {
148
- const attribute = geometry.attributes[property];
149
- const num = attribute.values.length / attribute.componentsPerAttribute;
150
- if (numberOfVertices !== num && numberOfVertices !== -1) {
151
- throw new DeveloperError_default(
152
- "All attribute lists must have the same number of attributes."
153
- );
154
- }
155
- numberOfVertices = num;
156
- }
157
- }
158
- return numberOfVertices;
159
- };
160
- var rectangleCenterScratch = new Cartographic_default();
161
- var enuCenterScratch = new Cartesian3_default();
162
- var fixedFrameToEnuScratch = new Matrix4_default();
163
- var boundingRectanglePointsCartographicScratch = [
164
- new Cartographic_default(),
165
- new Cartographic_default(),
166
- new Cartographic_default()
167
- ];
168
- var boundingRectanglePointsEnuScratch = [
169
- new Cartesian2_default(),
170
- new Cartesian2_default(),
171
- new Cartesian2_default()
172
- ];
173
- var points2DScratch = [new Cartesian2_default(), new Cartesian2_default(), new Cartesian2_default()];
174
- var pointEnuScratch = new Cartesian3_default();
175
- var enuRotationScratch = new Quaternion_default();
176
- var enuRotationMatrixScratch = new Matrix4_default();
177
- var rotation2DScratch = new Matrix2_default();
178
- Geometry._textureCoordinateRotationPoints = function(positions, stRotation, ellipsoid, boundingRectangle) {
179
- let i;
180
- const rectangleCenter = Rectangle_default.center(
181
- boundingRectangle,
182
- rectangleCenterScratch
183
- );
184
- const enuCenter = Cartographic_default.toCartesian(
185
- rectangleCenter,
186
- ellipsoid,
187
- enuCenterScratch
188
- );
189
- const enuToFixedFrame = Transforms_default.eastNorthUpToFixedFrame(
190
- enuCenter,
191
- ellipsoid,
192
- fixedFrameToEnuScratch
193
- );
194
- const fixedFrameToEnu = Matrix4_default.inverse(
195
- enuToFixedFrame,
196
- fixedFrameToEnuScratch
197
- );
198
- const boundingPointsEnu = boundingRectanglePointsEnuScratch;
199
- const boundingPointsCarto = boundingRectanglePointsCartographicScratch;
200
- boundingPointsCarto[0].longitude = boundingRectangle.west;
201
- boundingPointsCarto[0].latitude = boundingRectangle.south;
202
- boundingPointsCarto[1].longitude = boundingRectangle.west;
203
- boundingPointsCarto[1].latitude = boundingRectangle.north;
204
- boundingPointsCarto[2].longitude = boundingRectangle.east;
205
- boundingPointsCarto[2].latitude = boundingRectangle.south;
206
- let posEnu = pointEnuScratch;
207
- for (i = 0; i < 3; i++) {
208
- Cartographic_default.toCartesian(boundingPointsCarto[i], ellipsoid, posEnu);
209
- posEnu = Matrix4_default.multiplyByPointAsVector(fixedFrameToEnu, posEnu, posEnu);
210
- boundingPointsEnu[i].x = posEnu.x;
211
- boundingPointsEnu[i].y = posEnu.y;
212
- }
213
- const rotation = Quaternion_default.fromAxisAngle(
214
- Cartesian3_default.UNIT_Z,
215
- -stRotation,
216
- enuRotationScratch
217
- );
218
- const textureMatrix = Matrix3_default.fromQuaternion(
219
- rotation,
220
- enuRotationMatrixScratch
221
- );
222
- const positionsLength = positions.length;
223
- let enuMinX = Number.POSITIVE_INFINITY;
224
- let enuMinY = Number.POSITIVE_INFINITY;
225
- let enuMaxX = Number.NEGATIVE_INFINITY;
226
- let enuMaxY = Number.NEGATIVE_INFINITY;
227
- for (i = 0; i < positionsLength; i++) {
228
- posEnu = Matrix4_default.multiplyByPointAsVector(
229
- fixedFrameToEnu,
230
- positions[i],
231
- posEnu
232
- );
233
- posEnu = Matrix3_default.multiplyByVector(textureMatrix, posEnu, posEnu);
234
- enuMinX = Math.min(enuMinX, posEnu.x);
235
- enuMinY = Math.min(enuMinY, posEnu.y);
236
- enuMaxX = Math.max(enuMaxX, posEnu.x);
237
- enuMaxY = Math.max(enuMaxY, posEnu.y);
238
- }
239
- const toDesiredInComputed = Matrix2_default.fromRotation(
240
- stRotation,
241
- rotation2DScratch
242
- );
243
- const points2D = points2DScratch;
244
- points2D[0].x = enuMinX;
245
- points2D[0].y = enuMinY;
246
- points2D[1].x = enuMinX;
247
- points2D[1].y = enuMaxY;
248
- points2D[2].x = enuMaxX;
249
- points2D[2].y = enuMinY;
250
- const boundingEnuMin = boundingPointsEnu[0];
251
- const boundingPointsWidth = boundingPointsEnu[2].x - boundingEnuMin.x;
252
- const boundingPointsHeight = boundingPointsEnu[1].y - boundingEnuMin.y;
253
- for (i = 0; i < 3; i++) {
254
- const point2D = points2D[i];
255
- Matrix2_default.multiplyByVector(toDesiredInComputed, point2D, point2D);
256
- point2D.x = (point2D.x - boundingEnuMin.x) / boundingPointsWidth;
257
- point2D.y = (point2D.y - boundingEnuMin.y) / boundingPointsHeight;
258
- }
259
- const minXYCorner = points2D[0];
260
- const maxYCorner = points2D[1];
261
- const maxXCorner = points2D[2];
262
- const result = new Array(6);
263
- Cartesian2_default.pack(minXYCorner, result);
264
- Cartesian2_default.pack(maxYCorner, result, 2);
265
- Cartesian2_default.pack(maxXCorner, result, 4);
266
- return result;
267
- };
268
- var Geometry_default = Geometry;
269
-
270
- // packages/engine/Source/Core/GeometryAttribute.js
271
- function GeometryAttribute(options) {
272
- options = options ?? Frozen_default.EMPTY_OBJECT;
273
- if (!defined_default(options.componentDatatype)) {
274
- throw new DeveloperError_default("options.componentDatatype is required.");
275
- }
276
- if (!defined_default(options.componentsPerAttribute)) {
277
- throw new DeveloperError_default("options.componentsPerAttribute is required.");
278
- }
279
- if (options.componentsPerAttribute < 1 || options.componentsPerAttribute > 4) {
280
- throw new DeveloperError_default(
281
- "options.componentsPerAttribute must be between 1 and 4."
282
- );
283
- }
284
- if (!defined_default(options.values)) {
285
- throw new DeveloperError_default("options.values is required.");
286
- }
287
- this.componentDatatype = options.componentDatatype;
288
- this.componentsPerAttribute = options.componentsPerAttribute;
289
- this.normalize = options.normalize ?? false;
290
- this.values = options.values;
291
- }
292
- var GeometryAttribute_default = GeometryAttribute;
293
-
294
- export {
295
- GeometryType_default,
296
- PrimitiveType_default,
297
- Geometry_default,
298
- GeometryAttribute_default
299
- };
@@ -1,55 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 0.0.7
5
- *
6
- * Copyright 2011-2022 Cesium Contributors
7
- *
8
- * Licensed under the Apache License, Version 2.0 (the "License");
9
- * you may not use this file except in compliance with the License.
10
- * You may obtain a copy of the License at
11
- *
12
- * http://www.apache.org/licenses/LICENSE-2.0
13
- *
14
- * Unless required by applicable law or agreed to in writing, software
15
- * distributed under the License is distributed on an "AS IS" BASIS,
16
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
- * See the License for the specific language governing permissions and
18
- * limitations under the License.
19
- *
20
- * Columbus View (Pat. Pend.)
21
- *
22
- * Portions licensed separately.
23
- * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
24
- */
25
-
26
-
27
- // packages/engine/Source/Core/ArcType.js
28
- var ArcType = {
29
- /**
30
- * Straight line that does not conform to the surface of the ellipsoid.
31
- *
32
- * @type {number}
33
- * @constant
34
- */
35
- NONE: 0,
36
- /**
37
- * Follow geodesic path.
38
- *
39
- * @type {number}
40
- * @constant
41
- */
42
- GEODESIC: 1,
43
- /**
44
- * Follow rhumb or loxodrome path.
45
- *
46
- * @type {number}
47
- * @constant
48
- */
49
- RHUMB: 2
50
- };
51
- var ArcType_default = Object.freeze(ArcType);
52
-
53
- export {
54
- ArcType_default
55
- };