/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import r from"../../../core/Error.js";import{createVectorFieldRenderer as e}from"../../../renderers/support/rasterRendererHelper.js";import{processRasterRendererParameters as t}from"../support/utils.js";async function o(r){return r=await t(r)}async function n(t){t=await o(t);const n=e(t.layer.serviceRasterInfo);if(null==n)throw new r("vector-field-renderer:not-supported","Only vector data is supported");return t.flowRepresentation&&(n.flowRepresentation=t.flowRepresentation),t.rotationType&&(n.rotationType=t.rotationType),t.style&&(n.style=t.style),{renderer:n}}export{n as createRenderer};
