赣州市洪水风险预警系统三维版本
guoshilong
2023-02-27 4d8c6dd77427e8e581fda17b6b65ba86bfb7a815
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* This file is automatically rebuilt by the Cesium build process. */
define(['exports', './when-e6e3e713', './Check-1df6b9a0'], function (exports, when, Check) { 'use strict';
 
    /**
         * Fill an array or a portion of an array with a given value.
         *
         * @param {Array} array The array to fill.
         * @param {*} value The value to fill the array with.
         * @param {Number} [start=0] The index to start filling at.
         * @param {Number} [end=array.length] The index to end stop at.
         *
         * @returns {Array} The resulting array.
         * @private
         */
        function arrayFill(array, value, start, end) {
            //>>includeStart('debug', pragmas.debug);
            Check.Check.defined('array', array);
            Check.Check.defined('value', value);
            if (when.defined(start)) {
                Check.Check.typeOf.number('start', start);
            }
            if (when.defined(end)) {
                Check.Check.typeOf.number('end', end);
            }
            //>>includeEnd('debug');
 
            if (typeof array.fill === 'function') {
                return array.fill(value, start, end);
            }
 
            var length = array.length >>> 0;
            var relativeStart = when.defaultValue(start, 0);
            // If negative, find wrap around position
            var k = (relativeStart < 0) ? Math.max(length + relativeStart, 0) : Math.min(relativeStart, length);
            var relativeEnd = when.defaultValue(end, length);
            // If negative, find wrap around position
            var last = (relativeEnd < 0) ? Math.max(length + relativeEnd, 0) : Math.min(relativeEnd, length);
 
            // Fill array accordingly
            while (k < last) {
                array[k] = value;
                k++;
            }
            return array;
        }
 
    /**
         * Represents which vertices should have a value of `true` for the `applyOffset` attribute
         * @private
         */
        var GeometryOffsetAttribute = {
            NONE : 0,
            TOP : 1,
            ALL : 2
        };
    var GeometryOffsetAttribute$1 = Object.freeze(GeometryOffsetAttribute);
 
    exports.GeometryOffsetAttribute = GeometryOffsetAttribute$1;
    exports.arrayFill = arrayFill;
 
});