/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../Color","../../interactive/Manipulator3D","../../interactive/manipulatorUtils","../../interactive/editingTools/manipulatorUtils","../../webgl-engine/lib/GeometryUtil","../../../interactive/interfaces"],(function(e,t,o,r,a,i,n){"use strict";function s(e,o,a){return{geometry:i.createSphereGeometry(e,32,32),material:r.createManipulatorMaterial(t.toUnitRGBA(o)),stateMask:a}}function l(e){const t=[];return e.customColor1&&t.push(s(e.size,e.customColor1,n.ManipulatorStateCustomFlags.Custom1)),e.customColor2&&t.push(s(e.size,e.customColor2,n.ManipulatorStateCustomFlags.Custom2)),e.customColor3&&t.push(s(e.size,e.customColor3,n.ManipulatorStateCustomFlags.Custom3)),e.color&&t.push(s(e.size,e.color)),t}function u(e,t){const r=l(t),i=new o.Manipulator3D({view:e,renderObjects:r,elevationInfo:{mode:"absolute-height",offset:0}});return a.disableDisplayOnGrab(i),i}e.createSphereManipulator=u,e.createSphereManipulatorRenderObject=s,e.createSphereManipulatorRenderObjects=l,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
