qd-changjing/public/static/Build/CesiumUnminified/Workers/GeometryOffsetAttribute-7e0...

1 line
3.4 KiB
Plaintext

{"version":3,"file":"GeometryOffsetAttribute-7e016332.js","sources":["../../../../Source/Core/arrayFill.js","../../../../Source/Core/GeometryOffsetAttribute.js"],"sourcesContent":["import Check from \"./Check.js\";\nimport defaultValue from \"./defaultValue.js\";\nimport defined from \"./defined.js\";\n\n/**\n * Fill an array or a portion of an array with a given value.\n *\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill the array with.\n * @param {Number} [start=0] The index to start filling at.\n * @param {Number} [end=array.length] The index to end stop at.\n *\n * @returns {Array} The resulting array.\n * @private\n */\nfunction arrayFill(array, value, start, end) {\n //>>includeStart('debug', pragmas.debug);\n Check.defined(\"array\", array);\n Check.defined(\"value\", value);\n if (defined(start)) {\n Check.typeOf.number(\"start\", start);\n }\n if (defined(end)) {\n Check.typeOf.number(\"end\", end);\n }\n //>>includeEnd('debug');\n\n if (typeof array.fill === \"function\") {\n return array.fill(value, start, end);\n }\n\n const length = array.length >>> 0;\n const relativeStart = defaultValue(start, 0);\n // If negative, find wrap around position\n let k =\n relativeStart < 0\n ? Math.max(length + relativeStart, 0)\n : Math.min(relativeStart, length);\n const relativeEnd = defaultValue(end, length);\n // If negative, find wrap around position\n const last =\n relativeEnd < 0\n ? Math.max(length + relativeEnd, 0)\n : Math.min(relativeEnd, length);\n\n // Fill array accordingly\n while (k < last) {\n array[k] = value;\n k++;\n }\n return array;\n}\nexport default arrayFill;\n","/**\n * Represents which vertices should have a value of `true` for the `applyOffset` attribute\n * @private\n */\nconst GeometryOffsetAttribute = {\n NONE: 0,\n TOP: 1,\n ALL: 2,\n};\nexport default Object.freeze(GeometryOffsetAttribute);\n"],"names":["Check","defined","defaultValue"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;EAIA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,SAAS,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,KAA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