function addPositionActionTelemetry({ drawDefinition, positionAction }) {
  const { extension } = findExtension({
    element: drawDefinition,
    name: 'positionActions',
  });
  const updatedExtension = {
    name: 'positionActions',
    value: Array.isArray(extension?.value)
      ? extension.value.concat(positionAction)
      : [positionAction],
  };
  addExtension({ element: drawDefinition, extension: updatedExtension });
}
// updates 'positionActions' extension to keep track of positionActions by end-user
updates 'positionActions' extension to keep track of positionActions by end-user
updates ' positionActions ' extension to keep track of positionActions by end - user
function addPositionActionTelemetry({ drawDefinition, positionAction }) {
  const { extension } = findExtension({
    element: drawDefinition,
    name: 'positionActions',
  });
  const updatedExtension = {
    name: 'positionActions',
    value: Array.isArray(extension?.value)
      ? extension.value.concat(positionAction)
      : [positionAction],
  };
  addExtension({ element: drawDefinition, extension: updatedExtension });
}
function addPositionActionTelemetry ( { drawDefinition , positionAction } ) { const { extension } = findExtension ( { element : drawDefinition , name : 'positionActions' , } ) ; const updatedExtension = { name : 'positionActions' , value : Array . isArray ( extension ?. value ) ? extension . value . concat ( positionAction ) : [ positionAction ] , } ; addExtension ( { element : drawDefinition , extension : updatedExtension } ) ; }
updates 'positionActions' extension to keep track of positionActions by end-user
updates ' positionActions ' extension to keep track of positionActions by end - user