Commit Graph

8 Commits

Author SHA1 Message Date
jjspace 09a719b8fb
run prettier v3 2024-09-20 11:24:24 -04:00
Gabby Getz 9774b2b4d7 Update Sandcastle examples to resolve faster 2023-06-15 10:32:34 -04:00
Gabby Getz 3f6608f66e Use top level await in Sandcastle 2023-02-03 11:38:55 -05:00
Sanjeet Suhag a4a3b783d8 Sets the Sandcastle startup function as a property to the window 2022-05-23 15:14:50 -04:00
Gabby Getz 31c154a299 Remove when.js and replace with native promises
There were a few areas in Source where a function was assumed to be executed synchronously when a function was resolved. Native Promises however, by spec, will resolve at the end of a frame. There were also some strange handling of promise rejection in imagery providers that I cleaned up a bit in order to make them testable.

- In LabelCollection and EntityCluster, order of execution adjustment where made.
- Added TextureAtlas.addImageSync to support the order of execution fix in LabelCollection
- ArcGisMapServerImageryProvider.readyPromise will not reject if there is a failure unless the request cannot be retried.
- SingleTileImageryProvider.readyPromise will not reject if there is a failure unless the request cannot be retried.

The majority of the changes lie in the Specs, where unresolved promises weren’t being awaited before finishing executions, and where resolved promises are assumed to be synchronous all over the place and needed a good amount of fixes. Another issue which came up was calling Promise.reject in the body of a spec can cause node to halt execution when running via the command line.
2022-03-16 09:38:39 -04:00
Gabby Getz 8143df4436 var -> const/let 2022-01-21 11:26:25 -05:00
Matthew Amato 2fd0e8f7e4 Format all code with prettier 2020-04-16 20:31:36 -04:00
Matthew Amato 00850726bb Support for loading 3D Tiles via CZML and Entity API
This change enabled CZML and the Entity API to load 3D Tiles tilesets.
Since `Cesium3DTileset` has dozens of options, I only exposed
uri/show/maximumScreenSpaceError to start.  We also use the entity
position/orientation (if specified) to compute the tileset.modelMatrix
allowing for moving tilesets that can be tracked with the camera.

Details:

1. New Sandcastle example, `CZML 3D Tiles.html`
2. New class, `Cesium3DTilesetGraphics` for representing a tileset via
the Entity API.
3. New class, `Cesium3DTilesetVisualizer` for creating/managing the
primitives.
4. Add `Entity.tileset` which is an instance of `Cesium3DTilesetGraphics`
5. Specs for everything
2020-01-29 22:13:22 -05:00