StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/draw-svg-path/index.js

24 lines
513 B

var abs = require('abs-svg-path')
var normalize = require('normalize-svg-path')
var methods = {
'M': 'moveTo',
'C': 'bezierCurveTo'
}
module.exports = function(context, segments) {
context.beginPath()
// Make path easy to reproduce.
normalize(abs(segments)).forEach(
function(segment) {
var command = segment[0]
var args = segment.slice(1)
// Convert the path command to a context method.
context[methods[command]].apply(context, args)
}
)
context.closePath()
}