UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

6 lines (5 loc) 762 B
/* All material copyright ESRI, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.32/esri/copyright.txt for details. */ import{readOffsetDistance as t,readIsProportional as e,readVertexBeforeOffset as o,readDistance as r}from"./support/builderUtils.js";import{lineVerticesOffset as s,VertexPlacement as i}from"./support/offsetUtils.js";import{isPolyline as p}from"../support/executorUtils.js";function f({templatePart:f,shape:n,edits:a,relationships:l,mode:m}){if(!p(n))return;const u=n,{builderConfig:c}=f,d=t(c),h=e(c),x=o(c),P=r(c,h);s({templatePart:f,edits:a,relationships:l,shape:u,distance:P,isProportional:h,offsetDistance:d,vertexBeforeOffset:x,vertexPlacement:i.Interior,mode:m})}const n=!1;export{f as execute,n as isAsync};