You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
961 B
JavaScript
33 lines
961 B
JavaScript
import { queryToObject } from "../Source/Cesium.js";
|
|
import { RuntimeError } from "../Source/Cesium.js";
|
|
|
|
function BadGeometry() {
|
|
this._workerName = "../../Specs/TestWorkers/createBadGeometry";
|
|
|
|
// Make this worker loadable when testing against the built version of Cesium.
|
|
if (
|
|
typeof window !== "undefined" &&
|
|
typeof window.location !== "undefined" &&
|
|
typeof window.location.search !== "undefined"
|
|
) {
|
|
var parameters = queryToObject(window.location.search.substring(1));
|
|
if (parameters.built) {
|
|
this._workerName = "../" + this._workerName;
|
|
}
|
|
}
|
|
}
|
|
|
|
BadGeometry.createGeometry = function () {
|
|
//This function is only called when synchronous, see Specs/TestWorks/createBadGeometry for asynchronous.
|
|
throw new RuntimeError("BadGeometry.createGeometry");
|
|
};
|
|
|
|
BadGeometry.packedLength = 0;
|
|
|
|
BadGeometry.pack = function () {};
|
|
|
|
BadGeometry.unpack = function () {
|
|
return new BadGeometry();
|
|
};
|
|
export default BadGeometry;
|