Liesten ProCon

This commit is contained in:
marco committed 2026-10-27 10:23:39 +01:00
1 parent 4bfd5d9bf7
commit f43053d7b3
102 files changed
+2376 -86

No files matched your search

+13
View File
@@ -1,5 +1,8 @@
import { Injectable, NotFoundException } from '@nestjs/common';
import { parseMotorRequest } from '../_dto/motor.dto';
import { DrawFahrwagenOben } from '../graphics/elements/drawFahrwagenOben';
import { parseFahrwagenObenRequest } from '../_dto/fahrwagen-oben.dto';
import { parseAnlageDurminRequest } from '../_dto/anlage-durmin.dto';
import { parsePfeilRequest } from '../_dto/pfeil.dto';
import { DrawWarnung, parseWarnungRequest } from '../graphics/elements/drawWarnung';
import { DrawShapeOptionenDto } from 'src/_dto/draw.dto';
@@ -53,6 +56,7 @@ export class DrawService {
private readonly buildBehaelterMulti: DrawBehaelterMulti,
private readonly buildMotor: DrawMotor,
private readonly buildAnlageDurmin: DrawAnlageDurmin,
private readonly buildFahrwagenOben: DrawFahrwagenOben,
@@ -69,6 +73,15 @@ export class DrawService {
renderGraphic(type: string, input: unknown) {
switch (type) {
case 'fahrbandOben': // Kompatibilität für bereits gespeicherte Generatoren.
case 'fahrwagenOben': {
const { config, options } = parseFahrwagenObenRequest(input);
return this.buildFahrwagenOben.getObject(config, options);
}
case 'anlageDurmin': {
const { config, options } = parseAnlageDurminRequest(input);
return this.buildAnlageDurmin.getObject(config, options);
}
case 'pfeil': {
const { config, options } = parsePfeilRequest(input);
return this.buildPfeil.getObject(config, options);