{"version":3,"sources":["jsdelivr-header.js","/npm/threejs-geometry-retractable-sphere@1.0.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,SAAW,QAAQ,cACnB,SAAW,QAAQ,cAEvB,SAAS,sBAAsB,EAAO,EAAO,GACvC,aAAoB,MAAM,WAC9B,EAAW,IAAI,SAAS,IAGzB,IAAI,EAAS,EAAS,SAAS,OAAO,MAEtC,MAAM,KAAK,KAAK,KACf,IAAI,SAAS,EAAO,GACpB,GAGD,KAAK,SAAS,eAAiB,IAAI,MAAM,OAAO,IAAI,MAAM,QAAW,GACrE,KAAK,SAAS,YAAc,IAAI,MAAM,KACrC,IAAI,MAAM,SAAS,GAAS,GAAS,GACrC,IAAI,MAAM,QAAQ,EAAQ,EAAQ,GAEpC,CAEA,sBAAsB,UAAY,OAAO,OAAO,MAAM,KAAK,WAE3D,OAAO,QAAU","file":"/npm/threejs-geometry-retractable-sphere@1.0.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/threejs-geometry-retractable-sphere@1.0.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var Material = require('./Material');\nvar Geometry = require('./Geometry');\n\nfunction RetractableSphereMesh(segsU, segsV, material) {\n\tif(!(material instanceof THREE.Material)) {\n\t\tmaterial = new Material(material);\n\t}\n\n\tvar radius = material.uniforms.radius.value;\n\n\tTHREE.Mesh.call(this, \n\t\tnew Geometry(segsU, segsV), \n\t\tmaterial\n\t);\n\n\tthis.geometry.boundingSphere = new THREE.Sphere(new THREE.Vector3(), radius);\n\tthis.geometry.boundingBox = new THREE.Box3(\n\t\tnew THREE.Vector3(-radius, -radius, -radius),\n\t\tnew THREE.Vector3(radius, radius, radius)\n\t);\n}\n\nRetractableSphereMesh.prototype = Object.create(THREE.Mesh.prototype);\n\nmodule.exports = RetractableSphereMesh;"]}