main.cesium.getBaseUri.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package cesium
/**
* Given a URI, returns the base path of the URI.
* ```
* // basePath will be "/Gallery/";
* var basePath = getBaseUri('/Gallery/simple.czml?value=true&example=false');
*
* // basePath will be "/Gallery/?value=true&example=false";
* var basePath = getBaseUri('/Gallery/simple.czml?value=true&example=false', true);
* ```
* @param [uri] The Uri.
* @param [includeQuery] Whether or not to include the query string and fragment form the uri
* Default value - `false`
* @return The base path of the Uri.
* @see Online Documentation
*/
@JsName("\$cesium__getBaseUri")
external fun getBaseUri(
uri: String,
includeQuery: Boolean? = definedExternally,
): String