UNPKG

@arcgis/core

Version:

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

6 lines (5 loc) 760 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 s}from"./support/builderUtils.js";import{lineVerticesOffset as r,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 d=n,{builderConfig:u}=f,c=t(u),h=e(u),x=o(u),P=s(u,h);r({templatePart:f,edits:a,relationships:l,shape:d,distance:P,isProportional:h,offsetDistance:c,vertexBeforeOffset:x,vertexPlacement:i.NotEnd,mode:m})}const n=!1;export{f as execute,n as isAsync};