cesium 1.23.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/Cesium/Cesium.js +1 -1
  3. data/app/assets/javascripts/Cesium/Core/AttributeCompression.js +52 -16
  4. data/app/assets/javascripts/Cesium/Core/BoundingRectangle.js +4 -0
  5. data/app/assets/javascripts/Cesium/Core/BoundingSphere.js +4 -0
  6. data/app/assets/javascripts/Cesium/Core/BoxGeometry.js +8 -4
  7. data/app/assets/javascripts/Cesium/Core/BoxOutlineGeometry.js +6 -3
  8. data/app/assets/javascripts/Cesium/Core/Cartesian2.js +4 -0
  9. data/app/assets/javascripts/Cesium/Core/Cartesian3.js +4 -0
  10. data/app/assets/javascripts/Cesium/Core/Cartesian4.js +4 -0
  11. data/app/assets/javascripts/Cesium/Core/CircleGeometry.js +4 -2
  12. data/app/assets/javascripts/Cesium/Core/CircleOutlineGeometry.js +3 -1
  13. data/app/assets/javascripts/Cesium/Core/Color.js +6 -2
  14. data/app/assets/javascripts/Cesium/Core/CorridorGeometry.js +4 -0
  15. data/app/assets/javascripts/Cesium/Core/CorridorOutlineGeometry.js +4 -0
  16. data/app/assets/javascripts/Cesium/Core/CylinderGeometry.js +4 -0
  17. data/app/assets/javascripts/Cesium/Core/CylinderOutlineGeometry.js +5 -0
  18. data/app/assets/javascripts/Cesium/Core/EllipseGeometry.js +4 -0
  19. data/app/assets/javascripts/Cesium/Core/EllipseOutlineGeometry.js +4 -0
  20. data/app/assets/javascripts/Cesium/Core/Ellipsoid.js +4 -0
  21. data/app/assets/javascripts/Cesium/Core/EllipsoidGeometry.js +4 -0
  22. data/app/assets/javascripts/Cesium/Core/EllipsoidOutlineGeometry.js +4 -0
  23. data/app/assets/javascripts/Cesium/Core/JulianDate.js +2 -1
  24. data/app/assets/javascripts/Cesium/Core/Math.js +11 -7
  25. data/app/assets/javascripts/Cesium/Core/Matrix2.js +5 -1
  26. data/app/assets/javascripts/Cesium/Core/Matrix3.js +5 -1
  27. data/app/assets/javascripts/Cesium/Core/Matrix4.js +6 -2
  28. data/app/assets/javascripts/Cesium/Core/NearFarScalar.js +4 -0
  29. data/app/assets/javascripts/Cesium/Core/PolygonGeometry.js +4 -0
  30. data/app/assets/javascripts/Cesium/Core/PolygonOutlineGeometry.js +4 -0
  31. data/app/assets/javascripts/Cesium/Core/PolylineGeometry.js +4 -0
  32. data/app/assets/javascripts/Cesium/Core/PolylinePipeline.js +2 -1
  33. data/app/assets/javascripts/Cesium/Core/PolylineVolumeGeometry.js +4 -0
  34. data/app/assets/javascripts/Cesium/Core/PolylineVolumeOutlineGeometry.js +4 -0
  35. data/app/assets/javascripts/Cesium/Core/Quaternion.js +5 -1
  36. data/app/assets/javascripts/Cesium/Core/Rectangle.js +4 -0
  37. data/app/assets/javascripts/Cesium/Core/RectangleGeometry.js +4 -0
  38. data/app/assets/javascripts/Cesium/Core/RectangleOutlineGeometry.js +4 -0
  39. data/app/assets/javascripts/Cesium/Core/SimplePolylineGeometry.js +4 -0
  40. data/app/assets/javascripts/Cesium/Core/SphereGeometry.js +3 -1
  41. data/app/assets/javascripts/Cesium/Core/SphereOutlineGeometry.js +3 -1
  42. data/app/assets/javascripts/Cesium/Core/VertexFormat.js +4 -0
  43. data/app/assets/javascripts/Cesium/Core/WallGeometry.js +4 -0
  44. data/app/assets/javascripts/Cesium/Core/WallOutlineGeometry.js +4 -0
  45. data/app/assets/javascripts/Cesium/DataSources/BillboardGraphics.js +2 -2
  46. data/app/assets/javascripts/Cesium/DataSources/CzmlDataSource.js +17 -3
  47. data/app/assets/javascripts/Cesium/DataSources/Rotation.js +5 -1
  48. data/app/assets/javascripts/Cesium/DataSources/StaticGeometryPerMaterialBatch.js +3 -6
  49. data/app/assets/javascripts/Cesium/DataSources/VelocityOrientationProperty.js +1 -1
  50. data/app/assets/javascripts/Cesium/DataSources/VelocityVectorProperty.js +33 -8
  51. data/app/assets/javascripts/Cesium/Scene/Scene.js +1 -1
  52. data/app/assets/javascripts/Cesium/Scene/UrlTemplateImageryProvider.js +65 -6
  53. data/app/assets/javascripts/Cesium/Widgets/BaseLayerPicker/createDefaultImageryProviderViewModels.js +0 -12
  54. data/app/assets/javascripts/Cesium/Workers/combineGeometry.js +104 -28
  55. data/app/assets/javascripts/Cesium/Workers/createBoxGeometry.js +54 -14
  56. data/app/assets/javascripts/Cesium/Workers/createBoxOutlineGeometry.js +48 -13
  57. data/app/assets/javascripts/Cesium/Workers/createCircleGeometry.js +117 -30
  58. data/app/assets/javascripts/Cesium/Workers/createCircleOutlineGeometry.js +54 -12
  59. data/app/assets/javascripts/Cesium/Workers/createCorridorGeometry.js +63 -13
  60. data/app/assets/javascripts/Cesium/Workers/createCorridorOutlineGeometry.js +59 -13
  61. data/app/assets/javascripts/Cesium/Workers/createCylinderGeometry.js +54 -10
  62. data/app/assets/javascripts/Cesium/Workers/createCylinderOutlineGeometry.js +51 -10
  63. data/app/assets/javascripts/Cesium/Workers/createEllipseGeometry.js +113 -28
  64. data/app/assets/javascripts/Cesium/Workers/createEllipseOutlineGeometry.js +51 -11
  65. data/app/assets/javascripts/Cesium/Workers/createEllipsoidGeometry.js +54 -10
  66. data/app/assets/javascripts/Cesium/Workers/createEllipsoidOutlineGeometry.js +46 -10
  67. data/app/assets/javascripts/Cesium/Workers/createGeometry.js +104 -28
  68. data/app/assets/javascripts/Cesium/Workers/createPointGeometry.js +42 -10
  69. data/app/assets/javascripts/Cesium/Workers/createPolygonGeometry.js +117 -28
  70. data/app/assets/javascripts/Cesium/Workers/createPolygonOutlineGeometry.js +109 -28
  71. data/app/assets/javascripts/Cesium/Workers/createPolylineGeometry.js +58 -13
  72. data/app/assets/javascripts/Cesium/Workers/createPolylineVolumeGeometry.js +119 -29
  73. data/app/assets/javascripts/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +63 -13
  74. data/app/assets/javascripts/Cesium/Workers/createRectangleGeometry.js +118 -29
  75. data/app/assets/javascripts/Cesium/Workers/createRectangleOutlineGeometry.js +62 -13
  76. data/app/assets/javascripts/Cesium/Workers/createSimplePolylineGeometry.js +54 -13
  77. data/app/assets/javascripts/Cesium/Workers/createSphereGeometry.js +57 -11
  78. data/app/assets/javascripts/Cesium/Workers/createSphereOutlineGeometry.js +49 -11
  79. data/app/assets/javascripts/Cesium/Workers/createVerticesFromHeightmap.js +105 -28
  80. data/app/assets/javascripts/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +105 -28
  81. data/app/assets/javascripts/Cesium/Workers/createWallGeometry.js +63 -13
  82. data/app/assets/javascripts/Cesium/Workers/createWallOutlineGeometry.js +59 -13
  83. data/app/assets/javascripts/Cesium/Workers/upsampleQuantizedTerrainMesh.js +105 -28
  84. data/lib/cesium/version.rb +1 -1
  85. data/test/dummy/log/development.log +58 -0
  86. data/test/dummy/tmp/cache/assets/C16/BE0/sprockets%2F730c481502395cc21463bcc305986308 +0 -0
  87. data/test/dummy/tmp/cache/assets/C2B/E00/sprockets%2Fc04978048739428a79d6348576ab030a +0 -0
  88. data/test/dummy/tmp/cache/assets/C54/680/sprockets%2F31c6133a4541f42b507e5689b076759f +0 -0
  89. data/test/dummy/tmp/cache/assets/C7C/C90/sprockets%2F92c082511a234b21cf6c479b6f507576 +0 -0
  90. data/test/dummy/tmp/cache/assets/C80/710/sprockets%2F41b1692a0f1a77581854ee4b7709913a +0 -0
  91. data/test/dummy/tmp/cache/assets/C80/CD0/sprockets%2F0032971af77940c1af9e2f460177809a +0 -0
  92. data/test/dummy/tmp/cache/assets/C91/0D0/sprockets%2F5bd71287903ba95d2fb5743719549e92 +0 -0
  93. data/test/dummy/tmp/cache/assets/C91/8A0/sprockets%2Fe02395f83f6f5201913e1b888f46f645 +0 -0
  94. data/test/dummy/tmp/cache/assets/C92/9A0/sprockets%2F6c85f9c609287aa6552391f576f0f405 +0 -0
  95. data/test/dummy/tmp/cache/assets/C9F/3A0/sprockets%2F2469356cd21d5a5902b06584ea0b20d5 +0 -0
  96. data/test/dummy/tmp/cache/assets/CAF/8F0/sprockets%2Fdfb0351981258b34aa1a77478e5027e7 +0 -0
  97. data/test/dummy/tmp/cache/assets/CB1/EE0/sprockets%2F931d2725b8c14ed84a31e373fc813188 +0 -0
  98. data/test/dummy/tmp/cache/assets/CB2/5A0/sprockets%2F434a0c6d7c301964022e91e8f99bb727 +0 -0
  99. data/test/dummy/tmp/cache/assets/CB4/D90/sprockets%2F5fb974e230f8a43f0146694636b621fc +0 -0
  100. data/test/dummy/tmp/cache/assets/CB7/2E0/sprockets%2Ff1ed26933745612dc769d5fb75c17321 +0 -0
  101. data/test/dummy/tmp/cache/assets/CB7/A10/sprockets%2Fd34b045e6d4215367bcf6f08e4638926 +0 -0
  102. data/test/dummy/tmp/cache/assets/CB7/C10/sprockets%2F262600ead4686290c10b01aa60e0ce20 +0 -0
  103. data/test/dummy/tmp/cache/assets/CB7/FA0/sprockets%2Fe11b1d418699c10ce19c92b8a8562992 +0 -0
  104. data/test/dummy/tmp/cache/assets/CB9/FD0/sprockets%2F868358f2ee30f4326e761014cd2576ee +0 -0
  105. data/test/dummy/tmp/cache/assets/CBB/5D0/sprockets%2F7965dc683e03140b80566dbd76677f0c +0 -0
  106. data/test/dummy/tmp/cache/assets/CC3/1D0/sprockets%2Fe05f83785d87559e712ef7331136b7fa +0 -0
  107. data/test/dummy/tmp/cache/assets/CC9/200/sprockets%2F742fb8ce196abf238199836fd7457166 +0 -0
  108. data/test/dummy/tmp/cache/assets/CD0/310/sprockets%2F825eb4414b555ce140fc46ad24b48061 +0 -0
  109. data/test/dummy/tmp/cache/assets/CD3/940/sprockets%2F641b837eeb02a10631a0d20acd987887 +0 -0
  110. data/test/dummy/tmp/cache/assets/CD4/D30/sprockets%2F6741dd0454f9080fa418ed09a192ab40 +0 -0
  111. data/test/dummy/tmp/cache/assets/CD5/900/sprockets%2F0603a31cdcdf8ec2872219242c65f336 +0 -0
  112. data/test/dummy/tmp/cache/assets/CD8/B20/sprockets%2F364405189b0c5f332ae0fe14a05f95d8 +0 -0
  113. data/test/dummy/tmp/cache/assets/CD9/3C0/sprockets%2Fb082b86281b7a873eb2250f31854afd4 +0 -0
  114. data/test/dummy/tmp/cache/assets/CDA/700/sprockets%2F24c5884ae3352ca70a9546d02bb6e844 +0 -0
  115. data/test/dummy/tmp/cache/assets/CDC/3A0/sprockets%2F2bdb3f8510205db3f3bf4605947851f7 +0 -0
  116. data/test/dummy/tmp/cache/assets/CDC/910/sprockets%2F4127b7bf7565f5eb82a54f5012c7512d +0 -0
  117. data/test/dummy/tmp/cache/assets/CDD/5A0/sprockets%2Fb7dfa40599517f39400db36240fa16c9 +0 -0
  118. data/test/dummy/tmp/cache/assets/CE0/340/sprockets%2F284aa881b4e78191f904a950baf6209b +0 -0
  119. data/test/dummy/tmp/cache/assets/CE4/970/sprockets%2F32866ea407500e99bb62e5c62a8617df +0 -0
  120. data/test/dummy/tmp/cache/assets/CE6/DD0/sprockets%2Ffd590df3a5e39763c7258802d8233c1c +0 -0
  121. data/test/dummy/tmp/cache/assets/CEB/1D0/sprockets%2Fb3014c30d4b5ad090fb00a5a303b7929 +0 -0
  122. data/test/dummy/tmp/cache/assets/CEC/230/sprockets%2F06c6439d6734e9122d0429d99bd76ceb +0 -0
  123. data/test/dummy/tmp/cache/assets/CEC/9B0/sprockets%2F623d2921e3b7bd6cbe9288253e18e776 +0 -0
  124. data/test/dummy/tmp/cache/assets/CF0/2D0/sprockets%2F2a12ef035037b0440f54e40e6ad2db70 +0 -0
  125. data/test/dummy/tmp/cache/assets/CF0/8D0/sprockets%2Fd87a027ff95cd7b9080555d76f16824a +0 -0
  126. data/test/dummy/tmp/cache/assets/CF6/3F0/sprockets%2Fc8a187687d86c86d20ccd8d39258428a +0 -0
  127. data/test/dummy/tmp/cache/assets/CF7/F70/sprockets%2Fae6e6576ed90a32b820967df2b797397 +0 -0
  128. data/test/dummy/tmp/cache/assets/CF9/CA0/sprockets%2Fe3287c6767a894efd1e4461ae21599e8 +0 -0
  129. data/test/dummy/tmp/cache/assets/CFA/720/sprockets%2Fdc2ea106de9ab60be261248f21059224 +0 -0
  130. data/test/dummy/tmp/cache/assets/CFA/B50/sprockets%2F8505a240bc3a2e4b1a953417c73ebc72 +0 -0
  131. data/test/dummy/tmp/cache/assets/CFC/0E0/sprockets%2Fe99f6ace35113dfc044311e14a605a51 +0 -0
  132. data/test/dummy/tmp/cache/assets/CFC/9F0/sprockets%2F7922cd5ca1a340f4b4d450bad4551916 +0 -0
  133. data/test/dummy/tmp/cache/assets/CFD/470/sprockets%2Fd1eb4316039dba02de282ac28358b913 +0 -0
  134. data/test/dummy/tmp/cache/assets/CFE/AE0/sprockets%2F7c886a80519554ea620aac2325bb1ce0 +0 -0
  135. data/test/dummy/tmp/cache/assets/D00/C10/sprockets%2F169d5c9cc4598e63f95577f52e9da370 +0 -0
  136. data/test/dummy/tmp/cache/assets/D01/A60/sprockets%2F3ca75cfcf2037d5364e4531448da120d +0 -0
  137. data/test/dummy/tmp/cache/assets/D09/210/sprockets%2F0c57094235e32edddcc747ed202873b3 +0 -0
  138. data/test/dummy/tmp/cache/assets/D0A/810/sprockets%2F9cc7c89425ba1686a18a1d8beb005209 +0 -0
  139. data/test/dummy/tmp/cache/assets/D0A/CB0/sprockets%2F01b7bc8d4406b16b212891ef72eeb775 +0 -0
  140. data/test/dummy/tmp/cache/assets/D0E/A10/sprockets%2F05ebd4b57720dbc2c207882946bd47a9 +0 -0
  141. data/test/dummy/tmp/cache/assets/D0E/C00/sprockets%2F010b6f849ec9259fa3de514a18e74a32 +0 -0
  142. data/test/dummy/tmp/cache/assets/D0F/980/sprockets%2Fdaa14ed9a3657161c56c66483e2d17e4 +0 -0
  143. data/test/dummy/tmp/cache/assets/D11/C40/sprockets%2F04aecf869ffe1036d6a34e5412b37548 +0 -0
  144. data/test/dummy/tmp/cache/assets/D15/6B0/sprockets%2F3bfbac97eb5796307418d0f0e679144a +0 -0
  145. data/test/dummy/tmp/cache/assets/D16/0C0/sprockets%2F58fb9abfdb670a8502813dc88487711a +0 -0
  146. data/test/dummy/tmp/cache/assets/D16/2C0/sprockets%2Fa90ad78854c9bd1156e3866eb0e234f5 +0 -0
  147. data/test/dummy/tmp/cache/assets/D18/290/sprockets%2F5cb980f53c999c04b9b0b930dd08266e +0 -0
  148. data/test/dummy/tmp/cache/assets/D19/420/sprockets%2F379a804e588c4e9ca18e4ee3306653ac +0 -0
  149. data/test/dummy/tmp/cache/assets/D1A/5D0/sprockets%2F5131b11116be12111ba22e43df8f2fec +0 -0
  150. data/test/dummy/tmp/cache/assets/D1A/670/sprockets%2F4f45089e5678ba2b1c06518bde98a7d4 +0 -0
  151. data/test/dummy/tmp/cache/assets/D1C/540/sprockets%2F334e02662b45fcc11013c90d2ebaad05 +0 -0
  152. data/test/dummy/tmp/cache/assets/D1D/C90/sprockets%2Fa688522a4494897a6f6a5e6b80b0c4ff +0 -0
  153. data/test/dummy/tmp/cache/assets/D25/5B0/sprockets%2F56355268a998595bebb9b6c42ba875af +0 -0
  154. data/test/dummy/tmp/cache/assets/D26/C90/sprockets%2Ff78c003cad298697456d86b714e36eff +0 -0
  155. data/test/dummy/tmp/cache/assets/D29/F80/sprockets%2F3d888988ef5e7292bf1f181eb622b19f +0 -0
  156. data/test/dummy/tmp/cache/assets/D34/950/sprockets%2Fa9ab3c0627dd00d6b037ddf42259448d +0 -0
  157. data/test/dummy/tmp/cache/assets/D34/E10/sprockets%2F74034ea037bd6434c8eb68ccf2b3026d +0 -0
  158. data/test/dummy/tmp/cache/assets/D37/F00/sprockets%2F18060fd4371473efaa135cea6076ced7 +0 -0
  159. data/test/dummy/tmp/cache/assets/D37/F20/sprockets%2F16df6ed68997bc0c45996cff6797760b +0 -0
  160. data/test/dummy/tmp/cache/assets/D3A/9E0/sprockets%2F62f2cbed105a1411ff3e9f2f7167089a +0 -0
  161. data/test/dummy/tmp/cache/assets/D3A/F00/sprockets%2Fa682b6bc9df4741b972e1f371d70d0c0 +0 -0
  162. data/test/dummy/tmp/cache/assets/D3B/2C0/sprockets%2F5f98712fffc4d6ac560ec126317c3d10 +0 -0
  163. data/test/dummy/tmp/cache/assets/D3C/FE0/sprockets%2F24f6d543983043d0d1feefacb090196e +0 -0
  164. data/test/dummy/tmp/cache/assets/D3E/500/sprockets%2Fe0d19b79ad67649fb3c1cf715a11a393 +0 -0
  165. data/test/dummy/tmp/cache/assets/D3E/520/sprockets%2F4765d7ea3ba6a5d16231c29de0d958c4 +0 -0
  166. data/test/dummy/tmp/cache/assets/D3F/5E0/sprockets%2Fcbf1d7fac4114ec9059f87f2a0936342 +0 -0
  167. data/test/dummy/tmp/cache/assets/D40/880/sprockets%2F7813c7a2e234b7d2dcca77bff3315587 +0 -0
  168. data/test/dummy/tmp/cache/assets/D43/010/sprockets%2F99f2034c5afbf60c8d6d7a9b52615b80 +0 -0
  169. data/test/dummy/tmp/cache/assets/D45/0C0/sprockets%2F516fc9d887a1ad9640352f26fcd2a90e +0 -0
  170. data/test/dummy/tmp/cache/assets/D46/890/sprockets%2F5ca5e9e8272bf7e14e20f4ea81078d91 +0 -0
  171. data/test/dummy/tmp/cache/assets/D48/140/sprockets%2Fe57106ab8293a7f3d776e690bbd447dc +0 -0
  172. data/test/dummy/tmp/cache/assets/D49/000/sprockets%2Fd94896eee0f35a0a966393090fcc3fc1 +0 -0
  173. data/test/dummy/tmp/cache/assets/D4B/3C0/sprockets%2F26891ba685ff4c6f9d4f2f1c6242f03f +0 -0
  174. data/test/dummy/tmp/cache/assets/D4B/EB0/sprockets%2F90e1f184458ccb432d9fddb8994423af +0 -0
  175. data/test/dummy/tmp/cache/assets/D4B/F30/sprockets%2F87e2067c8a98c80860ca18525aefaff4 +0 -0
  176. data/test/dummy/tmp/cache/assets/D50/F40/sprockets%2F0a264e8ef7b828ffbc499e545d1d3554 +0 -0
  177. data/test/dummy/tmp/cache/assets/D52/C10/sprockets%2Fdf92f8b92422d0c6196e986b0fa84d8d +0 -0
  178. data/test/dummy/tmp/cache/assets/D53/0B0/sprockets%2F3ce0380426fadc73b3e4b21a4b305d6a +0 -0
  179. data/test/dummy/tmp/cache/assets/D55/050/sprockets%2Ff8a1519f64f695a48b04fc494d7fce19 +0 -0
  180. data/test/dummy/tmp/cache/assets/D57/5C0/sprockets%2F2da710dd9256d942b03cfcac3602ca16 +0 -0
  181. data/test/dummy/tmp/cache/assets/D59/110/sprockets%2F2ec0c121af2f7eb46d4a164c3fd75032 +0 -0
  182. data/test/dummy/tmp/cache/assets/D59/F50/sprockets%2F9f2c7e737ba13a57c6ff589292d86fa7 +0 -0
  183. data/test/dummy/tmp/cache/assets/D5C/370/sprockets%2Ff6f72925d6c49e05e66faa4765fe8c57 +0 -0
  184. data/test/dummy/tmp/cache/assets/D5E/540/sprockets%2F989fc9956e6f8db3448a45ffca0e2834 +0 -0
  185. data/test/dummy/tmp/cache/assets/D63/2C0/sprockets%2Fb29b4f22c11cdf82445a279ce2b3e08b +0 -0
  186. data/test/dummy/tmp/cache/assets/D65/390/sprockets%2F5a8932bfeba07d1607613f62bf1b9e1b +0 -0
  187. data/test/dummy/tmp/cache/assets/D66/680/sprockets%2Feac220c53d6b904767a143f4fd1f66cb +0 -0
  188. data/test/dummy/tmp/cache/assets/D67/F30/sprockets%2Fa1c2a19503d7136786bf4c98fdb0cda3 +0 -0
  189. data/test/dummy/tmp/cache/assets/D68/7B0/sprockets%2F01f91bbce586ad5a7181d176fa5bc454 +0 -0
  190. data/test/dummy/tmp/cache/assets/D6F/FF0/sprockets%2Fc74fa24a4bb8a8c9e77cfd024536324e +0 -0
  191. data/test/dummy/tmp/cache/assets/D72/260/sprockets%2F805c75a5e038c51b5bab63f7af785ef3 +0 -0
  192. data/test/dummy/tmp/cache/assets/D72/AD0/sprockets%2F73ce023923f93c1f4dd858d329d4adda +0 -0
  193. data/test/dummy/tmp/cache/assets/D73/1E0/sprockets%2F2028a62d96b8b021e87ea2c9dded688a +0 -0
  194. data/test/dummy/tmp/cache/assets/D73/920/sprockets%2F77a5d5acdcd4b3629277aa338f8d7e12 +0 -0
  195. data/test/dummy/tmp/cache/assets/D74/F00/sprockets%2F35bfb58f60c6bdd9076b5319d09d4b3f +0 -0
  196. data/test/dummy/tmp/cache/assets/D75/2C0/sprockets%2F5580e9bd1b1d8e6bf3ea14e7b3568d73 +0 -0
  197. data/test/dummy/tmp/cache/assets/D77/AE0/sprockets%2F5668bbe7bf9792cfd8da59d01b7a1061 +0 -0
  198. data/test/dummy/tmp/cache/assets/D7A/3F0/sprockets%2Fbf3d583f5ba468586a1db5f56e52ef61 +0 -0
  199. data/test/dummy/tmp/cache/assets/D7B/230/sprockets%2F4e473cebde712a45d9879939c2e2bec1 +0 -0
  200. data/test/dummy/tmp/cache/assets/D7B/260/sprockets%2F0d277dabe82a3ad3ec30ce2a14a52303 +0 -0
  201. data/test/dummy/tmp/cache/assets/D7C/FB0/sprockets%2Fe8f0b9a5d83e431c3d687b93bd59e34c +0 -0
  202. data/test/dummy/tmp/cache/assets/D80/4A0/sprockets%2Fc0322f552fc7ddecd97889feaf544660 +0 -0
  203. data/test/dummy/tmp/cache/assets/D86/8D0/sprockets%2F01297d1e51cdfbcce40ca119a6af0291 +0 -0
  204. data/test/dummy/tmp/cache/assets/D88/6E0/sprockets%2F2d8c8f5d9e37f75a0a9b68b5cb9485e4 +0 -0
  205. data/test/dummy/tmp/cache/assets/D89/DF0/sprockets%2Fb8ca8ddcdf983496f377059c08f04e6f +0 -0
  206. data/test/dummy/tmp/cache/assets/D97/A10/sprockets%2Ff1fe3b6160ec3da42f287aed3d3235c9 +0 -0
  207. data/test/dummy/tmp/cache/assets/D9C/230/sprockets%2F5126f140ae32b9557afd23d7f8cbdbc9 +0 -0
  208. data/test/dummy/tmp/cache/assets/D9D/450/sprockets%2Fcc373a7814f46e9e68d3cb8ab0ec6a20 +0 -0
  209. data/test/dummy/tmp/cache/assets/D9D/E00/sprockets%2F62f7d32b35fb23cc6360fbedd75c6e17 +0 -0
  210. data/test/dummy/tmp/cache/assets/D9E/750/sprockets%2F3ab32a9aab15487d6b9be355c37dfe92 +0 -0
  211. data/test/dummy/tmp/cache/assets/D9F/6E0/sprockets%2Fbb0a236a70758a95bbcb8e66e588c2cd +0 -0
  212. data/test/dummy/tmp/cache/assets/D9F/790/sprockets%2F4d9649c0c0fdecf285b30fa1474b59db +0 -0
  213. data/test/dummy/tmp/cache/assets/DA7/690/sprockets%2Fc49a7fa0c7dc57f03aa9f4fdb3994291 +0 -0
  214. data/test/dummy/tmp/cache/assets/DA8/B70/sprockets%2F3ddd853d4c7253dc5ab53748cc7e4f5f +0 -0
  215. data/test/dummy/tmp/cache/assets/DA9/6C0/sprockets%2Fff22f389eaabe920d9917593f53d0add +0 -0
  216. data/test/dummy/tmp/cache/assets/DAA/D30/sprockets%2Fba92440f66d3ab82ccfcd4f86e899a16 +0 -0
  217. data/test/dummy/tmp/cache/assets/DAE/8E0/sprockets%2Faee3dc2a887eeee336ef1893818372bd +0 -0
  218. data/test/dummy/tmp/cache/assets/DBC/A70/sprockets%2F0f7da71f1d2e23fc55bc2441e0efa41f +0 -0
  219. data/test/dummy/tmp/cache/assets/DBE/2C0/sprockets%2F551e2bb3e1bc603f1d8e829b24bf4ada +0 -0
  220. data/test/dummy/tmp/cache/assets/DC3/160/sprockets%2F129f0ad08b545cfedaf5ab12c5059de5 +0 -0
  221. data/test/dummy/tmp/cache/assets/DC8/590/sprockets%2F804613cab66aacfd4fae5f0ea275692e +0 -0
  222. data/test/dummy/tmp/cache/assets/DC8/670/sprockets%2F47b5310b4dbf58b2b8dcd6ba98c05db6 +0 -0
  223. data/test/dummy/tmp/cache/assets/DC9/BC0/sprockets%2F42d9ff9f511d0c7e072f24bbfc305cce +0 -0
  224. data/test/dummy/tmp/cache/assets/DCA/310/sprockets%2F032481b7ad8da4f7ecc2ea13fd7497ac +0 -0
  225. data/test/dummy/tmp/cache/assets/DCF/5D0/sprockets%2F95dcbbc1e3f58076e0fbc297cbaf9124 +0 -0
  226. data/test/dummy/tmp/cache/assets/DCF/6F0/sprockets%2Fb35295b9c0ed38dd040ea475edfea37f +0 -0
  227. data/test/dummy/tmp/cache/assets/DCF/AC0/sprockets%2Fca3f2c931d05fd9271edb9db0f19c92f +0 -0
  228. data/test/dummy/tmp/cache/assets/DD2/720/sprockets%2Fa7e3feaca76d2fd8f11d79a30938b70d +0 -0
  229. data/test/dummy/tmp/cache/assets/DD3/150/sprockets%2Fbae8affcbd247de88930e215e7d4d460 +0 -0
  230. data/test/dummy/tmp/cache/assets/DDD/370/sprockets%2F016219ffdd478c3c40e6f4efee84da9f +0 -0
  231. data/test/dummy/tmp/cache/assets/DDE/860/sprockets%2F8c57c9956b38b6572a9dcd1a6fcbeaf4 +0 -0
  232. data/test/dummy/tmp/cache/assets/DEA/980/sprockets%2Fc5897a1f996aafff34f555f76a39fbbd +0 -0
  233. data/test/dummy/tmp/cache/assets/DEC/5F0/sprockets%2F410f8c0c1dcf61a1d2dc2a7d3e5bd5e8 +0 -0
  234. data/test/dummy/tmp/cache/assets/DEE/930/sprockets%2F8e899ec8a7afe2577634ef981ccabcc9 +0 -0
  235. data/test/dummy/tmp/cache/assets/DF3/7B0/sprockets%2Fbe3e96d12fac88a1e35da10fad9722ca +0 -0
  236. data/test/dummy/tmp/cache/assets/E01/7D0/sprockets%2F771e23888dbed36f017cbb35acdbc8df +0 -0
  237. data/test/dummy/tmp/cache/assets/E03/8C0/sprockets%2Fdddca472be9884cdfe6af78222bad074 +0 -0
  238. data/test/dummy/tmp/cache/assets/E04/730/sprockets%2F583c8db59edef3f0c5b7e336e284babb +0 -0
  239. data/test/dummy/tmp/cache/assets/E0E/850/sprockets%2F9e16585b5e9e67d2ad3bfc79fe3c3cbb +0 -0
  240. data/test/dummy/tmp/cache/assets/E16/890/sprockets%2F25d48ca77decab21aa4e144a30aed4ed +0 -0
  241. data/test/dummy/tmp/cache/assets/E28/A80/sprockets%2F34a8d9e9cbd7a2a5178da0afbf4e10fd +0 -0
  242. data/test/dummy/tmp/cache/assets/E28/D00/sprockets%2Fcb82c1534ddccee2fa79b6a84e1d3ae4 +0 -0
  243. data/test/dummy/tmp/cache/assets/E31/6E0/sprockets%2Ff305b61e7fa499ad2504bfebb9e7edea +0 -0
  244. data/test/dummy/tmp/cache/assets/E6E/9C0/sprockets%2Ffa55f351fcecf1bc2ba6ba1310cbfaa5 +0 -0
  245. data/test/dummy/tmp/data/meta_request/9f4fa7337e7e94a98f0b910b6ca482cc.json +1 -0
  246. data/test/dummy/tmp/data/meta_request/daa67d658c0acef85e2bd06df1c83b29.json +1 -0
  247. data/test/dummy/tmp/data/meta_request/dce6a6c9d301470e341c23d760d54745.json +1 -0
  248. metadata +8 -4
  249. data/test/dummy/tmp/data/meta_request/efac4ed670e3c58c510e003f42e04992.json +0 -1
