/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{pt2px as o}from"../../../core/screenUtils.js";function s(s){let t=0,a=0,e=0;return s?("cim"===s.type&&s.data.symbol&&"symbolLayers"in s.data.symbol&&s.data.symbol.symbolLayers&&s.data.symbol.symbolLayers.map(o=>{"CIMVectorMarker"===o.type&&o.anchorPoint&&(Math.abs(o.anchorPoint.x)>t&&(t=o.anchorPoint.x),Math.abs(o.anchorPoint.y)>a&&(a=o.anchorPoint.y),null!=o.size&&o.size>e&&(e=o.size))}),t=o(t),a=o(a),e=o(e),{offsetX:t,offsetY:a,size:e}):{offsetX:t,offsetY:a,size:e}}export{s as getSymbolInfo};
