@juun-roh/cesium-utils
Version:
Solve common Cesium.js challenges: combine multiple terrain sources, tag and filter entity collections, and add visual highlights.
2 lines (1 loc) • 783 B
JavaScript
var s;(w=>{let n=new Set,u=typeof process<"u"?process.env.CESIUM_UTILS_DISABLE_DEPRECATION_WARNINGS!=="true":!0;function f(e,o={}){if(!u)return;let{once:r=!0,prefix:t="[DEPRECATED]",includeStack:i=!0,removeInVersion:c}=o;if(r&&n.has(e))return;let a=`${t} ${e}`;c&&(a+=` This feature will be removed in ${c}.`),typeof console<"u"&&console.warn&&(i?(console.warn(a),console.trace("Deprecation stack trace:")):console.warn(a)),r&&n.add(e)}w.warn=f;function l(e,o,r={}){let t=((...i)=>(f(o,r),e(...i)));return Object.defineProperty(t,"name",{value:e.name,configurable:!0}),t}w.deprecate=l;function d(){n.clear()}w.clear=d;function x(){return n.size}w.getWarningCount=x;function g(e){return n.has(e)}w.hasShown=g})(s||={});var p=s;var m=p.deprecate;export{p as Deprecate,m as deprecate};