DSDSWeb/static/js/Cesium-1.53/Specs/BadGeometry.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-07-11 18:02:47 +08:00
define([
'Core/queryToObject',
'Core/RuntimeError'
], function(
queryToObject,
RuntimeError) {
'use strict';
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();
};
return BadGeometry;
});