3.0.3 • Published 6 years ago

drive-on-metz-svgcountercalculator v3.0.3

Weekly downloads
1
License
LGPL-2.1-or-later
Repository
-
Last release
6 years ago

Create a script reads the unit data for the Drive on Metz wargame.

It then uses the svgCounterCalculator to create a svg text of the counter image, and then saves the svg data as an svg file.

usage:

var fs = require('fs');
var units = require('drive-on-metz-unit-data');
var SvgCounterCalculator = require('drive-on-metz-svgcountercalculator');
var svgCounterCalculator = new SvgCounterCalculator();

for(var i=0;i < units.length;i++){
	var unit = units[i];
	var filename = unit.id + ".svg";
	var svgData = svgCounterCalculator.getSVGtag(unit, '0.32');

	fs.unlink(filename, function (err) {
		if (err) throw err;
	});
	fs.appendFile(filename, svgData, function (err) {
		if (err) throw err;
	});
}
3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

6 years ago