Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log('mscg ready! script is:', $scope.mscScript)
} catch (e) {
$scope.errorCustom('tabifyAggResponse error! ' + e)
}
// Prep containers
var container = document.getElementById(network_id)
container.style.height = container.getBoundingClientRect().height
container.height = container.getBoundingClientRect().height
// Cleanup any existing diagram
var svg = document.getElementById(svg_id)
if (svg) svg.remove()
$scope.initialShows()
mscgenjs.renderMsc(
$scope.mscScript || 'msc {}',
{
elementId: network_id,
inputType: 'xu',
width: 'auto',
additionalTemplate: $scope.vis.params.diagramStyle || 'classic',
mirrorEntitiesOnBottom: $scope.vis.params.mirrorEntitiesOnBottom || true
},
handleRenderMscResult
)
function handleRenderMscResult (pError, pSuccess) {
if (pError) { console.log('msc error: ',pError,$scope.mscScript);
} else { $scope.doneLoading(); }
}
} else {