/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../core/maybe"],(function(t,o){"use strict";const e={dash:[4,3],dot:[1,3],"long-dash":[8,3],"short-dash":[4,1],"short-dot":[1,1]},s={dash:e.dash,"dash-dot":[...e.dash,...e.dot],dot:e.dot,"long-dash":e["long-dash"],"long-dash-dot":[...e["long-dash"],...e.dot],"long-dash-dot-dot":[...e["long-dash"],...e.dot,...e.dot],none:null,"short-dash":e["short-dash"],"short-dash-dot":[...e["short-dash"],...e["short-dot"]],"short-dash-dot-dot":[...e["short-dash"],...e["short-dot"],...e["short-dot"]],"short-dot":e["short-dot"],solid:null},d=8;function n(t,e=2){return o.isNone(t)?t:{pattern:t.slice(),pixelRatio:e}}function r(t,o=2){return{pattern:[t,t],pixelRatio:o}}function a(t){return o.isSome(t)&&"style"===t.type?h(t.style):null}function h(t){return o.isSome(t)?n(s[t],d):null}t.createStipplePattern=n,t.createStipplePatternSimple=r,t.getStipplePatternForLinePattern=a,t.getStipplePatternForPatternStyle=h,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
