@cesium/engine 26.2.0 → 26.3.1-wasm.0

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 (393) hide show
  1. package/Build/ThirdParty/Workers/zip-web-worker.js +707 -600
  2. package/Build/Workers/chunk-2P3WKV6V.js +290 -0
  3. package/Build/Workers/{chunk-M6QKXVAU.js → chunk-2U5272QU.js} +17 -17
  4. package/Build/Workers/{chunk-NEFDMMLY.js → chunk-4KCOC6OZ.js} +8 -10
  5. package/Build/Workers/{chunk-SJYSIOEM.js → chunk-5FULJNWY.js} +11 -13
  6. package/Build/Workers/{chunk-NCL22ZUX.js → chunk-65ZF23AQ.js} +1 -1
  7. package/Build/Workers/{chunk-KP5QD7WU.js → chunk-6D5534B7.js} +10 -12
  8. package/Build/Workers/{chunk-FX3VEAIU.js → chunk-6GFMBHBD.js} +19 -19
  9. package/Build/Workers/{chunk-A62YI6S6.js → chunk-6VRGQF3D.js} +4 -4
  10. package/Build/Workers/{chunk-DSGLDRTI.js → chunk-6XUIECFB.js} +4 -6
  11. package/Build/Workers/{chunk-HDL4HOXZ.js → chunk-7KWUH6RK.js} +14 -14
  12. package/Build/Workers/{chunk-UAZUP4I5.js → chunk-7ZBJRQQT.js} +7 -7
  13. package/Build/Workers/{chunk-CRCGE4J4.js → chunk-AEHANE5A.js} +991 -5612
  14. package/Build/Workers/chunk-AUU74SIZ.js +2420 -0
  15. package/Build/Workers/{chunk-ARZICEEP.js → chunk-B6V5NMIE.js} +13 -11
  16. package/Build/Workers/{chunk-76FDC45O.js → chunk-BRQ52ASU.js} +15 -17
  17. package/Build/Workers/{chunk-SA2A2AN5.js → chunk-FVLSQBPH.js} +7 -14
  18. package/Build/Workers/{chunk-CUTRKXUQ.js → chunk-IFKM2GZR.js} +12 -12
  19. package/Build/Workers/{chunk-NSKZ6SBK.js → chunk-KF6OEWVT.js} +17 -17
  20. package/Build/Workers/{chunk-O3DKEX7Q.js → chunk-KOAXSU77.js} +5 -7
  21. package/Build/Workers/{chunk-2Z4ZLVOD.js → chunk-KRVYCMGN.js} +6 -6
  22. package/Build/Workers/{chunk-SXSP3JHS.js → chunk-LTZRLNQP.js} +1 -1
  23. package/Build/Workers/{chunk-6FZDPMTO.js → chunk-M7WEAGWT.js} +8 -8
  24. package/Build/Workers/{chunk-NXGQBQWE.js → chunk-MJTLGN63.js} +14 -14
  25. package/Build/Workers/{chunk-XCBZVTIV.js → chunk-MUNZ77KV.js} +1 -1
  26. package/Build/Workers/{chunk-NLLCQBX3.js → chunk-NC5BUJEF.js} +2 -2
  27. package/Build/Workers/chunk-NYKURYFR.js +2131 -0
  28. package/Build/Workers/{chunk-5LSOO2KD.js → chunk-NZAQG57U.js} +7 -7
  29. package/Build/Workers/{chunk-DZUFEE4L.js → chunk-O5GUOP2G.js} +5 -7
  30. package/Build/Workers/{chunk-D6AY775A.js → chunk-OQUOLQTN.js} +8 -10
  31. package/Build/Workers/{chunk-CDJDJ5LK.js → chunk-OUG5JB2K.js} +16 -14
  32. package/Build/Workers/{chunk-ACTVJHSP.js → chunk-P4SDLSGF.js} +13 -6
  33. package/Build/Workers/{chunk-MAAHFYPC.js → chunk-P6PC2OIM.js} +7 -7
  34. package/Build/Workers/{chunk-6YR6JBMY.js → chunk-PPRK3XQU.js} +31 -35
  35. package/Build/Workers/{chunk-IMBVP57H.js → chunk-QGTYLWOT.js} +2 -2
  36. package/Build/Workers/{chunk-FCP2QY4G.js → chunk-QHTLIQUH.js} +5 -7
  37. package/Build/Workers/{chunk-EZGQPOIG.js → chunk-ROHWZQZ5.js} +5 -5
  38. package/Build/Workers/{chunk-B3QHNA4A.js → chunk-SNUWISJO.js} +6 -8
  39. package/Build/Workers/{chunk-XDWCTQCZ.js → chunk-T67YY3KP.js} +4 -2
  40. package/Build/Workers/{chunk-IJZJMIUY.js → chunk-TF5473GK.js} +13 -13
  41. package/Build/Workers/{chunk-OZGPS7FB.js → chunk-THHFTMAL.js} +4 -6
  42. package/Build/Workers/{chunk-PRWUMCXF.js → chunk-UFCZ62WM.js} +15 -13
  43. package/Build/Workers/{chunk-27FWRTJI.js → chunk-UV2YC2Q5.js} +11 -11
  44. package/Build/Workers/{chunk-N7CCOFLX.js → chunk-V4ICCWYA.js} +1 -1
  45. package/Build/Workers/{chunk-GHXVQVUM.js → chunk-VC6XXI2Z.js} +9 -9
  46. package/Build/Workers/{chunk-I74ZH5LK.js → chunk-VXJ6P4UI.js} +10 -10
  47. package/Build/Workers/{chunk-KGXSYGBG.js → chunk-W2BKP7G7.js} +15 -17
  48. package/Build/Workers/{chunk-LDRQSYBN.js → chunk-WMVGNBSH.js} +2 -2
  49. package/Build/Workers/{chunk-SMTGMFBL.js → chunk-XFZMQZSZ.js} +4 -4
  50. package/Build/Workers/{chunk-7MM3N2VE.js → chunk-XJ532R6R.js} +20 -20
  51. package/Build/Workers/{chunk-NJVBJG63.js → chunk-YJNU4SM4.js} +5 -5
  52. package/Build/Workers/{chunk-DIGUUD6G.js → chunk-YJRDTEHQ.js} +8 -8
  53. package/Build/Workers/chunk-YUICDZKO.js +2660 -0
  54. package/Build/Workers/{chunk-O3XFXGPZ.js → chunk-Z3DEVGJV.js} +7 -7
  55. package/Build/Workers/{chunk-3PSS3T43.js → chunk-ZECGI7UZ.js} +4 -4
  56. package/Build/Workers/{chunk-QFSSCLLZ.js → chunk-ZFLPVPUJ.js} +6 -8
  57. package/Build/Workers/{chunk-2RGJPWQX.js → chunk-ZIM5H2DB.js} +11 -11
  58. package/Build/Workers/{chunk-GVA7XQI2.js → chunk-ZSQMGGSB.js} +14 -16
  59. package/Build/Workers/{chunk-FU4BGABC.js → chunk-ZWYRGMBK.js} +16 -18
  60. package/Build/Workers/{chunk-JKXV6PG5.js → chunk-ZY733NZA.js} +1 -1
  61. package/Build/Workers/combineGeometry.js +24 -24
  62. package/Build/Workers/createBoxGeometry.js +18 -18
  63. package/Build/Workers/createBoxOutlineGeometry.js +20 -19
  64. package/Build/Workers/createCircleGeometry.js +28 -27
  65. package/Build/Workers/createCircleOutlineGeometry.js +21 -20
  66. package/Build/Workers/createCoplanarPolygonGeometry.js +34 -34
  67. package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +33 -32
  68. package/Build/Workers/createCorridorGeometry.js +31 -31
  69. package/Build/Workers/createCorridorOutlineGeometry.js +30 -30
  70. package/Build/Workers/createCylinderGeometry.js +20 -20
  71. package/Build/Workers/createCylinderOutlineGeometry.js +22 -21
  72. package/Build/Workers/createEllipseGeometry.js +26 -26
  73. package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
  74. package/Build/Workers/createEllipsoidGeometry.js +19 -19
  75. package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
  76. package/Build/Workers/createFrustumGeometry.js +18 -18
  77. package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
  78. package/Build/Workers/createGeometry.js +27 -26
  79. package/Build/Workers/createGroundPolylineGeometry.js +27 -26
  80. package/Build/Workers/createPlaneGeometry.js +18 -17
  81. package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
  82. package/Build/Workers/createPolygonGeometry.js +35 -35
  83. package/Build/Workers/createPolygonOutlineGeometry.js +34 -34
  84. package/Build/Workers/createPolylineGeometry.js +28 -29
  85. package/Build/Workers/createPolylineVolumeGeometry.js +34 -35
  86. package/Build/Workers/createPolylineVolumeOutlineGeometry.js +30 -31
  87. package/Build/Workers/createRectangleGeometry.js +30 -30
  88. package/Build/Workers/createRectangleOutlineGeometry.js +23 -24
  89. package/Build/Workers/createSimplePolylineGeometry.js +26 -27
  90. package/Build/Workers/createSphereGeometry.js +19 -19
  91. package/Build/Workers/createSphereOutlineGeometry.js +18 -18
  92. package/Build/Workers/createTaskProcessorWorker.js +3 -3
  93. package/Build/Workers/createVectorTileClampedPolylines.js +17 -16
  94. package/Build/Workers/createVectorTileGeometries.js +24 -24
  95. package/Build/Workers/createVectorTilePoints.js +13 -13
  96. package/Build/Workers/createVectorTilePolygons.js +22 -22
  97. package/Build/Workers/createVectorTilePolylines.js +17 -16
  98. package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +36 -26
  99. package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +24 -24
  100. package/Build/Workers/createVerticesFromHeightmap.js +24 -25
  101. package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
  102. package/Build/Workers/createWallGeometry.js +27 -28
  103. package/Build/Workers/createWallOutlineGeometry.js +26 -27
  104. package/Build/Workers/decodeDraco.js +16 -12
  105. package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +336 -337
  106. package/Build/Workers/decodeI3S.js +17 -12
  107. package/Build/Workers/{chunk-GXWQZBAI.js → decodeMeshopt.js} +23 -29
  108. package/Build/Workers/decodeSpz.js +1960 -0
  109. package/Build/Workers/gaussianSplatSorter.js +13 -6
  110. package/Build/Workers/gaussianSplatTextureGenerator.js +13 -6
  111. package/Build/Workers/incrementallyBuildTerrainPicker.js +9 -10
  112. package/Build/Workers/transcodeKTX2.js +26 -12
  113. package/Build/Workers/transferTypedArrayTest.js +1 -1
  114. package/Build/Workers/upsampleQuantizedTerrainMesh.js +24 -24
  115. package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
  116. package/Source/Core/Cesium3DTilesTerrainData.js +11 -1
  117. package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +33 -23
  118. package/Source/Core/Ion.js +1 -1
  119. package/Source/Core/IonResource.js +5 -0
  120. package/Source/Core/IonSnapGeometryType.js +59 -0
  121. package/Source/Core/IonSnapHeat.js +33 -0
  122. package/Source/Core/IonSnapMode.js +45 -0
  123. package/Source/Core/IonSnapParentGeometryType.js +52 -0
  124. package/Source/Core/IonSnapService.js +369 -0
  125. package/Source/Core/KTX2Transcoder.js +99 -5
  126. package/Source/Core/Resource.js +2 -0
  127. package/Source/Core/SnapService.js +63 -0
  128. package/Source/Core/TaskProcessor.js +249 -129
  129. package/Source/Core/TrustedServers.js +34 -1
  130. package/Source/Core/VectorPipeline.js +139 -45
  131. package/Source/Core/VectorProvider.js +311 -71
  132. package/Source/Core/WebAssemblyWorkerInitializer.js +125 -0
  133. package/Source/Core/fetchWebAssemblyBinary.js +52 -0
  134. package/Source/Renderer/AutomaticUniforms.js +44 -2
  135. package/Source/Renderer/ShaderBuilder.js +1 -1
  136. package/Source/Renderer/UniformState.js +47 -1
  137. package/Source/Scene/ArcGisMapService.js +1 -1
  138. package/Source/Scene/BufferPointCollection.js +4 -7
  139. package/Source/Scene/BufferPolygonCollection.js +56 -27
  140. package/Source/Scene/BufferPolylineCollection.js +61 -8
  141. package/Source/Scene/BufferPolylineMaterial.js +6 -5
  142. package/Source/Scene/BufferPrimitiveCollection.js +199 -29
  143. package/Source/Scene/Cesium3DTile.js +12 -0
  144. package/Source/Scene/Cesium3DTileset.js +61 -8
  145. package/Source/Scene/Cesium3DTilesetBaseTraversal.js +15 -3
  146. package/Source/Scene/Cesium3DTilesetCache.js +15 -0
  147. package/Source/Scene/ClippingPolygon.js +154 -100
  148. package/Source/Scene/ClippingPolygonCollection.js +352 -694
  149. package/Source/Scene/CreditDisplay.js +62 -0
  150. package/Source/Scene/GaussianSplatPrimitive.js +153 -66
  151. package/Source/Scene/GeoJsonPrimitive.js +114 -24
  152. package/Source/Scene/GlobeSurfaceShaderSet.js +33 -54
  153. package/Source/Scene/GlobeSurfaceTile.js +14 -1
  154. package/Source/Scene/GlobeSurfaceTileProvider.js +232 -25
  155. package/Source/Scene/GltfBufferViewLoader.js +25 -13
  156. package/Source/Scene/GltfLoader.js +56 -6
  157. package/Source/Scene/GltfSpzLoader.js +5 -4
  158. package/Source/Scene/HeightReference.js +1 -1
  159. package/Source/Scene/MVTDataProvider.js +9 -0
  160. package/Source/Scene/Model/Model.js +242 -16
  161. package/Source/Scene/Model/Model3DTileContent.js +5 -0
  162. package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +54 -19
  163. package/Source/Scene/Model/ModelRenderResources.js +2 -3
  164. package/Source/Scene/Model/ModelSceneGraph.js +10 -1
  165. package/Source/Scene/Model/ModelVectorLookupPipelineStage.js +205 -0
  166. package/Source/Scene/Model/PickingPipelineStage.js +4 -0
  167. package/Source/Scene/PostProcessStage.js +22 -3
  168. package/Source/Scene/Scene.js +56 -1
  169. package/Source/Scene/Snapping.js +57 -0
  170. package/Source/Scene/SpzDecoder.js +106 -0
  171. package/Source/Scene/UrlTemplate3DTilesDataProvider.js +12 -1
  172. package/Source/Scene/VectorGltf3DTileContent.js +10 -2
  173. package/Source/Scene/WebMapServiceImageryProvider.js +5 -1
  174. package/Source/Scene/WebMapTileServiceImageryProvider.js +6 -1
  175. package/Source/Scene/renderBufferPolylineCollection.js +5 -1
  176. package/Source/Shaders/BufferPolylineMaterialVS.glsl +14 -2
  177. package/Source/Shaders/BufferPolylineMaterialVS.js +14 -2
  178. package/Source/Shaders/Builtin/CzmBuiltins.js +2 -4
  179. package/Source/Shaders/Builtin/Functions/eyeToCartographicDelta.glsl +74 -0
  180. package/Source/Shaders/Builtin/Functions/eyeToCartographicDelta.js +76 -0
  181. package/Source/Shaders/GlobeFS.glsl +10 -9
  182. package/Source/Shaders/GlobeFS.js +11 -9
  183. package/Source/Shaders/GlobeVS.glsl +0 -32
  184. package/Source/Shaders/GlobeVS.js +0 -32
  185. package/Source/Shaders/Model/ModelClippingPolygonsStageFS.glsl +15 -3
  186. package/Source/Shaders/Model/ModelClippingPolygonsStageFS.js +15 -3
  187. package/Source/Shaders/Model/ModelClippingPolygonsStageVS.glsl +20 -24
  188. package/Source/Shaders/Model/ModelClippingPolygonsStageVS.js +20 -24
  189. package/Source/Shaders/Model/ModelFS.glsl +4 -0
  190. package/Source/Shaders/Model/ModelFS.js +4 -0
  191. package/Source/Shaders/Model/ModelVS.glsl +7 -2
  192. package/Source/Shaders/Model/ModelVS.js +7 -2
  193. package/Source/Shaders/Model/ModelVectorLookupStageFS.glsl +6 -0
  194. package/Source/Shaders/Model/ModelVectorLookupStageFS.js +8 -0
  195. package/Source/Shaders/Model/ModelVectorLookupStageVS.glsl +15 -0
  196. package/Source/Shaders/Model/ModelVectorLookupStageVS.js +17 -0
  197. package/Source/Shaders/Model/VerticalExaggerationStageVS.glsl +9 -10
  198. package/Source/Shaders/Model/VerticalExaggerationStageVS.js +9 -11
  199. package/Source/Shaders/VectorCommon.glsl +177 -50
  200. package/Source/Shaders/VectorCommon.js +251 -19
  201. package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
  202. package/Source/ThirdParty/zip-module.wasm +0 -0
  203. package/Source/Workers/createTaskProcessorWorker.js +2 -0
  204. package/Source/Workers/createVerticesFromCesium3DTilesTerrain.js +13 -1
  205. package/Source/Workers/decodeDraco.js +7 -3
  206. package/Source/Workers/decodeI3S.js +7 -3
  207. package/Source/Workers/decodeMeshopt.js +21 -0
  208. package/Source/Workers/decodeSpz.js +20 -0
  209. package/Source/Workers/gaussianSplatSorter.js +7 -3
  210. package/Source/Workers/gaussianSplatTextureGenerator.js +7 -3
  211. package/Source/Workers/transcodeKTX2.js +22 -5
  212. package/index.d.ts +649 -55
  213. package/index.js +23 -13
  214. package/package.json +6 -6
  215. package/Build/Workers/chunk-2EFYUSUY.js +0 -1483
  216. package/Build/Workers/chunk-2H5264K7.js +0 -1284
  217. package/Build/Workers/chunk-2H73KDBM.js +0 -511
  218. package/Build/Workers/chunk-2ZKH2QZB.js +0 -387
  219. package/Build/Workers/chunk-36NI5E6W.js +0 -3820
  220. package/Build/Workers/chunk-37SW7SYS.js +0 -778
  221. package/Build/Workers/chunk-3GHVJ3SO.js +0 -455
  222. package/Build/Workers/chunk-3LB4UVPU.js +0 -387
  223. package/Build/Workers/chunk-3PONLKEL.js +0 -778
  224. package/Build/Workers/chunk-3QR662HH.js +0 -3820
  225. package/Build/Workers/chunk-3SX2WYSO.js +0 -973
  226. package/Build/Workers/chunk-3UDN6LYX.js +0 -476
  227. package/Build/Workers/chunk-47MCBSXI.js +0 -9237
  228. package/Build/Workers/chunk-4E626OCE.js +0 -1067
  229. package/Build/Workers/chunk-4NW2MJKH.js +0 -455
  230. package/Build/Workers/chunk-52YK5BSN.js +0 -198
  231. package/Build/Workers/chunk-5RNAQZK6.js +0 -9234
  232. package/Build/Workers/chunk-5YPQBFRD.js +0 -519
  233. package/Build/Workers/chunk-6FHT43QR.js +0 -140
  234. package/Build/Workers/chunk-6HK6IXK2.js +0 -138
  235. package/Build/Workers/chunk-6R5X2GUA.js +0 -1284
  236. package/Build/Workers/chunk-7A2OGDHT.js +0 -305
  237. package/Build/Workers/chunk-7CGEQUM2.js +0 -305
  238. package/Build/Workers/chunk-7D2HZKH7.js +0 -455
  239. package/Build/Workers/chunk-7I325HV6.js +0 -1344
  240. package/Build/Workers/chunk-7KVKHY7O.js +0 -147
  241. package/Build/Workers/chunk-7TKLTCZW.js +0 -219
  242. package/Build/Workers/chunk-7UUKBDH6.js +0 -1054
  243. package/Build/Workers/chunk-7W6DUHAB.js +0 -693
  244. package/Build/Workers/chunk-7XM5JK5F.js +0 -162
  245. package/Build/Workers/chunk-7YG3ND3P.js +0 -454
  246. package/Build/Workers/chunk-A3O6EDBK.js +0 -73
  247. package/Build/Workers/chunk-A6X24AZI.js +0 -1992
  248. package/Build/Workers/chunk-A7TTWVTF.js +0 -2719
  249. package/Build/Workers/chunk-ADX3CBKD.js +0 -9234
  250. package/Build/Workers/chunk-AF7DTMJ7.js +0 -398
  251. package/Build/Workers/chunk-AHWAZRBV.js +0 -82
  252. package/Build/Workers/chunk-AJSFRY4U.js +0 -1344
  253. package/Build/Workers/chunk-B4CQSLZJ.js +0 -305
  254. package/Build/Workers/chunk-BKPQFCXH.js +0 -511
  255. package/Build/Workers/chunk-BSPCI2LO.js +0 -959
  256. package/Build/Workers/chunk-BUJWSX5S.js +0 -301
  257. package/Build/Workers/chunk-C7JQVRLM.js +0 -497
  258. package/Build/Workers/chunk-C7QDUNI3.js +0 -138
  259. package/Build/Workers/chunk-CEEZE3YZ.js +0 -476
  260. package/Build/Workers/chunk-CIV5DJOQ.js +0 -778
  261. package/Build/Workers/chunk-CLCTQVVL.js +0 -241
  262. package/Build/Workers/chunk-CQNFIAZU.js +0 -56
  263. package/Build/Workers/chunk-DBD5WWG2.js +0 -959
  264. package/Build/Workers/chunk-DZBQUULR.js +0 -138
  265. package/Build/Workers/chunk-E2NKV5YT.js +0 -3820
  266. package/Build/Workers/chunk-E7NZJOK7.js +0 -3792
  267. package/Build/Workers/chunk-EB3Y5P3A.js +0 -368
  268. package/Build/Workers/chunk-EHTS2YPT.js +0 -2719
  269. package/Build/Workers/chunk-ELE6SC2C.js +0 -837
  270. package/Build/Workers/chunk-ENNFMWDW.js +0 -789
  271. package/Build/Workers/chunk-EOWDZN5S.js +0 -288
  272. package/Build/Workers/chunk-ERKUET22.js +0 -3201
  273. package/Build/Workers/chunk-F2IMBMZY.js +0 -241
  274. package/Build/Workers/chunk-F4CSNRZO.js +0 -219
  275. package/Build/Workers/chunk-FBP4DUQJ.js +0 -693
  276. package/Build/Workers/chunk-FDK4K5IA.js +0 -280
  277. package/Build/Workers/chunk-FGQFQHN5.js +0 -1054
  278. package/Build/Workers/chunk-FJWZMGOQ.js +0 -1992
  279. package/Build/Workers/chunk-FQ42MT7M.js +0 -58
  280. package/Build/Workers/chunk-GGNWQWSB.js +0 -301
  281. package/Build/Workers/chunk-GNKXEN4C.js +0 -682
  282. package/Build/Workers/chunk-GSWMAFTE.js +0 -9230
  283. package/Build/Workers/chunk-GXDHRC4J.js +0 -1344
  284. package/Build/Workers/chunk-GYSYP6PC.js +0 -1067
  285. package/Build/Workers/chunk-H2WCFXLP.js +0 -241
  286. package/Build/Workers/chunk-HHV3MCGV.js +0 -162
  287. package/Build/Workers/chunk-HLW2ZRVK.js +0 -368
  288. package/Build/Workers/chunk-HS6AD4P2.js +0 -398
  289. package/Build/Workers/chunk-HT6FASOT.js +0 -973
  290. package/Build/Workers/chunk-IDVHUDZT.js +0 -352
  291. package/Build/Workers/chunk-IGAZBTFZ.js +0 -3201
  292. package/Build/Workers/chunk-ILME5BXA.js +0 -301
  293. package/Build/Workers/chunk-IOO7Z2AV.js +0 -57
  294. package/Build/Workers/chunk-IUIFLOYO.js +0 -44
  295. package/Build/Workers/chunk-J73T2VOY.js +0 -171
  296. package/Build/Workers/chunk-JALGQYDY.js +0 -288
  297. package/Build/Workers/chunk-JW6OZT4R.js +0 -288
  298. package/Build/Workers/chunk-JXYLJCTC.js +0 -124
  299. package/Build/Workers/chunk-K27QOAW6.js +0 -97
  300. package/Build/Workers/chunk-KMV25A63.js +0 -789
  301. package/Build/Workers/chunk-KZWFWJML.js +0 -2719
  302. package/Build/Workers/chunk-LCXRRALY.js +0 -387
  303. package/Build/Workers/chunk-LD64RPYV.js +0 -368
  304. package/Build/Workers/chunk-LGNDTZVX.js +0 -97
  305. package/Build/Workers/chunk-LNSQVXFH.js +0 -1800
  306. package/Build/Workers/chunk-M4JZ6TSZ.js +0 -959
  307. package/Build/Workers/chunk-MCJDRDJQ.js +0 -102
  308. package/Build/Workers/chunk-MEENMEAH.js +0 -198
  309. package/Build/Workers/chunk-NAWU5RF4.js +0 -162
  310. package/Build/Workers/chunk-NIWITKQK.js +0 -693
  311. package/Build/Workers/chunk-OA6MYL2C.js +0 -837
  312. package/Build/Workers/chunk-OBEU25PI.js +0 -1067
  313. package/Build/Workers/chunk-OHP4ELS7.js +0 -198
  314. package/Build/Workers/chunk-PCL3Y7H5.js +0 -82
  315. package/Build/Workers/chunk-PD4GK4EM.js +0 -57
  316. package/Build/Workers/chunk-PEDU33QG.js +0 -2342
  317. package/Build/Workers/chunk-PVTSNNVI.js +0 -288
  318. package/Build/Workers/chunk-QHPZH22L.js +0 -241
  319. package/Build/Workers/chunk-QIZDWZK6.js +0 -301
  320. package/Build/Workers/chunk-QV6DG2YX.js +0 -1483
  321. package/Build/Workers/chunk-QVLAFFJY.js +0 -56
  322. package/Build/Workers/chunk-R4FPNAZ2.js +0 -352
  323. package/Build/Workers/chunk-R4K7EHOU.js +0 -171
  324. package/Build/Workers/chunk-R7JGHDD6.js +0 -789
  325. package/Build/Workers/chunk-RASQEYD4.js +0 -1483
  326. package/Build/Workers/chunk-RG4F5R57.js +0 -454
  327. package/Build/Workers/chunk-RW6ITX7Q.js +0 -3820
  328. package/Build/Workers/chunk-RYSQVJR6.js +0 -398
  329. package/Build/Workers/chunk-S6RJU5NM.js +0 -1054
  330. package/Build/Workers/chunk-SDFHDNS4.js +0 -147
  331. package/Build/Workers/chunk-SF6K72D7.js +0 -124
  332. package/Build/Workers/chunk-SGRGNDOD.js +0 -682
  333. package/Build/Workers/chunk-SM2CDCYF.js +0 -198
  334. package/Build/Workers/chunk-SS5ABQGY.js +0 -102
  335. package/Build/Workers/chunk-T5QBPLE3.js +0 -414
  336. package/Build/Workers/chunk-TN35HP5B.js +0 -1067
  337. package/Build/Workers/chunk-TNWKJNUZ.js +0 -454
  338. package/Build/Workers/chunk-TOAF47AQ.js +0 -102
  339. package/Build/Workers/chunk-TQ4QCOXT.js +0 -2719
  340. package/Build/Workers/chunk-TSDSILQB.js +0 -124
  341. package/Build/Workers/chunk-TVZD72WJ.js +0 -778
  342. package/Build/Workers/chunk-U5LV3F3Z.js +0 -1054
  343. package/Build/Workers/chunk-UEY73NRN.js +0 -38
  344. package/Build/Workers/chunk-UF46SZEZ.js +0 -789
  345. package/Build/Workers/chunk-UNRTMCET.js +0 -398
  346. package/Build/Workers/chunk-UTB7U3O6.js +0 -1992
  347. package/Build/Workers/chunk-UVO6COT2.js +0 -352
  348. package/Build/Workers/chunk-V46YGZE6.js +0 -352
  349. package/Build/Workers/chunk-VAL7DYNR.js +0 -278
  350. package/Build/Workers/chunk-VDGOCROW.js +0 -57
  351. package/Build/Workers/chunk-VFWSSBPT.js +0 -511
  352. package/Build/Workers/chunk-VVYMXI3I.js +0 -1284
  353. package/Build/Workers/chunk-VXWHPYQM.js +0 -837
  354. package/Build/Workers/chunk-VXYUBRSB.js +0 -219
  355. package/Build/Workers/chunk-VZLDLEWI.js +0 -387
  356. package/Build/Workers/chunk-W5OCKMPJ.js +0 -101
  357. package/Build/Workers/chunk-WBSY7HDY.js +0 -837
  358. package/Build/Workers/chunk-WN3F4CVG.js +0 -3201
  359. package/Build/Workers/chunk-WPRUWXGV.js +0 -693
  360. package/Build/Workers/chunk-WTO2ERBP.js +0 -414
  361. package/Build/Workers/chunk-WVHMDVG4.js +0 -959
  362. package/Build/Workers/chunk-XGA23TAX.js +0 -73
  363. package/Build/Workers/chunk-XLQZNQ4Z.js +0 -163
  364. package/Build/Workers/chunk-XLXSDIP5.js +0 -973
  365. package/Build/Workers/chunk-XQ3SKCMM.js +0 -140
  366. package/Build/Workers/chunk-XQH66YJC.js +0 -147
  367. package/Build/Workers/chunk-XTA7BXJG.js +0 -682
  368. package/Build/Workers/chunk-XTIDAFRS.js +0 -476
  369. package/Build/Workers/chunk-XUEDWBUD.js +0 -682
  370. package/Build/Workers/chunk-XYFLRH3H.js +0 -124
  371. package/Build/Workers/chunk-Y7JRTRTO.js +0 -305
  372. package/Build/Workers/chunk-Y7QSMDCJ.js +0 -352
  373. package/Build/Workers/chunk-YCB5TYTR.js +0 -1483
  374. package/Build/Workers/chunk-YEYOSTJX.js +0 -219
  375. package/Build/Workers/chunk-YGFVAGYF.js +0 -630
  376. package/Build/Workers/chunk-YIIACKQO.js +0 -368
  377. package/Build/Workers/chunk-YJGSP6PE.js +0 -511
  378. package/Build/Workers/chunk-YKU2Q3A2.js +0 -1287
  379. package/Build/Workers/chunk-Z4LR5EHE.js +0 -454
  380. package/Build/Workers/chunk-Z66EVE2A.js +0 -44
  381. package/Build/Workers/chunk-ZHIHHHTB.js +0 -414
  382. package/Build/Workers/chunk-ZMBHFYOX.js +0 -1344
  383. package/Build/Workers/chunk-ZNWHFSLE.js +0 -171
  384. package/Build/Workers/chunk-ZQLZG4IN.js +0 -2342
  385. package/Build/Workers/chunk-ZRTSMUZ2.js +0 -414
  386. package/Build/Workers/chunk-ZSGUV73H.js +0 -2342
  387. package/Build/Workers/chunk-ZZUVT5BM.js +0 -476
  388. package/Source/Shaders/Builtin/Functions/clipPolygons.glsl +0 -37
  389. package/Source/Shaders/Builtin/Functions/clipPolygons.js +0 -39
  390. package/Source/Shaders/Builtin/Functions/unpackClippingExtents.glsl +0 -14
  391. package/Source/Shaders/Builtin/Functions/unpackClippingExtents.js +0 -15
  392. package/Source/Shaders/PolygonSignedDistanceFS.glsl +0 -131
  393. package/Source/Shaders/PolygonSignedDistanceFS.js +0 -132
