Beispiel #1
0
        public ExpandVerticesCommand2(ILoggerFactory loggerFactory, ISvgService svgService)
        {
            _logger = loggerFactory.CreateLogger(nameof(ExpandVerticesCommand2));

            _svgService = svgService;

            CommandLineApplication command = ApplicationContext.CommandLineApplication
                                             .Command("expand-vertices2", config =>
            {
                config.Description = "TODO";
                config.OnExecute(() => Execute());
            });

            _inputPathArgument  = command.Argument("<input-path>", "TODO");
            _outputPathArgument = command.Argument("<output-path>", "TODO");
            _distanceArgument   = command.Argument("<distance>", "TODO");

            _debugSvg = command.Option(
                "--debug-svg",
                "TODO",
                CommandOptionType.SingleValue);
        }
Beispiel #2
0
        public ExpandVerticesCommand2(ILoggerFactory loggerFactory, ISvgService svgService)
        {
            _logger = loggerFactory.CreateLogger(nameof(ExpandVerticesCommand2));

            _svgService = svgService;

            CommandLineApplication command = ApplicationContext.CommandLineApplication
                                             .Command("expand-vertices2", config =>
            {
                config.Description = "Expand list of vertices; this version uses the GeometRi library to avoid issues with vertical lines that the expand-vertices command has.";
                config.OnExecute(() => Execute());
            });

            _inputPathArgument  = command.Argument("<input-path>", "TODO");
            _outputPathArgument = command.Argument("<output-path>", "TODO");
            _distanceArgument   = command.Argument("<distance>", "TODO");

            _debugSvg = command.Option(
                "--debug-svg",
                "TODO",
                CommandOptionType.SingleValue);
        }
Beispiel #3
0
 public ScalableVectorGraphicsController(IPdfService pdfService, ISvgService svgService)
 {
     _pdfService = pdfService;
     _svgService = svgService;
 }
Beispiel #4
0
 public void Setup()
 {
     _svgService = new SvgService();
 }
Beispiel #5
0
 public Program(IParameterFactory parameterFactory,
                ISvgService svgService)
 {
     this.ParameterFactory = parameterFactory;
     this.SvgService       = svgService;
 }