pfeile
This commit is contained in:
1 parent
367c93c93e
commit
4bfd5d9bf7
34 files changed
+558
-94
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import { Injectable, NotFoundException } from '@nestjs/common';
|
||||
import { parseMotorRequest } from '../_dto/motor.dto';
|
||||
import { parsePfeilRequest } from '../_dto/pfeil.dto';
|
||||
import { DrawWarnung, parseWarnungRequest } from '../graphics/elements/drawWarnung';
|
||||
import { DrawShapeOptionenDto } from 'src/_dto/draw.dto';
|
||||
import { DrawBand } from 'src/graphics/elements/drawBand';
|
||||
@@ -68,6 +69,10 @@ export class DrawService {
|
||||
|
||||
renderGraphic(type: string, input: unknown) {
|
||||
switch (type) {
|
||||
case 'pfeil': {
|
||||
const { config, options } = parsePfeilRequest(input);
|
||||
return this.buildPfeil.getObject(config, options);
|
||||
}
|
||||
case 'warnung': {
|
||||
const { config, options } = parseWarnungRequest(input);
|
||||
return this.buildWarnung.getObject(config, options);
|
||||
|
||||
Reference in new issue
Block a user