@@ -1,973 +0,0 @@
1
- /**
2
- * @license
3
- * Cesium - https://github.com/CesiumGS/cesium
4
- * Version 1.143.0
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
- FeatureDetection_default
28
- } from "./chunk-A6X24AZI.js";
29
- import {
30
- Frozen_default
31
- } from "./chunk-ZSGUV73H.js";
32
- import {
33
- Math_default
34
- } from "./chunk-C7JQVRLM.js";
35
- import {
36
- Check_default
37
- } from "./chunk-6YR6JBMY.js";
38
- import {
39
- defined_default
40
- } from "./chunk-AHWAZRBV.js";
41
-
42
- // packages/engine/Source/Core/Color.js
43
- function hue2rgb(m1, m2, h) {
44
- if (h < 0) {
45
- h += 1;
46
- }
47
- if (h > 1) {
48
- h -= 1;
49
- }
50
- if (h * 6 < 1) {
51
- return m1 + (m2 - m1) * 6 * h;
52
- }
53
- if (h * 2 < 1) {
54
- return m2;
55
- }
56
- if (h * 3 < 2) {
57
- return m1 + (m2 - m1) * (2 / 3 - h) * 6;
58
- }
59
- return m1;
60
- }
61
- var Color = class _Color {
62
- /**
63
- * @param {number} [red=1.0] The red component.
64
- * @param {number} [green=1.0] The green component.
65
- * @param {number} [blue=1.0] The blue component.
66
- * @param {number} [alpha=1.0] The alpha component.
67
- */
68
- constructor(red, green, blue, alpha) {
69
- this.red = red ?? 1;
70
- this.green = green ?? 1;
71
- this.blue = blue ?? 1;
72
- this.alpha = alpha ?? 1;
73
- }
74
- /**
75
- * Creates a Color instance from a {@link Cartesian4}. <code>x</code>, <code>y</code>, <code>z</code>,
76
- * and <code>w</code> map to <code>red</code>, <code>green</code>, <code>blue</code>, and <code>alpha</code>, respectively.
77
- *
78
- * @param {Cartesian4} cartesian The source cartesian.
79
- * @param {Color} [result] The object onto which to store the result.
80
- * @returns {Color} The modified result parameter or a new Color instance if one was not provided.
81
- */
82
- static fromCartesian4(cartesian, result) {
83
- Check_default.typeOf.object("cartesian", cartesian);
84
- if (!defined_default(result)) {
85
- return new _Color(cartesian.x, cartesian.y, cartesian.z, cartesian.w);
86
- }
87
- result.red = cartesian.x;
88
- result.green = cartesian.y;
89
- result.blue = cartesian.z;
90
- result.alpha = cartesian.w;
91
- return result;
92
- }
93
- /**
94
- * Creates a new Color specified using red, green, blue, and alpha values
95
- * that are in the range of 0 to 255, converting them internally to a range of 0.0 to 1.0.
96
- *
97
- * @param {number} [red=255] The red component.
98
- * @param {number} [green=255] The green component.
99
- * @param {number} [blue=255] The blue component.
100
- * @param {number} [alpha=255] The alpha component.
101
- * @param {Color} [result] The object onto which to store the result.
102
- * @returns {Color} The modified result parameter or a new Color instance if one was not provided.
103
- */
104
- static fromBytes(red, green, blue, alpha, result) {
105
- red = _Color.byteToFloat(red ?? 255);
106
- green = _Color.byteToFloat(green ?? 255);
107
- blue = _Color.byteToFloat(blue ?? 255);
108
- alpha = _Color.byteToFloat(alpha ?? 255);
109
- if (!defined_default(result)) {
110
- return new _Color(red, green, blue, alpha);
111
- }
112
- result.red = red;
113
- result.green = green;
114
- result.blue = blue;
115
- result.alpha = alpha;
116
- return result;
117
- }
118
- /**
119
- * Creates a new Color that has the same red, green, and blue components
120
- * of the specified color, but with the specified alpha value.
121
- *
122
- * @param {Color} color The base color
123
- * @param {number} alpha The new alpha component.
124
- * @param {Color} [result] The object onto which to store the result.
125
- * @returns {Color} The modified result parameter or a new Color instance if one was not provided.
126
- *
127
- * @example const translucentRed = Cesium.Color.fromAlpha(Cesium.Color.RED, 0.9);
128
- */
129
- static fromAlpha(color, alpha, result) {
130
- Check_default.typeOf.object("color", color);
131
- Check_default.typeOf.number("alpha", alpha);
132
- if (!defined_default(result)) {
133
- return new _Color(color.red, color.green, color.blue, alpha);
134
- }
135
- result.red = color.red;
136
- result.green = color.green;
137
- result.blue = color.blue;
138
- result.alpha = alpha;
139
- return result;
140
- }
141
- /**
142
- * Creates a new Color from a single numeric unsigned 32-bit RGBA value, using the endianness
143
- * of the system.
144
- *
145
- * @param {number} rgba A single numeric unsigned 32-bit RGBA value.
146
- * @param {Color} [result] The object to store the result in, if undefined a new instance will be created.
147
- * @returns {Color} The color object.
148
- *
149
- * @example
150
- * const color = Cesium.Color.fromRgba(0x67ADDFFF);
151
- *
152
- * @see Color#toRgba
153
- */
154
- static fromRgba(rgba, result) {
155
- scratchUint32Array[0] = rgba;
156
- return _Color.fromBytes(
157
- scratchUint8Array[0],
158
- scratchUint8Array[1],
159
- scratchUint8Array[2],
160
- scratchUint8Array[3],
161
- result
162
- );
163
- }
164
- /**
165
- * Creates a Color instance from hue, saturation, and lightness.
166
- *
167
- * @param {number} [hue=0] The hue angle 0...1
168
- * @param {number} [saturation=0] The saturation value 0...1
169
- * @param {number} [lightness=0] The lightness value 0...1
170
- * @param {number} [alpha=1.0] The alpha component 0...1
171
- * @param {Color} [result] The object to store the result in, if undefined a new instance will be created.
172
- * @returns {Color} The color object.
173
- *
174
- * @see {@link http://www.w3.org/TR/css3-color/#hsl-color|CSS color values}
175
- */
176
- static fromHsl(hue, saturation, lightness, alpha, result) {
177
- hue = (hue ?? 0) % 1;
178
- saturation = saturation ?? 0;
179
- lightness = lightness ?? 0;
180
- alpha = alpha ?? 1;
181
- let red = lightness;
182
- let green = lightness;
183
- let blue = lightness;
184
- if (saturation !== 0) {
185
- let m2;
186
- if (lightness < 0.5) {
187
- m2 = lightness * (1 + saturation);
188
- } else {
189
- m2 = lightness + saturation - lightness * saturation;
190
- }
191
- const m1 = 2 * lightness - m2;
192
- red = hue2rgb(m1, m2, hue + 1 / 3);
193
- green = hue2rgb(m1, m2, hue);
194
- blue = hue2rgb(m1, m2, hue - 1 / 3);
195
- }
196
- if (!defined_default(result)) {
197
- return new _Color(red, green, blue, alpha);
198
- }
199
- result.red = red;
200
- result.green = green;
201
- result.blue = blue;
202
- result.alpha = alpha;
203
- return result;
204
- }
205
- /**
206
- * Creates a random color using the provided options. For reproducible random colors, you should
207
- * call {@link CesiumMath#setRandomNumberSeed} once at the beginning of your application.
208
- *
209
- * @param {object} [options] Object with the following properties:
210
- * @param {number} [options.red] If specified, the red component to use instead of a randomized value.
211
- * @param {number} [options.minimumRed=0.0] The maximum red value to generate if none was specified.
212
- * @param {number} [options.maximumRed=1.0] The minimum red value to generate if none was specified.
213
- * @param {number} [options.green] If specified, the green component to use instead of a randomized value.
214
- * @param {number} [options.minimumGreen=0.0] The maximum green value to generate if none was specified.
215
- * @param {number} [options.maximumGreen=1.0] The minimum green value to generate if none was specified.
216
- * @param {number} [options.blue] If specified, the blue component to use instead of a randomized value.
217
- * @param {number} [options.minimumBlue=0.0] The maximum blue value to generate if none was specified.
218
- * @param {number} [options.maximumBlue=1.0] The minimum blue value to generate if none was specified.
219
- * @param {number} [options.alpha] If specified, the alpha component to use instead of a randomized value.
220
- * @param {number} [options.minimumAlpha=0.0] The maximum alpha value to generate if none was specified.
221
- * @param {number} [options.maximumAlpha=1.0] The minimum alpha value to generate if none was specified.
222
- * @param {Color} [result] The object to store the result in, if undefined a new instance will be created.
223
- * @returns {Color} The modified result parameter or a new instance if result was undefined.
224
- *
225
- * @exception {DeveloperError} minimumRed must be less than or equal to maximumRed.
226
- * @exception {DeveloperError} minimumGreen must be less than or equal to maximumGreen.
227
- * @exception {DeveloperError} minimumBlue must be less than or equal to maximumBlue.
228
- * @exception {DeveloperError} minimumAlpha must be less than or equal to maximumAlpha.
229
- *
230
- * @example
231
- * //Create a completely random color
232
- * const color = Cesium.Color.fromRandom();
233
- *
234
- * //Create a random shade of yellow.
235
- * const color1 = Cesium.Color.fromRandom({
236
- * red : 1.0,
237
- * green : 1.0,
238
- * alpha : 1.0
239
- * });
240
- *
241
- * //Create a random bright color.
242
- * const color2 = Cesium.Color.fromRandom({
243
- * minimumRed : 0.75,
244
- * minimumGreen : 0.75,
245
- * minimumBlue : 0.75,
246
- * alpha : 1.0
247
- * });
248
- */
249
- static fromRandom(options, result) {
250
- options = options ?? Frozen_default.EMPTY_OBJECT;
251
- let red = options.red;
252
- if (!defined_default(red)) {
253
- const minimumRed = options.minimumRed ?? 0;
254
- const maximumRed = options.maximumRed ?? 1;
255
- Check_default.typeOf.number.lessThanOrEquals(
256
- "minimumRed",
257
- minimumRed,
258
- maximumRed
259
- );
260
- red = minimumRed + Math_default.nextRandomNumber() * (maximumRed - minimumRed);
261
- }
262
- let green = options.green;
263
- if (!defined_default(green)) {
264
- const minimumGreen = options.minimumGreen ?? 0;
265
- const maximumGreen = options.maximumGreen ?? 1;
266
- Check_default.typeOf.number.lessThanOrEquals(
267
- "minimumGreen",
268
- minimumGreen,
269
- maximumGreen
270
- );
271
- green = minimumGreen + Math_default.nextRandomNumber() * (maximumGreen - minimumGreen);
272
- }
273
- let blue = options.blue;
274
- if (!defined_default(blue)) {
275
- const minimumBlue = options.minimumBlue ?? 0;
276
- const maximumBlue = options.maximumBlue ?? 1;
277
- Check_default.typeOf.number.lessThanOrEquals(
278
- "minimumBlue",
279
- minimumBlue,
280
- maximumBlue
281
- );
282
- blue = minimumBlue + Math_default.nextRandomNumber() * (maximumBlue - minimumBlue);
283
- }
284
- let alpha = options.alpha;
285
- if (!defined_default(alpha)) {
286
- const minimumAlpha = options.minimumAlpha ?? 0;
287
- const maximumAlpha = options.maximumAlpha ?? 1;
288
- Check_default.typeOf.number.lessThanOrEquals(
289
- "minimumAlpha",
290
- minimumAlpha,
291
- maximumAlpha
292
- );
293
- alpha = minimumAlpha + Math_default.nextRandomNumber() * (maximumAlpha - minimumAlpha);
294
- }
295
- if (!defined_default(result)) {
296
- return new _Color(red, green, blue, alpha);
297
- }
298
- result.red = red;
299
- result.green = green;
300
- result.blue = blue;
301
- result.alpha = alpha;
302
- return result;
303
- }
304
- /**
305
- * Creates a Color instance from a CSS color value.
306
- *
307
- * @param {string} color The CSS color value in #rgb, #rgba, #rrggbb, #rrggbbaa, rgb(), rgba(), hsl(), or hsla() format.
308
- * @param {Color} [result] The object to store the result in, if undefined a new instance will be created.
309
- * @returns {Color} The color object, or undefined if the string was not a valid CSS color.
310
- *
311
- *
312
- * @example
313
- * const cesiumBlue = Cesium.Color.fromCssColorString('#67ADDF');
314
- * const green = Cesium.Color.fromCssColorString('green');
315
- *
316
- * @see {@link http://www.w3.org/TR/css3-color|CSS color values}
317
- */
318
- static fromCssColorString(color, result) {
319
- Check_default.typeOf.string("color", color);
320
- if (!defined_default(result)) {
321
- result = new _Color();
322
- }
323
- color = color.trim();
324
- const namedColor = _Color[color.toUpperCase()];
325
- if (defined_default(namedColor)) {
326
- _Color.clone(namedColor, result);
327
- return result;
328
- }
329
- let matches = rgbaMatcher.exec(color);
330
- if (matches !== null) {
331
- result.red = parseInt(matches[1], 16) / 15;
332
- result.green = parseInt(matches[2], 16) / 15;
333
- result.blue = parseInt(matches[3], 16) / 15;
334
- result.alpha = parseInt(matches[4] ?? "f", 16) / 15;
335
- return result;
336
- }
337
- matches = rrggbbaaMatcher.exec(color);
338
- if (matches !== null) {
339
- result.red = parseInt(matches[1], 16) / 255;
340
- result.green = parseInt(matches[2], 16) / 255;
341
- result.blue = parseInt(matches[3], 16) / 255;
342
- result.alpha = parseInt(matches[4] ?? "ff", 16) / 255;
343
- return result;
344
- }
345
- matches = rgbParenthesesMatcher.exec(color);
346
- if (matches !== null) {
347
- result.red = parseFloat(matches[1]) / ("%" === matches[1].substr(-1) ? 100 : 255);
348
- result.green = parseFloat(matches[2]) / ("%" === matches[2].substr(-1) ? 100 : 255);
349
- result.blue = parseFloat(matches[3]) / ("%" === matches[3].substr(-1) ? 100 : 255);
350
- result.alpha = parseFloat(matches[4] ?? "1.0");
351
- return result;
352
- }
353
- matches = hslParenthesesMatcher.exec(color);
354
- if (matches !== null) {
355
- return _Color.fromHsl(
356
- parseFloat(matches[1]) / 360,
357
- parseFloat(matches[2]) / 100,
358
- parseFloat(matches[3]) / 100,
359
- parseFloat(matches[4] ?? "1.0"),
360
- result
361
- );
362
- }
363
- result = void 0;
364
- return result;
365
- }
366
- /**
367
- * Stores the provided instance into the provided array.
368
- *
369
- * @param {Color} value The value to pack.
370
- * @param {number[]|TypedArray} array The array to pack into.
371
- * @param {number} [startingIndex=0] The index into the array at which to start packing the elements.
372
- *
373
- * @returns {number[]|TypedArray} The array that was packed into
374
- */
375
- static pack(value, array, startingIndex) {
376
- Check_default.typeOf.object("value", value);
377
- Check_default.defined("array", array);
378
- startingIndex = startingIndex ?? 0;
379
- array[startingIndex++] = value.red;
380
- array[startingIndex++] = value.green;
381
- array[startingIndex++] = value.blue;
382
- array[startingIndex] = value.alpha;
383
- return array;
384
- }
385
- /**
386
- * Retrieves an instance from a packed array.
387
- *
388
- * @param {number[]|TypedArray} array The packed array.
389
- * @param {number} [startingIndex=0] The starting index of the element to be unpacked.
390
- * @param {Color} [result] The object into which to store the result.
391
- * @returns {Color} The modified result parameter or a new Color instance if one was not provided.
392
- */
393
- static unpack(array, startingIndex, result) {
394
- Check_default.defined("array", array);
395
- startingIndex = startingIndex ?? 0;
396
- if (!defined_default(result)) {
397
- result = new _Color();
398
- }
399
- result.red = array[startingIndex++];
400
- result.green = array[startingIndex++];
401
- result.blue = array[startingIndex++];
402
- result.alpha = array[startingIndex];
403
- return result;
404
- }
405
- /**
406
- * Converts a 'byte' color component in the range of 0 to 255 into
407
- * a 'float' color component in the range of 0 to 1.0.
408
- *
409
- * @param {number} number The number to be converted.
410
- * @returns {number} The converted number.
411
- */
412
- static byteToFloat(number) {
413
- return number / 255;
414
- }
415
- /**
416
- * Converts a 'float' color component in the range of 0 to 1.0 into
417
- * a 'byte' color component in the range of 0 to 255.
418
- *
419
- * @param {number} number The number to be converted.
420
- * @returns {number} The converted number.
421
- */
422
- static floatToByte(number) {
423
- return number === 1 ? 255 : number * 256 | 0;
424
- }
425
- /**
426
- * Duplicates a Color.
427
- *
428
- * @param {Color} color The Color to duplicate.
429
- * @param {Color} [result] The object to store the result in, if undefined a new instance will be created.
430
- * @returns {Color} The modified result parameter or a new instance if result was undefined. (Returns undefined if color is undefined)
431
- */
432
- static clone(color, result) {
433
- if (!defined_default(color)) {
434
- return void 0;
435
- }
436
- if (!defined_default(result)) {
437
- return new _Color(color.red, color.green, color.blue, color.alpha);
438
- }
439
- result.red = color.red;
440
- result.green = color.green;
441
- result.blue = color.blue;
442
- result.alpha = color.alpha;
443
- return result;
444
- }
445
- /**
446
- * Returns true if the first Color equals the second color.
447
- *
448
- * @param {Color} [left] The first Color to compare for equality.
449
- * @param {Color} [right] The second Color to compare for equality.
450
- * @returns {boolean} <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
451
- */
452
- static equals(left, right) {
453
- return left === right || //
454
- defined_default(left) && //
455
- defined_default(right) && //
456
- left.red === right.red && //
457
- left.green === right.green && //
458
- left.blue === right.blue && //
459
- left.alpha === right.alpha;
460
- }
461
- /**
462
- * @private
463
- */
464
- static equalsArray(color, array, offset) {
465
- return color.red === array[offset] && color.green === array[offset + 1] && color.blue === array[offset + 2] && color.alpha === array[offset + 3];
466
- }
467
- /**
468
- * Returns a duplicate of a Color instance.
469
- *
470
- * @param {Color} [result] The object to store the result in, if undefined a new instance will be created.
471
- * @returns {Color} The modified result parameter or a new instance if result was undefined.
472
- */
473
- clone(result) {
474
- return _Color.clone(this, result);
475
- }
476
- /**
477
- * Returns true if this Color equals other.
478
- *
479
- * @param {Color} [other] The Color to compare for equality.
480
- * @returns {boolean} <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
481
- */
482
- equals(other) {
483
- return _Color.equals(this, other);
484
- }
485
- /**
486
- * Returns <code>true</code> if this Color equals other componentwise within the specified epsilon.
487
- *
488
- * @param {Color} other The Color to compare for equality.
489
- * @param {number} [epsilon=0.0] The epsilon to use for equality testing.
490
- * @returns {boolean} <code>true</code> if the Colors are equal within the specified epsilon; otherwise, <code>false</code>.
491
- */
492
- equalsEpsilon(other, epsilon) {
493
- return this === other || //
494
- defined_default(other) && //
495
- Math.abs(this.red - other.red) <= epsilon && //
496
- Math.abs(this.green - other.green) <= epsilon && //
497
- Math.abs(this.blue - other.blue) <= epsilon && //
498
- Math.abs(this.alpha - other.alpha) <= epsilon;
499
- }
500
- /**
501
- * Creates a string representing this Color in the format '(red, green, blue, alpha)'.
502
- *
503
- * @returns {string} A string representing this Color in the format '(red, green, blue, alpha)'.
504
- */
505
- toString() {
506
- return `(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;
507
- }
508
- /**
509
- * Creates a string containing the CSS color value for this color.
510
- *
511
- * @returns {string} The CSS equivalent of this color.
512
- *
513
- * @see {@link http://www.w3.org/TR/css3-color/#rgba-color|CSS RGB or RGBA color values}
514
- */
515
- toCssColorString() {
516
- const red = _Color.floatToByte(this.red);
517
- const green = _Color.floatToByte(this.green);
518
- const blue = _Color.floatToByte(this.blue);
519
- if (this.alpha === 1) {
520
- return `rgb(${red},${green},${blue})`;
521
- }
522
- return `rgba(${red},${green},${blue},${this.alpha})`;
523
- }
524
- /**
525
- * Creates a string containing CSS hex string color value for this color.
526
- *
527
- * @returns {string} The CSS hex string equivalent of this color.
528
- */
529
- toCssHexString() {
530
- let r = _Color.floatToByte(this.red).toString(16);
531
- if (r.length < 2) {
532
- r = `0${r}`;
533
- }
534
- let g = _Color.floatToByte(this.green).toString(16);
535
- if (g.length < 2) {
536
- g = `0${g}`;
537
- }
538
- let b = _Color.floatToByte(this.blue).toString(16);
539
- if (b.length < 2) {
540
- b = `0${b}`;
541
- }
542
- if (this.alpha < 1) {
543
- let hexAlpha = _Color.floatToByte(this.alpha).toString(16);
544
- if (hexAlpha.length < 2) {
545
- hexAlpha = `0${hexAlpha}`;
546
- }
547
- return `#${r}${g}${b}${hexAlpha}`;
548
- }
549
- return `#${r}${g}${b}`;
550
- }
551
- /**
552
- * Converts this color to an array of red, green, blue, and alpha values
553
- * that are in the range of 0 to 255.
554
- *
555
- * @param {number[]} [result] The array to store the result in, if undefined a new instance will be created.
556
- * @returns {number[]} The modified result parameter or a new instance if result was undefined.
557
- */
558
- toBytes(result) {
559
- const red = _Color.floatToByte(this.red);
560
- const green = _Color.floatToByte(this.green);
561
- const blue = _Color.floatToByte(this.blue);
562
- const alpha = _Color.floatToByte(this.alpha);
563
- if (!defined_default(result)) {
564
- return [red, green, blue, alpha];
565
- }
566
- result[0] = red;
567
- result[1] = green;
568
- result[2] = blue;
569
- result[3] = alpha;
570
- return result;
571
- }
572
- /**
573
- * Converts RGBA values in bytes to a single numeric unsigned 32-bit RGBA value, using the endianness
574
- * of the system.
575
- *
576
- * @returns {number} A single numeric unsigned 32-bit RGBA value.
577
- *
578
- * @see Color.toRgba
579
- */
580
- static bytesToRgba(red, green, blue, alpha) {
581
- scratchUint8Array[0] = red;
582
- scratchUint8Array[1] = green;
583
- scratchUint8Array[2] = blue;
584
- scratchUint8Array[3] = alpha;
585
- return scratchUint32Array[0];
586
- }
587
- /**
588
- * Converts this color to a single numeric unsigned 32-bit RGBA value, using the endianness
589
- * of the system.
590
- *
591
- * @returns {number} A single numeric unsigned 32-bit RGBA value.
592
- *
593
- *
594
- * @example
595
- * const rgba = Cesium.Color.BLUE.toRgba();
596
- *
597
- * @see Color.fromRgba
598
- */
599
- toRgba() {
600
- return _Color.bytesToRgba(
601
- _Color.floatToByte(this.red),
602
- _Color.floatToByte(this.green),
603
- _Color.floatToByte(this.blue),
604
- _Color.floatToByte(this.alpha)
605
- );
606
- }
607
- /**
608
- * Brightens this color by the provided magnitude.
609
- *
610
- * @param {number} magnitude A positive number indicating the amount to brighten.
611
- * @param {Color} result The object onto which to store the result.
612
- * @returns {Color} The modified result parameter.
613
- *
614
- * @example
615
- * const brightBlue = Cesium.Color.BLUE.brighten(0.5, new Cesium.Color());
616
- */
617
- brighten(magnitude, result) {
618
- Check_default.typeOf.number("magnitude", magnitude);
619
- Check_default.typeOf.number.greaterThanOrEquals("magnitude", magnitude, 0);
620
- Check_default.typeOf.object("result", result);
621
- magnitude = 1 - magnitude;
622
- result.red = 1 - (1 - this.red) * magnitude;
623
- result.green = 1 - (1 - this.green) * magnitude;
624
- result.blue = 1 - (1 - this.blue) * magnitude;
625
- result.alpha = this.alpha;
626
- return result;
627
- }
628
- /**
629
- * Darkens this color by the provided magnitude.
630
- *
631
- * @param {number} magnitude A positive number indicating the amount to darken.
632
- * @param {Color} result The object onto which to store the result.
633
- * @returns {Color} The modified result parameter.
634
- *
635
- * @example
636
- * const darkBlue = Cesium.Color.BLUE.darken(0.5, new Cesium.Color());
637
- */
638
- darken(magnitude, result) {
639
- Check_default.typeOf.number("magnitude", magnitude);
640
- Check_default.typeOf.number.greaterThanOrEquals("magnitude", magnitude, 0);
641
- Check_default.typeOf.object("result", result);
642
- magnitude = 1 - magnitude;
643
- result.red = this.red * magnitude;
644
- result.green = this.green * magnitude;
645
- result.blue = this.blue * magnitude;
646
- result.alpha = this.alpha;
647
- return result;
648
- }
649
- /**
650
- * Creates a new Color that has the same red, green, and blue components
651
- * as this Color, but with the specified alpha value.
652
- *
653
- * @param {number} alpha The new alpha component.
654
- * @param {Color} [result] The object onto which to store the result.
655
- * @returns {Color} The modified result parameter or a new Color instance if one was not provided.
656
- *
657
- * @example const translucentRed = Cesium.Color.RED.withAlpha(0.9);
658
- */
659
- withAlpha(alpha, result) {
660
- return _Color.fromAlpha(this, alpha, result);
661
- }
662
- /**
663
- * Computes the componentwise sum of two Colors.
664
- *
665
- * @param {Color} left The first Color.
666
- * @param {Color} right The second Color.
667
- * @param {Color} result The object onto which to store the result.
668
- * @returns {Color} The modified result parameter.
669
- */
670
- static add(left, right, result) {
671
- Check_default.typeOf.object("left", left);
672
- Check_default.typeOf.object("right", right);
673
- Check_default.typeOf.object("result", result);
674
- result.red = left.red + right.red;
675
- result.green = left.green + right.green;
676
- result.blue = left.blue + right.blue;
677
- result.alpha = left.alpha + right.alpha;
678
- return result;
679
- }
680
- /**
681
- * Computes the componentwise difference of two Colors.
682
- *
683
- * @param {Color} left The first Color.
684
- * @param {Color} right The second Color.
685
- * @param {Color} result The object onto which to store the result.
686
- * @returns {Color} The modified result parameter.
687
- */
688
- static subtract(left, right, result) {
689
- Check_default.typeOf.object("left", left);
690
- Check_default.typeOf.object("right", right);
691
- Check_default.typeOf.object("result", result);
692
- result.red = left.red - right.red;
693
- result.green = left.green - right.green;
694
- result.blue = left.blue - right.blue;
695
- result.alpha = left.alpha - right.alpha;
696
- return result;
697
- }
698
- /**
699
- * Computes the componentwise product of two Colors.
700
- *
701
- * @param {Color} left The first Color.
702
- * @param {Color} right The second Color.
703
- * @param {Color} result The object onto which to store the result.
704
- * @returns {Color} The modified result parameter.
705
- */
706
- static multiply(left, right, result) {
707
- Check_default.typeOf.object("left", left);
708
- Check_default.typeOf.object("right", right);
709
- Check_default.typeOf.object("result", result);
710
- result.red = left.red * right.red;
711
- result.green = left.green * right.green;
712
- result.blue = left.blue * right.blue;
713
- result.alpha = left.alpha * right.alpha;
714
- return result;
715
- }
716
- /**
717
- * Computes the componentwise quotient of two Colors.
718
- *
719
- * @param {Color} left The first Color.
720
- * @param {Color} right The second Color.
721
- * @param {Color} result The object onto which to store the result.
722
- * @returns {Color} The modified result parameter.
723
- */
724
- static divide(left, right, result) {
725
- Check_default.typeOf.object("left", left);
726
- Check_default.typeOf.object("right", right);
727
- Check_default.typeOf.object("result", result);
728
- result.red = left.red / right.red;
729
- result.green = left.green / right.green;
730
- result.blue = left.blue / right.blue;
731
- result.alpha = left.alpha / right.alpha;
732
- return result;
733
- }
734
- /**
735
- * Computes the componentwise modulus of two Colors.
736
- *
737
- * @param {Color} left The first Color.
738
- * @param {Color} right The second Color.
739
- * @param {Color} result The object onto which to store the result.
740
- * @returns {Color} The modified result parameter.
741
- */
742
- static mod(left, right, result) {
743
- Check_default.typeOf.object("left", left);
744
- Check_default.typeOf.object("right", right);
745
- Check_default.typeOf.object("result", result);
746
- result.red = left.red % right.red;
747
- result.green = left.green % right.green;
748
- result.blue = left.blue % right.blue;
749
- result.alpha = left.alpha % right.alpha;
750
- return result;
751
- }
752
- /**
753
- * Computes the linear interpolation or extrapolation at t between the provided colors.
754
- *
755
- * @param {Color} start The color corresponding to t at 0.0.
756
- * @param {Color} end The color corresponding to t at 1.0.
757
- * @param {number} t The point along t at which to interpolate.
758
- * @param {Color} result The object onto which to store the result.
759
- * @returns {Color} The modified result parameter.
760
- */
761
- static lerp(start, end, t, result) {
762
- Check_default.typeOf.object("start", start);
763
- Check_default.typeOf.object("end", end);
764
- Check_default.typeOf.number("t", t);
765
- Check_default.typeOf.object("result", result);
766
- result.red = Math_default.lerp(start.red, end.red, t);
767
- result.green = Math_default.lerp(start.green, end.green, t);
768
- result.blue = Math_default.lerp(start.blue, end.blue, t);
769
- result.alpha = Math_default.lerp(start.alpha, end.alpha, t);
770
- return result;
771
- }
772
- /**
773
- * Multiplies the provided Color componentwise by the provided scalar.
774
- *
775
- * @param {Color} color The Color to be scaled.
776
- * @param {number} scalar The scalar to multiply with.
777
- * @param {Color} result The object onto which to store the result.
778
- * @returns {Color} The modified result parameter.
779
- */
780
- static multiplyByScalar(color, scalar, result) {
781
- Check_default.typeOf.object("color", color);
782
- Check_default.typeOf.number("scalar", scalar);
783
- Check_default.typeOf.object("result", result);
784
- result.red = color.red * scalar;
785
- result.green = color.green * scalar;
786
- result.blue = color.blue * scalar;
787
- result.alpha = color.alpha * scalar;
788
- return result;
789
- }
790
- /**
791
- * Divides the provided Color componentwise by the provided scalar.
792
- *
793
- * @param {Color} color The Color to be divided.
794
- * @param {number} scalar The scalar to divide with.
795
- * @param {Color} result The object onto which to store the result.
796
- * @returns {Color} The modified result parameter.
797
- */
798
- static divideByScalar(color, scalar, result) {
799
- Check_default.typeOf.object("color", color);
800
- Check_default.typeOf.number("scalar", scalar);
801
- Check_default.typeOf.object("result", result);
802
- result.red = color.red / scalar;
803
- result.green = color.green / scalar;
804
- result.blue = color.blue / scalar;
805
- result.alpha = color.alpha / scalar;
806
- return result;
807
- }
808
- };
809
- var scratchArrayBuffer;
810
- var scratchUint32Array;
811
- var scratchUint8Array;
812
- if (FeatureDetection_default.supportsTypedArrays()) {
813
- scratchArrayBuffer = new ArrayBuffer(4);
814
- scratchUint32Array = new Uint32Array(scratchArrayBuffer);
815
- scratchUint8Array = new Uint8Array(scratchArrayBuffer);
816
- }
817
- var rgbaMatcher = /^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i;
818
- var rrggbbaaMatcher = /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i;
819
- var rgbParenthesesMatcher = /^rgba?\s*\(\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i;
820
- var hslParenthesesMatcher = /^hsla?\s*\(\s*([0-9.]+)\s*[,\s]+\s*([0-9.]+%)\s*[,\s]+\s*([0-9.]+%)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i;
821
- Color.packedLength = 4;
822
- Color.ALICEBLUE = Object.freeze(Color.fromCssColorString("#F0F8FF"));
823
- Color.ANTIQUEWHITE = Object.freeze(Color.fromCssColorString("#FAEBD7"));
824
- Color.AQUA = Object.freeze(Color.fromCssColorString("#00FFFF"));
825
- Color.AQUAMARINE = Object.freeze(Color.fromCssColorString("#7FFFD4"));
826
- Color.AZURE = Object.freeze(Color.fromCssColorString("#F0FFFF"));
827
- Color.BEIGE = Object.freeze(Color.fromCssColorString("#F5F5DC"));
828
- Color.BISQUE = Object.freeze(Color.fromCssColorString("#FFE4C4"));
829
- Color.BLACK = Object.freeze(Color.fromCssColorString("#000000"));
830
- Color.BLANCHEDALMOND = Object.freeze(Color.fromCssColorString("#FFEBCD"));
831
- Color.BLUE = Object.freeze(Color.fromCssColorString("#0000FF"));
832
- Color.BLUEVIOLET = Object.freeze(Color.fromCssColorString("#8A2BE2"));
833
- Color.BROWN = Object.freeze(Color.fromCssColorString("#A52A2A"));
834
- Color.BURLYWOOD = Object.freeze(Color.fromCssColorString("#DEB887"));
835
- Color.CADETBLUE = Object.freeze(Color.fromCssColorString("#5F9EA0"));
836
- Color.CHARTREUSE = Object.freeze(Color.fromCssColorString("#7FFF00"));
837
- Color.CHOCOLATE = Object.freeze(Color.fromCssColorString("#D2691E"));
838
- Color.CORAL = Object.freeze(Color.fromCssColorString("#FF7F50"));
839
- Color.CORNFLOWERBLUE = Object.freeze(Color.fromCssColorString("#6495ED"));
840
- Color.CORNSILK = Object.freeze(Color.fromCssColorString("#FFF8DC"));
841
- Color.CRIMSON = Object.freeze(Color.fromCssColorString("#DC143C"));
842
- Color.CYAN = Object.freeze(Color.fromCssColorString("#00FFFF"));
843
- Color.DARKBLUE = Object.freeze(Color.fromCssColorString("#00008B"));
844
- Color.DARKCYAN = Object.freeze(Color.fromCssColorString("#008B8B"));
845
- Color.DARKGOLDENROD = Object.freeze(Color.fromCssColorString("#B8860B"));
846
- Color.DARKGRAY = Object.freeze(Color.fromCssColorString("#A9A9A9"));
847
- Color.DARKGREEN = Object.freeze(Color.fromCssColorString("#006400"));
848
- Color.DARKGREY = Color.DARKGRAY;
849
- Color.DARKKHAKI = Object.freeze(Color.fromCssColorString("#BDB76B"));
850
- Color.DARKMAGENTA = Object.freeze(Color.fromCssColorString("#8B008B"));
851
- Color.DARKOLIVEGREEN = Object.freeze(Color.fromCssColorString("#556B2F"));
852
- Color.DARKORANGE = Object.freeze(Color.fromCssColorString("#FF8C00"));
853
- Color.DARKORCHID = Object.freeze(Color.fromCssColorString("#9932CC"));
854
- Color.DARKRED = Object.freeze(Color.fromCssColorString("#8B0000"));
855
- Color.DARKSALMON = Object.freeze(Color.fromCssColorString("#E9967A"));
856
- Color.DARKSEAGREEN = Object.freeze(Color.fromCssColorString("#8FBC8F"));
857
- Color.DARKSLATEBLUE = Object.freeze(Color.fromCssColorString("#483D8B"));
858
- Color.DARKSLATEGRAY = Object.freeze(Color.fromCssColorString("#2F4F4F"));
859
- Color.DARKSLATEGREY = Color.DARKSLATEGRAY;
860
- Color.DARKTURQUOISE = Object.freeze(Color.fromCssColorString("#00CED1"));
861
- Color.DARKVIOLET = Object.freeze(Color.fromCssColorString("#9400D3"));
862
- Color.DEEPPINK = Object.freeze(Color.fromCssColorString("#FF1493"));
863
- Color.DEEPSKYBLUE = Object.freeze(Color.fromCssColorString("#00BFFF"));
864
- Color.DIMGRAY = Object.freeze(Color.fromCssColorString("#696969"));
865
- Color.DIMGREY = Color.DIMGRAY;
866
- Color.DODGERBLUE = Object.freeze(Color.fromCssColorString("#1E90FF"));
867
- Color.FIREBRICK = Object.freeze(Color.fromCssColorString("#B22222"));
868
- Color.FLORALWHITE = Object.freeze(Color.fromCssColorString("#FFFAF0"));
869
- Color.FORESTGREEN = Object.freeze(Color.fromCssColorString("#228B22"));
870
- Color.FUCHSIA = Object.freeze(Color.fromCssColorString("#FF00FF"));
871
- Color.GAINSBORO = Object.freeze(Color.fromCssColorString("#DCDCDC"));
872
- Color.GHOSTWHITE = Object.freeze(Color.fromCssColorString("#F8F8FF"));
873
- Color.GOLD = Object.freeze(Color.fromCssColorString("#FFD700"));
874
- Color.GOLDENROD = Object.freeze(Color.fromCssColorString("#DAA520"));
875
- Color.GRAY = Object.freeze(Color.fromCssColorString("#808080"));
876
- Color.GREEN = Object.freeze(Color.fromCssColorString("#008000"));
877
- Color.GREENYELLOW = Object.freeze(Color.fromCssColorString("#ADFF2F"));
878
- Color.GREY = Color.GRAY;
879
- Color.HONEYDEW = Object.freeze(Color.fromCssColorString("#F0FFF0"));
880
- Color.HOTPINK = Object.freeze(Color.fromCssColorString("#FF69B4"));
881
- Color.INDIANRED = Object.freeze(Color.fromCssColorString("#CD5C5C"));
882
- Color.INDIGO = Object.freeze(Color.fromCssColorString("#4B0082"));
883
- Color.IVORY = Object.freeze(Color.fromCssColorString("#FFFFF0"));
884
- Color.KHAKI = Object.freeze(Color.fromCssColorString("#F0E68C"));
885
- Color.LAVENDER = Object.freeze(Color.fromCssColorString("#E6E6FA"));
886
- Color.LAVENDAR_BLUSH = Object.freeze(Color.fromCssColorString("#FFF0F5"));
887
- Color.LAWNGREEN = Object.freeze(Color.fromCssColorString("#7CFC00"));
888
- Color.LEMONCHIFFON = Object.freeze(Color.fromCssColorString("#FFFACD"));
889
- Color.LIGHTBLUE = Object.freeze(Color.fromCssColorString("#ADD8E6"));
890
- Color.LIGHTCORAL = Object.freeze(Color.fromCssColorString("#F08080"));
891
- Color.LIGHTCYAN = Object.freeze(Color.fromCssColorString("#E0FFFF"));
892
- Color.LIGHTGOLDENRODYELLOW = Object.freeze(Color.fromCssColorString("#FAFAD2"));
893
- Color.LIGHTGRAY = Object.freeze(Color.fromCssColorString("#D3D3D3"));
894
- Color.LIGHTGREEN = Object.freeze(Color.fromCssColorString("#90EE90"));
895
- Color.LIGHTGREY = Color.LIGHTGRAY;
896
- Color.LIGHTPINK = Object.freeze(Color.fromCssColorString("#FFB6C1"));
897
- Color.LIGHTSEAGREEN = Object.freeze(Color.fromCssColorString("#20B2AA"));
898
- Color.LIGHTSKYBLUE = Object.freeze(Color.fromCssColorString("#87CEFA"));
899
- Color.LIGHTSLATEGRAY = Object.freeze(Color.fromCssColorString("#778899"));
900
- Color.LIGHTSLATEGREY = Color.LIGHTSLATEGRAY;
901
- Color.LIGHTSTEELBLUE = Object.freeze(Color.fromCssColorString("#B0C4DE"));
902
- Color.LIGHTYELLOW = Object.freeze(Color.fromCssColorString("#FFFFE0"));
903
- Color.LIME = Object.freeze(Color.fromCssColorString("#00FF00"));
904
- Color.LIMEGREEN = Object.freeze(Color.fromCssColorString("#32CD32"));
905
- Color.LINEN = Object.freeze(Color.fromCssColorString("#FAF0E6"));
906
- Color.MAGENTA = Object.freeze(Color.fromCssColorString("#FF00FF"));
907
- Color.MAROON = Object.freeze(Color.fromCssColorString("#800000"));
908
- Color.MEDIUMAQUAMARINE = Object.freeze(Color.fromCssColorString("#66CDAA"));
909
- Color.MEDIUMBLUE = Object.freeze(Color.fromCssColorString("#0000CD"));
910
- Color.MEDIUMORCHID = Object.freeze(Color.fromCssColorString("#BA55D3"));
911
- Color.MEDIUMPURPLE = Object.freeze(Color.fromCssColorString("#9370DB"));
912
- Color.MEDIUMSEAGREEN = Object.freeze(Color.fromCssColorString("#3CB371"));
913
- Color.MEDIUMSLATEBLUE = Object.freeze(Color.fromCssColorString("#7B68EE"));
914
- Color.MEDIUMSPRINGGREEN = Object.freeze(Color.fromCssColorString("#00FA9A"));
915
- Color.MEDIUMTURQUOISE = Object.freeze(Color.fromCssColorString("#48D1CC"));
916
- Color.MEDIUMVIOLETRED = Object.freeze(Color.fromCssColorString("#C71585"));
917
- Color.MIDNIGHTBLUE = Object.freeze(Color.fromCssColorString("#191970"));
918
- Color.MINTCREAM = Object.freeze(Color.fromCssColorString("#F5FFFA"));
919
- Color.MISTYROSE = Object.freeze(Color.fromCssColorString("#FFE4E1"));
920
- Color.MOCCASIN = Object.freeze(Color.fromCssColorString("#FFE4B5"));
921
- Color.NAVAJOWHITE = Object.freeze(Color.fromCssColorString("#FFDEAD"));
922
- Color.NAVY = Object.freeze(Color.fromCssColorString("#000080"));
923
- Color.OLDLACE = Object.freeze(Color.fromCssColorString("#FDF5E6"));
924
- Color.OLIVE = Object.freeze(Color.fromCssColorString("#808000"));
925
- Color.OLIVEDRAB = Object.freeze(Color.fromCssColorString("#6B8E23"));
926
- Color.ORANGE = Object.freeze(Color.fromCssColorString("#FFA500"));
927
- Color.ORANGERED = Object.freeze(Color.fromCssColorString("#FF4500"));
928
- Color.ORCHID = Object.freeze(Color.fromCssColorString("#DA70D6"));
929
- Color.PALEGOLDENROD = Object.freeze(Color.fromCssColorString("#EEE8AA"));
930
- Color.PALEGREEN = Object.freeze(Color.fromCssColorString("#98FB98"));
931
- Color.PALETURQUOISE = Object.freeze(Color.fromCssColorString("#AFEEEE"));
932
- Color.PALEVIOLETRED = Object.freeze(Color.fromCssColorString("#DB7093"));
933
- Color.PAPAYAWHIP = Object.freeze(Color.fromCssColorString("#FFEFD5"));
934
- Color.PEACHPUFF = Object.freeze(Color.fromCssColorString("#FFDAB9"));
935
- Color.PERU = Object.freeze(Color.fromCssColorString("#CD853F"));
936
- Color.PINK = Object.freeze(Color.fromCssColorString("#FFC0CB"));
937
- Color.PLUM = Object.freeze(Color.fromCssColorString("#DDA0DD"));
938
- Color.POWDERBLUE = Object.freeze(Color.fromCssColorString("#B0E0E6"));
939
- Color.PURPLE = Object.freeze(Color.fromCssColorString("#800080"));
940
- Color.RED = Object.freeze(Color.fromCssColorString("#FF0000"));
941
- Color.ROSYBROWN = Object.freeze(Color.fromCssColorString("#BC8F8F"));
942
- Color.ROYALBLUE = Object.freeze(Color.fromCssColorString("#4169E1"));
943
- Color.SADDLEBROWN = Object.freeze(Color.fromCssColorString("#8B4513"));
944
- Color.SALMON = Object.freeze(Color.fromCssColorString("#FA8072"));
945
- Color.SANDYBROWN = Object.freeze(Color.fromCssColorString("#F4A460"));
946
- Color.SEAGREEN = Object.freeze(Color.fromCssColorString("#2E8B57"));
947
- Color.SEASHELL = Object.freeze(Color.fromCssColorString("#FFF5EE"));
948
- Color.SIENNA = Object.freeze(Color.fromCssColorString("#A0522D"));
949
- Color.SILVER = Object.freeze(Color.fromCssColorString("#C0C0C0"));
950
- Color.SKYBLUE = Object.freeze(Color.fromCssColorString("#87CEEB"));
951
- Color.SLATEBLUE = Object.freeze(Color.fromCssColorString("#6A5ACD"));
952
- Color.SLATEGRAY = Object.freeze(Color.fromCssColorString("#708090"));
953
- Color.SLATEGREY = Color.SLATEGRAY;
954
- Color.SNOW = Object.freeze(Color.fromCssColorString("#FFFAFA"));
955
- Color.SPRINGGREEN = Object.freeze(Color.fromCssColorString("#00FF7F"));
956
- Color.STEELBLUE = Object.freeze(Color.fromCssColorString("#4682B4"));
957
- Color.TAN = Object.freeze(Color.fromCssColorString("#D2B48C"));
958
- Color.TEAL = Object.freeze(Color.fromCssColorString("#008080"));
959
- Color.THISTLE = Object.freeze(Color.fromCssColorString("#D8BFD8"));
960
- Color.TOMATO = Object.freeze(Color.fromCssColorString("#FF6347"));
961
- Color.TURQUOISE = Object.freeze(Color.fromCssColorString("#40E0D0"));
962
- Color.VIOLET = Object.freeze(Color.fromCssColorString("#EE82EE"));
963
- Color.WHEAT = Object.freeze(Color.fromCssColorString("#F5DEB3"));
964
- Color.WHITE = Object.freeze(Color.fromCssColorString("#FFFFFF"));
965
- Color.WHITESMOKE = Object.freeze(Color.fromCssColorString("#F5F5F5"));
966
- Color.YELLOW = Object.freeze(Color.fromCssColorString("#FFFF00"));
967
- Color.YELLOWGREEN = Object.freeze(Color.fromCssColorString("#9ACD32"));
968
- Color.TRANSPARENT = Object.freeze(new Color(0, 0, 0, 0));
969
- var Color_default = Color;
970
-
971
- export {
972
- Color_default
973
- };