@@ -610,25 +610,29 @@ define('Core/Math',[
610
610
  };
611
611
 
612
612
  /**
613
- * Converts a scalar value in the range [-1.0, 1.0] to a 8-bit 2's complement number.
613
+ * Converts a scalar value in the range [-1.0, 1.0] to a SNORM in the range [0, rangeMax]
614
614
  * @param {Number} value The scalar value in the range [-1.0, 1.0]
615
- * @returns {Number} The 8-bit 2's complement number, where 0 maps to -1.0 and 255 maps to 1.0.
615
+ * @param {Number} [rangeMax=255] The maximum value in the mapped range, 255 by default.
616
+ * @returns {Number} A SNORM value, where 0 maps to -1.0 and rangeMax maps to 1.0.
616
617
  *
617
618
  * @see CesiumMath.fromSNorm
618
619
  */
619
- CesiumMath.toSNorm = function(value) {
620
- return Math.round((CesiumMath.clamp(value, -1.0, 1.0) * 0.5 + 0.5) * 255.0);
620
+ CesiumMath.toSNorm = function(value, rangeMax) {
621
+ rangeMax = defaultValue(rangeMax, 255);
622
+ return Math.round((CesiumMath.clamp(value, -1.0, 1.0) * 0.5 + 0.5) * rangeMax);
621
623
  };
622
624
 
623
625
  /**
624
- * Converts a SNORM value in the range [0, 255] to a scalar in the range [-1.0, 1.0].
626
+ * Converts a SNORM value in the range [0, rangeMax] to a scalar in the range [-1.0, 1.0].
625
627
  * @param {Number} value SNORM value in the range [0, 255]
628
+ * @param {Number} [rangeMax=255] The maximum value in the SNORM range, 255 by default.
626
629
  * @returns {Number} Scalar in the range [-1.0, 1.0].
627
630
  *
628
631
  * @see CesiumMath.toSNorm
629
632
  */
630
- CesiumMath.fromSNorm = function(value) {
631
- return CesiumMath.clamp(value, 0.0, 255.0) / 255.0 * 2.0 - 1.0;
633
+ CesiumMath.fromSNorm = function(value, rangeMax) {
634
+ rangeMax = defaultValue(rangeMax, 255);
635
+ return CesiumMath.clamp(value, 0.0, rangeMax) / rangeMax * 2.0 - 1.0;
632
636
  };
633
637
 
634
638
  /**
@@ -1283,6 +1287,8 @@ define('Core/Cartesian2',[
1283
1287
  * @param {Cartesian2} value The value to pack.
1284
1288
  * @param {Number[]} array The array to pack into.
1285
1289
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
1290
+ *
1291
+ * @returns {Number[]} The array that was packed into
1286
1292
  */
1287
1293
  Cartesian2.pack = function(value, array, startingIndex) {
1288
1294
  if (!defined(value)) {
@@ -1296,6 +1302,8 @@ define('Core/Cartesian2',[
1296
1302
 
1297
1303
  array[startingIndex++] = value.x;
1298
1304
  array[startingIndex] = value.y;
1305
+
1306
+ return array;
1299
1307
  };
1300
1308
 
1301
1309
  /**
@@ -2071,6 +2079,8 @@ define('Core/Cartesian3',[
2071
2079
  * @param {Cartesian3} value The value to pack.
2072
2080
  * @param {Number[]} array The array to pack into.
2073
2081
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
2082
+ *
2083
+ * @returns {Number[]} The array that was packed into
2074
2084
  */
2075
2085
  Cartesian3.pack = function(value, array, startingIndex) {
2076
2086
  if (!defined(value)) {
@@ -2086,6 +2096,8 @@ define('Core/Cartesian3',[
2086
2096
  array[startingIndex++] = value.x;
2087
2097
  array[startingIndex++] = value.y;
2088
2098
  array[startingIndex] = value.z;
2099
+
2100
+ return array;
2089
2101
  };
2090
2102
 
2091
2103
  /**
@@ -3026,12 +3038,14 @@ define('Core/Cartesian3',[
3026
3038
  define('Core/AttributeCompression',[
3027
3039
  './Cartesian2',
3028
3040
  './Cartesian3',
3041
+ './defaultValue',
3029
3042
  './defined',
3030
3043
  './DeveloperError',
3031
3044
  './Math'
3032
3045
  ], function(
3033
3046
  Cartesian2,
3034
3047
  Cartesian3,
3048
+ defaultValue,
3035
3049
  defined,
3036
3050
  DeveloperError,
3037
3051
  CesiumMath) {
@@ -3047,21 +3061,22 @@ define('Core/AttributeCompression',[
3047
3061
  var AttributeCompression = {};
3048
3062
 
3049
3063
  /**
3050
- * Encodes a normalized vector into 2 SNORM values in the range of [0-255] following the 'oct' encoding.
3064
+ * Encodes a normalized vector into 2 SNORM values in the range of [0-rangeMax] following the 'oct' encoding.
3051
3065
  *
3052
- * Oct encoding is a compact representation of unit length vectors. The encoding and decoding functions are low cost, and represent the normalized vector within 1 degree of error.
3066
+ * Oct encoding is a compact representation of unit length vectors.
3053
3067
  * The 'oct' encoding is described in "A Survey of Efficient Representations of Independent Unit Vectors",
3054
3068
  * Cigolle et al 2014: {@link http://jcgt.org/published/0003/02/01/}
3055
3069
  *
3056
- * @param {Cartesian3} vector The normalized vector to be compressed into 2 byte 'oct' encoding.
3057
- * @param {Cartesian2} result The 2 byte oct-encoded unit length vector.
3058
- * @returns {Cartesian2} The 2 byte oct-encoded unit length vector.
3070
+ * @param {Cartesian3} vector The normalized vector to be compressed into 2 component 'oct' encoding.
3071
+ * @param {Cartesian2} result The 2 component oct-encoded unit length vector.
3072
+ * @param {Number} rangeMax The maximum value of the SNORM range. The encoded vector is stored in log2(rangeMax+1) bits.
3073
+ * @returns {Cartesian2} The 2 component oct-encoded unit length vector.
3059
3074
  *
3060
3075
  * @exception {DeveloperError} vector must be normalized.
3061
3076
  *
3062
- * @see AttributeCompression.octDecode
3077
+ * @see AttributeCompression.octDecodeInRange
3063
3078
  */
3064
- AttributeCompression.octEncode = function(vector, result) {
3079
+ AttributeCompression.octEncodeInRange = function(vector, rangeMax, result) {
3065
3080
  if (!defined(vector)) {
3066
3081
  throw new DeveloperError('vector is required.');
3067
3082
  }
@@ -3082,34 +3097,51 @@ define('Core/AttributeCompression',[
3082
3097
  result.y = (1.0 - Math.abs(x)) * CesiumMath.signNotZero(y);
3083
3098
  }
3084
3099
 
3085
- result.x = CesiumMath.toSNorm(result.x);
3086
- result.y = CesiumMath.toSNorm(result.y);
3100
+ result.x = CesiumMath.toSNorm(result.x, rangeMax);
3101
+ result.y = CesiumMath.toSNorm(result.y, rangeMax);
3087
3102
 
3088
3103
  return result;
3089
3104
  };
3090
3105
 
3106
+ /**
3107
+ * Encodes a normalized vector into 2 SNORM values in the range of [0-255] following the 'oct' encoding.
3108
+ *
3109
+ * @param {Cartesian3} vector The normalized vector to be compressed into 2 byte 'oct' encoding.
3110
+ * @param {Cartesian2} result The 2 byte oct-encoded unit length vector.
3111
+ * @returns {Cartesian2} The 2 byte oct-encoded unit length vector.
3112
+ *
3113
+ * @exception {DeveloperError} vector must be normalized.
3114
+ *
3115
+ * @see AttributeCompression.octEncodeInRange
3116
+ * @see AttributeCompression.octDecode
3117
+ */
3118
+ AttributeCompression.octEncode = function(vector, result) {
3119
+ return AttributeCompression.octEncodeInRange(vector, 255, result);
3120
+ };
3121
+
3091
3122
  /**
3092
3123
  * Decodes a unit-length vector in 'oct' encoding to a normalized 3-component vector.
3093
3124
  *
3094
3125
  * @param {Number} x The x component of the oct-encoded unit length vector.
3095
3126
  * @param {Number} y The y component of the oct-encoded unit length vector.
3127
+ * @param {Number} rangeMax The maximum value of the SNORM range. The encoded vector is stored in log2(rangeMax+1) bits.
3096
3128
  * @param {Cartesian3} result The decoded and normalized vector
3097
3129
  * @returns {Cartesian3} The decoded and normalized vector.
3098
3130
  *
3099
- * @exception {DeveloperError} x and y must be a signed normalized integer between 0 and 255.
3131
+ * @exception {DeveloperError} x and y must be an unsigned normalized integer between 0 and rangeMax.
3100
3132
  *
3101
- * @see AttributeCompression.octEncode
3133
+ * @see AttributeCompression.octEncodeInRange
3102
3134
  */
3103
- AttributeCompression.octDecode = function(x, y, result) {
3135
+ AttributeCompression.octDecodeInRange = function(x, y, rangeMax, result) {
3104
3136
  if (!defined(result)) {
3105
3137
  throw new DeveloperError('result is required.');
3106
3138
  }
3107
- if (x < 0 || x > 255 || y < 0 || y > 255) {
3108
- throw new DeveloperError('x and y must be a signed normalized integer between 0 and 255');
3139
+ if (x < 0 || x > rangeMax || y < 0 || y > rangeMax) {
3140
+ throw new DeveloperError('x and y must be a signed normalized integer between 0 and ' + rangeMax);
3109
3141
  }
3110
3142
 
3111
- result.x = CesiumMath.fromSNorm(x);
3112
- result.y = CesiumMath.fromSNorm(y);
3143
+ result.x = CesiumMath.fromSNorm(x, rangeMax);
3144
+ result.y = CesiumMath.fromSNorm(y, rangeMax);
3113
3145
  result.z = 1.0 - (Math.abs(result.x) + Math.abs(result.y));
3114
3146
 
3115
3147
  if (result.z < 0.0)
@@ -3122,6 +3154,22 @@ define('Core/AttributeCompression',[
3122
3154
  return Cartesian3.normalize(result, result);
3123
3155
  };
3124
3156
 
3157
+ /**
3158
+ * Decodes a unit-length vector in 2 byte 'oct' encoding to a normalized 3-component vector.
3159
+ *
3160
+ * @param {Number} x The x component of the oct-encoded unit length vector.
3161
+ * @param {Number} y The y component of the oct-encoded unit length vector.
3162
+ * @param {Cartesian3} result The decoded and normalized vector.
3163
+ * @returns {Cartesian3} The decoded and normalized vector.
3164
+ *
3165
+ * @exception {DeveloperError} x and y must be an unsigned normalized integer between 0 and 255.
3166
+ *
3167
+ * @see AttributeCompression.octDecodeInRange
3168
+ */
3169
+ AttributeCompression.octDecode = function(x, y, result) {
3170
+ return AttributeCompression.octDecodeInRange(x, y, 255, result);
3171
+ };
3172
+
3125
3173
  /**
3126
3174
  * Packs an oct encoded vector into a single floating-point number.
3127
3175
  *
@@ -4266,6 +4314,8 @@ define('Core/Ellipsoid',[
4266
4314
  * @param {Ellipsoid} value The value to pack.
4267
4315
  * @param {Number[]} array The array to pack into.
4268
4316
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
4317
+ *
4318
+ * @returns {Number[]} The array that was packed into
4269
4319
  */
4270
4320
  Ellipsoid.pack = function(value, array, startingIndex) {
4271
4321
  if (!defined(value)) {
@@ -4278,6 +4328,8 @@ define('Core/Ellipsoid',[
4278
4328
  startingIndex = defaultValue(startingIndex, 0);
4279
4329
 
4280
4330
  Cartesian3.pack(value._radii, array, startingIndex);
4331
+
4332
+ return array;
4281
4333
  };
4282
4334
 
4283
4335
  /**
@@ -4810,6 +4862,8 @@ define('Core/Matrix3',[
4810
4862
  * @param {Matrix3} value The value to pack.
4811
4863
  * @param {Number[]} array The array to pack into.
4812
4864
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
4865
+ *
4866
+ * @returns {Number[]} The array that was packed into
4813
4867
  */
4814
4868
  Matrix3.pack = function(value, array, startingIndex) {
4815
4869
  if (!defined(value)) {
@@ -4831,6 +4885,8 @@ define('Core/Matrix3',[
4831
4885
  array[startingIndex++] = value[6];
4832
4886
  array[startingIndex++] = value[7];
4833
4887
  array[startingIndex++] = value[8];
4888
+
4889
+ return array;
4834
4890
  };
4835
4891
 
4836
4892
  /**
@@ -5672,7 +5728,7 @@ define('Core/Matrix3',[
5672
5728
  * @example
5673
5729
  * // Instead of Cesium.Matrix3.multiply(m, Cesium.Matrix3.fromScale(scale), m);
5674
5730
  * Cesium.Matrix3.multiplyByScale(m, scale, m);
5675
- *
5731
+ *
5676
5732
  * @see Matrix3.fromScale
5677
5733
  * @see Matrix3.multiplyByUniformScale
5678
5734
  */
@@ -6378,6 +6434,8 @@ define('Core/Cartesian4',[
6378
6434
  * @param {Cartesian4} value The value to pack.
6379
6435
  * @param {Number[]} array The array to pack into.
6380
6436
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
6437
+ *
6438
+ * @returns {Number[]} The array that was packed into
6381
6439
  */
6382
6440
  Cartesian4.pack = function(value, array, startingIndex) {
6383
6441
  if (!defined(value)) {
@@ -6393,6 +6451,8 @@ define('Core/Cartesian4',[
6393
6451
  array[startingIndex++] = value.y;
6394
6452
  array[startingIndex++] = value.z;
6395
6453
  array[startingIndex] = value.w;
6454
+
6455
+ return array;
6396
6456
  };
6397
6457
 
6398
6458
  /**
@@ -7245,6 +7305,8 @@ define('Core/Matrix4',[
7245
7305
  * @param {Matrix4} value The value to pack.
7246
7306
  * @param {Number[]} array The array to pack into.
7247
7307
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
7308
+ *
7309
+ * @returns {Number[]} The array that was packed into
7248
7310
  */
7249
7311
  Matrix4.pack = function(value, array, startingIndex) {
7250
7312
  if (!defined(value)) {
@@ -7273,6 +7335,8 @@ define('Core/Matrix4',[
7273
7335
  array[startingIndex++] = value[13];
7274
7336
  array[startingIndex++] = value[14];
7275
7337
  array[startingIndex] = value[15];
7338
+
7339
+ return array;
7276
7340
  };
7277
7341
 
7278
7342
  /**
@@ -8877,7 +8941,7 @@ define('Core/Matrix4',[
8877
8941
  * @example
8878
8942
  * // Instead of Cesium.Matrix4.multiply(m, Cesium.Matrix4.fromUniformScale(scale), m);
8879
8943
  * Cesium.Matrix4.multiplyByUniformScale(m, scale, m);
8880
- *
8944
+ *
8881
8945
  * @see Matrix4.fromUniformScale
8882
8946
  * @see Matrix4.multiplyByScale
8883
8947
  */
@@ -8914,7 +8978,7 @@ define('Core/Matrix4',[
8914
8978
  * @example
8915
8979
  * // Instead of Cesium.Matrix4.multiply(m, Cesium.Matrix4.fromScale(scale), m);
8916
8980
  * Cesium.Matrix4.multiplyByScale(m, scale, m);
8917
- *
8981
+ *
8918
8982
  * @see Matrix4.fromScale
8919
8983
  * @see Matrix4.multiplyByUniformScale
8920
8984
  */
@@ -10166,6 +10230,8 @@ define('Core/Rectangle',[
10166
10230
  * @param {Rectangle} value The value to pack.
10167
10231
  * @param {Number[]} array The array to pack into.
10168
10232
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
10233
+ *
10234
+ * @returns {Number[]} The array that was packed into
10169
10235
  */
10170
10236
  Rectangle.pack = function(value, array, startingIndex) {
10171
10237
  if (!defined(value)) {
@@ -10182,6 +10248,8 @@ define('Core/Rectangle',[
10182
10248
  array[startingIndex++] = value.south;
10183
10249
  array[startingIndex++] = value.east;
10184
10250
  array[startingIndex] = value.north;
10251
+
10252
+ return array;
10185
10253
  };
10186
10254
 
10187
10255
  /**
@@ -11673,6 +11741,8 @@ define('Core/BoundingSphere',[
11673
11741
  * @param {BoundingSphere} value The value to pack.
11674
11742
  * @param {Number[]} array The array to pack into.
11675
11743
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
11744
+ *
11745
+ * @returns {Number[]} The array that was packed into
11676
11746
  */
11677
11747
  BoundingSphere.pack = function(value, array, startingIndex) {
11678
11748
  if (!defined(value)) {
@@ -11690,6 +11760,8 @@ define('Core/BoundingSphere',[
11690
11760
  array[startingIndex++] = center.y;
11691
11761
  array[startingIndex++] = center.z;
11692
11762
  array[startingIndex] = value.radius;
11763
+
11764
+ return array;
11693
11765
  };
11694
11766
 
11695
11767
  /**
@@ -17013,7 +17085,8 @@ define('Core/JulianDate',[
17013
17085
  new LeapSecond(new JulianDate(2453736, 43233.0, TimeStandard.TAI), 33), // January 1, 2006 00:00:00 UTC
17014
17086
  new LeapSecond(new JulianDate(2454832, 43234.0, TimeStandard.TAI), 34), // January 1, 2009 00:00:00 UTC
17015
17087
  new LeapSecond(new JulianDate(2456109, 43235.0, TimeStandard.TAI), 35), // July 1, 2012 00:00:00 UTC
17016
- new LeapSecond(new JulianDate(2457204, 43236.0, TimeStandard.TAI), 36) // July 1, 2015 00:00:00 UTC
17088
+ new LeapSecond(new JulianDate(2457204, 43236.0, TimeStandard.TAI), 36), // July 1, 2015 00:00:00 UTC
17089
+ new LeapSecond(new JulianDate(2457754, 43237.0, TimeStandard.TAI), 37) // January 1, 2017 00:00:00 UTC
17017
17090
  ];
17018
17091
 
17019
17092
  return JulianDate;
@@ -19398,6 +19471,8 @@ define('Core/Quaternion',[
19398
19471
  * @param {Quaternion} value The value to pack.
19399
19472
  * @param {Number[]} array The array to pack into.
19400
19473
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
19474
+ *
19475
+ * @returns {Number[]} The array that was packed into
19401
19476
  */
19402
19477
  Quaternion.pack = function(value, array, startingIndex) {
19403
19478
  if (!defined(value)) {
@@ -19414,6 +19489,8 @@ define('Core/Quaternion',[
19414
19489
  array[startingIndex++] = value.y;
19415
19490
  array[startingIndex++] = value.z;
19416
19491
  array[startingIndex] = value.w;
19492
+
19493
+ return array;
19417
19494
  };
19418
19495
 
19419
19496
  /**
@@ -20043,7 +20120,7 @@ define('Core/Quaternion',[
20043
20120
  * // 2. compute the squad interpolation as above but where the first quaternion is a end point.
20044
20121
  * var s1 = Cesium.Quaternion.computeInnerQuadrangle(quaternions[0], quaternions[1], quaternions[2], new Cesium.Quaternion());
20045
20122
  * var q = Cesium.Quaternion.squad(quaternions[0], quaternions[1], quaternions[0], s1, t, new Cesium.Quaternion());
20046
- *
20123
+ *
20047
20124
  * @see Quaternion#computeInnerQuadrangle
20048
20125
  */
20049
20126
  Quaternion.squad = function(q0, q1, s0, s1, t, result) {
@@ -610,25 +610,29 @@ define('Core/Math',[
610
610
  };
611
611
 
612
612
  /**
613
- * Converts a scalar value in the range [-1.0, 1.0] to a 8-bit 2's complement number.
613
+ * Converts a scalar value in the range [-1.0, 1.0] to a SNORM in the range [0, rangeMax]
614
614
  * @param {Number} value The scalar value in the range [-1.0, 1.0]
615
- * @returns {Number} The 8-bit 2's complement number, where 0 maps to -1.0 and 255 maps to 1.0.
615
+ * @param {Number} [rangeMax=255] The maximum value in the mapped range, 255 by default.
616
+ * @returns {Number} A SNORM value, where 0 maps to -1.0 and rangeMax maps to 1.0.
616
617
  *
617
618
  * @see CesiumMath.fromSNorm
618
619
  */
619
- CesiumMath.toSNorm = function(value) {
620
- return Math.round((CesiumMath.clamp(value, -1.0, 1.0) * 0.5 + 0.5) * 255.0);
620
+ CesiumMath.toSNorm = function(value, rangeMax) {
621
+ rangeMax = defaultValue(rangeMax, 255);
622
+ return Math.round((CesiumMath.clamp(value, -1.0, 1.0) * 0.5 + 0.5) * rangeMax);
621
623
  };
622
624
 
623
625
  /**
624
- * Converts a SNORM value in the range [0, 255] to a scalar in the range [-1.0, 1.0].
626
+ * Converts a SNORM value in the range [0, rangeMax] to a scalar in the range [-1.0, 1.0].
625
627
  * @param {Number} value SNORM value in the range [0, 255]
628
+ * @param {Number} [rangeMax=255] The maximum value in the SNORM range, 255 by default.
626
629
  * @returns {Number} Scalar in the range [-1.0, 1.0].
627
630
  *
628
631
  * @see CesiumMath.toSNorm
629
632
  */
630
- CesiumMath.fromSNorm = function(value) {
631
- return CesiumMath.clamp(value, 0.0, 255.0) / 255.0 * 2.0 - 1.0;
633
+ CesiumMath.fromSNorm = function(value, rangeMax) {
634
+ rangeMax = defaultValue(rangeMax, 255);
635
+ return CesiumMath.clamp(value, 0.0, rangeMax) / rangeMax * 2.0 - 1.0;
632
636
  };
633
637
 
634
638
  /**
@@ -1309,6 +1313,8 @@ define('Core/Cartesian3',[
1309
1313
  * @param {Cartesian3} value The value to pack.
1310
1314
  * @param {Number[]} array The array to pack into.
1311
1315
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
1316
+ *
1317
+ * @returns {Number[]} The array that was packed into
1312
1318
  */
1313
1319
  Cartesian3.pack = function(value, array, startingIndex) {
1314
1320
  if (!defined(value)) {
@@ -1324,6 +1330,8 @@ define('Core/Cartesian3',[
1324
1330
  array[startingIndex++] = value.x;
1325
1331
  array[startingIndex++] = value.y;
1326
1332
  array[startingIndex] = value.z;
1333
+
1334
+ return array;
1327
1335
  };
1328
1336
 
1329
1337
  /**
@@ -2967,6 +2975,8 @@ define('Core/Ellipsoid',[
2967
2975
  * @param {Ellipsoid} value The value to pack.
2968
2976
  * @param {Number[]} array The array to pack into.
2969
2977
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
2978
+ *
2979
+ * @returns {Number[]} The array that was packed into
2970
2980
  */
2971
2981
  Ellipsoid.pack = function(value, array, startingIndex) {
2972
2982
  if (!defined(value)) {
@@ -2979,6 +2989,8 @@ define('Core/Ellipsoid',[
2979
2989
  startingIndex = defaultValue(startingIndex, 0);
2980
2990
 
2981
2991
  Cartesian3.pack(value._radii, array, startingIndex);
2992
+
2993
+ return array;
2982
2994
  };
2983
2995
 
2984
2996
  /**
@@ -3554,6 +3566,8 @@ define('Core/Matrix3',[
3554
3566
  * @param {Matrix3} value The value to pack.
3555
3567
  * @param {Number[]} array The array to pack into.
3556
3568
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
3569
+ *
3570
+ * @returns {Number[]} The array that was packed into
3557
3571
  */
3558
3572
  Matrix3.pack = function(value, array, startingIndex) {
3559
3573
  if (!defined(value)) {
@@ -3575,6 +3589,8 @@ define('Core/Matrix3',[
3575
3589
  array[startingIndex++] = value[6];
3576
3590
  array[startingIndex++] = value[7];
3577
3591
  array[startingIndex++] = value[8];
3592
+
3593
+ return array;
3578
3594
  };
3579
3595
 
3580
3596
  /**
@@ -4416,7 +4432,7 @@ define('Core/Matrix3',[
4416
4432
  * @example
4417
4433
  * // Instead of Cesium.Matrix3.multiply(m, Cesium.Matrix3.fromScale(scale), m);
4418
4434
  * Cesium.Matrix3.multiplyByScale(m, scale, m);
4419
- *
4435
+ *
4420
4436
  * @see Matrix3.fromScale
4421
4437
  * @see Matrix3.multiplyByUniformScale
4422
4438
  */
@@ -5122,6 +5138,8 @@ define('Core/Cartesian4',[
5122
5138
  * @param {Cartesian4} value The value to pack.
5123
5139
  * @param {Number[]} array The array to pack into.
5124
5140
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
5141
+ *
5142
+ * @returns {Number[]} The array that was packed into
5125
5143
  */
5126
5144
  Cartesian4.pack = function(value, array, startingIndex) {
5127
5145
  if (!defined(value)) {
@@ -5137,6 +5155,8 @@ define('Core/Cartesian4',[
5137
5155
  array[startingIndex++] = value.y;
5138
5156
  array[startingIndex++] = value.z;
5139
5157
  array[startingIndex] = value.w;
5158
+
5159
+ return array;
5140
5160
  };
5141
5161
 
5142
5162
  /**
@@ -5989,6 +6009,8 @@ define('Core/Matrix4',[
5989
6009
  * @param {Matrix4} value The value to pack.
5990
6010
  * @param {Number[]} array The array to pack into.
5991
6011
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
6012
+ *
6013
+ * @returns {Number[]} The array that was packed into
5992
6014
  */
5993
6015
  Matrix4.pack = function(value, array, startingIndex) {
5994
6016
  if (!defined(value)) {
@@ -6017,6 +6039,8 @@ define('Core/Matrix4',[
6017
6039
  array[startingIndex++] = value[13];
6018
6040
  array[startingIndex++] = value[14];
6019
6041
  array[startingIndex] = value[15];
6042
+
6043
+ return array;
6020
6044
  };
6021
6045
 
6022
6046
  /**
@@ -7621,7 +7645,7 @@ define('Core/Matrix4',[
7621
7645
  * @example
7622
7646
  * // Instead of Cesium.Matrix4.multiply(m, Cesium.Matrix4.fromUniformScale(scale), m);
7623
7647
  * Cesium.Matrix4.multiplyByUniformScale(m, scale, m);
7624
- *
7648
+ *
7625
7649
  * @see Matrix4.fromUniformScale
7626
7650
  * @see Matrix4.multiplyByScale
7627
7651
  */
@@ -7658,7 +7682,7 @@ define('Core/Matrix4',[
7658
7682
  * @example
7659
7683
  * // Instead of Cesium.Matrix4.multiply(m, Cesium.Matrix4.fromScale(scale), m);
7660
7684
  * Cesium.Matrix4.multiplyByScale(m, scale, m);
7661
- *
7685
+ *
7662
7686
  * @see Matrix4.fromScale
7663
7687
  * @see Matrix4.multiplyByUniformScale
7664
7688
  */
@@ -8910,6 +8934,8 @@ define('Core/Rectangle',[
8910
8934
  * @param {Rectangle} value The value to pack.
8911
8935
  * @param {Number[]} array The array to pack into.
8912
8936
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
8937
+ *
8938
+ * @returns {Number[]} The array that was packed into
8913
8939
  */
8914
8940
  Rectangle.pack = function(value, array, startingIndex) {
8915
8941
  if (!defined(value)) {
@@ -8926,6 +8952,8 @@ define('Core/Rectangle',[
8926
8952
  array[startingIndex++] = value.south;
8927
8953
  array[startingIndex++] = value.east;
8928
8954
  array[startingIndex] = value.north;
8955
+
8956
+ return array;
8929
8957
  };
8930
8958
 
8931
8959
  /**
@@ -10417,6 +10445,8 @@ define('Core/BoundingSphere',[
10417
10445
  * @param {BoundingSphere} value The value to pack.
10418
10446
  * @param {Number[]} array The array to pack into.
10419
10447
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
10448
+ *
10449
+ * @returns {Number[]} The array that was packed into
10420
10450
  */
10421
10451
  BoundingSphere.pack = function(value, array, startingIndex) {
10422
10452
  if (!defined(value)) {
@@ -10434,6 +10464,8 @@ define('Core/BoundingSphere',[
10434
10464
  array[startingIndex++] = center.y;
10435
10465
  array[startingIndex++] = center.z;
10436
10466
  array[startingIndex] = value.radius;
10467
+
10468
+ return array;
10437
10469
  };
10438
10470
 
10439
10471
  /**
@@ -13196,6 +13228,8 @@ define('Core/VertexFormat',[
13196
13228
  * @param {VertexFormat} value The value to pack.
13197
13229
  * @param {Number[]} array The array to pack into.
13198
13230
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
13231
+ *
13232
+ * @returns {Number[]} The array that was packed into
13199
13233
  */
13200
13234
  VertexFormat.pack = function(value, array, startingIndex) {
13201
13235
  if (!defined(value)) {
@@ -13213,6 +13247,8 @@ define('Core/VertexFormat',[
13213
13247
  array[startingIndex++] = value.binormal ? 1.0 : 0.0;
13214
13248
  array[startingIndex++] = value.tangent ? 1.0 : 0.0;
13215
13249
  array[startingIndex++] = value.color ? 1.0 : 0.0;
13250
+
13251
+ return array;
13216
13252
  };
13217
13253
 
13218
13254
  /**
@@ -13618,6 +13654,8 @@ define('Core/Cartesian2',[
13618
13654
  * @param {Cartesian2} value The value to pack.
13619
13655
  * @param {Number[]} array The array to pack into.
13620
13656
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
13657
+ *
13658
+ * @returns {Number[]} The array that was packed into
13621
13659
  */
13622
13660
  Cartesian2.pack = function(value, array, startingIndex) {
13623
13661
  if (!defined(value)) {
@@ -13631,6 +13669,8 @@ define('Core/Cartesian2',[
13631
13669
 
13632
13670
  array[startingIndex++] = value.x;
13633
13671
  array[startingIndex] = value.y;
13672
+
13673
+ return array;
13634
13674
  };
13635
13675
 
13636
13676
  /**
@@ -18352,7 +18392,8 @@ define('Core/JulianDate',[
18352
18392
  new LeapSecond(new JulianDate(2453736, 43233.0, TimeStandard.TAI), 33), // January 1, 2006 00:00:00 UTC
18353
18393
  new LeapSecond(new JulianDate(2454832, 43234.0, TimeStandard.TAI), 34), // January 1, 2009 00:00:00 UTC
18354
18394
  new LeapSecond(new JulianDate(2456109, 43235.0, TimeStandard.TAI), 35), // July 1, 2012 00:00:00 UTC
18355
- new LeapSecond(new JulianDate(2457204, 43236.0, TimeStandard.TAI), 36) // July 1, 2015 00:00:00 UTC
18395
+ new LeapSecond(new JulianDate(2457204, 43236.0, TimeStandard.TAI), 36), // July 1, 2015 00:00:00 UTC
18396
+ new LeapSecond(new JulianDate(2457754, 43237.0, TimeStandard.TAI), 37) // January 1, 2017 00:00:00 UTC
18356
18397
  ];
18357
18398
 
18358
18399
  return JulianDate;
@@ -20240,6 +20281,8 @@ define('Core/Quaternion',[
20240
20281
  * @param {Quaternion} value The value to pack.
20241
20282
  * @param {Number[]} array The array to pack into.
20242
20283
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
20284
+ *
20285
+ * @returns {Number[]} The array that was packed into
20243
20286
  */
20244
20287
  Quaternion.pack = function(value, array, startingIndex) {
20245
20288
  if (!defined(value)) {
@@ -20256,6 +20299,8 @@ define('Core/Quaternion',[
20256
20299
  array[startingIndex++] = value.y;
20257
20300
  array[startingIndex++] = value.z;
20258
20301
  array[startingIndex] = value.w;
20302
+
20303
+ return array;
20259
20304
  };
20260
20305
 
20261
20306
  /**
@@ -20885,7 +20930,7 @@ define('Core/Quaternion',[
20885
20930
  * // 2. compute the squad interpolation as above but where the first quaternion is a end point.
20886
20931
  * var s1 = Cesium.Quaternion.computeInnerQuadrangle(quaternions[0], quaternions[1], quaternions[2], new Cesium.Quaternion());
20887
20932
  * var q = Cesium.Quaternion.squad(quaternions[0], quaternions[1], quaternions[0], s1, t, new Cesium.Quaternion());
20888
- *
20933
+ *
20889
20934
  * @see Quaternion#computeInnerQuadrangle
20890
20935
  */
20891
20936
  Quaternion.squad = function(q0, q1, s0, s1, t, result) {
@@ -24306,11 +24351,13 @@ define('Core/PolylinePipeline',[
24306
24351
  var length = positions.length;
24307
24352
  var ellipsoid = defaultValue(options.ellipsoid, Ellipsoid.WGS84);
24308
24353
  var height = defaultValue(options.height, 0);
24354
+ var hasHeightArray = isArray(height);
24309
24355
 
24310
24356
  if (length < 1) {
24311
24357
  return [];
24312
24358
  } else if (length === 1) {
24313
24359
  var p = ellipsoid.scaleToGeodeticSurface(positions[0], scaleFirst);
24360
+ height = hasHeightArray ? height[0] : height;
24314
24361
  if (height !== 0) {
24315
24362
  var n = ellipsoid.geodeticSurfaceNormal(p, cartesian);
24316
24363
  Cartesian3.multiplyByScalar(n, height, n);
@@ -24336,7 +24383,6 @@ define('Core/PolylinePipeline',[
24336
24383
  var arrayLength = (numPoints + 1) * 3;
24337
24384
  var newPositions = new Array(arrayLength);
24338
24385
  var offset = 0;
24339
- var hasHeightArray = isArray(height);
24340
24386
 
24341
24387
  for (i = 0; i < length - 1; i++) {
24342
24388
  var p0 = positions[i];
@@ -24728,6 +24774,8 @@ define('Core/WallGeometry',[
24728
24774
  * @param {WallGeometry} value The value to pack.
24729
24775
  * @param {Number[]} array The array to pack into.
24730
24776
  * @param {Number} [startingIndex=0] The index into the array at which to start packing the elements.
24777
+ *
24778
+ * @returns {Number[]} The array that was packed into
24731
24779
  */
24732
24780
  WallGeometry.pack = function(value, array, startingIndex) {
24733
24781
  if (!defined(value)) {
@@ -24776,6 +24824,8 @@ define('Core/WallGeometry',[
24776
24824
  startingIndex += VertexFormat.packedLength;
24777
24825
 
24778
24826
  array[startingIndex] = value._granularity;
24827
+
24828
+ return array;
24779
24829
  };
24780
24830
 
24781
24831
  var scratchEllipsoid = Ellipsoid.clone(Ellipsoid.UNIT_SPHERE);