{"version":3,"sources":["jsdelivr-header.js","/npm/@micburks/resium@1.7.2/node_modules/lodash.pick/index.js","/npm/@micburks/resium@1.7.2/src/core/context.tsx","/npm/@micburks/resium@1.7.2/src/core/events.ts","/npm/@micburks/resium@1.7.2/src/core/CesiumComponent.tsx","/npm/@micburks/resium@1.7.2/src/core/CameraOperation.ts","/npm/@micburks/resium@1.7.2/src/core/util.ts","/npm/@micburks/resium@1.7.2/src/core/EventManager.ts","/npm/@micburks/resium@1.7.2/src/Billboard/Billboard.ts","/npm/@micburks/resium@1.7.2/src/BillboardCollection/BillboardCollection.ts","/npm/@micburks/resium@1.7.2/src/BillboardGraphics/BillboardGraphics.ts","/npm/@micburks/resium@1.7.2/src/BoxGraphics/BoxGraphics.ts","/npm/@micburks/resium@1.7.2/src/Camera/Camera.ts","/npm/@micburks/resium@1.7.2/src/CameraFlyHome/CameraFlyHome.ts","/npm/@micburks/resium@1.7.2/src/CameraFlyTo/CameraFlyTo.ts","/npm/@micburks/resium@1.7.2/src/CameraFlyToBoundingSphere/CameraFlyToBoundingSphere.ts","/npm/@micburks/resium@1.7.2/src/Cesium3DTileset/Cesium3DTileset.ts","/npm/@micburks/resium@1.7.2/src/CesiumWidget/CesiumWidget.tsx","/npm/@micburks/resium@1.7.2/src/Clock/Clock.ts","/npm/@micburks/resium@1.7.2/src/CorridorGraphics/CorridorGraphics.ts","/npm/@micburks/resium@1.7.2/src/CustomDataSource/CustomDataSource.ts","/npm/@micburks/resium@1.7.2/src/CylinderGraphics/CylinderGraphics.ts","/npm/@micburks/resium@1.7.2/src/CzmlDataSource/CzmlDataSource.ts","/npm/@micburks/resium@1.7.2/src/EllipseGraphics/EllipseGraphics.ts","/npm/@micburks/resium@1.7.2/src/EllipsoidGraphics/EllipsoidGraphics.ts","/npm/@micburks/resium@1.7.2/src/Entity/Entity.ts","/npm/@micburks/resium@1.7.2/src/EntityDescription/EntityDescription.ts","/npm/@micburks/resium@1.7.2/src/Fog/Fog.ts","/npm/@micburks/resium@1.7.2/src/GeoJsonDataSource/GeoJsonDataSource.ts","/npm/@micburks/resium@1.7.2/src/Globe/Globe.ts","/npm/@micburks/resium@1.7.2/src/GroundPrimitive/GroundPrimitive.ts","/npm/@micburks/resium@1.7.2/src/GroundPrimitiveCollection/GroundPrimitiveCollection.ts","/npm/@micburks/resium@1.7.2/src/ImageryLayer/ImageryLayer.ts","/npm/@micburks/resium@1.7.2/src/ImageryLayerCollection/ImageryLayerCollection.ts","/npm/@micburks/resium@1.7.2/src/KmlDataSource/KmlDataSource.ts","/npm/@micburks/resium@1.7.2/src/Label/Label.ts","/npm/@micburks/resium@1.7.2/src/LabelCollection/LabelCollection.ts","/npm/@micburks/resium@1.7.2/src/LabelGraphics/LabelGraphics.ts","/npm/@micburks/resium@1.7.2/src/Model/Model.ts","/npm/@micburks/resium@1.7.2/src/ModelGraphics/ModelGraphics.ts","/npm/@micburks/resium@1.7.2/src/Moon/Moon.ts","/npm/@micburks/resium@1.7.2/src/ParticleSystem/ParticleSystem.ts","/npm/@micburks/resium@1.7.2/src/PathGraphics/PathGraphics.ts","/npm/@micburks/resium@1.7.2/src/PlaneGraphics/PlaneGraphics.ts","/npm/@micburks/resium@1.7.2/src/PointGraphics/PointGraphics.ts","/npm/@micburks/resium@1.7.2/src/PointPrimitive/PointPrimitive.ts","/npm/@micburks/resium@1.7.2/src/PointPrimitiveCollection/PointPrimitiveCollection.ts","/npm/@micburks/resium@1.7.2/src/PolygonGraphics/PolygonGraphics.ts","/npm/@micburks/resium@1.7.2/src/Polyline/Polyline.ts","/npm/@micburks/resium@1.7.2/src/PolylineCollection/PolylineCollection.ts","/npm/@micburks/resium@1.7.2/src/PolylineGraphics/PolylineGraphics.ts","/npm/@micburks/resium@1.7.2/src/PolylineVolumeGraphics/PolylineVolumeGraphics.ts","/npm/@micburks/resium@1.7.2/src/core/PostProcessStage.ts","/npm/@micburks/resium@1.7.2/src/PostProcessStage/PostProcessStage.ts","/npm/@micburks/resium@1.7.2/src/PostProcessStageComposite/PostProcessStageComposite.ts","/npm/@micburks/resium@1.7.2/src/Primitive/Primitive.ts","/npm/@micburks/resium@1.7.2/src/RectangleGraphics/RectangleGraphics.ts","/npm/@micburks/resium@1.7.2/src/Scene/Scene.ts","/npm/@micburks/resium@1.7.2/src/ScreenSpaceCameraController/ScreenSpaceCameraController.ts","/npm/@micburks/resium@1.7.2/src/ScreenSpaceEvent/ScreenSpaceEvent.ts","/npm/@micburks/resium@1.7.2/src/ScreenSpaceEventHandler/ScreenSpaceEventHandler.ts","/npm/@micburks/resium@1.7.2/src/SkyAtmosphere/SkyAtmosphere.ts","/npm/@micburks/resium@1.7.2/src/SkyBox/SkyBox.ts","/npm/@micburks/resium@1.7.2/src/Sun/Sun.ts","/npm/@micburks/resium@1.7.2/src/TimeDynamicPointCloud/TimeDynamicPointCloud.ts","/npm/@micburks/resium@1.7.2/src/Viewer/Viewer.tsx","/npm/@micburks/resium@1.7.2/src/WallGraphics/WallGraphics.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,s/BCII,SAAW,IACX,iBAAmB,iBAGnB,QAAU,qBACV,QAAU,oBACV,OAAS,6BACT,UAAY,kBAGZ,WAA8B,iBAAV,gBAAsB,gBAAU,eAAO,SAAW,QAAU,eAGhF,SAA0B,iBAAR,MAAoB,MAAQ,KAAK,SAAW,QAAU,KAGxE,KAAO,YAAc,UAAY,SAAS,cAAT,GAYrC,SAAS,MAAM,EAAM,EAAS,GAC5B,OAAQ,EAAK,QACX,KAAK,EAAG,OAAO,EAAK,KAAK,GACzB,KAAK,EAAG,OAAO,EAAK,KAAK,EAAS,EAAK,IACvC,KAAK,EAAG,OAAO,EAAK,KAAK,EAAS,EAAK,GAAI,EAAK,IAChD,KAAK,EAAG,OAAO,EAAK,KAAK,EAAS,EAAK,GAAI,EAAK,GAAI,EAAK,IAE3D,OAAO,EAAK,MAAM,EAAS,E,CAY7B,SAAS,SAAS,EAAO,GAKvB,IAJA,IAAI,GAAS,EACT,E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/npm/@micburks/resium@1.7.2/dist/resium.cjs.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@micburks/resium@1.7.2/dist/resium.cjs.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n    MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    symbolTag = '[object Symbol]';\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n  switch (args.length) {\n    case 0: return func.call(thisArg);\n    case 1: return func.call(thisArg, args[0]);\n    case 2: return func.call(thisArg, args[0], args[1]);\n    case 3: return func.call(thisArg, args[0], args[1], args[2]);\n  }\n  return func.apply(thisArg, args);\n}\n\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n  var index = -1,\n      length = array ? array.length : 0,\n      result = Array(length);\n\n  while (++index < length) {\n    result[index] = iteratee(array[index], index, array);\n  }\n  return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n    propertyIsEnumerable = objectProto.propertyIsEnumerable,\n    spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n  var index = -1,\n      length = array.length;\n\n  predicate || (predicate = isFlattenable);\n  result || (result = []);\n\n  while (++index < length) {\n    var value = array[index];\n    if (depth > 0 && predicate(value)) {\n      if (depth > 1) {\n        // Recursively flatten arrays (susceptible to call stack limits).\n        baseFlatten(value, depth - 1, predicate, isStrict, result);\n      } else {\n        arrayPush(result, value);\n      }\n    } else if (!isStrict) {\n      result[result.length] = value;\n    }\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} props The property identifiers to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, props) {\n  object = Object(object);\n  return basePickBy(object, props, function(value, key) {\n    return key in object;\n  });\n}\n\n/**\n * The base implementation of  `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} props The property identifiers to pick from.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, props, predicate) {\n  var index = -1,\n      length = props.length,\n      result = {};\n\n  while (++index < length) {\n    var key = props[index],\n        value = object[key];\n\n    if (predicate(value, key)) {\n      result[key] = value;\n    }\n  }\n  return result;\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n  start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n  return function() {\n    var args = arguments,\n        index = -1,\n        length = nativeMax(args.length - start, 0),\n        array = Array(length);\n\n    while (++index < length) {\n      array[index] = args[start + index];\n    }\n    index = -1;\n    var otherArgs = Array(start + 1);\n    while (++index < start) {\n      otherArgs[index] = args[index];\n    }\n    otherArgs[start] = array;\n    return apply(func, this, otherArgs);\n  };\n}\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n  return isArray(value) || isArguments(value) ||\n    !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n  // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n  return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n    (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n *  else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n  return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 8-9 which returns 'object' for typed array and other constructors.\n  var tag = isObject(value) ? objectToString.call(value) : '';\n  return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [props] The property identifiers to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = baseRest(function(object, props) {\n  return object == null ? {} : basePick(object, arrayMap(baseFlatten(props, 1), toKey));\n});\n\nmodule.exports = pick;\n","import React from \"react\";\n\nexport interface Context {\n  [key: string]: unknown | undefined;\n}\n\nexport interface CesiumProp<C> {\n  cesium: C;\n}\n\nexport type WithContextProps<P, C> = P & CesiumProp<C>;\nexport type WithContextType<P, C> = React.ComponentType<WithContextProps<P, C>>;\n\nexport const CesiumContext = React.createContext<Context>({});\nexport const { Provider, Consumer } = CesiumContext;\n\nexport const withCesium = <P, C>(Component: WithContextType<P, C>) =>\n  // supports both functional components and class components\n  // eslint-disable-next-line react/display-name\n  React.forwardRef<WithContextType<P, C>, P>(\n    (props: P & { children?: React.ReactNode }, ref?: React.Ref<WithContextType<P, C>> | null) => (\n      <Consumer>\n        {(value: any) => <Component {...Object.assign({}, props, { ref })} cesium={value} />}\n      </Consumer>\n    ),\n  );\n","import { Event } from \"cesium\";\n\ntype EventFunc = (...args: any[]) => any;\n\ninterface EventTarget {\n  [key: string]: Event | unknown;\n}\n\nexport interface Events {\n  [key: string]: (...args: any[]) => any;\n}\n\nexport const attachEvents = (target: unknown, events: Events) => {\n  Object.entries(events).forEach(([k, v]) => {\n    const ev = (target as EventTarget)[k];\n    if (ev instanceof Event && v) {\n      ev.addEventListener(v);\n    }\n  });\n};\n\nexport const detachEvents = (target: unknown, events: Events) => {\n  Object.entries(events).forEach(([k, v]) => {\n    const ev = (target as EventTarget)[k];\n    if (ev instanceof Event && v) {\n      ev.removeEventListener(v);\n    }\n  });\n};\n\nexport const updateEvents = (target: unknown, prevEvents: Events, newEvents: Events) => {\n  const pek = Object.keys(prevEvents);\n  const nek = Object.keys(newEvents);\n\n  // removed events\n  const re = pek\n    .map<[string, EventFunc]>(k => [k, prevEvents[k]])\n    .reduce<Events>((e, [k, v]) => {\n      if (nek.indexOf(k) === -1 || v !== newEvents[k]) {\n        e[k] = v;\n      }\n      return e;\n    }, {});\n\n  // new events\n  const ne = nek\n    .map<[string, EventFunc]>(k => [k, newEvents[k]])\n    .reduce<Events>((e, [k, v]) => {\n      if (pek.indexOf(k) === -1 || v !== prevEvents[k]) {\n        e[k] = v;\n      }\n      return e;\n    }, {});\n\n  detachEvents(target, re);\n  attachEvents(target, ne);\n};\n\nexport const getEventProps = (eventNames: string[], props: Events) =>\n  eventNames.reduce<{ [key: string]: EventFunc }>(\n    (a, b) => ({\n      ...a,\n      [b]: props[`on${b[0].toUpperCase()}${b.slice(1).replace(/Event$/, \"\")}`],\n    }),\n    {},\n  );\n","import React from \"react\";\nimport pick from \"lodash.pick\";\n\nimport { withCesium, Provider, WithContextProps } from \"./context\";\nimport { attachEvents, updateEvents, detachEvents } from \"./events\";\n\nexport type EventKeys<T> = { [P in keyof T]: T[P] extends Cesium.Event ? P : never }[keyof T];\nexport type EventkeyMap<T, P> = { [K in EventKeys<T>]?: P };\n\nexport interface CesiumComponentOption<E, P, C, CC = {}, R = {}> {\n  name: string;\n  create: (\n    cesiumProps: Readonly<P>,\n    props: Readonly<P>,\n    context: Readonly<C>,\n    ref?: React.RefObject<R>,\n  ) => E | [E, any];\n  mount?: (element: E, context: Readonly<C>, props: Readonly<P>, ref?: React.RefObject<R>) => void;\n  unmount?: (\n    element: E,\n    context: Readonly<C>,\n    props: Readonly<P>,\n    ref: React.RefObject<R> | undefined,\n    state: any,\n  ) => void;\n  render?: (\n    element: E | undefined,\n    props: Readonly<P> & Readonly<{ children?: React.ReactNode }>,\n    mounted: boolean,\n    ref: React.RefObject<R> | undefined,\n  ) => React.ReactNode;\n  update?: (element: E, props: Readonly<P>, prevProps: Readonly<P>, context: Readonly<C>) => void;\n  provide?: (element: E, props: Readonly<P>, state: any) => CC;\n  cesiumProps?: (keyof P)[];\n  cesiumReadonlyProps?: (keyof P)[];\n  cesiumEventProps?: EventkeyMap<E, keyof P>;\n  setCesiumPropsAfterCreate?: boolean;\n  noRender?: boolean;\n  createRef?: boolean;\n  defaultProps?: Partial<P>;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface CesiumInsideComponentType<E, P = any>\n  extends React.PureComponent<WithContextProps<P, any>> {\n  cesiumElement: E;\n}\n\nexport type CesiumComponentType<E, P, C> = React.ForwardRefExoticComponent<\n  React.PropsWithoutRef<P> & React.RefAttributes<CesiumInsideComponentType<E, P>>\n>;\n\nexport const createCesiumComponent = <E, P, C, CC = {}, R = {}>(\n  opts: CesiumComponentOption<E, P, C, CC, R>,\n): CesiumComponentType<E, P, C> => {\n  class CesiumComponent extends React.PureComponent<WithContextProps<P, C>> {\n    public static displayName = opts.name;\n\n    public static defaultProps: Partial<WithContextProps<P, C>> =\n      (opts.defaultProps as Partial<WithContextProps<P, C>>) || {};\n\n    private static getCesiumEventMap(\n      props: Readonly<WithContextProps<P, C>> & Readonly<{ children?: React.ReactNode }>,\n    ) {\n      if (!opts.cesiumEventProps) {\n        return {};\n      }\n      return Object.entries(opts.cesiumEventProps).reduce(\n        (a, [cesiumEventName, eventProp]) => ({\n          ...a,\n          ...(eventProp\n            ? {\n                [cesiumEventName]: (props as any)[eventProp as any],\n              }\n            : {}),\n        }),\n        {},\n      ) as any;\n    }\n\n    private static getCesiumProps(\n      props: Readonly<WithContextProps<P, C>> & Readonly<{ children?: React.ReactNode }>,\n    ) {\n      return pick(props, opts.cesiumProps || []);\n    }\n\n    private static getCesiumReadOnlyProps(\n      props: Readonly<WithContextProps<P, C>> & Readonly<{ children?: React.ReactNode }>,\n    ) {\n      return pick(props, opts.cesiumReadonlyProps || []);\n    }\n\n    private static shouldUpdate(a: { [key: string]: any }, b: { [key: string]: any }) {\n      return Object.keys(a).filter(k => a[k] !== b[k]);\n    }\n\n    public get cesiumElement() {\n      return this._ce;\n    }\n\n    private _ce?: E;\n    private _state: any;\n    private _provided: Partial<CC> = {}; // to avoid extra rendering\n    private mounted: boolean = false;\n    private ref?: React.RefObject<R>;\n\n    public constructor(props: WithContextProps<P, C>) {\n      super(props);\n      if (opts.createRef) {\n        this.ref = React.createRef();\n      }\n      if (!opts.createRef) {\n        this.create(props);\n      }\n    }\n\n    public render() {\n      if (opts.noRender) {\n        return null;\n      }\n\n      const render = opts.render\n        ? opts.render(this._ce, this.props, this.mounted, this.ref)\n        : this.props.children || null;\n\n      this.updateProvided();\n\n      return !opts.render && !this.mounted ? null : opts.provide ? (\n        <Provider value={this._provided}>{render}</Provider>\n      ) : (\n        render\n      );\n    }\n\n    public componentDidMount() {\n      if (opts.createRef) {\n        this.create(this.props);\n      }\n      this.mount();\n      this.mounted = true;\n      this.forceUpdate();\n    }\n\n    public componentDidUpdate(prevProps: WithContextProps<P, C>) {\n      // rerender on remount\n      if (!this.mounted) {\n        if (opts.createRef) {\n          this.create(this.props);\n        }\n        this.mount();\n        this.mounted = true;\n        this.forceUpdate();\n        return;\n      }\n\n      // if readonly props is updated, remount this component.\n      const shouldUpdateProps = CesiumComponent.shouldUpdate(\n        CesiumComponent.getCesiumReadOnlyProps(this.props),\n        CesiumComponent.getCesiumReadOnlyProps(prevProps),\n      );\n      if (shouldUpdateProps.length > 0) {\n        if (process.env.NODE_ENV !== \"production\") {\n          // eslint-disable-next-line no-console\n          console.warn(\n            `Warning: <${\n              opts.name\n            }> is remounted because read only props have been updated: ${shouldUpdateProps.join(\n              \", \",\n            )}`,\n          );\n        }\n\n        this.unmount();\n        if (!opts.createRef) {\n          this.create(this.props);\n        }\n        this.mounted = false;\n        this.forceUpdate();\n        return;\n      }\n\n      this.update(prevProps);\n    }\n\n    public componentWillUnmount() {\n      this.unmount();\n      this._ce = undefined;\n    }\n\n    private create(props: Readonly<WithContextProps<P, C>>) {\n      const cesiumProps = pick(props, [\n        ...(opts.cesiumProps || []),\n        ...(opts.cesiumReadonlyProps || []),\n      ]);\n      const element = opts.create(cesiumProps, props, this.props.cesium, this.ref);\n      if (Array.isArray(element)) {\n        this._ce = element[0];\n        this._state = element[1];\n      } else {\n        this._ce = element;\n      }\n\n      if (opts.setCesiumPropsAfterCreate && this._ce) {\n        Object.entries(CesiumComponent.getCesiumProps(this.props)).forEach(([k, v]) => {\n          if (this._ce) {\n            (this._ce as any)[k] = v;\n          }\n        });\n      }\n\n      attachEvents(this._ce, CesiumComponent.getCesiumEventMap(this.props));\n    }\n\n    private mount() {\n      if (opts.mount && this._ce) {\n        opts.mount(this._ce, this.props.cesium, this.props, this.ref);\n      }\n    }\n\n    private unmount() {\n      if (opts.unmount && this._ce) {\n        opts.unmount(this._ce, this.props.cesium, this.props, this.ref, this._state);\n      }\n\n      if (\n        this._ce &&\n        // If element is already destroyed, skip detaching events. (#70)\n        (typeof (this._ce as any).isDestroyed !== \"function\" || !(this._ce as any).isDestroyed())\n      ) {\n        detachEvents(this._ce, CesiumComponent.getCesiumEventMap(this.props));\n      }\n\n      this._ce = undefined;\n    }\n\n    private update(prevProps: Readonly<WithContextProps<P, C>>) {\n      Object.entries(CesiumComponent.getCesiumProps(this.props))\n        .filter(([k, v]) => (prevProps as any)[k] !== v)\n        .forEach(([k, v]) => {\n          if (this._ce) {\n            (this._ce as any)[k] = v;\n          }\n        });\n\n      updateEvents(\n        this._ce,\n        CesiumComponent.getCesiumEventMap(prevProps),\n        CesiumComponent.getCesiumEventMap(this.props),\n      );\n\n      if (opts.update && this._ce) {\n        opts.update(this._ce, this.props, prevProps, this.props.cesium);\n      }\n    }\n\n    private updateProvided() {\n      if (!opts.provide) {\n        return;\n      }\n      // clear provided object\n      for (const key of Object.keys(this._provided)) {\n        delete this._provided[key as keyof CC];\n      }\n      // update provided object\n      Object.assign(\n        this._provided,\n        this.props.cesium,\n        this._ce ? opts.provide(this._ce, this.props, this._state) : {},\n      );\n    }\n  }\n\n  return withCesium(CesiumComponent);\n};\n\nexport default createCesiumComponent;\n","import React from \"react\";\nimport { Camera } from \"cesium\";\nimport { withCesium } from \"./context\";\n\nexport interface CameraOperationProps {\n  cancelCameraFlight?: boolean;\n}\n\nexport const createCameraOperation = <P>(opts: {\n  name: string;\n  cameraOperationStart: (camera: Camera, props: Readonly<P>, prevProps?: Readonly<P>) => void;\n}) =>\n  withCesium<P & CameraOperationProps, { camera?: Cesium.Camera }>(\n    class CameraOperation extends React.PureComponent<\n      CameraOperationProps & { cesium: { camera?: Cesium.Camera } } & P\n    > {\n      public static displayName = opts.name;\n\n      public componentDidMount() {\n        if (this.props.cesium.camera) {\n          opts.cameraOperationStart(this.props.cesium.camera, this.props);\n        }\n      }\n\n      public componentDidUpdate(prevProps: Readonly<P>) {\n        if (this.props.cesium.camera) {\n          this.props.cesium.camera.cancelFlight();\n          opts.cameraOperationStart(this.props.cesium.camera, this.props, prevProps);\n        }\n      }\n\n      public componentWillUnmount() {\n        const {\n          cancelCameraFlight,\n          cesium: { camera },\n        } = this.props;\n        if (cancelCameraFlight && camera) {\n          camera.cancelFlight();\n        }\n      }\n\n      public render() {\n        return null;\n      }\n    },\n  );\n\nexport default createCameraOperation;\n","import { Polyline, DistanceDisplayCondition } from \"cesium\";\n\nexport const polylineEquals = (a: any, b: any) =>\n  !!a &&\n  !!b &&\n  a instanceof Polyline &&\n  b instanceof Polyline &&\n  a.show === b.show &&\n  a.width === b.width &&\n  a.loop === b.loop &&\n  a.material === b.material &&\n  a.positions === b.positions &&\n  a.id === b.id &&\n  DistanceDisplayCondition.equals(\n    (a as any).distanceDisplayCondition,\n    (b as any).distanceDisplayCondition,\n  );\n\nexport const pickedObjectEquals = (picked: any, element: any) =>\n  !!picked &&\n  (picked === element ||\n    (!!picked.id && picked.id === element) ||\n    (!!picked.primitive &&\n      (picked.primitive === element ||\n        (!!picked.primitive.equals && picked.primitive.equals(element)) ||\n        polylineEquals(picked.primitive, element))));\n","import Cesium, { ScreenSpaceEventType, ScreenSpaceEventHandler } from \"cesium\";\n\nimport { pickedObjectEquals } from \"./util\";\n\nexport type EventType =\n  | \"onClick\"\n  | \"onDoubleClick\"\n  | \"onMouseDown\"\n  | \"onMouseUp\"\n  | \"onMiddleClick\"\n  | \"onMiddleDown\"\n  | \"onMiddleUp\"\n  | \"onMouseMove\"\n  | \"onPinchEnd\"\n  | \"onPinchMove\"\n  | \"onPinchStart\"\n  | \"onRightClick\"\n  | \"onRightDown\"\n  | \"onRightUp\"\n  | \"onWheel\"\n  | \"onMouseEnter\"\n  | \"onMouseLeave\";\n\nexport interface EventProps<T> {\n  onClick?: (movement: CesiumMovementEvent, target: T) => void;\n  onDoubleClick?: (movement: CesiumMovementEvent, target: T) => void;\n  onMouseDown?: (movement: CesiumMovementEvent, target: T) => void;\n  onMouseUp?: (movement: CesiumMovementEvent, target: T) => void;\n  onMiddleClick?: (movement: CesiumMovementEvent, target: T) => void;\n  onMiddleDown?: (movement: CesiumMovementEvent, target: T) => void;\n  onMiddleUp?: (movement: CesiumMovementEvent, target: T) => void;\n  onMouseMove?: (movement: CesiumMovementEvent, target: T) => void;\n  onPinchEnd?: (movement: CesiumMovementEvent, target: T) => void;\n  onPinchMove?: (movement: CesiumMovementEvent, target: T) => void;\n  onPinchStart?: (movement: CesiumMovementEvent, target: T) => void;\n  onRightClick?: (movement: CesiumMovementEvent, target: T) => void;\n  onRightDown?: (movement: CesiumMovementEvent, target: T) => void;\n  onRightUp?: (movement: CesiumMovementEvent, target: T) => void;\n  onWheel?: (movement: CesiumMovementEvent, target: T) => void;\n  onMouseEnter?: (movement: CesiumMovementEvent, target: T) => void;\n  onMouseLeave?: (movement: CesiumMovementEvent, target: T) => void;\n}\n\ntype EventMap<T> = { [k in EventType]: T };\n\nexport interface CesiumMovementEvent {\n  position?: Cesium.Cartesian2;\n  startPositon?: Cesium.Cartesian2;\n  endPosition?: Cesium.Cartesian2;\n}\n\nexport type Callback<T = any> = (e: CesiumMovementEvent, source: T) => void;\n\nexport const eventNames: EventType[] = [\n  \"onClick\",\n  \"onDoubleClick\",\n  \"onMouseDown\",\n  \"onMouseUp\",\n  \"onMiddleClick\",\n  \"onMiddleDown\",\n  \"onMiddleUp\",\n  \"onMouseMove\",\n  \"onPinchEnd\",\n  \"onPinchMove\",\n  \"onPinchStart\",\n  \"onRightClick\",\n  \"onRightDown\",\n  \"onRightUp\",\n  \"onWheel\",\n  \"onMouseEnter\",\n  \"onMouseLeave\",\n];\n\nexport default class EventManager {\n  private static eventTypeMap: EventMap<ScreenSpaceEventType> = {\n    onClick: ScreenSpaceEventType.LEFT_CLICK,\n    onDoubleClick: ScreenSpaceEventType.LEFT_DOUBLE_CLICK,\n    onMouseDown: ScreenSpaceEventType.LEFT_DOWN,\n    onMouseUp: ScreenSpaceEventType.LEFT_UP,\n    onMiddleClick: ScreenSpaceEventType.MIDDLE_CLICK,\n    onMiddleDown: ScreenSpaceEventType.MIDDLE_DOWN,\n    onMiddleUp: ScreenSpaceEventType.MIDDLE_UP,\n    onMouseMove: ScreenSpaceEventType.MOUSE_MOVE,\n    onPinchEnd: ScreenSpaceEventType.PINCH_END,\n    onPinchMove: ScreenSpaceEventType.PINCH_MOVE,\n    onPinchStart: ScreenSpaceEventType.PINCH_START,\n    onRightClick: ScreenSpaceEventType.RIGHT_CLICK,\n    onRightDown: ScreenSpaceEventType.RIGHT_DOWN,\n    onRightUp: ScreenSpaceEventType.RIGHT_UP,\n    onWheel: ScreenSpaceEventType.WHEEL,\n    onMouseEnter: ScreenSpaceEventType.MOUSE_MOVE,\n    onMouseLeave: ScreenSpaceEventType.MOUSE_MOVE,\n  };\n\n  private scene: Cesium.Scene;\n  private sshe: ScreenSpaceEventHandler;\n  private events: EventMap<Map<any, Callback>> = {\n    onClick: new Map(),\n    onDoubleClick: new Map(),\n    onMouseDown: new Map(),\n    onMouseUp: new Map(),\n    onMiddleClick: new Map(),\n    onMiddleDown: new Map(),\n    onMiddleUp: new Map(),\n    onMouseMove: new Map(),\n    onPinchEnd: new Map(),\n    onPinchMove: new Map(),\n    onPinchStart: new Map(),\n    onRightClick: new Map(),\n    onRightDown: new Map(),\n    onRightUp: new Map(),\n    onWheel: new Map(),\n    onMouseEnter: new Map(),\n    onMouseLeave: new Map(),\n  };\n  private hovered = new Map<any, boolean>();\n  private changed = new Map<any, boolean>();\n\n  public constructor(scene: Cesium.Scene, canvas: HTMLCanvasElement) {\n    this.scene = scene;\n    this.sshe = new ScreenSpaceEventHandler(canvas);\n  }\n\n  public destroy() {\n    if (!this.sshe.isDestroyed()) {\n      this.sshe.destroy();\n    }\n  }\n\n  public isDestroyed() {\n    return this.sshe.isDestroyed();\n  }\n\n  public on(element: any, type: EventType, cb: Callback) {\n    this.events[type].set(element, cb);\n  }\n\n  public off(element: any, type: EventType) {\n    this.events[type].delete(element);\n  }\n\n  public setEvents(element: any, props: object) {\n    Object.entries(props).forEach(([k, v]) => {\n      const et = k as EventType;\n      if (eventNames.includes(et)) {\n        if (v) {\n          this.on(element, et, v);\n        } else {\n          this.off(element, et);\n        }\n      }\n    });\n    this.commit();\n  }\n\n  public clearEvents(element: any) {\n    eventNames.forEach(et => {\n      this.off(element, et);\n    });\n    this.commit();\n  }\n\n  public commit() {\n    const sshe = this.sshe;\n    const destroyed = this.sshe.isDestroyed();\n    const elements = new Set(this.hovered.keys());\n    const elements2 = new Set<any>();\n\n    if (!destroyed) {\n      if (\n        this.events.onMouseEnter.size === 0 &&\n        this.events.onMouseLeave.size === 0 &&\n        this.events.onMouseMove.size === 0\n      ) {\n        this.sshe.removeInputAction(ScreenSpaceEventType.MOUSE_MOVE);\n      } else if (!this.sshe.getInputAction(ScreenSpaceEventType.MOUSE_MOVE)) {\n        this.sshe.setInputAction(this.onMouseMove as any, ScreenSpaceEventType.MOUSE_MOVE);\n      }\n    }\n\n    Object.entries(this.events).forEach(([et, m]) => {\n      const eventType = et as EventType;\n\n      m.forEach((v, k) => {\n        if (!this.hovered.has(k)) {\n          this.hovered.set(k, false);\n        }\n        elements2.add(k);\n      });\n\n      if (et === \"onMouseEnter\" || et === \"onMouseLeave\" || et === \"onMouseMove\") {\n        return;\n      }\n\n      const cesiumEventType = EventManager.eventTypeMap[eventType];\n\n      if (!destroyed) {\n        if (m.size === 0) {\n          sshe.removeInputAction(cesiumEventType);\n        } else if (!sshe.getInputAction(cesiumEventType)) {\n          sshe.setInputAction(this.eventCallback(eventType) as any, cesiumEventType);\n        }\n      }\n    });\n\n    elements.forEach(e => {\n      if (!elements2.has(e)) {\n        this.hovered.delete(e);\n      }\n    });\n  }\n\n  public getScreenSpaceEventHandler() {\n    return this.sshe;\n  }\n\n  private onMouseMove = (e: CesiumMovementEvent) => {\n    const picked = this.pick(e.endPosition);\n    this.changed.clear();\n\n    this.hovered.forEach((h, element) => {\n      const p = pickedObjectEquals(picked, element);\n      this.hovered.set(element, p);\n      if (p !== h) {\n        this.changed.set(element, p);\n      }\n    });\n\n    if (picked) {\n      this.events.onMouseMove.forEach((cb, element) => {\n        if (this.hovered.get(element)) {\n          cb(e, element);\n        }\n      });\n    }\n\n    this.changed.forEach((hovered, element) => {\n      if (hovered) {\n        const onMouseEnter = this.events.onMouseEnter.get(element);\n        if (onMouseEnter) {\n          onMouseEnter(e, element);\n        }\n      } else {\n        const onMouseLeave = this.events.onMouseLeave.get(element);\n        if (onMouseLeave) {\n          onMouseLeave(e, element);\n        }\n      }\n    });\n  };\n\n  private eventCallback = (et: EventType) => (e: CesiumMovementEvent) => {\n    const picked = this.pick(e.position);\n    if (picked) {\n      this.events[et].forEach((cb, element) => {\n        if (pickedObjectEquals(picked, element)) {\n          cb(e, element);\n        }\n      });\n    }\n  };\n\n  private pick(pos?: Cesium.Cartesian2): any | undefined {\n    if (!pos) {\n      return undefined;\n    }\n    const picked = this.scene.pick(pos);\n    if (picked) {\n      // Entity\n      if (picked.id instanceof Cesium.Entity) {\n        return picked.id;\n      }\n      // Other\n      return picked;\n    }\n    return undefined;\n  }\n}\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport EventManager, { EventProps } from \"../core/EventManager\";\n\n/*\n@summary\n`Billboard` is a billboard primitive in the `BillboardCollection`.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nOnly inside [BillboardCollection](/components/BillboardCollection) components.\nA billboard object will be attached to the parent BillboardCollection.\n*/\n\nexport interface BillboardCesiumProps {\n  alignAxis?: Cesium.Cartesian3;\n  color?: Cesium.Color;\n  disableDepthTestDistance?: number;\n  distanceDisplayCondition?: Cesium.DistanceDisplayCondition;\n  height?: number;\n  heightReference?: Cesium.HeightReference;\n  horizontalOrigin?: Cesium.HorizontalOrigin;\n  id?: any;\n  image?: string;\n  pixelOffset?: Cesium.Cartesian2;\n  pixelOffsetScaleByDistance?: Cesium.NearFarScalar;\n  position?: Cesium.Cartesian3;\n  rotation?: number;\n  scale?: number;\n  scaleByDistance?: Cesium.NearFarScalar;\n  show?: boolean;\n  sizeInMeters?: boolean;\n  translucencyByDistance?: Cesium.NearFarScalar;\n  verticalOrigin?: Cesium.VerticalOrigin;\n  width?: number;\n}\n\nexport interface BillboardProps extends BillboardCesiumProps, EventProps<Cesium.Billboard> {}\n\nexport interface BillboardContext {\n  billboardCollection: Cesium.BillboardCollection;\n  __RESIUM_EVENT_MANAGER?: EventManager;\n}\n\nconst cesiumProps: (keyof BillboardCesiumProps)[] = [\n  \"alignAxis\",\n  \"color\",\n  \"disableDepthTestDistance\",\n  \"distanceDisplayCondition\",\n  \"height\",\n  \"heightReference\",\n  \"horizontalOrigin\",\n  \"id\",\n  \"image\",\n  \"pixelOffset\",\n  \"pixelOffsetScaleByDistance\",\n  \"position\",\n  \"rotation\",\n  \"scale\",\n  \"scaleByDistance\",\n  \"show\",\n  \"sizeInMeters\",\n  \"translucencyByDistance\",\n  \"verticalOrigin\",\n  \"width\",\n];\n\nconst Billboard = createCesiumComponent<Cesium.Billboard, BillboardProps, BillboardContext>({\n  name: \"Billboard\",\n  create(cprops, props, context) {\n    return context.billboardCollection.add(cprops);\n  },\n  mount(element, context, props) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  unmount(element, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.clearEvents(element);\n    }\n    if (context.billboardCollection && !context.billboardCollection.isDestroyed()) {\n      context.billboardCollection.remove(element);\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  cesiumProps,\n});\n\nexport default Billboard;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`BillboardCollection` is a collection of billboard primitives.\nIt can have some `Billboard` components as children.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nA BillboardColleciton object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface BillboardCollectionCesiumProps {\n  blendOption?: Cesium.BlendOption;\n  debugShowBoundingVolume?: boolean;\n  length?: number;\n  modelMatrix?: Cesium.Matrix4;\n}\n\nexport interface BillboardCollectionProps extends BillboardCollectionCesiumProps {\n  children?: React.ReactNode;\n}\n\nexport interface BillboardCollectionContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n  scene?: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof BillboardCollectionCesiumProps)[] = [\n  \"blendOption\",\n  \"debugShowBoundingVolume\",\n  \"length\",\n  \"modelMatrix\",\n];\n\nconst BillboardCollection = createCesiumComponent<\n  Cesium.BillboardCollection,\n  BillboardCollectionProps,\n  BillboardCollectionContext\n>({\n  name: \"BillboardCollection\",\n  create(cprops, props, context) {\n    return new Cesium.BillboardCollection({\n      modelMatrix: cprops.modelMatrix,\n      debugShowBoundingVolume: cprops.debugShowBoundingVolume,\n      scene: context.scene,\n      blendOption: cprops.blendOption,\n    } as any);\n  },\n  mount(element, context) {\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  provide(element) {\n    return {\n      billboardCollection: element,\n    };\n  },\n  cesiumProps,\n});\n\nexport default BillboardCollection;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`BillboardGraphics` is a billboard visualization for the entity.\n*/\n\n/*\n@scope\nBillboardGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface BillboardGraphicsCesiumProps {\n  image?: Cesium.Property | ImageData | string | HTMLCanvasElement;\n  show?: Cesium.Property | boolean;\n  scale?: Cesium.Property | number;\n  horizontalOrigin?: Cesium.Property | Cesium.HorizontalOrigin;\n  verticalOrigin?: Cesium.Property | Cesium.VerticalOrigin;\n  eyeOffset?: Cesium.Property | Cesium.Cartesian3;\n  pixelOffset?: Cesium.Property | Cesium.Cartesian2;\n  rotation?: Cesium.Property | number;\n  alignedAxis?: Cesium.Property | Cesium.Cartesian3;\n  width?: Cesium.Property | number;\n  height?: Cesium.Property | number;\n  color?: Cesium.Property | Cesium.Color;\n  scaleByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  translucencyByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  pixelOffsetScaleByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  imageSubRegion?: Cesium.Property | Cesium.BoundingRectangle;\n  sizeInMeters?: Cesium.Property | boolean;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  disableDepthTestDistance?: Cesium.Property | number;\n}\n\nexport interface BillboardGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface BillboardGraphicsProps\n  extends BillboardGraphicsCesiumProps,\n    BillboardGraphicsCesiumEvents {}\n\nexport interface BillboardGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof BillboardGraphicsCesiumProps)[] = [\n  \"image\",\n  \"show\",\n  \"scale\",\n  \"horizontalOrigin\",\n  \"verticalOrigin\",\n  \"eyeOffset\",\n  \"pixelOffset\",\n  \"rotation\",\n  \"alignedAxis\",\n  \"width\",\n  \"height\",\n  \"color\",\n  \"scaleByDistance\",\n  \"translucencyByDistance\",\n  \"pixelOffsetScaleByDistance\",\n  \"imageSubRegion\",\n  \"sizeInMeters\",\n  \"heightReference\",\n  \"distanceDisplayCondition\",\n  \"disableDepthTestDistance\",\n];\n\nconst cesiumEventProps: EventkeyMap<\n  Cesium.BillboardGraphics,\n  keyof BillboardGraphicsCesiumEvents\n> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst BillboardGraphics = createCesiumComponent<\n  Cesium.BillboardGraphics,\n  BillboardGraphicsProps,\n  BillboardGraphicsContext\n>({\n  name: \"BillboardGraphics\",\n  create(cprops) {\n    // workaround: type of \"image\" prop\n    return new Cesium.BillboardGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.billboard = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.billboard = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default BillboardGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`BoxGraphics` is a box visualization for the entity.\n*/\n\n/*\n@scope\nBoxGraphic is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface BoxGraphicsCesiumProps {\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  dimensions?: Cesium.Property | Cesium.Cartesian3;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | number;\n  outlineWidth?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n}\n\nexport interface BoxGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface BoxGraphicsProps extends BoxGraphicsCesiumProps, BoxGraphicsCesiumEvents {}\n\nexport interface BoxGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof BoxGraphicsCesiumProps)[] = [\n  \"heightReference\",\n  \"dimensions\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.BoxGraphics, keyof BoxGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst BoxGraphics = createCesiumComponent<Cesium.BoxGraphics, BoxGraphicsProps, BoxGraphicsContext>(\n  {\n    name: \"BoxGraphics\",\n    create(cprops) {\n      return new Cesium.BoxGraphics(cprops as any);\n    },\n    mount(element, context) {\n      if (context.entity) {\n        context.entity.box = element;\n      }\n    },\n    unmount(element, context) {\n      if (context.entity) {\n        context.entity.box = undefined as any;\n      }\n    },\n    cesiumProps,\n    cesiumEventProps,\n  },\n);\n\nexport default BoxGraphics;\n","import createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`Camera` can operate the camera of the scene.\nAll properties are applied to single camera of the scene.\n\n**Note**: Following code is not recommended as occur extra rendering steps:\n\n```\n<Viewer>\n  <Scene>\n    <Globe>\n      <Camera>\n        <Entity />\n      </Camera>\n    </Globe>\n  </Scene>\n</Viewer>\n```\n\n`Camera` component's role is just changing fields of `Viewer#scene#camera`, so following code is recommended.\n\n```\n<Viewer>\n  <Scene />\n  <Globe />\n  <Camera />\n  <Entity />\n</Viewer>\n```\n\nFor details, refer to \"Component location\" chapter in [Guide](/guide).\n*/\n\n/*\n@scope\nCamera is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface CameraCesiumProps {\n  position?: Cesium.Cartesian3;\n  direction?: Cesium.Cartesian3;\n  up?: Cesium.Cartesian3;\n  right?: Cesium.Cartesian3;\n  frustum?: Cesium.Frustum;\n  defaultMoveAmount?: number;\n  defaultLookAmount?: number;\n  defaultRotateAmount?: number;\n  defaultZoomAmount?: number;\n  constrainedAxis?: Cesium.Cartesian3;\n  maximumTranslateFactor?: number;\n  maximumZoomFactor?: number;\n  percentageChanged?: number;\n}\n\nexport interface CameraCesiumEvents {\n  onChange?: (areaPercentage: number) => void;\n  onMoveEnd?: () => void;\n  onMoveStart?: () => void;\n}\n\nexport interface CameraProps extends CameraCesiumProps, CameraCesiumEvents {}\n\nexport interface CameraContext {\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof CameraCesiumProps)[] = [\n  \"position\",\n  \"direction\",\n  \"up\",\n  \"right\",\n  \"frustum\",\n  \"defaultMoveAmount\",\n  \"defaultLookAmount\",\n  \"defaultRotateAmount\",\n  \"defaultZoomAmount\",\n  \"constrainedAxis\",\n  \"maximumTranslateFactor\",\n  \"maximumZoomFactor\",\n  \"percentageChanged\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.Camera, keyof CameraCesiumEvents> = {\n  changed: \"onChange\",\n  moveEnd: \"onMoveEnd\",\n  moveStart: \"onMoveStart\",\n};\n\nconst Camera = createCesiumComponent<Cesium.Camera, CameraProps, CameraContext>({\n  name: \"Camera\",\n  create(cprops, props, context) {\n    return context.scene.camera;\n  },\n  cesiumProps,\n  cesiumEventProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default Camera;\n","import { Camera } from \"cesium\";\n\nimport createCameraOperation from \"../core/CameraOperation\";\n\n// @noCesiumElement\n\n/*\n@summary\n`CameraFlyHome` is a kind of operation of the camera.\n\nWhen it is mounted, `camera.flyHome(duration)` will be execute.\n\nIf any property is changed, the current camera flight will be canceled and a new one is executed.\n\nSee also: [Camera#flyHome](https://cesiumjs.org/Cesium/Build/Documentation/Camera.html?classFilter=camer#flyHome)\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface CameraFlyHomeProps {\n  // Duration of camera flight (second)\n  duration: number;\n  // If true, cancel camera flight if this component is unmounted. Default value is false.\n  cancelCameraFlight?: boolean;\n}\n\nconst CameraFlyHome = createCameraOperation({\n  name: \"CameraFlyHome\",\n  cameraOperationStart(camera: Camera, props: CameraFlyHomeProps) {\n    camera.flyHome(props.duration);\n  },\n});\n\nexport default CameraFlyHome;\n","import Cesium from \"cesium\";\n\nimport createCameraOperation from \"../core/CameraOperation\";\n\n// @noCesiumElement\n\n/*\n@summary\n`CameraFlyTo` is a kind of operation of the camera.\n\nWhen it is mounted, `camera.flyTo(options)` will be execute.\n\nIf any property is changed, the current camera flight will be canceled and a new one is executed.\n\nSee also: [Camera#flyTo](https://cesiumjs.org/Cesium/Build/Documentation/Camera.html?classFilter=camer#flyTo)\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface CameraFlyToProps {\n  destination: Cesium.Cartesian3 | Cesium.Rectangle;\n  orientation?: any;\n  duration?: number;\n  onComplete?: Cesium.Camera.FlightCompleteCallback;\n  onCancel?: Cesium.Camera.FlightCancelledCallback;\n  endTransform?: Cesium.Matrix4;\n  maximumHeight?: number;\n  pitchAdjustHeight?: number;\n  flyOverLongitude?: number;\n  flyOverLongitudeWeight?: number;\n  easingFunction?: Cesium.EasingFunction;\n  // If true, cancel camera flight if this component is unmounted. Default value is false.\n  cancelCameraFlight?: boolean;\n}\n\nconst CameraFlyTo = createCameraOperation({\n  name: \"CameraFlyTo\",\n  cameraOperationStart(camera: Cesium.Camera, props: CameraFlyToProps) {\n    const {\n      destination,\n      orientation,\n      duration,\n      onComplete,\n      onCancel,\n      endTransform,\n      maximumHeight,\n      pitchAdjustHeight,\n      flyOverLongitude,\n      flyOverLongitudeWeight,\n      easingFunction,\n    } = props;\n\n    camera.flyTo({\n      destination,\n      orientation,\n      duration,\n      complete: onComplete,\n      cancel: onCancel,\n      endTransform,\n      maximumHeight,\n      pitchAdjustHeight,\n      flyOverLongitude,\n      flyOverLongitudeWeight,\n      easingFunction,\n    });\n  },\n});\n\nexport default CameraFlyTo;\n","import Cesium from \"cesium\";\n\nimport createCameraOperation from \"../core/CameraOperation\";\n\n// @noCesiumElement\n\n/*\n@summary\n`CameraFlyToBoundingSphere` is a kind of operation of the camera.\n\nWhen it is mounted, `camera.flyToBoundingSphere(boundingSphere, options)` will be execute.\n\nIf any property is changed, the current camera flight will be canceled and a new one is executed.\n\nSee also: [Camera#flyToBoundingSphere](https://cesiumjs.org/Cesium/Build/Documentation/Camera.html?classFilter=camer#flyToBoundingSphere)\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface CameraFlyToBoundingSphereProps {\n  boundingSphere: Cesium.BoundingSphere;\n  duration?: number;\n  offset?: Cesium.HeadingPitchRange;\n  onComplete?: Cesium.Camera.FlightCompleteCallback;\n  onCancel?: Cesium.Camera.FlightCancelledCallback;\n  endTransform?: Cesium.Matrix4;\n  maximumHeight?: number;\n  pitchAdjustHeight?: number;\n  flyOverLongitude?: number;\n  flyOverLongitudeWeight?: number;\n  easingFunction?: Cesium.EasingFunction;\n  // If true, cancel camera flight if this component is unmounted. Default value is false.\n  cancelCameraFlight?: boolean;\n}\n\nconst CameraFlyToBoundingSphere = createCameraOperation({\n  name: \"CameraFlyToBoundingSphere\",\n  cameraOperationStart(camera: Cesium.Camera, props: CameraFlyToBoundingSphereProps) {\n    const {\n      boundingSphere,\n      offset,\n      duration,\n      onComplete,\n      onCancel,\n      endTransform,\n      maximumHeight,\n      pitchAdjustHeight,\n      flyOverLongitude,\n      flyOverLongitudeWeight,\n      easingFunction,\n    } = props;\n\n    camera.flyToBoundingSphere(boundingSphere, {\n      offset,\n      duration,\n      complete: onComplete,\n      cancel: onCancel,\n      endTransform,\n      maximumHeight,\n      pitchAdjustHeight,\n      flyOverLongitude,\n      flyOverLongitudeWeight,\n      easingFunction,\n    });\n  },\n});\n\nexport default CameraFlyToBoundingSphere;\n","import Cesium from \"cesium\";\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`Cesium3DTileset` is a 3D tile set.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component.\nA Cesium3DTileset object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface Cesium3DTilesetCesiumProps {\n  show?: boolean;\n  modelMatrix?: Cesium.Matrix4;\n  shadows?: Cesium.ShadowMode;\n  maximumScreenSpaceError?: number;\n  maximumMemoryUsage?: number;\n  cullWithChildrenBounds?: boolean;\n  dynamicScreenSpaceError?: boolean;\n  dynamicScreenSpaceErrorDensity?: number;\n  dynamicScreenSpaceErrorFactor?: number;\n  dynamicScreenSpaceErrorHeightFalloff?: number;\n  skipLevelOfDetail?: boolean;\n  baseScreenSpaceError?: number;\n  skipScreenSpaceErrorFactor?: number;\n  skipLevels?: number;\n  immediatelyLoadDesiredLevelOfDetail?: boolean;\n  loadSiblings?: boolean;\n  // @type Cesium.ClippingPlaneCollection\n  clippingPlanes?: any;\n  // @type Cesium.ClassificationType\n  classificationType?: any;\n  ellipsoid?: Cesium.Ellipsoid;\n  imageBasedLightingFactor?: Cesium.Cartesian2;\n  lightColor?: Cesium.Cartesian3;\n  debugFreezeFrame?: boolean;\n  debugColorizeTiles?: boolean;\n  debugWireframe?: boolean;\n  debugShowBoundingVolume?: boolean;\n  debugShowContentBoundingVolume?: boolean;\n  debugShowViewerRequestVolume?: boolean;\n  debugShowGeometricError?: boolean;\n  debugShowRenderingStatistics?: boolean;\n  debugShowMemoryUsage?: boolean;\n  debugShowUrl?: boolean;\n  colorBlendAmount?: number;\n  // @type Cesium.Cesium3DTileColorBlendMode\n  colorBlendMode?: any;\n  luminanceAtZenith?: number;\n  sphericalHarmonicCoefficients?: Cesium.Cartesian3[];\n  specularEnvironmentMaps?: string;\n}\n\nexport interface Cesium3DTilesetCesiumReadonlyProps {\n  url: Cesium.Resource | string | Promise<Cesium.Resource> | Promise<string>;\n  pointCloudShading?: {\n    attenuation?: boolean;\n    geometricErrorScale?: number;\n    maximumAttenuation?: number;\n    baseResolution?: number;\n    eyeDomeLighting?: boolean;\n    eyeDomeLightingStrength?: number;\n    eyeDomeLightingRadius?: number;\n  };\n}\n\nexport interface Cesium3DTilesetCesiumEvents {\n  onAllTilesLoad?: () => void;\n  onInitialTilesLoad?: () => void;\n  onLoadProgress?: (numberOfPendingRequests: number, numberOfTilesProcessing: number) => void;\n  onTileFailed?: () => void;\n  onTileLoad?: (tile: any /* Cesium.3DTileset */) => void;\n  onTileUnload?: () => void;\n  onTileVisible?: (tile: any /* Cesium.3DTileset */) => void;\n}\n\nexport interface Cesium3DTilesetProps\n  extends Cesium3DTilesetCesiumProps,\n    Cesium3DTilesetCesiumReadonlyProps,\n    Cesium3DTilesetCesiumEvents {\n  // Calls when the tile set is completely loaded.\n  onReady?: (tileset: any /* Cesium.3DTileset */) => void;\n}\n\nexport interface Cesium3DTilesetContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n}\n\nconst cesiumProps: (keyof Cesium3DTilesetCesiumProps)[] = [\n  \"show\",\n  \"modelMatrix\",\n  \"shadows\",\n  \"maximumScreenSpaceError\",\n  \"maximumMemoryUsage\",\n  \"cullWithChildrenBounds\",\n  \"dynamicScreenSpaceError\",\n  \"dynamicScreenSpaceErrorDensity\",\n  \"dynamicScreenSpaceErrorFactor\",\n  \"dynamicScreenSpaceErrorHeightFalloff\",\n  \"skipLevelOfDetail\",\n  \"baseScreenSpaceError\",\n  \"skipScreenSpaceErrorFactor\",\n  \"skipLevels\",\n  \"immediatelyLoadDesiredLevelOfDetail\",\n  \"loadSiblings\",\n  \"clippingPlanes\",\n  \"classificationType\",\n  \"ellipsoid\",\n  \"imageBasedLightingFactor\",\n  \"lightColor\",\n  \"debugFreezeFrame\",\n  \"debugColorizeTiles\",\n  \"debugWireframe\",\n  \"debugShowBoundingVolume\",\n  \"debugShowContentBoundingVolume\",\n  \"debugShowViewerRequestVolume\",\n  \"debugShowGeometricError\",\n  \"debugShowRenderingStatistics\",\n  \"debugShowMemoryUsage\",\n  \"debugShowUrl\",\n  \"colorBlendAmount\",\n  \"colorBlendMode\",\n  \"luminanceAtZenith\",\n  \"sphericalHarmonicCoefficients\",\n  \"specularEnvironmentMaps\",\n];\n\nconst cesiumReadonlyProps: (keyof Cesium3DTilesetCesiumReadonlyProps)[] = [\n  \"url\",\n  \"pointCloudShading\",\n];\n\nconst cesiumEventProps: EventkeyMap<any, keyof Cesium3DTilesetCesiumEvents> = {\n  allTilesLoaded: \"onAllTilesLoad\",\n  initialTilesLoaded: \"onInitialTilesLoad\",\n  loadProgress: \"onLoadProgress\",\n  tileFailed: \"onTileFailed\",\n  tileLoad: \"onTileLoad\",\n  tileUnload: \"onTileUnload\",\n  tileVisible: \"onTileVisible\",\n};\n\n// workaround: any => Cesium.3DTileset\nconst Cesium3DTileset = createCesiumComponent<any, Cesium3DTilesetProps, Cesium3DTilesetContext>({\n  name: \"Cesium3DTileset\",\n  create(cprops, props) {\n    const c3ts = new (Cesium as any).Cesium3DTileset(cprops);\n    c3ts.colorBlendAmount = cprops.colorBlendAmount;\n    c3ts.colorBlendMode = cprops.colorBlendMode;\n    if (props.onReady) {\n      c3ts.readyPromise.then(props.onReady);\n    }\n    return c3ts;\n  },\n  mount(element, context) {\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n  cesiumEventProps,\n});\n\nexport default Cesium3DTileset;\n","import React from \"react\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport Cesium, { CesiumWidget as CesiumCesiumWidget } from \"cesium\";\n\n/*\n@summary\n`CesiumWidget` is the simplest root component of resium. All components of resium except the root components have to be mounted inside it.\n\n`Viewer` is also a root component. It is a component with some widgets (info box, timeline, and so on) added to `CesiumWidget`.\n*/\n\n/*\n@example\n<CesiumWidget full />\n*/\n\n/*\n@scope\nEverywhere. `CesiumWidget` is a root component. \n*/\n\nexport interface CesiumWidgetCesiumProps {\n  resolutionScale?: number;\n  useDefaultRenderLoop?: boolean;\n  targetFrameRate?: number;\n}\n\nexport interface CesiumWidgetCesiumReadonlyProps {\n  clock?: Cesium.Clock;\n  imageryProvider?: Cesium.ImageryProvider;\n  terrainProvider?: Cesium.TerrainProvider;\n  skyBox?: Cesium.SkyBox;\n  skyAtmosphere?: Cesium.SkyAtmosphere;\n  sceneMode?: Cesium.SceneMode;\n  scene3DOnly?: boolean;\n  orderIndependentTranslucency?: boolean;\n  mapMode2D?: Cesium.MapMode2D;\n  mapProjection?: Cesium.MapProjection;\n  globe?: Cesium.Globe;\n  showRenderLoopErrors?: boolean;\n  contextOptions?: WebGLContextAttributes;\n  creditContainer?: Element | string;\n  creditViewport?: Element | string;\n  terrainExaggeration?: number;\n  shadows?: boolean;\n  terrainShadows?: Cesium.ShadowMode;\n  requestRenderMode?: boolean;\n  maximumRenderTimeChange?: number;\n}\n\nconst cesiumProps: (keyof CesiumWidgetCesiumProps)[] = [\n  \"resolutionScale\",\n  \"useDefaultRenderLoop\",\n  \"targetFrameRate\",\n];\n\nconst cesiumReadonlyProps: (keyof CesiumWidgetCesiumReadonlyProps)[] = [\n  \"clock\",\n  \"imageryProvider\",\n  \"terrainProvider\",\n  \"skyBox\",\n  \"skyAtmosphere\",\n  \"sceneMode\",\n  \"scene3DOnly\",\n  \"orderIndependentTranslucency\",\n  \"mapMode2D\",\n  \"mapProjection\",\n  \"globe\",\n  \"showRenderLoopErrors\",\n  \"contextOptions\",\n  \"creditContainer\",\n  \"creditViewport\",\n  \"terrainExaggeration\",\n  \"shadows\",\n  \"terrainShadows\",\n  \"requestRenderMode\",\n  \"maximumRenderTimeChange\",\n];\n\nexport interface CesiumWidgetProps\n  extends CesiumWidgetCesiumProps,\n    CesiumWidgetCesiumReadonlyProps {\n  // Applied to outer `div` element\n  className?: string;\n  // Applied to outer `div` element\n  id?: string;\n  // Applied to outer `div` element\n  style?: React.CSSProperties;\n  // Same as `style={{ position: \"absolute\", top: 0, left: 0, right: 0, bottom: 0 }}` if it is true.\n  full?: boolean;\n  // All props applied to outer `div` element\n  containerProps?: any;\n  children?: React.ReactNode;\n}\n\nexport interface CesiumWidgetContext {\n  cesiumWidget: Cesium.CesiumWidget;\n  dataSourceCollection: Cesium.DataSourceCollection;\n  entityCollection: Cesium.EntityCollection;\n  scene: Cesium.Scene;\n  globe: Cesium.Globe;\n  camera: Cesium.Camera;\n}\n\nconst CesiumWidget = createCesiumComponent<\n  Cesium.CesiumWidget,\n  CesiumWidgetProps,\n  {},\n  CesiumWidgetContext | {},\n  HTMLDivElement\n>({\n  name: \"Viewer\",\n  createRef: true,\n  create(cprops, props, context, ref) {\n    // ref is not always undefined\n    const v = new CesiumCesiumWidget(\n      (ref as React.RefObject<HTMLDivElement>).current as any,\n      cprops,\n    );\n\n    if (v && typeof props.resolutionScale === \"number\") {\n      v.resolutionScale = props.resolutionScale;\n    }\n\n    // common ScreenSpaceEventHandler for events of Entity and Primitives\n    let state: any;\n    if (v) {\n      state = new Cesium.ScreenSpaceEventHandler(v.canvas);\n    }\n\n    return [v, state];\n  },\n  render(element, props, mounted, ref) {\n    return (\n      <div\n        className={props.className}\n        id={props.id}\n        ref={ref}\n        style={{\n          ...(props.full\n            ? {\n                position: \"absolute\",\n                bottom: \"0\",\n                left: \"0\",\n                right: \"0\",\n                top: \"0\",\n              }\n            : {}),\n          ...props.style,\n        }}\n        {...props.containerProps}>\n        {element ? props.children : null}\n      </div>\n    );\n  },\n  unmount(element, cprops, props, ref, state) {\n    if (element && state) {\n      const sshe = state as Cesium.ScreenSpaceEventHandler;\n      if (!sshe.isDestroyed()) {\n        sshe.destroy();\n      }\n    }\n    if (element && !element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  provide(element, props, state) {\n    if (!element) {\n      return {};\n    }\n    return {\n      cesiumWidget: element,\n      scene: element.scene,\n      camera: element.scene.camera,\n      imageryLayerCollection: element.scene.globe.imageryLayers,\n      primitiveCollection: element.scene.primitives,\n      globe: element.scene.globe,\n      __RESIUM_SSEH: state, // ScreenSpaceEventHandler\n    };\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport default CesiumWidget;\n","import createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\nimport Cesium, { CesiumWidget } from \"cesium\";\n\n/*\n@summary\n`Clock` can operate the clock of the Viewer or CesiumWidget.\nAll properties are applied to single clock.\n*/\n\n/*\n@scope\nClock is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nClock can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface ClockCesiumProps {\n  canAnimate?: boolean;\n  clockRange?: Cesium.ClockRange;\n  clockStep?: Cesium.ClockStep;\n  currentTime?: Cesium.JulianDate;\n  multiplier?: number;\n  shouldAnimate?: boolean;\n  startTime?: Cesium.JulianDate;\n  stopTime?: Cesium.JulianDate;\n}\n\nexport interface ClockCesiumEvents {\n  onStop?: (clock: Cesium.Clock) => void;\n  onTick?: (clock: Cesium.Clock) => void;\n}\n\nconst cesiumEventProps: EventkeyMap<Cesium.Globe, keyof ClockCesiumEvents> = {\n  onStop: \"onStop\",\n  onTick: \"onTick\",\n};\n\nexport interface ClockProps extends ClockCesiumProps, ClockCesiumEvents {}\n\nexport interface ClockContext {\n  cesiumWidget: CesiumWidget;\n}\n\nconst cesiumProps: (keyof ClockCesiumProps)[] = [\n  \"canAnimate\",\n  \"clockRange\",\n  \"clockStep\",\n  \"currentTime\",\n  \"multiplier\",\n  \"shouldAnimate\",\n  \"startTime\",\n  \"stopTime\",\n];\n\nconst Clock = createCesiumComponent<Cesium.Clock, ClockProps, ClockContext>({\n  name: \"Clock\",\n  create(cprops, props, context) {\n    return context.cesiumWidget.clock;\n  },\n  cesiumProps,\n  cesiumEventProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default Clock;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`CorriderGraphics` is a corrider visualization for the entity.\n*/\n\n/*\n@scope\nCorriderGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface CorridorGraphicsCesiumProps {\n  positions?: Cesium.Property | Cesium.Cartesian3[];\n  width?: Cesium.Property | number;\n  cornerType?: Cesium.Property | Cesium.CornerType;\n  height?: Cesium.Property | number;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  extrudedHeight?: Cesium.Property | number;\n  extrudedHeightReference?: Cesium.Property | Cesium.HeightReference;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  granularity?: Cesium.Property | number;\n  shadows?: Cesium.Property | boolean;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  zIndex?: Cesium.ConstantProperty | number;\n  // @type Cesium.Property | Cesium.ClassificationType\n  classificationType?: Cesium.Property | any;\n}\n\nexport interface CorridorCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface CorridorGraphicsProps extends CorridorGraphicsCesiumProps, CorridorCesiumEvents {}\n\nexport interface CorridorGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof CorridorGraphicsCesiumProps)[] = [\n  \"positions\",\n  \"width\",\n  \"cornerType\",\n  \"height\",\n  \"heightReference\",\n  \"extrudedHeight\",\n  \"extrudedHeightReference\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"granularity\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n  \"zIndex\",\n  \"classificationType\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.CorridorGraphics, keyof CorridorCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst CorridorGraphics = createCesiumComponent<\n  Cesium.CorridorGraphics,\n  CorridorGraphicsProps,\n  CorridorGraphicsContext\n>({\n  name: \"CorridorGraphics\",\n  create(cprops) {\n    const cg = new Cesium.CorridorGraphics(cprops as any);\n    if (cprops.classificationType) {\n      (cg as any).classificationType = cprops.classificationType;\n    }\n    return cg;\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.corridor = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.corridor = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default CorridorGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`CustomDataSource` is a kind of data sources, but empty.\nIt can be thought of as a collection of entities in a sense.\nIt can have some Entity components as children.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface CustomDataSourceCesiumProps {\n  clustering?: Cesium.EntityCluster;\n  name?: string;\n  show?: boolean;\n  clock?: Cesium.DataSourceClock;\n}\n\nexport interface CustomDataSourceCesiumEvents {\n  onChange?: (customDataSource: Cesium.CustomDataSource) => void;\n  onError?: (customDataSource: Cesium.CustomDataSource, error: any) => void;\n  onLoading?: (customDataSource: Cesium.CustomDataSource, isLoaded: boolean) => void;\n}\n\nexport interface CustomDataSourceProps\n  extends CustomDataSourceCesiumProps,\n    CustomDataSourceCesiumEvents {\n  children?: React.ReactNode;\n}\n\nexport interface CustomDataSourceContext {\n  dataSourceCollection?: Cesium.DataSourceCollection;\n}\n\nconst cesiumProps: (keyof CustomDataSourceCesiumProps)[] = [\"clustering\", \"name\", \"show\", \"clock\"];\n\nconst cesiumEventProps: EventkeyMap<Cesium.CustomDataSource, keyof CustomDataSourceCesiumEvents> = {\n  changedEvent: \"onChange\",\n  errorEvent: \"onError\",\n  loadingEvent: \"onLoading\",\n};\n\nconst CustomDataSource = createCesiumComponent<\n  Cesium.CustomDataSource,\n  CustomDataSourceProps,\n  CustomDataSourceContext\n>({\n  name: \"CustomDataSource\",\n  create(cprops) {\n    const ds = new Cesium.CustomDataSource(cprops.name);\n    if (cprops.clustering) {\n      ds.clustering = cprops.clustering;\n    }\n    if (typeof cprops.show === \"boolean\") {\n      ds.show = cprops.show;\n    }\n    if (typeof cprops.clock !== \"undefined\") {\n      ds.clock = cprops.clock;\n    }\n    return ds;\n  },\n  mount(element, context) {\n    if (context.dataSourceCollection) {\n      context.dataSourceCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.dataSourceCollection && !context.dataSourceCollection.isDestroyed()) {\n      context.dataSourceCollection.remove(element);\n    }\n  },\n  provide(element) {\n    return {\n      entityCollection: element.entities,\n      dataSource: element,\n    };\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default CustomDataSource;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`CylinderGraphics` is a cylinder visualization for the entity.\n*/\n\n/*\n@scope\nCylinderGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface CylinderGraphicsCesiumProps {\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  length?: Cesium.Property | number;\n  topRadius?: Cesium.Property | number;\n  bottomRadius?: Cesium.Property | number;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  numberOfVerticalLines?: Cesium.Property | number;\n  slices?: Cesium.Property | number;\n  shadowMode?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n}\n\nexport interface CylinderCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface CylinderGraphicsProps extends CylinderGraphicsCesiumProps, CylinderCesiumEvents {}\n\nexport interface CylinderGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof CylinderGraphicsCesiumProps)[] = [\n  \"heightReference\",\n  \"length\",\n  \"topRadius\",\n  \"bottomRadius\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"numberOfVerticalLines\",\n  \"slices\",\n  \"shadowMode\",\n  \"distanceDisplayCondition\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.CorridorGraphics, keyof CylinderCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst CylinderGraphics = createCesiumComponent<\n  Cesium.CylinderGraphics,\n  CylinderGraphicsProps,\n  CylinderGraphicsContext\n>({\n  name: \"CylinderGraphics\",\n  create(cprops) {\n    return new Cesium.CylinderGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.cylinder = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.cylinder = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default CylinderGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`CzmlDataSource` provides the way to load and show CZML data into the scene.\nCZML data can be loaded from a URL, string or raw object.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface CzmlDataSourceCesiumProps {\n  clustering?: Cesium.EntityCluster;\n}\n\nexport interface CzmlDataSourceCesiumReadonlyProps {\n  name?: string;\n}\n\nexport interface CzmlDataSourceCesiumEvents {\n  onChange?: (CzmlDataSource: Cesium.CzmlDataSource) => void;\n  onError?: (CzmlDataSource: Cesium.CzmlDataSource, error: any) => void;\n  onLoading?: (CzmlDataSource: Cesium.CzmlDataSource, isLoaded: boolean) => void;\n}\n\nexport interface CzmlDataSourceProps\n  extends CzmlDataSourceCesiumProps,\n    CzmlDataSourceCesiumReadonlyProps,\n    CzmlDataSourceCesiumEvents {\n  // @CesiumReadonlyProp\n  data?: Cesium.Resource | string | object;\n  // @CesiumReadonlyProp\n  sourceUri?: string;\n  // @CesiumProp\n  show?: boolean;\n  // Calls when the Promise for loading data is fullfilled.\n  onLoad?: (CzmlDataSouce: Cesium.CzmlDataSource) => void;\n}\n\nexport interface CzmlDataSourceContext {\n  dataSourceCollection?: Cesium.DataSourceCollection;\n}\n\nconst cesiumProps: (keyof CzmlDataSourceCesiumProps)[] = [\"clustering\"];\n\nconst cesiumReadonlyProps: (keyof CzmlDataSourceCesiumReadonlyProps)[] = [\"name\"];\n\nconst cesiumEventProps: EventkeyMap<Cesium.CzmlDataSource, keyof CzmlDataSourceCesiumEvents> = {\n  changedEvent: \"onChange\",\n  errorEvent: \"onError\",\n  loadingEvent: \"onLoading\",\n};\n\nconst load = ({\n  element,\n  data,\n  onLoad,\n  sourceUri,\n}: {\n  element: Cesium.CzmlDataSource;\n  dataSources: Cesium.DataSourceCollection;\n  data: Cesium.Resource | string | object;\n  onLoad?: (CzmlDataSource: Cesium.CzmlDataSource) => void;\n  sourceUri?: string;\n}) => {\n  element\n    .load(data, {\n      sourceUri,\n    })\n    .then(value => {\n      if (onLoad) {\n        onLoad(value);\n      }\n    });\n};\n\nconst CzmlDataSource = createCesiumComponent<\n  Cesium.CzmlDataSource,\n  CzmlDataSourceProps,\n  CzmlDataSourceContext\n>({\n  name: \"CzmlDataSource\",\n  create(cprops, props) {\n    const ds = new Cesium.CzmlDataSource(props.name);\n    if (cprops.clustering) {\n      ds.clustering = cprops.clustering;\n    }\n    if (typeof cprops.show === \"boolean\") {\n      ds.show = cprops.show;\n    }\n    return ds;\n  },\n  mount(element, context, props) {\n    if (context.dataSourceCollection) {\n      context.dataSourceCollection.add(element);\n      if (props.data) {\n        load({\n          element,\n          dataSources: context.dataSourceCollection,\n          data: props.data,\n          onLoad: props.onLoad,\n          sourceUri: props.sourceUri,\n        });\n      }\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (prevProps.show !== props.show || !props.data) {\n      element.show = !!props.data && (typeof props.show === \"boolean\" ? props.show : true);\n    }\n    if (\n      context.dataSourceCollection &&\n      props.data &&\n      (prevProps.data !== props.data || prevProps.sourceUri !== props.sourceUri)\n    ) {\n      load({\n        element,\n        dataSources: context.dataSourceCollection,\n        data: props.data,\n        onLoad: props.onLoad,\n        sourceUri: props.sourceUri,\n      });\n    }\n  },\n  unmount(element, context) {\n    if (context.dataSourceCollection && !context.dataSourceCollection.isDestroyed()) {\n      context.dataSourceCollection.remove(element);\n    }\n  },\n  provide(element) {\n    return {\n      dataSource: element,\n    };\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n  cesiumEventProps,\n});\n\nexport default CzmlDataSource;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`EllipseGraphics` is a ellipse visualization for the entity.\n*/\n\n/*\n@scope\nEllipseGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface EllipseGraphicsCesiumProps {\n  semiMajorAxis?: Cesium.Property | number;\n  semiMinorAxis?: Cesium.Property | number;\n  height?: Cesium.Property | number;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  extrudedHeight?: Cesium.Property | number;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  numberOfVerticalLines?: Cesium.Property | number;\n  rotation?: Cesium.Property | number;\n  stRotation?: Cesium.Property | number;\n  granularity?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  zIndex?: Cesium.Property | number;\n  // @type Cesium.ClassificationType\n  classificationType?: Cesium.Property | any;\n}\n\nexport interface EllipseGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface EllipseGraphicsProps\n  extends EllipseGraphicsCesiumProps,\n    EllipseGraphicsCesiumEvents {}\n\nexport interface EllipseGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof EllipseGraphicsCesiumProps)[] = [\n  \"semiMajorAxis\",\n  \"semiMinorAxis\",\n  \"height\",\n  \"heightReference\",\n  \"extrudedHeight\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"numberOfVerticalLines\",\n  \"rotation\",\n  \"stRotation\",\n  \"granularity\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n  \"zIndex\",\n  \"classificationType\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.EllipseGraphics, keyof EllipseGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst EllipseGraphics = createCesiumComponent<\n  Cesium.EllipseGraphics,\n  EllipseGraphicsProps,\n  EllipseGraphicsContext\n>({\n  name: \"EllipseGraphics\",\n  create(cprops) {\n    const eg = new Cesium.EllipseGraphics(cprops as any);\n    if (cprops.classificationType) {\n      (eg as any).classificationType = cprops.classificationType;\n    }\n    return eg;\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.ellipse = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.ellipse = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default EllipseGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`EllipsoidGraphics` is a ellipsoid visualization for the entity.\n*/\n\n/*\n@scope\nEllipsoidGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface EllipsoidGraphicsCesiumProps {\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  radii?: Cesium.Property | Cesium.Cartesian3;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  subdivisions?: Cesium.Property | number;\n  stackPartitions?: Cesium.Property | number;\n  slicePartitions?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n}\n\nexport interface EllipsoidGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface EllipsoidGraphicsProps\n  extends EllipsoidGraphicsCesiumProps,\n    EllipsoidGraphicsCesiumEvents {}\n\nexport interface EllipsoidGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof EllipsoidGraphicsCesiumProps)[] = [\n  \"heightReference\",\n  \"radii\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"subdivisions\",\n  \"stackPartitions\",\n  \"slicePartitions\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n];\n\nconst cesiumEventProps: EventkeyMap<\n  Cesium.EllipsoidGraphics,\n  keyof EllipsoidGraphicsCesiumEvents\n> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst EllipsoidGraphics = createCesiumComponent<\n  Cesium.EllipsoidGraphics,\n  EllipsoidGraphicsProps,\n  EllipsoidGraphicsContext\n>({\n  name: \"EllipsoidGraphics\",\n  create(cprops) {\n    return new Cesium.EllipsoidGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.ellipsoid = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.ellipsoid = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default EllipsoidGraphics;\n","import Cesium, { Entity as CesiumEntity } from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\nimport EventManager, { EventProps } from \"../core/EventManager\";\nimport { BillboardGraphicsCesiumProps } from \"../BillboardGraphics/BillboardGraphics\";\nimport { BoxGraphicsCesiumProps } from \"../BoxGraphics/BoxGraphics\";\nimport { CorridorGraphicsCesiumProps } from \"../CorridorGraphics/CorridorGraphics\";\nimport { CylinderGraphicsCesiumProps } from \"../CylinderGraphics/CylinderGraphics\";\nimport { EllipseGraphicsCesiumProps } from \"../EllipseGraphics/EllipseGraphics\";\nimport { EllipsoidGraphicsCesiumProps } from \"../EllipsoidGraphics/EllipsoidGraphics\";\nimport { LabelGraphicsCesiumProps } from \"../LabelGraphics/LabelGraphics\";\nimport { ModelGraphicsCesiumProps } from \"../ModelGraphics/ModelGraphics\";\nimport { PathGraphicsCesiumProps } from \"../PathGraphics/PathGraphics\";\nimport { PlaneGraphicsCesiumProps } from \"../PlaneGraphics/PlaneGraphics\";\nimport { PointGraphicsCesiumProps } from \"../PointGraphics/PointGraphics\";\nimport { PolygonGraphicsCesiumProps } from \"../PolygonGraphics/PolygonGraphics\";\nimport { PolylineGraphicsCesiumProps } from \"../PolylineGraphics/PolylineGraphics\";\nimport { PolylineVolumeGraphicsCesiumProps } from \"../PolylineVolumeGraphics/PolylineVolumeGraphics\";\nimport { RectangleGraphicsCesiumProps } from \"../RectangleGraphics/RectangleGraphics\";\nimport { WallGraphicsCesiumProps } from \"../WallGraphics/WallGraphics\";\n\n/*\n@summary\n`Entity` is a basic component for geographical data visualization.\n\nEntity can have one each, with the following components as children:\n\n- [`EntityDescription`](/components/EntityDescription): renders description with React\n- [`BillboardGraphics`](/components/BillboardGraphics): a billboard visualization\n- [`BoxGraphics`](/components/BoxGraphics): a box visualization\n- [`CorriderGraphics`](/components/BillboardGraphics): a corrider visualization\n- [`CylinderGraphics`](/components/BillboardGraphics): a cylinder visualization\n- [`EllipseGraphics`](/components/BillboardGraphics): a ellipse visualization\n- [`EllipsoidGraphics`](/components/BillboardGraphics): a ellipsoid visualization\n- [`LabelGraphics`](/components/BillboardGraphics): a label visualization\n- [`ModelGraphics`](/components/BillboardGraphics): a model visualization\n- [`PathGraphics`](/components/BillboardGraphics): a path visualization\n- [`PlaneGraphics`](/components/BillboardGraphics): a plane visualization\n- [`PointGraphics`](/components/BillboardGraphics): a point visualization\n- [`PolygonGraphics`](/components/BillboardGraphics): a polygon visualization\n- [`PolylineGraphics`](/components/BillboardGraphics): a polyline visualization\n- [`PolylineVolumeGraphics`](/components/BillboardGraphics): a polyline visualization with volume\n- [`RectangleGraphics`](/components/BillboardGraphics): a rectangle visualization\n- [`WallGraphics`](/components/BillboardGraphics): a wall visualization\n\n### Graphics components vs graphics properties\n\nConclusion: `Graphics` components are mostly recommended.\n\nFor example, Entity component has `point` property for point visualization. But PointGraphics component is also available. What is the differene?\n\n```jsx\n<Entity point={{ pixelSize: 10 }} />\n\n<Entity>\n  <BillboardGraphics pixelSize={10} />\n</Entity>\n```\n\nThat is same. However as changing only `pixelSize` property, situations will change. If you change `point` property, It happens recreating a PointGraphics object. It is equivalent to:\n\n```js\nconst entity = new Entity({ point: { pixelSize: 10 } });\n\n// change pixelSize property in point property of Entity\nentity.point = new PointGraphics({ pixelSize: 20 });\n// change pixelSize property of PointGraphics\nentity.point.pixelSize = 20;\n```\n\nUpdating pixelSize of PointGraphics is more simple and fast.\n*/\n\n/*\n@scope\nEither:\n- Inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component: the entity will be attached to the EntityCollection of the Viewer or CesiumWidget.\n- Inside [CustomDataSource](/components/CustomDataSource) component: the entity will be attached to the EntityCollection of the CustomDataSource.\n*/\n\nexport interface EntityCesiumProps {\n  availability?: Cesium.TimeIntervalCollection;\n  billboard?: Cesium.BillboardGraphics | BillboardGraphicsCesiumProps;\n  box?: Cesium.BoxGraphics | BoxGraphicsCesiumProps;\n  corridor?: Cesium.CorridorGraphics | CorridorGraphicsCesiumProps;\n  cylinder?: Cesium.CylinderGraphics | CylinderGraphicsCesiumProps;\n  description?: Cesium.Property | any;\n  ellipse?: Cesium.EllipseGraphics | EllipseGraphicsCesiumProps;\n  ellipsoid?: Cesium.EllipsoidGraphics | EllipsoidGraphicsCesiumProps;\n  label?: Cesium.LabelGraphics | LabelGraphicsCesiumProps;\n  model?: Cesium.ModelGraphics | ModelGraphicsCesiumProps;\n  name?: string;\n  orientation?: Cesium.Property | Cesium.Matrix4;\n  path?: Cesium.PathGraphics | PathGraphicsCesiumProps;\n  // @type Cesium.PlaneGraphics | PlaneGraphicsCesiumProps\n  plane?:\n    | {\n        plane: Cesium.Property;\n        dimensions: Cesium.Property | Cesium.Cartesian2;\n        show: Cesium.Property | boolean;\n        fill: Cesium.Property | boolean;\n        material: Cesium.MaterialProperty | Cesium.Color | string;\n        outline: Cesium.Property | boolean;\n        outlineColor?: Cesium.Property | Cesium.Color;\n        outlineWidth?: Cesium.Property | number;\n        shadows?: Cesium.Property | Cesium.ShadowMode;\n        distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n      }\n    | PlaneGraphicsCesiumProps;\n  point?: Cesium.PointGraphics | PointGraphicsCesiumProps;\n  polygon?: Cesium.PolygonGraphics | PolygonGraphicsCesiumProps;\n  polyline?: Cesium.PolylineGraphics | PolylineGraphicsCesiumProps;\n  polylineVolume?: Cesium.PolylineVolumeGraphics | PolylineVolumeGraphicsCesiumProps;\n  position?: Cesium.PositionProperty | Cesium.Cartesian3;\n  // @type Cesium.PropertyBag\n  properties?: any;\n  rectangle?: Cesium.RectangleGraphics | RectangleGraphicsCesiumProps;\n  show?: boolean;\n  viewFrom?: Cesium.Property | Cesium.Cartesian3;\n  wall?: Cesium.WallGraphics | WallGraphicsCesiumProps;\n}\n\nexport interface EntityCesiumReadonlyProps {\n  id?: string;\n}\n\nexport interface EntityCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface EntityProps\n  extends EntityCesiumProps,\n    EntityCesiumReadonlyProps,\n    EntityCesiumEvents,\n    EventProps<Cesium.Entity> {\n  children?: React.ReactNode;\n  // If true, the entity will be selected. It works only inside Viewer not CesiumWidget.\n  selected?: boolean;\n  // If true, the entity will be tracked by the camera. It works only inside Viewer not CesiumWidget.\n  tracked?: boolean;\n}\n\nexport interface EntityContext {\n  entityCollection?: Cesium.EntityCollection;\n  viewer?: Cesium.Viewer;\n  __RESIUM_EVENT_MANAGER?: EventManager;\n}\n\nconst cesiumProps: (keyof EntityCesiumProps)[] = [\n  \"availability\",\n  \"billboard\",\n  \"box\",\n  \"corridor\",\n  \"cylinder\",\n  \"description\",\n  \"ellipse\",\n  \"ellipsoid\",\n  \"label\",\n  \"model\",\n  \"name\",\n  \"orientation\",\n  \"path\",\n  \"plane\",\n  \"point\",\n  \"polygon\",\n  \"polyline\",\n  \"polylineVolume\",\n  \"position\",\n  \"properties\",\n  \"rectangle\",\n  \"show\",\n  \"viewFrom\",\n  \"wall\",\n];\n\nconst cesiumReadonlyProps: (keyof EntityCesiumReadonlyProps)[] = [\"id\"];\n\nconst cesiumEventProps: EventkeyMap<Cesium.Entity, keyof EntityCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst Entity = createCesiumComponent<Cesium.Entity, EntityProps, EntityContext>({\n  name: \"Entity\",\n  create(cprops) {\n    return new CesiumEntity(cprops as any);\n  },\n  mount(element, context, props) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n    if (context.entityCollection) {\n      context.entityCollection.add(element);\n    }\n    if (context.viewer && props.selected) {\n      context.viewer.selectedEntity = element;\n    }\n    if (context.viewer && props.tracked) {\n      context.viewer.trackedEntity = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.clearEvents(element);\n    }\n    if (context.entityCollection) {\n      context.entityCollection.remove(element);\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n\n    if (context.viewer) {\n      if (props.selected !== prevProps.selected) {\n        if (props.selected) {\n          context.viewer.selectedEntity = element;\n        } else if (context.viewer.selectedEntity === element) {\n          (context.viewer as any).selectedEntity = undefined;\n        }\n      }\n\n      if (props.tracked !== prevProps.tracked) {\n        if (props.tracked) {\n          context.viewer.trackedEntity = element;\n        } else if (context.viewer.trackedEntity === element) {\n          (context.viewer as any).trackedEntity = undefined;\n        }\n      }\n    }\n  },\n  provide(element) {\n    return {\n      entity: element,\n    };\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n  cesiumEventProps,\n});\n\nexport default Entity;\n","import React from \"react\";\nimport { ConstantProperty } from \"cesium\";\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst { renderToStaticMarkup } = require(\"react-dom/server.browser\");\n// WORKAROUND: import { renderToStaticMarkup } from \"react-dom/server.browser\";\n\nimport { withCesium } from \"../core/context\";\nimport { Entity } from \"cesium\";\n\n// @noCesiumElement\n\n/*\n@summary\n`EntityDescription` provides a way to render description of the entity with React.\n\nIts children will be rendered with `ReactDOM.renderToStaticMarkup` as HTML string of the description.\n\nNote: This component depends on `react-dom/server.browser` module.\n*/\n\n/*\n@scope\nEntityDescription is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface Props {\n  cesium: { entity?: Entity };\n}\n\nclass EntityDescription extends React.PureComponent<Props> {\n  public constructor(props: Readonly<Props> & { children?: React.ReactNode }) {\n    super(props);\n    this.update(props);\n  }\n\n  public componentDidMount() {\n    this.update();\n  }\n\n  public componentDidUpdate(prevProps: Readonly<Props> & { children?: React.ReactNode }) {\n    if (this.props.children !== prevProps.children) {\n      this.update();\n    }\n  }\n\n  public render() {\n    return null;\n  }\n\n  private update(props: Readonly<Props> & { children?: React.ReactNode } = this.props) {\n    if (props.cesium && props.cesium.entity && props.children) {\n      props.cesium.entity.description = new ConstantProperty(\n        renderToStaticMarkup(props.children as React.ReactElement<any>),\n      );\n    }\n  }\n}\n\nexport default withCesium<{ children?: React.ReactNode }, { entity?: Entity }>(EntityDescription);\n","import createCesiumComponent from \"../core/CesiumComponent\";\nimport Cesium from \"cesium\";\n\n/*\n@summary\n`Fog` can operate the fog of the scene.\nAll properties are applied to single fog of the scene.\n*/\n\n/*\n@scope\nFog is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface FogCesiumProps {\n  density?: number;\n  enabled?: boolean;\n  minimumBrightness?: number;\n  screenSpaceErrorFactor?: number;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface FogProps extends FogCesiumProps {}\n\nexport interface FogContext {\n  scene?: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof FogCesiumProps)[] = [\n  \"density\",\n  \"enabled\",\n  \"minimumBrightness\",\n  \"screenSpaceErrorFactor\",\n];\n\nconst Fog = createCesiumComponent<Cesium.Fog, FogProps, FogContext>({\n  name: \"Fog\",\n  create() {\n    return new Cesium.Fog();\n  },\n  mount(element, context) {\n    if (context.scene) {\n      context.scene.fog = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.scene && !context.scene.isDestroyed()) {\n      context.scene.fog = new Cesium.Fog();\n    }\n  },\n  cesiumProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default Fog;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`GeoJsonDataSource` provides the way to load and show GeoJSON data into the scene.\nBoth GeoJSON and TopoJSON are supported, and can be loaded from a URL, string or raw object.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface GeoJsonDataSourceCesiumProps {\n  clustering?: Cesium.EntityCluster;\n  name?: string;\n}\n\nexport interface GeoJsonDataSourceCesiumEvents {\n  onChange?: (GeoJsonDataSource: Cesium.GeoJsonDataSource) => void;\n  onError?: (GeoJsonDataSource: Cesium.GeoJsonDataSource, error: any) => void;\n  onLoading?: (GeoJsonDataSource: Cesium.GeoJsonDataSource, isLoaded: boolean) => void;\n}\n\nexport interface GeoJsonDataSourceProps\n  extends GeoJsonDataSourceCesiumProps,\n    GeoJsonDataSourceCesiumEvents {\n  // @CesiumReadonlyProp\n  data?: Cesium.Resource | string | object;\n  // @CesiumReadonlyProp\n  clampToGround?: boolean;\n  // @CesiumReadonlyProp\n  sourceUri?: string;\n  // @CesiumProp\n  show?: boolean;\n  // @CesiumReadonlyProp\n  markerSize?: number;\n  // @CesiumReadonlyProp\n  markerSymbol?: string;\n  // @CesiumReadonlyProp\n  markerColor?: Cesium.Color;\n  // @CesiumReadonlyProp\n  stroke?: Cesium.Color;\n  // @CesiumReadonlyProp\n  strokeWidth?: number;\n  // @CesiumReadonlyProp\n  fill?: Cesium.Color;\n  // @CesiumReadonlyProp\n  describe?: (properties: { [key: string]: any }, nameProperty: string) => Cesium.Property | string;\n  // Calls when the Promise for loading data is fullfilled.\n  onLoad?: (GeoJsonDataSouce: Cesium.GeoJsonDataSource) => void;\n}\n\nexport interface GeoJsonDataSourceContext {\n  dataSourceCollection?: Cesium.DataSourceCollection;\n}\n\nconst cesiumProps: (keyof GeoJsonDataSourceCesiumProps)[] = [\"clustering\", \"name\"];\n\nconst cesiumEventProps: EventkeyMap<\n  Cesium.GeoJsonDataSource,\n  keyof GeoJsonDataSourceCesiumEvents\n> = {\n  changedEvent: \"onChange\",\n  errorEvent: \"onError\",\n  loadingEvent: \"onLoading\",\n};\n\nconst load = ({\n  element,\n  data,\n  onLoad,\n  clampToGround,\n  sourceUri,\n  markerSize,\n  markerSymbol,\n  markerColor,\n  stroke,\n  strokeWidth,\n  fill,\n  describe,\n}: {\n  element: Cesium.GeoJsonDataSource;\n  dataSources: Cesium.DataSourceCollection;\n  data: Cesium.Resource | string | object;\n  onLoad?: (GeoJsonDataSource: Cesium.GeoJsonDataSource) => void;\n  clampToGround?: boolean;\n  sourceUri?: string;\n  markerSize?: number;\n  markerSymbol?: string;\n  markerColor?: Cesium.Color;\n  stroke?: Cesium.Color;\n  strokeWidth?: number;\n  fill?: Cesium.Color;\n  describe?: GeoJsonDataSourceProps[\"describe\"];\n}) => {\n  element\n    .load(data, {\n      clampToGround,\n      markerSize,\n      markerSymbol,\n      markerColor,\n      stroke,\n      strokeWidth,\n      fill,\n      sourceUri,\n      describe,\n    } as any)\n    .then(value => {\n      if (onLoad) {\n        onLoad(value);\n      }\n    });\n};\n\nconst GeoJsonDataSource = createCesiumComponent<\n  Cesium.GeoJsonDataSource,\n  GeoJsonDataSourceProps,\n  GeoJsonDataSourceContext\n>({\n  name: \"GeoJsonDataSource\",\n  create(cprops, props) {\n    const ds = new Cesium.GeoJsonDataSource(props.name);\n    if (cprops.clustering) {\n      ds.clustering = cprops.clustering;\n    }\n    if (typeof cprops.show === \"boolean\") {\n      ds.show = cprops.show;\n    }\n    return ds;\n  },\n  mount(element, context, props) {\n    if (context.dataSourceCollection) {\n      context.dataSourceCollection.add(element);\n      if (props.data) {\n        load({\n          element,\n          dataSources: context.dataSourceCollection,\n          data: props.data,\n          onLoad: props.onLoad,\n          clampToGround: props.clampToGround,\n          sourceUri: props.sourceUri,\n          markerSize: props.markerSize,\n          markerSymbol: props.markerSymbol,\n          markerColor: props.markerColor,\n          stroke: props.stroke,\n          strokeWidth: props.strokeWidth,\n          fill: props.fill,\n          describe: props.describe,\n        });\n      }\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (prevProps.show !== props.show || !props.data) {\n      element.show = !!props.data && (typeof props.show === \"boolean\" ? props.show : true);\n    }\n    if (\n      context.dataSourceCollection &&\n      props.data &&\n      (prevProps.data !== props.data ||\n        prevProps.clampToGround !== props.clampToGround ||\n        prevProps.sourceUri !== props.sourceUri ||\n        prevProps.markerSize !== props.markerSize ||\n        prevProps.markerSymbol !== props.markerSymbol ||\n        prevProps.markerColor !== props.markerColor ||\n        prevProps.stroke !== props.stroke ||\n        prevProps.strokeWidth !== props.strokeWidth ||\n        prevProps.fill !== props.fill)\n    ) {\n      load({\n        element,\n        dataSources: context.dataSourceCollection,\n        data: props.data,\n        onLoad: props.onLoad,\n        clampToGround: props.clampToGround,\n        sourceUri: props.sourceUri,\n        markerSize: props.markerSize,\n        markerSymbol: props.markerSymbol,\n        markerColor: props.markerColor,\n        stroke: props.stroke,\n        strokeWidth: props.strokeWidth,\n        fill: props.fill,\n        describe: props.describe,\n      });\n    }\n  },\n  unmount(element, context) {\n    if (context.dataSourceCollection && !context.dataSourceCollection.isDestroyed()) {\n      context.dataSourceCollection.remove(element);\n    }\n  },\n  provide(element) {\n    return {\n      dataSource: element,\n    };\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default GeoJsonDataSource;\n","import createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\nimport Cesium from \"cesium\";\n\n/*\n@summary\n`Globe` can operate the globe of the scene.\nAll properties are applied to single globe of the scene.\n\n**Note**: Following code is not recommended as occur extra rendering steps:\n\n```\n<Viewer>\n  <Scene>\n    <Globe>\n      <Camera>\n        <Entity />\n      </Camera>\n    </Globe>\n  </Scene>\n</Viewer>\n```\n\n`Globe` component's role is just changing fields of `Viewer#scene#globe`, so following code is recommended.\n\n```\n<Viewer>\n  <Scene />\n  <Globe />\n  <Camera />\n  <Entity />\n</Viewer>\n```\n\nFor details, refer to \"Component location\" chapter in [Guide](/guide).\n*/\n\n/*\n@scope\nGlobe is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface GlobeCesiumProps {\n  atmosphereBrightnessShift?: number;\n  atmosphereHueShift?: number;\n  atmosphereSaturationShift?: number;\n  baseColor?: Cesium.Color;\n  // @type Cesium.ClippingPlaneCollection\n  clippingPlanes?: any;\n  depthTestAgainstTerrain?: boolean;\n  enableLighting?: boolean;\n  lightingFadeInDistance?: number;\n  lightingFadeOutDistance?: number;\n  material?: Cesium.Material;\n  maximumScreenSpaceError?: number;\n  nightFadeInDistance?: number;\n  nightFadeOutDistance?: number;\n  oceanNormalMapUrl?: string;\n  shadows?: Cesium.ShadowMode;\n  show?: boolean;\n  showGroundAtmosphere?: boolean;\n  showWaterEffect?: boolean;\n  terrainProvider?: Cesium.TerrainProvider;\n  tileCacheSize?: number;\n}\n\nexport interface GlobeCesiumEvents {\n  onImageryLayersUpdate?: () => void;\n  onTerrainProviderChange?: (terrainProvider: Cesium.TerrainProvider) => void;\n  onTileLoad?: () => void;\n  onTileLoadProgress?: (currentLoadQueueLength: number) => void;\n}\n\nconst cesiumEventProps: EventkeyMap<Cesium.Globe, keyof GlobeCesiumEvents> = {\n  imageryLayersUpdatedEvent: \"onImageryLayersUpdate\",\n  terrainProviderChanged: \"onTerrainProviderChange\",\n  tileLoadedEvent: \"onTileLoad\",\n  tileLoadProgressEvent: \"onTileLoadProgress\",\n};\n\nexport interface GlobeProps extends GlobeCesiumProps, GlobeCesiumEvents {}\n\nexport interface GlobeContext {\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof GlobeCesiumProps)[] = [\n  \"atmosphereBrightnessShift\",\n  \"atmosphereHueShift\",\n  \"atmosphereSaturationShift\",\n  \"baseColor\",\n  \"clippingPlanes\",\n  \"depthTestAgainstTerrain\",\n  \"enableLighting\",\n  \"lightingFadeInDistance\",\n  \"lightingFadeOutDistance\",\n  \"material\",\n  \"maximumScreenSpaceError\",\n  \"nightFadeInDistance\",\n  \"nightFadeOutDistance\",\n  \"oceanNormalMapUrl\",\n  \"shadows\",\n  \"show\",\n  \"showGroundAtmosphere\",\n  \"showWaterEffect\",\n  \"terrainProvider\",\n  \"tileCacheSize\",\n];\n\nconst Globe = createCesiumComponent<Cesium.Globe, GlobeProps, GlobeContext>({\n  name: \"Globe\",\n  create(cprops, props, context) {\n    return context.scene.globe;\n  },\n  cesiumProps,\n  cesiumEventProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default Globe;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport EventManager, { EventProps } from \"../core/EventManager\";\n\n/*\n@summary\n`GroundPrimitive` is a ground primitive in the `PrimitiveCollection`.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer), [CesiumWidget](/components/CesiumWidget), or [GroundPrimitiveCollection](/components/GroundPrimitiveCollection) component.\nIf this component is inside GroundPrimitiveCollection component, a ground primitive object will be attached to the ground primitive collection of the scene.\nOtherwise, a primitive object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface GroundPrimitiveCesiumProps {\n  appearance?: Cesium.Appearance;\n  debugShowBoundingVolume?: boolean;\n  debugShowShadowVolume?: boolean;\n  classificationType?: any; // Cesium.ClassificationType\n  depthFailAppearance?: Cesium.Appearance;\n  show?: boolean;\n}\n\nexport interface GroundPrimitiveCesiumReadonlyProps {\n  allowPicking?: boolean;\n  asynchronous?: boolean;\n  compressVertices?: boolean;\n  geometryInstances?: Cesium.GeometryInstance[] | Cesium.GeometryInstance;\n  interleave?: boolean;\n  releaseGeometryInstances?: boolean;\n  vertexCacheOptimize?: boolean;\n}\n\nexport interface GroundPrimitiveProps\n  extends GroundPrimitiveCesiumProps,\n    GroundPrimitiveCesiumReadonlyProps,\n    EventProps<any> {\n  // Cesium.GroundPrimitive\n  // Calls when [Primitive#readyPromise](https://cesiumjs.org/Cesium/Build/Documentation/GroundPrimitive.html#readyPromise) is fullfilled\n  onReady?: (primitive: any /* Cesium.GroundPrimitive */) => void;\n}\n\nexport interface GroundPrimitiveContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n  __RESIUM_EVENT_MANAGER?: EventManager;\n}\n\nconst cesiumProps: (keyof GroundPrimitiveCesiumProps)[] = [\n  \"appearance\",\n  \"classificationType\",\n  \"debugShowBoundingVolume\",\n  \"debugShowShadowVolume\",\n  \"depthFailAppearance\",\n  \"show\",\n];\n\nconst cesiumReadonlyProps: (keyof GroundPrimitiveCesiumReadonlyProps)[] = [\n  \"allowPicking\",\n  \"asynchronous\",\n  \"compressVertices\",\n  \"geometryInstances\",\n  \"interleave\",\n  \"releaseGeometryInstances\",\n  \"vertexCacheOptimize\",\n];\n\nconst GroundPrimitive = createCesiumComponent<\n  any /* Cesium.GroundPrimitive */,\n  GroundPrimitiveProps,\n  GroundPrimitiveContext\n>({\n  name: \"GroundPrimitive\",\n  create(cprops, props) {\n    const primitive = new (Cesium as any).GroundPrimitive(cprops);\n    if (props.onReady) {\n      primitive.readyPromise.then(props.onReady);\n    }\n    return primitive;\n  },\n  mount(element, context, props) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  unmount(element, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.clearEvents(element);\n    }\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport default GroundPrimitive;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n// @cesiumElement PrimitiveCollection\n\n/*\n@summary\n`GroundPrimitiveCollection` is the collection of ground primitives of the scene.\nAll properties are applied to single ground primitives collection of the scene.\nIt can have some GroundPrimitive components as children.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface GroundPrimitiveCollectionCesiumProps {\n  show?: boolean;\n}\n\nexport interface GroundPrimitiveCollectionProps extends GroundPrimitiveCollectionCesiumProps {\n  children?: React.ReactNode;\n}\n\nexport interface GroundPrimitiveCollectionContext {\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof GroundPrimitiveCollectionCesiumProps)[] = [\"show\"];\n\nconst GroundPrimitiveCollection = createCesiumComponent<\n  Cesium.PrimitiveCollection,\n  GroundPrimitiveCollectionProps,\n  GroundPrimitiveCollectionContext\n>({\n  name: \"GroundPrimitiveCollection\",\n  create(cprops, props, context) {\n    return context.scene.groundPrimitives;\n  },\n  provide(element) {\n    return {\n      primitiveCollection: element,\n    };\n  },\n  cesiumProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default GroundPrimitiveCollection;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`ImageryLayer` is a imargery layer on the globe.\n\nLayers are added in order of JSX from the top.\n\n```jsx\n// Back layer\n<ImageryLayer imageryProvider={provider1} />\n<ImageryLayer imageryProvider={provider2} />\n<ImageryLayer imageryProvider={provider3} />\n// Front layer\n```\n\nis equivalent to:\n\n```js\nviewer.imageryLayers.add(provider1);\nviewer.imageryLayers.add(provider2);\nviewer.imageryLayers.add(provider3);\n```\n\nAs a result, the layer added at the very end is the frontmost when actually displayed.\n\nNote: `imageryProvider` property is read only. See also [guide](/guide#cesium-read-only-properties).\n*/\n\n/*\n@scope\nEither:\n- Inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component: the imargery layer will be attached to the ImageryLayerCollection of the Viewer or CesiumWidget.\n- Inside [ImageryLayerCollection](/components/ImageryLayerCollection) component: same as above\n*/\n\nexport interface ImageryLayerCesiumProps {\n  alpha?:\n    | ((\n        frameState: any /* Cesium.FrameState */,\n        layer: Cesium.ImageryLayer,\n        x: number,\n        y: number,\n        level: number,\n      ) => number)\n    | number;\n  brightness?:\n    | ((\n        frameState: any /* Cesium.FrameState */,\n        layer: Cesium.ImageryLayer,\n        x: number,\n        y: number,\n        level: number,\n      ) => number)\n    | number;\n  contrast?:\n    | ((\n        frameState: any /* Cesium.FrameState */,\n        layer: Cesium.ImageryLayer,\n        x: number,\n        y: number,\n        level: number,\n      ) => number)\n    | number;\n  hue?:\n    | ((\n        frameState: any /* Cesium.FrameState */,\n        layer: Cesium.ImageryLayer,\n        x: number,\n        y: number,\n        level: number,\n      ) => number)\n    | number;\n  saturation?:\n    | ((\n        frameState: any /* Cesium.FrameState */,\n        layer: Cesium.ImageryLayer,\n        x: number,\n        y: number,\n        level: number,\n      ) => number)\n    | number;\n  gamma?:\n    | ((\n        frameState: any /* Cesium.FrameState */,\n        layer: Cesium.ImageryLayer,\n        x: number,\n        y: number,\n        level: number,\n      ) => number)\n    | number;\n  splitDirection?:\n    | ((\n        frameState: any /* Cesium.FrameState */,\n        layer: Cesium.ImageryLayer,\n        x: number,\n        y: number,\n        level: number,\n      ) => any)\n    | any /* Cesium.SplitDirection */;\n  minificationFilter?: any /* Cesium.TextureMinificationFilter */;\n  magnificationFilter?: any /* Cesium.TextureMagnificationFilter */;\n  cutoutRectangle?: Cesium.Rectangle;\n  show?: boolean;\n}\n\nexport interface ImageryLayerCesiumReadonlyProps {\n  imageryProvider: Cesium.ImageryProvider;\n  rectangle?: Cesium.Rectangle;\n  maximumAnisotropy?: number;\n  minimumTerrainLevel?: number;\n  maximumTerrainLevel?: number;\n}\n\nexport interface ImageryLayerProps\n  extends ImageryLayerCesiumProps,\n    ImageryLayerCesiumReadonlyProps {}\n\nexport interface ImageryLayerContext {\n  imageryLayerCollection?: Cesium.ImageryLayerCollection;\n}\n\nconst cesiumProps: (keyof ImageryLayerCesiumProps)[] = [\n  \"alpha\",\n  \"brightness\",\n  \"contrast\",\n  \"hue\",\n  \"saturation\",\n  \"gamma\",\n  \"splitDirection\",\n  \"minificationFilter\",\n  \"magnificationFilter\",\n  \"cutoutRectangle\",\n  \"show\",\n];\n\nconst cesiumReadonlyProps: (keyof ImageryLayerCesiumReadonlyProps)[] = [\n  \"imageryProvider\",\n  \"rectangle\",\n  \"maximumAnisotropy\",\n  \"minimumTerrainLevel\",\n  \"maximumTerrainLevel\",\n];\n\nconst ImageryLayer = createCesiumComponent<\n  Cesium.ImageryLayer,\n  ImageryLayerProps,\n  ImageryLayerContext\n>({\n  name: \"ImageryLayer\",\n  create(cprops) {\n    return new Cesium.ImageryLayer(\n      cprops.imageryProvider,\n      {\n        rectangle: cprops.rectangle,\n        alpha: cprops.alpha,\n        brightness: cprops.brightness,\n        contrast: cprops.contrast,\n        hue: cprops.hue,\n        saturation: cprops.saturation,\n        gamma: cprops.gamma,\n        splitDirection: cprops.splitDirection,\n        minificationFilter: cprops.minificationFilter,\n        magnificationFilter: cprops.magnificationFilter,\n        show: cprops.show,\n        maximumAnisotropy: cprops.maximumAnisotropy,\n        minimumTerrainLevel: cprops.minimumTerrainLevel,\n        maximumTerrainLevel: cprops.maximumTerrainLevel,\n        cutoutRectangle: cprops.cutoutRectangle,\n      } as any /* workaround for splitDirection */,\n    );\n  },\n  mount(element, context) {\n    if (context.imageryLayerCollection) {\n      context.imageryLayerCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.imageryLayerCollection) {\n      context.imageryLayerCollection.remove(element);\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport default ImageryLayer;\n","import Cesium from \"cesium\";\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`ImageryLayerCollection` is a collection of imagery layers of the globe.\nIt can have some `ImageryLayer` components as children.\n*/\n\n/*\n@scope\nAvailable inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nThis component refers to the single ImageryLayerCollection of them, so can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface ImageryLayerCollectionCesiumEvents {\n  onLayerAdd?: (layer: Cesium.ImageryLayer, index: number) => void;\n  onLayerMove?: (layer: Cesium.ImageryLayer, index: number) => void;\n  onLayerRemove?: (layer: Cesium.ImageryLayer, index: number) => void;\n  onLayerShowOrHide?: (layer: Cesium.ImageryLayer, index: number) => void;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface ImageryLayerCollectionProps extends ImageryLayerCollectionCesiumEvents {}\n\nexport interface ImageryLayerCollectionContext {\n  globe: Cesium.Globe;\n}\n\nconst cesiumEventProps: EventkeyMap<\n  Cesium.ImageryLayerCollection,\n  keyof ImageryLayerCollectionCesiumEvents\n> = {\n  layerAdded: \"onLayerAdd\",\n  layerMoved: \"onLayerMove\",\n  layerRemoved: \"onLayerRemove\",\n  layerShownOrHidden: \"onLayerShowOrHide\",\n};\n\nconst ImageryLayerCollection = createCesiumComponent<\n  Cesium.ImageryLayerCollection,\n  ImageryLayerCollectionProps,\n  ImageryLayerCollectionContext\n>({\n  name: \"ImageryLayerCollection\",\n  create(cprops, props, context) {\n    return context.globe.imageryLayers;\n  },\n  cesiumEventProps,\n});\n\nexport default ImageryLayerCollection;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`KmlDataSource` provides the way to load and show KML data into the scene.\nBoth KML and KMZ are supported, and can be loaded from a URL, string or raw object.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface KmlDataSourceCesiumProps {\n  clustering?: Cesium.EntityCluster;\n  name?: string;\n}\n\nexport interface KmlDataSourceCesiumReadonlyProps {\n  camera?: Cesium.Camera;\n  canvas?: HTMLCanvasElement;\n  ellipsoid?: Cesium.Ellipsoid;\n}\n\nexport interface KmlDataSourceCesiumEvents {\n  onChange?: (kmlDataSource: Cesium.KmlDataSource) => void;\n  onError?: (kmlDataSource: Cesium.KmlDataSource, error: any) => void;\n  onLoading?: (kmlDataSource: Cesium.KmlDataSource, isLoaded: boolean) => void;\n  onRefresh?: (kmlDataSource: Cesium.KmlDataSource, urlComponent: string) => void;\n  onUnsupportedNode?: (kmlDataSource: Cesium.KmlDataSource) => void;\n}\n\nexport interface KmlDataSourceProps\n  extends KmlDataSourceCesiumProps,\n    KmlDataSourceCesiumReadonlyProps,\n    KmlDataSourceCesiumEvents {\n  // @CesiumReadonlyProp\n  data?: Cesium.Resource | string | Document | Blob;\n  // @CesiumReadonlyProp\n  clampToGround?: boolean;\n  // @CesiumReadonlyProp\n  sourceUri?: string;\n  // @CesiumProp\n  show?: boolean;\n  // Calls when the Promise for loading data is fullfilled.\n  onLoad?: (kmlDataSouce: Cesium.KmlDataSource) => void;\n}\n\nexport interface KmlDataSourceContext {\n  dataSourceCollection?: Cesium.DataSourceCollection;\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof KmlDataSourceCesiumProps)[] = [\"clustering\", \"name\"];\n\nconst cesiumReadonlyProps: (keyof KmlDataSourceCesiumReadonlyProps)[] = [\n  \"camera\",\n  \"canvas\",\n  \"ellipsoid\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.KmlDataSource, keyof KmlDataSourceCesiumEvents> = {\n  changedEvent: \"onChange\",\n  errorEvent: \"onError\",\n  loadingEvent: \"onLoading\",\n  refreshEvent: \"onRefresh\",\n  unsupportedNodeEvent: \"onUnsupportedNode\",\n};\n\nconst load = ({\n  element,\n  data,\n  onLoad,\n  clampToGround,\n  ellipsoid,\n  sourceUri,\n}: {\n  element: Cesium.KmlDataSource;\n  dataSources: Cesium.DataSourceCollection;\n  data: Cesium.Resource | string | Document | Blob;\n  onLoad?: (kmlDataSource: Cesium.KmlDataSource) => void;\n  clampToGround?: boolean;\n  ellipsoid?: Cesium.Ellipsoid;\n  sourceUri?: string;\n}) => {\n  element.load(data, { clampToGround, ellipsoid, sourceUri }).then(value => {\n    if (onLoad) {\n      onLoad(value);\n    }\n  });\n};\n\nconst KmlDataSource = createCesiumComponent<\n  Cesium.KmlDataSource,\n  KmlDataSourceProps,\n  KmlDataSourceContext\n>({\n  name: \"KmlDataSource\",\n  create(cprops, props, context) {\n    const ds = new Cesium.KmlDataSource({\n      camera: cprops.camera || context.scene.camera,\n      canvas: cprops.canvas || (context.scene.canvas as HTMLCanvasElement),\n      ellipsoid: cprops.ellipsoid,\n    });\n    if (cprops.clustering) {\n      ds.clustering = cprops.clustering;\n    }\n    if (typeof cprops.show === \"boolean\") {\n      ds.show = cprops.show;\n    }\n    if (typeof cprops.name !== \"undefined\") {\n      ds.name = cprops.name;\n    }\n    return ds;\n  },\n  mount(element, context, props) {\n    if (context.dataSourceCollection) {\n      context.dataSourceCollection.add(element);\n      if (props.data) {\n        load({\n          element,\n          dataSources: context.dataSourceCollection,\n          data: props.data,\n          onLoad: props.onLoad,\n          clampToGround: props.clampToGround,\n          ellipsoid: props.ellipsoid,\n          sourceUri: props.sourceUri,\n        });\n      }\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (prevProps.show !== props.show || !props.data) {\n      element.show = !!props.data && (typeof props.show === \"boolean\" ? props.show : true);\n    }\n    if (\n      context.dataSourceCollection &&\n      props.data &&\n      (prevProps.data !== props.data ||\n        prevProps.clampToGround !== props.clampToGround ||\n        prevProps.ellipsoid !== props.ellipsoid ||\n        prevProps.sourceUri !== props.sourceUri)\n    ) {\n      load({\n        element,\n        dataSources: context.dataSourceCollection,\n        data: props.data,\n        onLoad: props.onLoad,\n        clampToGround: props.clampToGround,\n        ellipsoid: props.ellipsoid,\n        sourceUri: props.sourceUri,\n      });\n    }\n  },\n  unmount(element, context) {\n    if (context.dataSourceCollection && !context.dataSourceCollection.isDestroyed()) {\n      context.dataSourceCollection.remove(element);\n    }\n  },\n  provide(element) {\n    return {\n      dataSource: element,\n    };\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n  cesiumEventProps,\n});\n\nexport default KmlDataSource;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport EventManager, { EventProps } from \"../core/EventManager\";\n\n/*\n@summary\n`Lavbel` is a label primitive in the `LabelCollection`.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nOnly inside [LabelCollection](/components/LabelCollection) component.\nA label object will be attached to the parent LabelCollection.\n*/\n\nexport interface LabelCesiumProps {\n  backgroundColor?: Cesium.Color;\n  backgroundPadding?: Cesium.Cartesian2;\n  disableDepthTestDistance?: number;\n  distanceDisplayCondition?: Cesium.DistanceDisplayCondition;\n  eyeOffset?: Cesium.Cartesian3;\n  fillColor?: Cesium.Color;\n  font?: string;\n  heightReference?: Cesium.HeightReference;\n  horizontalOrigin?: Cesium.HorizontalOrigin;\n  id?: any;\n  outlineColor?: Cesium.Color;\n  outlineWidth?: number;\n  pixelOffset?: Cesium.Cartesian2;\n  pixelOffsetScaleByDistance?: Cesium.NearFarScalar;\n  position?: Cesium.Cartesian3;\n  scale?: number;\n  scaleByDistance?: Cesium.NearFarScalar;\n  show?: boolean;\n  showBackground?: boolean;\n  style?: Cesium.LabelStyle;\n  text?: string;\n  translucencyByDistance?: Cesium.NearFarScalar;\n  verticalOrigin?: Cesium.VerticalOrigin;\n}\n\nexport interface LabelProps extends LabelCesiumProps, EventProps<Cesium.Label> {}\n\nexport interface LabelContext {\n  labelCollection: Cesium.LabelCollection;\n  __RESIUM_EVENT_MANAGER?: EventManager;\n}\n\nconst cesiumProps: (keyof LabelCesiumProps)[] = [\n  \"backgroundColor\",\n  \"backgroundPadding\",\n  \"disableDepthTestDistance\",\n  \"distanceDisplayCondition\",\n  \"eyeOffset\",\n  \"fillColor\",\n  \"font\",\n  \"heightReference\",\n  \"horizontalOrigin\",\n  \"id\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"pixelOffset\",\n  \"pixelOffsetScaleByDistance\",\n  \"position\",\n  \"scale\",\n  \"scaleByDistance\",\n  \"show\",\n  \"showBackground\",\n  \"style\",\n  \"text\",\n  \"translucencyByDistance\",\n  \"verticalOrigin\",\n];\n\nconst Label = createCesiumComponent<Cesium.Label, LabelProps, LabelContext>({\n  name: \"Label\",\n  create(cprops, props, context) {\n    return context.labelCollection.add(cprops);\n  },\n  mount(element, context, props) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  unmount(element, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.clearEvents(element);\n    }\n    if (context.labelCollection && !context.labelCollection.isDestroyed()) {\n      context.labelCollection.remove(element);\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  cesiumProps,\n});\n\nexport default Label;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`LabelCollection` is a collection of label primitives.\nIt can have some `Label` components as children.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component.\nA LabelCollection object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface LabelCollectionCesiumProps {\n  blendOption?: Cesium.BlendOption;\n  debugShowBoundingVolume?: boolean;\n  modelMatrix?: Cesium.Matrix4;\n}\n\nexport interface LabelCollectionProps extends LabelCollectionCesiumProps {\n  children?: React.ReactNode;\n}\n\nexport interface LabelCollectionContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof LabelCollectionCesiumProps)[] = [\n  \"blendOption\",\n  \"debugShowBoundingVolume\",\n  \"modelMatrix\",\n];\n\nconst LabelCollection = createCesiumComponent<\n  Cesium.LabelCollection,\n  LabelCollectionProps,\n  LabelCollectionContext\n>({\n  name: \"LabelCollection\",\n  create(cprops, props, context) {\n    return new Cesium.LabelCollection({\n      scene: context.scene,\n      modelMatrix: cprops.modelMatrix,\n      blendOption: cprops.blendOption,\n      debugShowBoundingVolume: cprops.debugShowBoundingVolume,\n    } as any);\n  },\n  mount(element, context) {\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  provide(element) {\n    return {\n      labelCollection: element,\n    };\n  },\n  cesiumProps,\n});\n\nexport default LabelCollection;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`LabelGraphics` is a label visualization for the entity.\n*/\n\n/*\n@scope\nLabelGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface LabelGraphicsCesiumProps {\n  text?: Cesium.Property | string;\n  font?: Cesium.Property | string;\n  style?: Cesium.Property | Cesium.LabelStyle;\n  fillColor?: Cesium.Property | Cesium.Color;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  show?: Cesium.Property | boolean;\n  showBackground?: Cesium.Property | boolean;\n  backgroundColor?: Cesium.Property | Cesium.Color;\n  backgroundPadding?: Cesium.Property | number;\n  scale?: Cesium.Property | number;\n  horizontalOrigin?: Cesium.Property | Cesium.HorizontalOrigin;\n  verticalOrigin?: Cesium.Property | Cesium.VerticalOrigin;\n  eyeOffset?: Cesium.Property | Cesium.Cartesian3;\n  pixelOffset?: Cesium.Property | Cesium.Cartesian2;\n  translucencyByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  pixelOffsetScaleByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  scaleByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  disableDepthTestDistance?: Cesium.Property | number;\n}\n\nexport interface LabelGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface LabelGraphicsProps extends LabelGraphicsCesiumProps, LabelGraphicsCesiumEvents {}\n\nexport interface LabelGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof LabelGraphicsCesiumProps)[] = [\n  \"text\",\n  \"font\",\n  \"style\",\n  \"fillColor\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"show\",\n  \"showBackground\",\n  \"backgroundColor\",\n  \"backgroundPadding\",\n  \"scale\",\n  \"horizontalOrigin\",\n  \"verticalOrigin\",\n  \"eyeOffset\",\n  \"pixelOffset\",\n  \"translucencyByDistance\",\n  \"pixelOffsetScaleByDistance\",\n  \"scaleByDistance\",\n  \"heightReference\",\n  \"distanceDisplayCondition\",\n  \"disableDepthTestDistance\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.LabelGraphics, keyof LabelGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst LabelGraphics = createCesiumComponent<\n  Cesium.LabelGraphics,\n  LabelGraphicsProps,\n  LabelGraphicsContext\n>({\n  name: \"LabelGraphics\",\n  create(cprops) {\n    return new Cesium.LabelGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.label = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.label = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default LabelGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumElement from \"../core/CesiumComponent\";\n\nexport interface ModelCesiumProps {\n  basePath?: Cesium.Resource | string;\n  show?: boolean;\n  modelMatrix?: Cesium.Matrix4;\n  scale?: number;\n  minimumPixelSize?: number;\n  maximumScale?: number;\n  id?: any;\n  clampAnimations?: boolean;\n  shadows?: Cesium.ShadowMode;\n  debugShowBoundingVolume?: boolean;\n  debugWireframe?: boolean;\n  scene?: Cesium.Scene;\n  distanceDisplayCondition?: Cesium.DistanceDisplayCondition;\n  color?: Cesium.Color;\n  // @type Cesium.ColorBlendMode\n  colorBlendMode?: any;\n  colorBlendAmount?: number;\n  silhouetteColor?: Cesium.Color;\n  silhouetteSize?: number;\n  // @type Cesium.ClippingPlaneCollection\n  clippingPlanes?: any;\n  dequantizeInShader?: boolean;\n  imageBasedLightingFactor?: Cesium.Cartesian2;\n  lightColor?: Cesium.Cartesian3;\n  luminanceAtZenith?: number;\n  sphericalHarmonicCoefficients?: Cesium.Cartesian3[];\n  specularEnvironmentMaps?: string;\n}\n\nexport interface ModelCesiumReadonlyProps {\n  allowPicking?: boolean;\n  asynchronous?: boolean;\n  gltf?: object | ArrayBuffer | Uint8Array;\n  incrementallyLoadTextures?: boolean;\n  url?: Cesium.Resource | string;\n}\n\nexport interface ModelProps extends ModelCesiumProps, ModelCesiumReadonlyProps {\n  // Calls when the model is completely loaded.\n  onReady?: (model: Cesium.Model) => void;\n}\n\nexport interface ModelContext {\n  primitiveCollection: Cesium.PrimitiveCollection;\n}\n\nconst cesiumProps: (keyof ModelCesiumProps)[] = [\n  \"basePath\",\n  \"clampAnimations\",\n  \"clippingPlanes\",\n  \"color\",\n  \"colorBlendAmount\",\n  \"colorBlendMode\",\n  \"debugShowBoundingVolume\",\n  \"debugWireframe\",\n  \"dequantizeInShader\",\n  \"distanceDisplayCondition\",\n  \"id\",\n  \"imageBasedLightingFactor\",\n  \"lightColor\",\n  \"maximumScale\",\n  \"minimumPixelSize\",\n  \"modelMatrix\",\n  \"scale\",\n  \"scene\",\n  \"shadows\",\n  \"show\",\n  \"silhouetteColor\",\n  \"silhouetteSize\",\n  \"luminanceAtZenith\",\n  \"sphericalHarmonicCoefficients\",\n  \"specularEnvironmentMaps\",\n];\n\nconst cesiumReadonlyProps: (keyof ModelCesiumReadonlyProps)[] = [\n  \"allowPicking\",\n  \"asynchronous\",\n  \"gltf\",\n  \"incrementallyLoadTextures\",\n  \"url\",\n];\n\nconst Model = createCesiumElement<Cesium.Model, ModelProps, ModelContext>({\n  name: \"Model\",\n  create(cprops, props) {\n    // Workaround: basePath?: Cesium.Resource | string;\n    const model = props.url\n      ? Cesium.Model.fromGltf(cprops as any)\n      : new Cesium.Model(cprops as any);\n\n    if (props.onReady) {\n      model.readyPromise.then(props.onReady);\n    }\n\n    return model;\n  },\n  mount(element, context) {\n    context.primitiveCollection.add(element);\n  },\n  unmount(element, context) {\n    context.primitiveCollection.remove(element);\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport default Model;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`ModelGraphics` is a 3D model visualization for the entity.\n*/\n\n/*\n@scope\nModelGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface ModelGraphicsCesiumProps {\n  uri?: Cesium.Property | string;\n  show?: Cesium.Property | boolean;\n  scale?: Cesium.Property | number;\n  minimumPixelSize?: Cesium.Property | number;\n  maximumScale?: Cesium.Property | number;\n  incrementallyLoadTextures?: Cesium.Property | boolean;\n  runAnimations?: Cesium.Property | boolean;\n  clampAnimations?: Cesium.Property | boolean;\n  // @type Cesium.Property | { [name: string]: Cesium.TranslationRotationScale }\n  nodeTransformations?: Cesium.Property;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  silhouetteColor?: Cesium.Property | Cesium.Color;\n  silhouetteSize?: Cesium.Property | number;\n  color?: Cesium.Property | Cesium.Color;\n  // @type Cesium.Property | Cesium.ColorBlendMode\n  colorBlendMode?: Cesium.Property | any;\n  colorBlendAmount?: Cesium.Property | number;\n  // @type Cesium.Propert | Cesium.ClippingPlaneCollection\n  clippingPlanes?: Cesium.Property | any;\n  imageBasedLightingFactor?: Cesium.Property | Cesium.Cartesian2;\n  lightColor?: Cesium.Property | Cesium.Color;\n}\n\nexport interface ModelGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface ModelGraphicsProps extends ModelGraphicsCesiumProps, ModelGraphicsCesiumEvents {}\n\nexport interface ModelGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof ModelGraphicsCesiumProps)[] = [\n  \"uri\",\n  \"show\",\n  \"scale\",\n  \"minimumPixelSize\",\n  \"maximumScale\",\n  \"incrementallyLoadTextures\",\n  \"runAnimations\",\n  \"clampAnimations\",\n  \"nodeTransformations\",\n  \"shadows\",\n  \"heightReference\",\n  \"distanceDisplayCondition\",\n  \"silhouetteColor\",\n  \"silhouetteSize\",\n  \"color\",\n  \"colorBlendMode\",\n  \"colorBlendAmount\",\n  \"clippingPlanes\",\n  \"imageBasedLightingFactor\",\n  \"lightColor\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.ModelGraphics, keyof ModelGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst ModelGraphics = createCesiumComponent<\n  Cesium.ModelGraphics,\n  ModelGraphicsProps,\n  ModelGraphicsContext\n>({\n  name: \"ModelGraphics\",\n  create(cprops) {\n    return new Cesium.ModelGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.model = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.model = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default ModelGraphics;\n","import Cesium from \"cesium\";\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`Moon` can operate the moon of the scene.\nAll properties are applied to single moon of the scene.\n*/\n\n/*\n@scope\nMoon is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface MoonCesiumProps {\n  onlySunLighting?: boolean;\n  show?: boolean;\n  textureUrl?: string;\n}\n\nexport interface MoonCesiumReadonlyProps {\n  ellipsoid?: Cesium.Ellipsoid;\n}\n\nexport interface MoonProps extends MoonCesiumProps, MoonCesiumReadonlyProps {}\n\nexport interface MoonContext {\n  scene?: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof MoonCesiumProps)[] = [\"onlySunLighting\", \"show\", \"textureUrl\"];\n\nconst cesiumReadonlyProps: (keyof MoonCesiumReadonlyProps)[] = [\"ellipsoid\"];\n\nconst Moon = createCesiumComponent<Cesium.Moon, MoonProps, MoonContext>({\n  name: \"Moon\",\n  create(cprops) {\n    return new Cesium.Moon(cprops);\n  },\n  mount(element, context) {\n    if (context.scene) {\n      context.scene.moon = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.scene && !context.scene.isDestroyed()) {\n      context.scene.moon = new Cesium.Moon();\n    }\n    // if (!element.isDestroyed()) {\n    //   element.destroy();\n    // }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport default Moon;\n","import Cesium from \"cesium\";\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`ParticleSystem` is 3D particles.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component.\nA ParticleSystem object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface ParticleSystemCesiumProps {\n  show?: boolean;\n  // @type Cesium.ParticleEmitter\n  emitter?: any;\n  modelMatrix?: Cesium.Matrix4;\n  emitterModelMatrix?: Cesium.Matrix4;\n  emissionRate?: number;\n  // @type Cesium.ParticleBurst[]\n  bursts?: any[];\n  loop?: boolean;\n  scale?: number;\n  startScale?: number;\n  endScale?: number;\n  color?: Cesium.Color;\n  startColor?: Cesium.Color;\n  endColor?: Cesium.Color;\n  image?: string | ImageData | HTMLImageElement | HTMLCanvasElement;\n  imageSize?: Cesium.Cartesian2;\n  minimumImageSize?: Cesium.Cartesian2;\n  maximumImageSize?: Cesium.Cartesian2;\n  speed?: number;\n  minimumSpeed?: number;\n  maximumSpeed?: number;\n  lifetime?: number;\n  particleLife?: number;\n  minimumParticleLife?: number;\n  maximumParticleLife?: number;\n  mass?: number;\n  minimumMass?: number;\n  maximumMass?: number;\n}\n\nexport interface ParticleSystemCesiumEvents {\n  onComplete?: () => void;\n}\n\nexport interface ParticleSystemProps extends ParticleSystemCesiumProps, ParticleSystemCesiumEvents {\n  // @CesiumEvent\n  // Correspond to [ParticleSystem#updateCallback](https://cesiumjs.org/Cesium/Build/Documentation/ParticleSystem.html#updateCallback)\n  onUpdate?: (particle: any /* Cesium.Particle */, dt: number) => void;\n}\n\nexport interface ParticleSystemContext {\n  primitiveCollection: Cesium.PrimitiveCollection;\n}\n\nconst cesiumProps: (keyof ParticleSystemCesiumProps)[] = [\n  \"show\",\n  \"emitter\",\n  \"modelMatrix\",\n  \"emitterModelMatrix\",\n  \"emissionRate\",\n  \"bursts\",\n  \"loop\",\n  \"scale\",\n  \"startScale\",\n  \"endScale\",\n  \"color\",\n  \"startColor\",\n  \"endColor\",\n  \"image\",\n  \"imageSize\",\n  \"minimumImageSize\",\n  \"maximumImageSize\",\n  \"speed\",\n  \"minimumSpeed\",\n  \"maximumSpeed\",\n  \"lifetime\",\n  \"particleLife\",\n  \"minimumParticleLife\",\n  \"maximumParticleLife\",\n  \"mass\",\n  \"minimumMass\",\n  \"maximumMass\",\n];\n\nconst cesiumEventProps: EventkeyMap<any, keyof ParticleSystemCesiumEvents> = {\n  complete: \"onComplete\",\n};\n\nconst ParticleSystem = createCesiumComponent<\n  any,\n  ParticleSystemProps,\n  ParticleSystemContext /* Cesium.ParticleSystem */\n>({\n  name: \"ParticleSystem\",\n  create(cprops, props) {\n    return new (Cesium as any).ParticleSystem({ ...cprops, updateCallback: props.onUpdate });\n  },\n  update(element, props, prevProps) {\n    if (props.onUpdate !== prevProps.onUpdate) {\n      element.updateCallback = props.onUpdate;\n    }\n  },\n  mount(element, context) {\n    context.primitiveCollection.add(element);\n  },\n  unmount(element, context) {\n    if (!context.primitiveCollection.isDestroyed) {\n      context.primitiveCollection.remove(element);\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default ParticleSystem;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PathGraphics` is a path visualization for the entity.\n*/\n\n/*\n@scope\nPathGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface PathGraphicsCesiumProps {\n  leadTime?: Cesium.Property | number;\n  trailTime?: Cesium.Property | number;\n  show?: Cesium.Property | boolean;\n  width?: Cesium.Property | number;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  resolution?: Cesium.Property | number;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n}\n\nexport interface PathGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface PathGraphicsProps extends PathGraphicsCesiumProps, PathGraphicsCesiumEvents {}\n\nexport interface PathGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof PathGraphicsCesiumProps)[] = [\n  \"leadTime\",\n  \"trailTime\",\n  \"show\",\n  \"width\",\n  \"material\",\n  \"resolution\",\n  \"distanceDisplayCondition\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.PathGraphics, keyof PathGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst PathGraphics = createCesiumComponent<\n  Cesium.PathGraphics,\n  PathGraphicsProps,\n  PathGraphicsContext\n>({\n  name: \"PathGraphics\",\n  create(cprops) {\n    return new Cesium.PathGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.path = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.path = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default PathGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PlaneGraphics` is a plane visualization for the entity.\n*/\n\n/*\n@scope\nPlaneGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface PlaneGraphicsCesiumProps {\n  plane?: Cesium.Property | any;\n  dimensions?: Cesium.Property | Cesium.Cartesian2;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n}\n\nexport interface PlaneGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface PlaneGraphicsProps extends PlaneGraphicsCesiumProps, PlaneGraphicsCesiumEvents {}\n\nexport interface PlaneGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof PlaneGraphicsCesiumProps)[] = [\n  \"plane\",\n  \"dimensions\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n];\n\n// Cesium.PlaneGraphics\nconst cesiumEventProps: EventkeyMap<any, keyof PlaneGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst PlaneGraphics = createCesiumComponent<\n  any, // Cesium.PlaneGraphics\n  PlaneGraphicsProps,\n  PlaneGraphicsContext\n>({\n  name: \"PlaneGraphics\",\n  create(cprops) {\n    return new (Cesium as any).PlaneGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.plane = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.plane = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default PlaneGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PointGraphics` is a point visualization for the entity.\n*/\n\n/*\n@scope\nPointGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface PointGraphicsCesiumProps {\n  color?: Cesium.Property | Cesium.Color;\n  pixelSize?: Cesium.Property | number;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  show?: Cesium.Property | boolean;\n  scaleByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  translucencyByDistance?: Cesium.Property | Cesium.NearFarScalar;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  disableDepthTestDistance?: Cesium.Property | number;\n}\n\nexport interface PointGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface PointGraphicsProps extends PointGraphicsCesiumProps, PointGraphicsCesiumEvents {}\n\nexport interface PointGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof PointGraphicsCesiumProps)[] = [\n  \"color\",\n  \"pixelSize\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"show\",\n  \"scaleByDistance\",\n  \"translucencyByDistance\",\n  \"heightReference\",\n  \"distanceDisplayCondition\",\n  \"disableDepthTestDistance\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.PointGraphics, keyof PointGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst PointGraphics = createCesiumComponent<\n  Cesium.PointGraphics,\n  PointGraphicsProps,\n  PointGraphicsContext\n>({\n  name: \"PointGraphics\",\n  create(cprops) {\n    return new Cesium.PointGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.point = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.point = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default PointGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport EventManager, { EventProps } from \"../core/EventManager\";\n\n/*\n@summary\n`PointPrimitive` is a point primitive in the `PointPrimitiveCollection`.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nOnly inside [PointPrimitiveCollection](/components/PointPrimitiveCollection) component.\nA point object will be attached to the parent PointPrimitiveCollection.\n*/\n\nexport interface PointPrimitiveCesiumProps {\n  color?: Cesium.Color;\n  disableDepthTestDistance?: number;\n  distanceDisplayCondition?: Cesium.DistanceDisplayCondition;\n  id?: any;\n  outlineColor?: Cesium.Color;\n  outlineWidth?: number;\n  pixelSize?: number;\n  position?: Cesium.Cartesian3;\n  scaleByDistance?: Cesium.NearFarScalar;\n  show?: boolean;\n  translucencyByDistance?: Cesium.NearFarScalar;\n}\n\nexport interface PointPrimitiveProps\n  extends PointPrimitiveCesiumProps,\n    EventProps<Cesium.PointPrimitive> {}\n\nexport interface PointPrimitiveContext {\n  pointPrimitiveCollection: Cesium.PointPrimitiveCollection;\n  __RESIUM_EVENT_MANAGER?: EventManager;\n}\n\nconst cesiumProps: (keyof PointPrimitiveCesiumProps)[] = [\n  \"color\",\n  \"disableDepthTestDistance\",\n  \"distanceDisplayCondition\",\n  \"id\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"pixelSize\",\n  \"position\",\n  \"scaleByDistance\",\n  \"show\",\n  \"translucencyByDistance\",\n];\n\nconst PointPrimitive = createCesiumComponent<\n  Cesium.PointPrimitive,\n  PointPrimitiveProps,\n  PointPrimitiveContext\n>({\n  name: \"PointPrimitive\",\n  create(cprops, props, context) {\n    return context.pointPrimitiveCollection.add(cprops);\n  },\n  mount(element, context, props) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  unmount(element, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.clearEvents(element);\n    }\n    if (context.pointPrimitiveCollection && !context.pointPrimitiveCollection.isDestroyed()) {\n      context.pointPrimitiveCollection.remove(element);\n    }\n  },\n  cesiumProps,\n});\n\nexport default PointPrimitive;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PointPrimitiveCollection` is a collection of point primitives.\nIt can have some `PointPrimitive` components as children.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component.\nA PointPrimitiveCollection object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface PointPrimitiveCollectionCesiumProps {\n  blendOption?: Cesium.BlendOption;\n  debugShowBoundingVolume?: boolean;\n  modelMatrix?: Cesium.Matrix4;\n}\n\nexport interface PointPrimitiveCollectionProps extends PointPrimitiveCollectionCesiumProps {\n  children?: React.ReactNode;\n}\n\nexport interface PointPrimitiveCollectionContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n}\n\nconst cesiumProps: (keyof PointPrimitiveCollectionCesiumProps)[] = [\n  \"blendOption\",\n  \"debugShowBoundingVolume\",\n  \"modelMatrix\",\n];\n\nconst PointPrimitiveCollection = createCesiumComponent<\n  Cesium.PointPrimitiveCollection,\n  PointPrimitiveCollectionProps,\n  PointPrimitiveCollectionContext\n>({\n  name: \"PointPrimitveCollection\",\n  create(cprops) {\n    return new Cesium.PointPrimitiveCollection(cprops);\n  },\n  mount(element, context) {\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  provide(element) {\n    return {\n      pointPrimitiveCollection: element,\n    };\n  },\n  cesiumProps,\n});\n\nexport default PointPrimitiveCollection;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PolygonGraphics` is a polygon visualization for the entity.\n*/\n\n/*\n@scope\nPolygonGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface PolygonGraphicsCesiumProps {\n  hierarchy?: Cesium.Property | Cesium.PolygonHierarchy | Cesium.Cartesian3[];\n  height?: Cesium.Property | number;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  extrudedHeight?: Cesium.Property | number;\n  extrudedHeightReference?: Cesium.Property | Cesium.HeightReference;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  stRotation?: Cesium.Property | number;\n  granularity?: Cesium.Property | number;\n  perPositionHeight?: Cesium.Property | boolean;\n  closeTop?: boolean;\n  closeBottom?: boolean;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  zIndex?: Cesium.Property | number;\n  // @type Cesium.Property | Cesium.ClassificationType\n  classificationType?: Cesium.Property | any;\n}\n\nexport interface PolygonGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface PolygonGraphicsProps\n  extends PolygonGraphicsCesiumProps,\n    PolygonGraphicsCesiumEvents {}\n\nexport interface PolygonGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof PolygonGraphicsCesiumProps)[] = [\n  \"hierarchy\",\n  \"height\",\n  \"heightReference\",\n  \"extrudedHeight\",\n  \"extrudedHeightReference\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"stRotation\",\n  \"granularity\",\n  \"perPositionHeight\",\n  \"closeTop\",\n  \"closeBottom\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n  \"zIndex\",\n  \"classificationType\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.PolygonGraphics, keyof PolygonGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst PolygonGraphics = createCesiumComponent<\n  Cesium.PolygonGraphics,\n  PolygonGraphicsProps,\n  PolygonGraphicsContext\n>({\n  name: \"PolygonGraphics\",\n  create(cprops) {\n    const pg = new Cesium.PolygonGraphics(cprops as any);\n    if (cprops.classificationType) {\n      (pg as any).classificationType = cprops.classificationType;\n    }\n    return pg;\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.polygon = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.polygon = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default PolygonGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport EventManager, { EventProps } from \"../core/EventManager\";\n\n/*\n@summary\n`Polyline` is a polyline primitive in the `PolylineCollection`.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nOnly inside [PolylineCollection](/components/PolylineCollection) component.\nA polyline object will be attached to the parent PolylineCollection.\n*/\n\nexport interface PolylineCesiumProps {\n  distanceDisplayCondition?: Cesium.DistanceDisplayCondition;\n  id?: any;\n  loop?: boolean;\n  material?: Cesium.Material;\n  positions?: Cesium.Cartesian3[];\n  show?: boolean;\n  width?: number;\n}\n\nexport interface PolylineProps extends PolylineCesiumProps, EventProps<Cesium.Polyline> {}\n\nexport interface PolylineContext {\n  polylineCollection: Cesium.PolylineCollection;\n  __RESIUM_EVENT_MANAGER?: EventManager;\n}\n\nconst cesiumProps: (keyof PolylineCesiumProps)[] = [\n  \"distanceDisplayCondition\",\n  \"id\",\n  \"loop\",\n  \"material\",\n  \"positions\",\n  \"show\",\n  \"width\",\n];\n\nconst Polyline = createCesiumComponent<Cesium.Polyline, PolylineProps, PolylineContext>({\n  name: \"Polyline\",\n  create(cprops, props, context) {\n    return context.polylineCollection.add(cprops);\n  },\n  mount(element, context, props) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  unmount(element, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.clearEvents(element);\n    }\n    if (context.polylineCollection && !context.polylineCollection.isDestroyed()) {\n      context.polylineCollection.remove(element);\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  cesiumProps,\n});\n\nexport default Polyline;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PolylineCollection` is a collection of polyline primitives.\nIt can have some `Polyline` components as children.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component.\nA PolylineCollection object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface PolylineCollectionCesiumProps {\n  debugShowBoundingVolume?: boolean;\n  length?: number;\n  modelMatrix?: Cesium.Matrix4;\n}\n\nexport interface PolylineCollectionProps extends PolylineCollectionCesiumProps {\n  children?: React.ReactNode;\n}\n\nexport interface PolylineCollectionContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof PolylineCollectionCesiumProps)[] = [\n  \"debugShowBoundingVolume\",\n  \"length\",\n  \"modelMatrix\",\n];\n\nconst PolylineCollection = createCesiumComponent<\n  Cesium.PolylineCollection,\n  PolylineCollectionProps,\n  PolylineCollectionContext\n>({\n  name: \"PolylineCollection\",\n  create(cprops, props, context) {\n    return new Cesium.PolylineCollection({\n      modelMatrix: cprops.modelMatrix,\n      debugShowBoundingVolume: cprops.debugShowBoundingVolume,\n      length: cprops.length,\n      scene: context.scene,\n    } as any);\n  },\n  mount(element, context) {\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  provide(element) {\n    return {\n      polylineCollection: element,\n    };\n  },\n  cesiumProps,\n});\n\nexport default PolylineCollection;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PolylineGraphics` is a polyline visualization for the entity.\n*/\n\n/*\n@scope\nPolylineGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface PolylineGraphicsCesiumProps {\n  positions?: Cesium.Property | Cesium.Cartesian3[];\n  followSurface?: Cesium.Property | boolean;\n  clampToGround?: Cesium.Property | boolean;\n  width?: Cesium.Property | number;\n  show?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  depthFailMaterial?: Cesium.MaterialProperty | Cesium.Color | string;\n  granularity?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  zIndex?: Cesium.Property | number;\n}\n\nexport interface PolylineGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface PolylineGraphicsProps\n  extends PolylineGraphicsCesiumProps,\n    PolylineGraphicsCesiumEvents {}\n\nexport interface PolylineGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof PolylineGraphicsCesiumProps)[] = [\n  \"positions\",\n  \"followSurface\",\n  \"clampToGround\",\n  \"width\",\n  \"show\",\n  \"material\",\n  \"depthFailMaterial\",\n  \"granularity\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n  \"zIndex\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.PolylineGraphics, keyof PolylineGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst PolylineGraphics = createCesiumComponent<\n  Cesium.PolylineGraphics,\n  PolylineGraphicsProps,\n  PolylineGraphicsContext\n>({\n  name: \"PolylineGraphics\",\n  create(cprops) {\n    return new Cesium.PolylineGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.polyline = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.polyline = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default PolylineGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PolylineVolumeGraphics` is a polyline visualization with volume for the entity.\n*/\n\n/*\n@scope\nPolylineVolumeGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface PolylineVolumeGraphicsCesiumProps {\n  positions?: Cesium.Property | Cesium.Cartesian3[];\n  shape?: Cesium.Property | Cesium.Cartesian2[];\n  cornerType?: Cesium.Property | Cesium.CornerType;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  granularity?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n}\n\nexport interface PolylineVolumeGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface PolylineVolumeGraphicsProps\n  extends PolylineVolumeGraphicsCesiumProps,\n    PolylineVolumeGraphicsCesiumEvents {}\n\nexport interface PolylineVolumeGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof PolylineVolumeGraphicsCesiumProps)[] = [\n  \"positions\",\n  \"shape\",\n  \"cornerType\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"granularity\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n];\n\nconst cesiumEventProps: EventkeyMap<\n  Cesium.PolylineVolumeGraphics,\n  keyof PolylineVolumeGraphicsCesiumEvents\n> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst PolylineVolumeGraphics = createCesiumComponent<\n  Cesium.PolylineVolumeGraphics,\n  PolylineVolumeGraphicsProps,\n  PolylineVolumeGraphicsContext\n>({\n  name: \"PolylineVolumeGraphics\",\n  create(cprops) {\n    return new Cesium.PolylineVolumeGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.polylineVolume = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.polylineVolume = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default PolylineVolumeGraphics;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"./CesiumComponent\";\n\nexport interface PostProcessStageCesiumProps {\n  enabled?: boolean;\n  selected?: any[];\n}\n\nexport interface PostProcessStageContext {\n  scene: Cesium.Scene;\n}\n\nexport interface PostProcessStage {\n  enabled: boolean;\n  uniforms: any;\n  isDestroyed(): boolean;\n  destroy(): void;\n}\n\nconst cesiumProps: (keyof PostProcessStageCesiumProps)[] = [\"enabled\", \"selected\"];\n\nexport const createPostProcessStage = <UniformProps, E extends PostProcessStage = any>(opts: {\n  name: string;\n  props: (keyof UniformProps)[];\n  readonlyProps?: (keyof UniformProps)[];\n  noMount?: boolean;\n  create(\n    props: Readonly<UniformProps & PostProcessStageCesiumProps>,\n    postProcessStages: any /* Cesium.PostProcessStageCollection */,\n  ): any;\n}) =>\n  createCesiumComponent<\n    E,\n    PostProcessStageCesiumProps & UniformProps & { stages?: any[] },\n    PostProcessStageContext\n  >({\n    name: opts.name,\n    create(cprops, props, context) {\n      const ps = opts.create(cprops, (context.scene as any).postProcessStages);\n      if (typeof cprops.enabled === \"boolean\") {\n        ps.enabled = cprops.enabled;\n      }\n      if (cprops.selected) {\n        ps.selected = cprops.selected;\n      }\n      opts.props.forEach(k => {\n        if (\n          (!opts.readonlyProps || !opts.readonlyProps.includes(k)) &&\n          typeof props[k] !== \"undefined\"\n        ) {\n          ps.uniforms[k] = props[k];\n        }\n      });\n      return ps;\n    },\n    mount(element, context) {\n      if (!opts.noMount && context.scene && !context.scene.isDestroyed()) {\n        (context.scene as any).postProcessStages.add(element);\n      }\n    },\n    unmount(element, context) {\n      if (!opts.noMount) {\n        if (context.scene && !context.scene.isDestroyed()) {\n          (context.scene as any).postProcessStages.remove(element);\n        }\n        if (!element.isDestroyed()) {\n          element.destroy();\n        }\n      } else {\n        element.enabled = false;\n      }\n    },\n    update(element, props, prevProps) {\n      opts.props.forEach(k => {\n        if ((!opts.readonlyProps || !opts.readonlyProps.includes(k)) && props[k] !== prevProps[k]) {\n          element.uniforms[k] = props[k];\n        }\n      });\n    },\n    cesiumProps,\n    cesiumReadonlyProps: opts.readonlyProps,\n    defaultProps: {\n      enabled: true,\n    } as any,\n  });\n\nexport default createPostProcessStage;\n","import Cesium from \"cesium\";\n\nimport { createPostProcessStage } from \"../core/PostProcessStage\";\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`PostProcessStage` can add a post processing stage to the scene.\n\nBult-in PostProcessStage components are available with additional Cesium properties:\n\n| Component | Property | Type |\n|---|---|---|\n| BlackAndWhiteStage | gradations | number |\n| | delta | number |\n| | sigma | number |\n| | stepSize | number |\n| BrightnessStage | brightness | number |\n| LensFlareStage | dirtTexture | any |\n| | starTexture | any |\n| | intensity | number |\n| | distortion | number |\n| | ghostDispersal | number |\n| | haloWidth | number |\n| | earthRadius | number |\n| | dirtTexture | number |\n| | dirtTexture | number |\n| Fxaa | - | - |\n\nNote: `Fxaa` component can not be used multi time, as it refers to the single post process stage of the scene.\n\nThey can be imported and used normally:\n\n```jsx\nimport { LensFlareStage } from \"resium\";\n\n<Viewer>\n  <LensFlareStage intensity={5} />\n</Viewer>\n```\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface PostProcessStageCesiumProps {\n  enabled?: boolean;\n  selected?: any[];\n}\n\nexport interface PostProcessStageCesiumReadonlyProps {\n  fragmentShader: string;\n  uniforms?: any;\n  textureScale?: number;\n  forcePowerOfTwo?: boolean;\n  // @type Cesium.PostProcessStageSampleMode\n  sampleMode?: any;\n  pixelFormat?: Cesium.PixelFormat;\n  // @type Cesium.PixelDatatype\n  pixelDatatype?: any;\n  clearColor?: Cesium.Color;\n  scissorRectangle?: Cesium.BoundingRectangle;\n  name?: string;\n}\n\nexport interface PostProcessStageProps\n  extends PostProcessStageCesiumProps,\n    PostProcessStageCesiumReadonlyProps {}\n\nexport interface PostProcessStageContext {\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof PostProcessStageCesiumProps)[] = [\"enabled\", \"selected\"];\n\nconst cesiumReadonlyProps: (keyof PostProcessStageCesiumReadonlyProps)[] = [\n  \"clearColor\",\n  \"forcePowerOfTwo\",\n  \"fragmentShader\",\n  \"name\",\n  \"pixelDatatype\",\n  \"pixelFormat\",\n  \"sampleMode\",\n  \"scissorRectangle\",\n  \"textureScale\",\n  \"uniforms\",\n];\n\nexport const PostProcessStage = createCesiumComponent<\n  any /* PostProcessStage */,\n  PostProcessStageProps,\n  PostProcessStageContext\n>({\n  name: \"PostProcessStage\",\n  create(cprops) {\n    const ps = new (Cesium as any).PostProcessStage(cprops);\n    if (typeof cprops.enabled === \"boolean\") {\n      ps.enabled = cprops.enabled;\n    }\n    if (cprops.selected) {\n      ps.selected = cprops.selected;\n    }\n    return ps;\n  },\n  mount(element, context) {\n    if (context.scene && !context.scene.isDestroyed()) {\n      (context.scene as any).postProcessStages.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.scene && !context.scene.isDestroyed()) {\n      (context.scene as any).postProcessStages.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport const BlackAndWhiteStage = createPostProcessStage<{\n  gradations?: number;\n}>({\n  name: \"BlackAndWhiteStage\",\n  props: [\"gradations\"],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createBlackAndWhiteStage();\n  },\n});\n\nexport const BrightnessStage = createPostProcessStage<{\n  brightness?: number;\n}>({\n  name: \"BrightnessStage\",\n  props: [\"brightness\"],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createBrightnessStage();\n  },\n});\n\nexport const LensFlareStage = createPostProcessStage<{\n  dirtTexture?: any;\n  starTexture?: any;\n  intensity?: number;\n  distortion?: number;\n  ghostDispersal?: number;\n  haloWidth?: number;\n  earthRadius?: number;\n}>({\n  name: \"LensFlareStage\",\n  props: [\n    \"dirtTexture\",\n    \"starTexture\",\n    \"intensity\",\n    \"distortion\",\n    \"ghostDispersal\",\n    \"haloWidth\",\n    \"earthRadius\",\n  ],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createLensFlareStage();\n  },\n});\n\nexport const NightVisionStage = createPostProcessStage<{}>({\n  name: \"NightVisionStage\",\n  props: [],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createNightVisionStage();\n  },\n});\n\nexport const Fxaa = createPostProcessStage<{}>({\n  name: \"Fxaa\",\n  create(props, collection) {\n    return collection.fxaa;\n  },\n  props: [],\n});\n\nexport default PostProcessStage;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport { createPostProcessStage } from \"../core/PostProcessStage\";\n\n/*\n@summary\n`PostProcessStagComposite` can add a post processing stages to the scene.\n\nBult-in PostProcessStageComposite components are available with additional Cesium properties:\n\n| Component | Property | Type |\n|---|---|---|\n| AmbientOcclusion | intensity | number |\n| | bias | number |\n| | lengthCap | number |\n| | stepSize | number |\n| | frustumLength | number |\n| | ambientOcclusionOnly | boolean |\n| | delta | number |\n| | sigma | number |\n| Bloom | contrast | number |\n| | brightness | number |\n| | glowOnly | boolean |\n| | delta | number |\n| | sigma | number |\n| | stepSize | number |\n| DepthOfFieldStage | focalDistance | number |\n| | delta | number |\n| | sigma | number |\n| | stepSize | number |\n| EdgeDetectionStage | color | [Cesium.Color](https://cesiumjs.org/Cesium/Build/Documentation/Color.html) |\n| | length | number ||\n| NightVisionStage | - | - |\n| SilhouetteStage | color | [Cesium.Color](https://cesiumjs.org/Cesium/Build/Documentation/Color.html) |\n| | length | number |\n\nNote: `AmbientOcclusion` and `Bloom` components can not be used multi time for each components, as it refers to the single post process stage of the scene.\n\nThey can be imported and used normally:\n\n```jsx\nimport { AmbientOcclusion, Bloom } from \"resium\";\n\n<Viewer>\n  <AmbientOcclusion />\n  <Bloom />\n</Viewer>\n```\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\n*/\n\nexport interface PostProcessStageCompositeCesiumProps {\n  enabled?: boolean;\n  selected?: any[];\n}\n\nexport interface PostProcessStageCompositeCesiumReadonlyProps {\n  // @type Cesium.PostProcessStage\n  stages: any[];\n  inputPreviousStageTexture?: boolean;\n  name?: string;\n  uniforms?: any;\n}\n\nexport interface PostProcessStageCompositeProps\n  extends PostProcessStageCompositeCesiumProps,\n    PostProcessStageCompositeCesiumReadonlyProps {}\n\nexport interface PostProcessStageCompositeContext {\n  scene?: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof PostProcessStageCompositeCesiumProps)[] = [\"enabled\", \"selected\"];\n\nconst cesiumReadonlyProps: (keyof PostProcessStageCompositeCesiumReadonlyProps)[] = [\n  \"inputPreviousStageTexture\",\n  \"name\",\n  \"stages\",\n  \"uniforms\",\n];\n\nexport const PostProcessStageComposite = createCesiumComponent<\n  any /* Cesium.PostProcessStageComposite */,\n  PostProcessStageCompositeProps,\n  PostProcessStageCompositeContext\n>({\n  name: \"PostProcessStageComposite\",\n  create(cprops) {\n    const ps = new (Cesium as any).PostProcessStageComposite(cprops);\n    if (typeof cprops.enabled === \"boolean\") {\n      ps.enabled = cprops.enabled;\n    }\n    if (cprops.selected) {\n      ps.selected = cprops.selected;\n    }\n    return ps;\n  },\n  mount(element, context) {\n    if (context.scene && !context.scene.isDestroyed()) {\n      (context.scene as any).postProcessStages.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.scene && !context.scene.isDestroyed()) {\n      (context.scene as any).postProcessStages.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport const AmbientOcclusion = createPostProcessStage<{\n  intensity?: number;\n  bias?: number;\n  lengthCap?: number;\n  stepSize?: number;\n  frustumLength?: number;\n  ambientOcclusionOnly?: boolean;\n  delta?: number;\n  sigma?: number;\n}>({\n  name: \"AmbientOcclusion\",\n  create(props, collection) {\n    return collection.ambientOcclusion;\n  },\n  props: [\n    \"ambientOcclusionOnly\",\n    \"bias\",\n    \"delta\",\n    \"frustumLength\",\n    \"intensity\",\n    \"lengthCap\",\n    \"sigma\",\n    \"stepSize\",\n  ],\n  noMount: true,\n});\n\nexport const Bloom = createPostProcessStage<{\n  contrast?: number;\n  brightness?: number;\n  glowOnly?: boolean;\n  delta?: number;\n  sigma?: number;\n  stepSize?: number;\n}>({\n  name: \"Bloom\",\n  create(props, collection) {\n    return collection.bloom;\n  },\n  props: [\"brightness\", \"contrast\", \"delta\", \"glowOnly\", \"sigma\", \"stepSize\"],\n  noMount: true,\n});\n\nexport const BlurStage = createPostProcessStage<{\n  delta?: number;\n  sigma?: number;\n  stepSize?: number;\n}>({\n  name: \"BlurStage\",\n  props: [\"delta\", \"sigma\", \"stepSize\"],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createBlurStage();\n  },\n});\n\nexport const DepthOfFieldStage = createPostProcessStage<{\n  focalDistance?: number;\n  delta?: number;\n  sigma?: number;\n  stepSize?: number;\n}>({\n  name: \"DepthOfFieldStage\",\n  props: [\"delta\", \"focalDistance\", \"sigma\", \"stepSize\"],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createDepthOfFieldStage();\n  },\n});\n\nexport const EdgeDetectionStage = createPostProcessStage<{\n  color?: Cesium.Color;\n  length?: number;\n}>({\n  name: \"EdgeDetectionStage\",\n  props: [\"color\", \"length\"],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createEdgeDetectionStage();\n  },\n});\n\nexport const SilhouetteStage = createPostProcessStage<{\n  color?: Cesium.Color;\n  length?: number;\n}>({\n  name: \"SilhouetteStage\",\n  props: [\"color\", \"length\"],\n  create() {\n    return (Cesium as any).PostProcessStageLibrary.createSilhouetteStage();\n  },\n});\n\nexport default PostProcessStageComposite;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\nimport EventManager, { EventProps } from \"../core/EventManager\";\n\n/*\n@summary\n`Primitive` is a basic primitive in the `PrimitiveCollection`.\n\nPrimitive is a low layer API for geographical visualization.\n[Entity](/components/entity) is more recommended unless performance issues.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component.\nA primitive object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface PrimitiveCesiumProps {\n  appearance?: Cesium.Appearance;\n  cull?: boolean;\n  debugShowBoundingVolume?: boolean;\n  depthFailAppearance?: Cesium.Appearance;\n  modelMatrix?: Cesium.Matrix4;\n  shadows?: Cesium.ShadowMode;\n  show?: boolean;\n}\n\nexport interface PrimitiveCesiumReadonlyProps {\n  allowPicking?: boolean;\n  asynchronous?: boolean;\n  compressVertices?: boolean;\n  geometryInstances?: Cesium.GeometryInstance[] | Cesium.GeometryInstance;\n  interleave?: boolean;\n  releaseGeometryInstances?: boolean;\n  vertexCacheOptimize?: boolean;\n}\n\nexport interface PrimitiveProps\n  extends PrimitiveCesiumProps,\n    PrimitiveCesiumReadonlyProps,\n    EventProps<Cesium.Primitive> {\n  // Calls when [Primitive#readyPromise](https://cesiumjs.org/Cesium/Build/Documentation/Primitive.html#readyPromise) is fullfilled\n  onReady?: (primitive: Cesium.Primitive) => void;\n}\n\nexport interface PrimitiveContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n  __RESIUM_EVENT_MANAGER?: EventManager;\n}\n\nconst cesiumProps: (keyof PrimitiveCesiumProps)[] = [\n  \"appearance\",\n  \"cull\",\n  \"debugShowBoundingVolume\",\n  \"depthFailAppearance\",\n  \"modelMatrix\",\n  \"shadows\",\n  \"show\",\n];\n\nconst cesiumReadonlyProps: (keyof PrimitiveCesiumReadonlyProps)[] = [\n  \"allowPicking\",\n  \"asynchronous\",\n  \"compressVertices\",\n  \"geometryInstances\",\n  \"interleave\",\n  \"releaseGeometryInstances\",\n  \"vertexCacheOptimize\",\n];\n\nconst Primitive = createCesiumComponent<Cesium.Primitive, PrimitiveProps, PrimitiveContext>({\n  name: \"Primitive\",\n  create(cprops, props) {\n    const primitive = new Cesium.Primitive(cprops);\n    if (props.onReady) {\n      primitive.readyPromise.then(props.onReady);\n    }\n    return primitive;\n  },\n  mount(element, context, props) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  update(element, props, prevProps, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.setEvents(element, props);\n    }\n  },\n  unmount(element, context) {\n    if (context.__RESIUM_EVENT_MANAGER) {\n      context.__RESIUM_EVENT_MANAGER.clearEvents(element);\n    }\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n});\n\nexport default Primitive;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`RectangleGraphics` is a rectangle visualization for the entity.\n*/\n\n/*\n@scope\nRectangleGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface RectangleGraphicsCesiumProps {\n  coordinates?: Cesium.Property | Cesium.Rectangle;\n  height?: Cesium.Property | number;\n  heightReference?: Cesium.Property | Cesium.HeightReference;\n  extrudedHeight?: Cesium.Property | number;\n  extrudedHeightReference?: Cesium.Property | Cesium.HeightReference;\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  rotation?: Cesium.Property | number;\n  stRotation?: Cesium.Property | number;\n  granularity?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n  zIndex?: Cesium.Property | number;\n  // @type Cesium.Property | Cesium.ClassificationType\n  classificationType?: Cesium.Property | any;\n}\n\nexport interface RectangleGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface RectangleGraphicsProps\n  extends RectangleGraphicsCesiumProps,\n    RectangleGraphicsCesiumEvents {}\n\nexport interface RectangleGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof RectangleGraphicsCesiumProps)[] = [\n  \"coordinates\",\n  \"height\",\n  \"heightReference\",\n  \"extrudedHeight\",\n  \"extrudedHeightReference\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"rotation\",\n  \"stRotation\",\n  \"granularity\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n  \"zIndex\",\n];\n\nconst cesiumEventProps: EventkeyMap<\n  Cesium.RectangleGraphics,\n  keyof RectangleGraphicsCesiumEvents\n> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst RectangleGraphics = createCesiumComponent<\n  Cesium.RectangleGraphics,\n  RectangleGraphicsProps,\n  RectangleGraphicsContext\n>({\n  name: \"RectangleGraphics\",\n  create(cprops) {\n    return new Cesium.RectangleGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.rectangle = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.rectangle = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default RectangleGraphics;\n","import Cesium, { Scene as CesiumScene, SceneMode } from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`Scene` can operate the scene of the Viewer or CesiumWidget.\nAll properties are applied to single scene of them.\n\n**Note**: Following code is not recommended as occur extra rendering steps:\n\n```\n<Viewer>\n  <Scene>\n    <Globe>\n      <Camera>\n        <Entity />\n      </Camera>\n    </Globe>\n  </Scene>\n</Viewer>\n```\n\n`Scene` component's role is just changing fields of `Viewer#scene`, so following code is recommended.\n\n```\n<Viewer>\n  <Scene />\n  <Globe />\n  <Camera />\n  <Entity />\n</Viewer>\n```\n\nFor details, refer to \"Component location\" chapter in [Guide](/guide).\n*/\n\n/*\n@scope\nScene is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface SceneCesiumProps {\n  backgroundColor?: Cesium.Color;\n  completeMorphOnUserInput?: boolean;\n  debugCommandFilter?: (command: any) => boolean;\n  debugShowCommands?: boolean;\n  debugShowDepthFrustum?: number;\n  debugShowFramesPerSecond?: boolean;\n  debugShowFrustumPlanes?: boolean;\n  debugShowFrustums?: boolean;\n  debugShowGlobeDepth?: boolean;\n  eyeSeparation?: number;\n  farToNearRatio?: number;\n  focalLength?: number;\n  fog?: Cesium.Fog;\n  fxaa?: boolean;\n  globe?: Cesium.Globe;\n  highDynamicRange?: boolean;\n  imagerySplitPosition?: number;\n  invertClassification?: boolean;\n  invertClassificationColor?: Cesium.Color;\n  logarithmicDepthBuffer?: number;\n  logarithmicDepthFarToNearRatio?: number;\n  mapMode2D?: boolean;\n  maximumRenderTimeChange?: number;\n  minimumDisableDepthTestDistance?: number;\n  mode?: Cesium.SceneMode;\n  moon?: Cesium.Moon;\n  morphTime?: number;\n  nearToFarDistance2D?: number;\n  pickTranslucentDepth?: boolean;\n  requestRenderMode?: boolean;\n  rethrowRenderErrors?: boolean;\n  shadowMap?: Cesium.ShadowMap;\n  skyAtmosphere?: Cesium.SkyAtmosphere;\n  skyBox?: Cesium.SkyBox;\n  specularEnvironmentMaps?: string;\n  sphericalHarmonicCoefficients?: Cesium.Cartesian3[];\n  sun?: Cesium.Sun;\n  sunBloom?: boolean;\n  terrainProvider?: Cesium.TerrainProvider;\n  useDepthPicking?: boolean;\n  useWebVR?: boolean;\n}\n\nexport interface SceneCesiumEvents {\n  onMorphComplete?: () => void;\n  onMorphStart?: () => void;\n  onPostRender?: () => void;\n  onPreRender?: () => void;\n  onPreUpdate?: () => void;\n  onRenderError?: () => void;\n  onTerrainProviderChange?: () => void;\n}\n\nexport interface SceneProps extends SceneCesiumProps, SceneCesiumEvents {\n  children?: React.ReactNode;\n  // If this prop is set and when `mode` prop is changed, the scene morphs with this duration (seconds).\n  morphDuration?: number;\n}\n\nconst cesiumProps: (keyof SceneCesiumProps)[] = [\n  \"backgroundColor\",\n  \"completeMorphOnUserInput\",\n  \"debugCommandFilter\",\n  \"debugShowCommands\",\n  \"debugShowDepthFrustum\",\n  \"debugShowFramesPerSecond\",\n  \"debugShowFrustumPlanes\",\n  \"debugShowFrustums\",\n  \"debugShowGlobeDepth\",\n  \"eyeSeparation\",\n  \"farToNearRatio\",\n  \"focalLength\",\n  \"fog\",\n  \"fxaa\",\n  \"globe\",\n  \"highDynamicRange\",\n  \"imagerySplitPosition\",\n  \"invertClassification\",\n  \"invertClassificationColor\",\n  \"logarithmicDepthBuffer\",\n  \"logarithmicDepthFarToNearRatio\",\n  \"mapMode2D\",\n  \"maximumRenderTimeChange\",\n  \"minimumDisableDepthTestDistance\",\n  // \"mode\", // enable morph with animation\n  \"moon\",\n  \"morphTime\",\n  \"nearToFarDistance2D\",\n  \"pickTranslucentDepth\",\n  \"requestRenderMode\",\n  \"rethrowRenderErrors\",\n  \"shadowMap\",\n  \"skyAtmosphere\",\n  \"skyBox\",\n  \"specularEnvironmentMaps\",\n  \"sphericalHarmonicCoefficients\",\n  \"sun\",\n  \"sunBloom\",\n  \"terrainProvider\",\n  \"useDepthPicking\",\n  \"useWebVR\",\n];\n\nconst cesiumEventProps: EventkeyMap<CesiumScene, keyof SceneCesiumEvents> = {\n  morphComplete: \"onMorphComplete\",\n  morphStart: \"onMorphStart\",\n  postRender: \"onPostRender\",\n  preRender: \"onPreRender\",\n  preUpdate: \"onPreUpdate\",\n  renderError: \"onRenderError\",\n  terrainProviderChanged: \"onTerrainProviderChange\",\n};\n\nexport interface SceneContext {\n  scene: CesiumScene;\n}\n\nconst morph = (scene: CesiumScene, mode: SceneMode, morphTime?: number) => {\n  switch (mode) {\n    case SceneMode.SCENE2D:\n      scene.morphTo2D(morphTime);\n      break;\n\n    case SceneMode.COLUMBUS_VIEW:\n      scene.morphToColumbusView(morphTime);\n      break;\n\n    case SceneMode.SCENE3D:\n      scene.morphTo3D(morphTime);\n      break;\n  }\n};\n\nconst Scene = createCesiumComponent<CesiumScene, SceneProps, SceneContext>({\n  name: \"Scene\",\n  create(cprops, props, context) {\n    const scene = context.scene;\n    if (props.mode) {\n      morph(scene, props.mode, props.morphDuration);\n    }\n    return scene;\n  },\n  update(scene, props, prevProps) {\n    if (props.mode !== prevProps.mode && props.mode) {\n      morph(scene, props.mode, props.morphDuration);\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default Scene;\n","import createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`ScreenSpaceCameraController` can change how to operate the camera of the scene.\nAll properties are applied to single ScreenSpaceCameraController in the scene.\n*/\n\n/*\n@scope\nScreenSpaceCameraController is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface ScreenSpaceCameraControllerCesiumProps {\n  bounceAnimationTime?: number;\n  enableCollisionDetection?: boolean;\n  enableInputs?: boolean;\n  enableLook?: boolean;\n  enableRotate?: boolean;\n  enableTilt?: boolean;\n  enableTranslate?: boolean;\n  enableZoom?: boolean;\n  inertiaSpin?: number;\n  inertiaTranslate?: number;\n  inertiaZoom?: number;\n  lookEventTypes?:\n    | Cesium.CameraEventType\n    | Cesium.CameraEventType[]\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }[];\n  maximumMovementRatio?: number;\n  maximumZoomDistance?: number;\n  minimumCollisionTerrainHeight?: number;\n  minimumPickingTerrainHeight?: number;\n  minimumTrackBallHeight?: number;\n  minimumZoomDistance?: number;\n  rotateEventTypes?:\n    | Cesium.CameraEventType\n    | Cesium.CameraEventType[]\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }[];\n  tiltEventTypes?:\n    | Cesium.CameraEventType\n    | Cesium.CameraEventType[]\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }[];\n  translateEventTypes?:\n    | Cesium.CameraEventType\n    | Cesium.CameraEventType[]\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }[];\n  zoomEventTypes?:\n    | Cesium.CameraEventType\n    | Cesium.CameraEventType[]\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }\n    | { eventType: Cesium.CameraEventType; modifier: Cesium.KeyboardEventModifier }[];\n}\n\nexport interface ScreenSpaceCameraControllerContext {\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof ScreenSpaceCameraControllerCesiumProps)[] = [\n  \"bounceAnimationTime\",\n  \"enableCollisionDetection\",\n  \"enableInputs\",\n  \"enableLook\",\n  \"enableRotate\",\n  \"enableTilt\",\n  \"enableTranslate\",\n  \"enableZoom\",\n  \"inertiaSpin\",\n  \"inertiaTranslate\",\n  \"inertiaZoom\",\n  \"lookEventTypes\",\n  \"maximumMovementRatio\",\n  \"maximumZoomDistance\",\n  \"minimumCollisionTerrainHeight\",\n  \"minimumPickingTerrainHeight\",\n  \"minimumTrackBallHeight\",\n  \"minimumZoomDistance\",\n  \"rotateEventTypes\",\n  \"tiltEventTypes\",\n  \"translateEventTypes\",\n  \"zoomEventTypes\",\n];\n\nconst ScreenSpaceCameraController = createCesiumComponent<\n  Cesium.ScreenSpaceCameraController,\n  ScreenSpaceCameraControllerCesiumProps,\n  ScreenSpaceCameraControllerContext\n>({\n  name: \"ScreenSpaceCameraController\",\n  create(cprops, props, context) {\n    return context.scene.screenSpaceCameraController;\n  },\n  cesiumProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default ScreenSpaceCameraController;\n","import React from \"react\";\nimport Cesium from \"cesium\";\n\nimport { withCesium } from \"../core/context\";\n\n// @noCesiumElement\n\n/*\n@summary\n`ScreenSpaceEvent` is an event callback for mouse or touch interactions.\n\nSee also: [ScreenSpaceEventHandler#setInputAction](https://cesiumjs.org/Cesium/Build/Documentation/ScreenSpaceEventHandler.html?classFilter=screenspa#setInputAction)\n*/\n\n/*\n@scope\nOnly inside [ScreenSpaceEventHandler](/components/ScreenSpaceEventHandler).\n*/\n\nexport interface ScreenSpaceEventProps {\n  // If empty, the event will be removed even if there is the default event.\n  action?: (e: { position: Cesium.Cartesian2 }) => void;\n  // @type Cesium.KeyboardEventModifier\n  modifier?: number;\n  // @type Cesium.ScreenSpaceEventType\n  type: number;\n}\n\ninterface ScreenSpaceEventContext {\n  screenSpaceEventHandler?: Cesium.ScreenSpaceEventHandler;\n}\n\nclass ScreenSpaceEvent extends React.PureComponent<\n  ScreenSpaceEventProps & { cesium: ScreenSpaceEventContext }\n> {\n  public componentDidMount() {\n    this.setEvent();\n  }\n\n  public componentDidUpdate(prevProps: ScreenSpaceEventProps) {\n    if (\n      prevProps.type !== this.props.type ||\n      prevProps.modifier !== this.props.modifier ||\n      prevProps.action !== this.props.action\n    ) {\n      const { screenSpaceEventHandler } = this.props.cesium;\n      if (screenSpaceEventHandler) {\n        screenSpaceEventHandler.removeInputAction(prevProps.type, prevProps.modifier);\n      }\n      this.setEvent();\n    }\n  }\n\n  public componentWillUnmount() {\n    const {\n      action,\n      cesium: { screenSpaceEventHandler },\n      modifier,\n      type,\n    } = this.props;\n    if (screenSpaceEventHandler && !screenSpaceEventHandler.isDestroyed() && action) {\n      screenSpaceEventHandler.removeInputAction(type, modifier);\n    }\n  }\n\n  public render() {\n    return null;\n  }\n\n  private setEvent() {\n    const {\n      action,\n      cesium: { screenSpaceEventHandler },\n      modifier,\n      type,\n    } = this.props;\n    if (!screenSpaceEventHandler) {\n      return;\n    }\n    if (action) {\n      screenSpaceEventHandler.setInputAction(action as () => void, type, modifier);\n    } else {\n      // just remove default events\n      screenSpaceEventHandler.removeInputAction(type, modifier);\n    }\n  }\n}\n\nexport default withCesium<ScreenSpaceEventProps, ScreenSpaceEventContext>(ScreenSpaceEvent);\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`ScreenSpaceEventHandler` can change event callbacks for mouse or touch interactions on the Viewer or CesiumWidget.\n`ScreenSpaceEvent` components can be its children.\n*/\n\n/*\n@scope\nScreenSpaceEventHandler is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nScreenSpaceEventHandler components with useDefault prop can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface ScreenSpaceEventHandlerProps {\n  // If true, use the default ScreenSpaceEventHandler of the CesiumWidget instead of creating a new ScreenSpaceEventHandler object. This property cannot be changed after mounting.\n  useDefault?: boolean;\n  children?: React.ReactNode;\n}\n\nexport interface ScreenSpaceEventHandlerContext {\n  scene: Cesium.Scene;\n  cesiumWidget: Cesium.CesiumWidget;\n}\n\nconst ScreenSpaceEventHandler = createCesiumComponent<\n  Cesium.ScreenSpaceEventHandler,\n  ScreenSpaceEventHandlerProps,\n  ScreenSpaceEventHandlerContext\n>({\n  name: \"ScreenSpaceEventHandler\",\n  create(cprops, props, context) {\n    return props.useDefault\n      ? context.cesiumWidget.screenSpaceEventHandler\n      : new Cesium.ScreenSpaceEventHandler(context.scene.canvas as HTMLCanvasElement);\n  },\n  unmount(element) {\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  provide(element) {\n    return {\n      screenSpaceEventHandler: element,\n    };\n  },\n});\n\nexport default ScreenSpaceEventHandler;\n","import Cesium from \"cesium\";\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`SkyAtmosphere` can operate the SkyAtmosphere in the scene.\nAll properties are applied to single SkyAtmosphere in the scene.\n*/\n\n/*\n@scope\nSkyAtmosphere is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface SkyAtmosphereCesiumProps {\n  brightnessShift?: number;\n  hueShift?: number;\n  saturationShift?: number;\n  show?: boolean;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface SkyAtmosphereProps extends SkyAtmosphereCesiumProps {}\n\nexport interface SkyAtmosphereContext {\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof SkyAtmosphereCesiumProps)[] = [\n  \"brightnessShift\",\n  \"hueShift\",\n  \"saturationShift\",\n  \"show\",\n];\n\nconst SkyAtmosphere = createCesiumComponent<\n  Cesium.SkyAtmosphere,\n  SkyAtmosphereProps,\n  SkyAtmosphereContext\n>({\n  name: \"SkyAtmosphere\",\n  create(cprops, props, context) {\n    return context.scene.skyAtmosphere as Cesium.SkyAtmosphere;\n  },\n  cesiumProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default SkyAtmosphere;\n","import Cesium from \"cesium\";\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`SkyBox` can operate the SkyBox in the scene.\nAll properties are applied to single SkyBox in the scene.\n*/\n\n/*\n@scope\nSkyBox is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface SkyBoxCesiumProps {\n  sources?: {\n    positiveX: string | ImageData;\n    negativeX: string | ImageData;\n    positiveY: string | ImageData;\n    negativeY: string | ImageData;\n    positiveZ: string | ImageData;\n    negativeZ: string | ImageData;\n  };\n  show?: boolean;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface SkyBoxProps extends SkyBoxCesiumProps {}\n\nexport interface SkyBoxContext {\n  scene: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof SkyBoxCesiumProps)[] = [\"sources\", \"show\"];\n\nconst SkyBox = createCesiumComponent<Cesium.SkyBox, SkyBoxProps, SkyBoxContext>({\n  name: \"SkyBox\",\n  create(cprops, props, context) {\n    return context.scene.skyBox as Cesium.SkyBox;\n  },\n  cesiumProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default SkyBox;\n","import Cesium from \"cesium\";\nimport createCesiumComponent from \"../core/CesiumComponent\";\n\n/*\n@summary\n`Sun` can operate the sun in the scene.\nAll properties are applied to single sun in the scene.\n*/\n\n/*\n@scope\nSun is available inside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) components.\nIt can not be used more than once for each Viewer or CesiumWidget.\n*/\n\nexport interface SunCesiumProps {\n  glowFactor?: number;\n  show?: boolean;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface SunProps extends SunCesiumProps {}\n\nexport interface SunContext {\n  scene?: Cesium.Scene;\n}\n\nconst cesiumProps: (keyof SunCesiumProps)[] = [\"glowFactor\", \"show\"];\n\nconst Sun = createCesiumComponent<Cesium.Sun, SunProps, SunContext>({\n  name: \"Sun\",\n  create() {\n    return new Cesium.Sun();\n  },\n  mount(element, context) {\n    if (context.scene) {\n      context.scene.sun = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.scene && !context.scene.isDestroyed()) {\n      context.scene.sun = new Cesium.Sun();\n    }\n    // if (!element.isDestroyed()) {\n    //   element.destroy();\n    // }\n  },\n  cesiumProps,\n  setCesiumPropsAfterCreate: true,\n});\n\nexport default Sun;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`TimeDynamicPointCloud` is a point cloud with dynamic changes with time.\n*/\n\n/*\n@scope\nInside [Viewer](/components/Viewer) or [CesiumWidget](/components/CesiumWidget) component.\nA TimeDynamicPointCloud object will be attached to the PrimitiveCollection of the Viewer or CesiumWidget.\n*/\n\nexport interface TimeDynamicPointCloudCesiumProps {\n  clock?: Cesium.Clock;\n  intervals: Cesium.TimeIntervalCollection;\n  show?: boolean;\n  modelMatrix?: Cesium.Matrix4;\n  shadows?: Cesium.ShadowMode;\n  maximumMemoryUsage?: number;\n  style?: any /* Cesium.Cesium3DTileStyle */;\n  clippingPlanes?: any /* Cesium.ClippingPlaneCollection */;\n}\n\nexport interface TimeDynamicPointCloudCesiumReadonlyProps {\n  shading?: {\n    attenuation?: boolean;\n    geometricErrorScale?: number;\n    maximumAttenuation?: number;\n    baseResolution?: number;\n    eyeDomeLighting?: boolean;\n    eyeDomeLightingStrength?: number;\n    eyeDomeLightingRadius?: number;\n  };\n}\n\nexport interface TimeDynamicPointCloudCesiumEvents {\n  onFrameChange?: (pointCloud: any /* Cesium.TimeDynamicPointCloud */) => void;\n}\n\nexport interface TimeDynamicPointCloudProps\n  extends TimeDynamicPointCloudCesiumProps,\n    TimeDynamicPointCloudCesiumReadonlyProps,\n    TimeDynamicPointCloudCesiumEvents {\n  // Calls when the point cloud is completely loaded.\n  onReady?: (pointCloud: any /* Cesium.TimeDynamicPointCloud */) => void;\n}\n\nexport interface TimeDynamicPointCloudContext {\n  primitiveCollection?: Cesium.PrimitiveCollection;\n  cesiumWidget?: Cesium.CesiumWidget;\n}\n\nconst cesiumProps: (keyof TimeDynamicPointCloudCesiumProps)[] = [\n  \"clippingPlanes\",\n  \"clock\",\n  \"intervals\",\n  \"maximumMemoryUsage\",\n  \"modelMatrix\",\n  \"shadows\",\n  \"show\",\n  \"style\",\n];\n\nconst cesiumReadonlyProps: (keyof TimeDynamicPointCloudCesiumReadonlyProps)[] = [\"shading\"];\n\nconst cesiumEventProps: EventkeyMap<any, keyof TimeDynamicPointCloudCesiumEvents> = {\n  frameChanged: \"onFrameChange\",\n};\n\nconst TimeDynamicPointCloud = createCesiumComponent<\n  any /* Cesium.TimeDynamicPointCloud */,\n  TimeDynamicPointCloudProps,\n  TimeDynamicPointCloudContext\n>({\n  name: \"TimeDynamicPointCloud\",\n  create(cprops, props, context) {\n    const tdpc = new (Cesium as any).TimeDynamicPointCloud({\n      ...cprops,\n      clock: cprops.clock || (context.cesiumWidget && context.cesiumWidget.clock),\n    });\n    if (props.onReady) {\n      tdpc.readyPromise.then(props.onReady);\n    }\n    return tdpc;\n  },\n  mount(element, context) {\n    if (context.primitiveCollection) {\n      context.primitiveCollection.add(element);\n    }\n  },\n  unmount(element, context) {\n    if (context.primitiveCollection && !context.primitiveCollection.isDestroyed()) {\n      context.primitiveCollection.remove(element);\n    }\n    if (!element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n  cesiumEventProps,\n});\n\nexport default TimeDynamicPointCloud;\n","import React from \"react\";\nimport Cesium, { Viewer as CesiumViewer } from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\nimport EventManager from \"../core/EventManager\";\n\n/*\n@summary\n`Viewer` is a root component of resium same as `CesiumWidget`. All components of resium except the root components have to be mounted inside it.\n*/\n\n/*\n@example\n<Viewer full animation={false} timeline={false} />\n*/\n\n/*\n@scope\nEverywhere. `Viewer` is a root component. \n*/\n\nexport interface ViewerCesiumProps {\n  terrainProvider?: Cesium.TerrainProvider;\n  terrainShadows?: Cesium.ShadowMode;\n  clockTrackedDataSource?: Cesium.DataSource;\n  targetFrameRate?: number;\n  useDefaultRenderLoop?: boolean;\n  resolutionScale?: number;\n  allowDataSourcesToSuspendAnimation?: boolean;\n  trackedEntity?: Cesium.Entity;\n  selectedEntity?: Cesium.Entity;\n  shadows?: boolean;\n}\n\nexport interface ViewerCesiumReadonlyProps {\n  animation?: boolean;\n  baseLayerPicker?: boolean;\n  fullscreenButton?: boolean;\n  vrButton?: boolean;\n  geocoder?: boolean;\n  homeButton?: boolean;\n  infoBox?: boolean;\n  sceneModePicker?: boolean;\n  selectionIndicator?: boolean;\n  timeline?: boolean;\n  navigationHelpButton?: boolean;\n  navigationInstructionsInitiallyVisible?: boolean;\n  scene3DOnly?: boolean;\n  shouldAnimate?: boolean;\n  clockViewModel?: Cesium.ClockViewModel;\n  selectedImageryProviderViewModel?: Cesium.ProviderViewModel;\n  imageryProviderViewModels?: Cesium.ProviderViewModel[];\n  selectedTerrainProviderViewModel?: Cesium.ProviderViewModel;\n  terrainProviderViewModels?: Cesium.ProviderViewModel[];\n  // If false, the default imagery layer will be removed.\n  imageryProvider?: Cesium.ImageryProvider | false;\n  skyBox?: Cesium.SkyBox;\n  skyAtmosphere?: Cesium.SkyAtmosphere;\n  fullscreenElement?: Element | string;\n  showRenderLoopErrors?: boolean;\n  automaticallyTrackDataSourceClocks?: boolean;\n  contextOptions?: any;\n  sceneMode?: Cesium.SceneMode;\n  mapProjection?: Cesium.MapProjection;\n  globe?: Cesium.Globe;\n  orderIndependentTranslucency?: boolean;\n  creditContainer?: Element | string;\n  creditViewport?: Element | string;\n  dataSources?: Cesium.DataSourceCollection;\n  terrainExaggeration?: number;\n  mapMode2D?: Cesium.MapMode2D;\n  projectionPicker?: boolean;\n  requestRenderMode?: boolean;\n  maximumRenderTimeChange?: number;\n}\n\nexport interface ViewerCesiumEvents {\n  onSelectedEntityChange?: () => void;\n  onTrackedEntityChange?: () => void;\n}\n\nconst cesiumProps: (keyof ViewerCesiumProps)[] = [\n  \"terrainProvider\",\n  \"terrainShadows\",\n  \"clockTrackedDataSource\",\n  \"targetFrameRate\",\n  \"useDefaultRenderLoop\",\n  \"resolutionScale\",\n  \"allowDataSourcesToSuspendAnimation\",\n  \"trackedEntity\",\n  \"selectedEntity\",\n  \"shadows\",\n];\n\nconst cesiumReadonlyProps: (keyof ViewerCesiumReadonlyProps)[] = [\n  \"animation\",\n  \"baseLayerPicker\",\n  \"fullscreenButton\",\n  \"vrButton\",\n  \"geocoder\",\n  \"homeButton\",\n  \"infoBox\",\n  \"sceneModePicker\",\n  \"selectionIndicator\",\n  \"timeline\",\n  \"navigationHelpButton\",\n  \"navigationInstructionsInitiallyVisible\",\n  \"scene3DOnly\",\n  \"shouldAnimate\",\n  \"clockViewModel\",\n  \"selectedImageryProviderViewModel\",\n  \"imageryProviderViewModels\",\n  \"selectedTerrainProviderViewModel\",\n  \"terrainProviderViewModels\",\n  \"imageryProvider\",\n  \"skyBox\",\n  \"skyAtmosphere\",\n  \"fullscreenElement\",\n  \"showRenderLoopErrors\",\n  \"automaticallyTrackDataSourceClocks\",\n  \"contextOptions\",\n  \"sceneMode\",\n  \"mapProjection\",\n  \"globe\",\n  \"orderIndependentTranslucency\",\n  \"creditContainer\",\n  \"creditViewport\",\n  \"dataSources\",\n  \"terrainExaggeration\",\n  \"mapMode2D\",\n  \"projectionPicker\",\n  \"requestRenderMode\",\n  \"maximumRenderTimeChange\",\n];\n\nconst cesiumEventProps: EventkeyMap<CesiumViewer, keyof ViewerCesiumEvents> = {\n  selectedEntityChanged: \"onSelectedEntityChange\",\n  trackedEntityChanged: \"onTrackedEntityChange\",\n};\n\nexport interface ViewerProps\n  extends ViewerCesiumProps,\n    ViewerCesiumReadonlyProps,\n    ViewerCesiumEvents {\n  // Applied to outer `div` element\n  className?: string;\n  // Applied to outer `div` element\n  id?: string;\n  // Applied to outer `div` element\n  style?: React.CSSProperties;\n  // Same as `style={{ position: \"absolute\", top: 0, left: 0, right: 0, bottom: 0 }}` if it is true.\n  full?: boolean;\n  // All props applied to outer `div` element\n  containerProps?: any;\n  // It is applied in order from the top to Viewer as `viewer.extend(XXX);` after the viewer is mounted. Nothing happens even it is updated by itself.\n  extend?: CesiumViewer.ViewerMixin[] | CesiumViewer.ViewerMixin;\n  children?: React.ReactNode;\n}\n\nexport interface ViewerContext {\n  viewer: CesiumViewer;\n  cesiumWidget: Cesium.CesiumWidget;\n  dataSourceCollection: Cesium.DataSourceCollection;\n  entityCollection: Cesium.EntityCollection;\n  scene: Cesium.Scene;\n  globe: Cesium.Globe;\n  camera: Cesium.Camera;\n}\n\nconst Viewer = createCesiumComponent<\n  CesiumViewer,\n  ViewerProps,\n  {},\n  ViewerContext | {},\n  HTMLDivElement\n>({\n  name: \"Viewer\",\n  createRef: true,\n  create(cprops, props, context, ref) {\n    // ref is not always undefined\n    const v = new CesiumViewer(\n      (ref as React.RefObject<HTMLDivElement>).current as any,\n      cprops as any,\n    );\n\n    if (cprops.imageryProvider === false) {\n      v.imageryLayers.removeAll();\n    }\n\n    if (v && props.extend) {\n      if (Array.isArray(props.extend)) {\n        props.extend.forEach(e => {\n          v.extend(e, {});\n        });\n      } else {\n        v.extend(props.extend, {});\n      }\n    }\n\n    // common event manager for managing events of Entity and Primitives\n    let state: any;\n    if (v) {\n      state = new EventManager(v.scene, v.canvas);\n    }\n\n    return [v, state];\n  },\n  render(element, props, mounted, ref) {\n    return (\n      <div\n        className={props.className}\n        id={props.id}\n        ref={ref}\n        style={{\n          ...(props.full\n            ? {\n                position: \"absolute\",\n                bottom: \"0\",\n                left: \"0\",\n                right: \"0\",\n                top: \"0\",\n              }\n            : {}),\n          ...props.style,\n        }}\n        {...props.containerProps}>\n        {element ? props.children : null}\n      </div>\n    );\n  },\n  unmount(element, cprops, props, ref, state) {\n    if (element && state) {\n      const em = state as EventManager;\n      if (!em.isDestroyed()) {\n        em.destroy();\n      }\n    }\n    if (element && !element.isDestroyed()) {\n      element.destroy();\n    }\n  },\n  provide(element, props, state) {\n    if (!element) {\n      return {};\n    }\n    return {\n      viewer: element,\n      cesiumWidget: element.cesiumWidget,\n      dataSourceCollection: element.dataSources,\n      entityCollection: element.entities,\n      scene: element.scene,\n      camera: element.scene.camera,\n      imageryLayerCollection: element.scene.globe.imageryLayers,\n      primitiveCollection: element.scene.primitives,\n      globe: element.scene.globe,\n      __RESIUM_EVENT_MANAGER: state, // EventManager\n    };\n  },\n  cesiumProps,\n  cesiumReadonlyProps,\n  cesiumEventProps,\n});\n\nexport default Viewer;\n","import Cesium from \"cesium\";\n\nimport createCesiumComponent, { EventkeyMap } from \"../core/CesiumComponent\";\n\n/*\n@summary\n`WallGraphics` is a wall visualization for the entity.\n*/\n\n/*\n@scope\nWallGraphics is only inside [Entity](/components/Entity) components,\nand can not be used more than once for each entity.\n*/\n\nexport interface WallGraphicsCesiumProps {\n  positions?: Cesium.Property | Cesium.Cartesian3[];\n  maximumHeights?: Cesium.Property | number[];\n  minimumHeights?: Cesium.Property | number[];\n  show?: Cesium.Property | boolean;\n  fill?: Cesium.Property | boolean;\n  material?: Cesium.MaterialProperty | Cesium.Color | string;\n  outline?: Cesium.Property | boolean;\n  outlineColor?: Cesium.Property | Cesium.Color;\n  outlineWidth?: Cesium.Property | number;\n  granularity?: Cesium.Property | number;\n  shadows?: Cesium.Property | Cesium.ShadowMode;\n  distanceDisplayCondition?: Cesium.Property | Cesium.DistanceDisplayCondition;\n}\n\nexport interface WallGraphicsCesiumEvents {\n  onDefinitionChange?: () => void;\n}\n\nexport interface WallGraphicsProps extends WallGraphicsCesiumProps, WallGraphicsCesiumEvents {}\n\nexport interface WallGraphicsContext {\n  entity?: Cesium.Entity;\n}\n\nconst cesiumProps: (keyof WallGraphicsCesiumProps)[] = [\n  \"positions\",\n  \"maximumHeights\",\n  \"minimumHeights\",\n  \"show\",\n  \"fill\",\n  \"material\",\n  \"outline\",\n  \"outlineColor\",\n  \"outlineWidth\",\n  \"granularity\",\n  \"shadows\",\n  \"distanceDisplayCondition\",\n];\n\nconst cesiumEventProps: EventkeyMap<Cesium.WallGraphics, keyof WallGraphicsCesiumEvents> = {\n  definitionChanged: \"onDefinitionChange\",\n};\n\nconst WallGraphics = createCesiumComponent<\n  Cesium.WallGraphics,\n  WallGraphicsProps,\n  WallGraphicsContext\n>({\n  name: \"WallGraphics\",\n  create(cprops) {\n    return new Cesium.WallGraphics(cprops as any);\n  },\n  mount(element, context) {\n    if (context.entity) {\n      context.entity.wall = element;\n    }\n  },\n  unmount(element, context) {\n    if (context.entity) {\n      context.entity.wall = undefined as any;\n    }\n  },\n  cesiumProps,\n  cesiumEventProps,\n});\n\nexport default WallGraphics;\n"]}