Skip to content

Overview

Cross-package utility helpers and shared Cesium-facing type definitions.

Exports

Coordinates

  • toCoord
  • toCartesian3
  • toCartographic
  • canvasCoordToCartesian
  • cartesianToCanvasCoord

Runtime helpers

  • isDef
  • isBoolean
  • isFunction
  • isNumber
  • isString
  • isObject
  • isWindow
  • isPromise
  • isElement
  • isArray
  • isBase64
  • assertError
  • tryRun
  • throttle

Cesium helpers

  • arrayDiff
  • cesiumEquals
  • isCesiumConstant
  • pick
  • property
  • material
  • convertDMS
  • types

Usage

ts
const coord = toCoord(position, { type: 'Object', alt: true });
const cartesian = toCartesian3(coord);
const cartographic = toCartographic(coord);
ts
if (isPromise(value)) {
  await value;
}
ts
const diff = arrayDiff(nextList, prevList);
const safeFn = tryRun(() => doSomething());

Type Definitions

typescript
export * from './src/arrayDiff';
export * from './src/canvasCoordToCartesian';
export * from './src/cartesianToCanvasCoord';
export * from './src/cesiumEquals';
export * from './src/convertDMS';
export * from './src/is';
export * from './src/isCesiumConstant';
export * from './src/material';
export * from './src/pick';
export * from './src/property';
export * from './src/throttle';
export * from './src/toCartesian3';
export * from './src/toCartographic';
export * from './src/toCoord';
export * from './src/tryRun';
export * from './src/types';
//# sourceMappingURL=index.d.ts.map