This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Which entities are in/out of the current viewport? Returns an object where | |
// the passed items are binned according to whether their location(s) can be | |
// seen in the current viewport. The object keys are determined by the Cesium | |
// `Intersect` enum. | |
public findVisibility<T>(coll: T[], getBounds: BoundsFunction<T>, time?: JulianDate): VisibilityBins<T> { | |
const ret: VisibilityBins<T> = { | |
[Intersect.INSIDE]: [], | |
[Intersect.OUTSIDE]: [], | |
[Intersect.INTERSECTING]: [], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Check some commonly-used shapes and compute a bounding rectangle that | |
// encloses all the various graphics the Entity might be showing. | |
// NB: Remember to update this function if we start using more graphics | |
export function entityBounds(ent: Entity, time: JulianDate): Cartesian3 | Rectangle | undefined { | |
// Start with all position-independent graphics types | |
const corr: Cartesian3[] = ent.corridor?.positions?.getValue(time) || []; | |
const line: Cartesian3[] = ent.polyline?.positions?.getValue(time) || []; | |
const lineVol: Cartesian3[] = ent.polylineVolume?.positions?.getValue(time) || []; | |
const poly: Cartesian3[] = ent.polygon?.hierarchy?.getValue(time)?.positions || []; | |
const wall: Cartesian3[] = ent.wall?.positions?.getValue(time) || []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAIL spec/basic.spec.js (50.953s) | |
HtmlWebpackPlugin | |
√ generates a default index.html file for a single entry point (2901ms) | |
√ properly encodes file names in emitted URIs (104ms) | |
× properly encodes file names in emitted URIs but keeps the querystring (30018ms) | |
√ generates a default index.html file with multiple entry points (114ms) | |
× allows you to specify a custom loader without injection (45ms) | |
√ should pass through loader errors (1356ms) | |
× uses a custom loader from webpacks config (47ms) | |
√ works when using html-loader (535ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAIL spec/basic.spec.js (56.793s) | |
HtmlWebpackPlugin | |
√ generates a default index.html file for a single entry point (2298ms) | |
√ properly encodes file names in emitted URIs (598ms) | |
× properly encodes file names in emitted URIs but keeps the querystring (30018ms) | |
× generates a default index.html file with multiple entry points (44ms) | |
√ allows you to specify a custom loader without injection (1199ms) | |
√ should pass through loader errors (148ms) | |
√ uses a custom loader from webpacks config (102ms) | |
√ works when using html-loader (262ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Event as CesiumEvent, | |
GregorianDate, | |
JulianDate, | |
RuntimeError, | |
TimeInterval, | |
TimeIntervalCollection, | |
} from "cesium"; | |
export interface ConstructorOptions { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Cartesian3, | |
HeadingPitchRoll, | |
Matrix3, | |
Matrix4, | |
Quaternion, | |
Transforms, | |
} from "cesium"; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cesium type definitions | |
* For use with Cesium v1.66 | |
* Created by Aigars Zeiza <https://github.com/Zuzon> | |
* Modified by Harry Nicholls <[email protected]> | |
* Updated for v1.66.0 by James Bromwell <https://github.com/Thw0rted> | |
*/ | |
declare module "cesium"{ | |
type RenderState = any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type SymbolOptions = { | |
additionalInformation?: String, | |
altitudeDepth?: String, | |
combatEffectiveness?: String, | |
commonIdentifier?: String, | |
direction?: Number, | |
dtg?: String, | |
equipmentTeardownTime?: String, | |
evaluationRating?: String, | |
headquartersElement?: String, |