/*
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","../../../../core/has","../../../../core/maybe","../../../../core/screenUtils","../../../../chunks/vec4f64","./layerUtils","../../webgl-engine/lib/edgeRendering/interfaces"],(function(e,n,r,t,o,s,i,a){"use strict";function c(e){return e&&e.enabled&&(i.isExtrudeSymbol3DLayer(e)||i.isFillSymbol3DLayer(e))&&t.isSome(e.edges)}function l(e){return e&&e.enabled&&e.edges||null}function u(e,n){return d(l(e),n)}function d(e,r){if(t.isNone(e))return null;const i=t.isSome(e.color)?s.fromArray(n.toUnitRGBA(e.color)):s.fromValues(0,0,0,0),a=o.pt2px(e.size),c=o.pt2px(e.extensionLength);switch(e.type){case"solid":return f({color:i,size:a,extensionLength:c,...r});case"sketch":return y({color:i,size:a,extensionLength:c,...r});default:return}}function f(e){return{...g,...e,type:"solid"}}function y(e){return{...p,...e,type:"sketch"}}const g={color:s.fromValues(0,0,0,.2),size:1,extensionLength:0,opacity:1,objectTransparency:a.Transparency.OPAQUE,hasSlicePlane:!1},p={color:s.fromValues(0,0,0,.2),size:1,extensionLength:0,opacity:1,objectTransparency:a.Transparency.OPAQUE,hasSlicePlane:!1};e.createMaterial=u,e.createMaterialFromEdges=d,e.createSolidEdgeMaterial=f,e.hasEdges=c,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
