@Bean
fun previewingService(
templatingService: TemplatingService,
svgSizeExtractor: SvgSizeExtractor,
multipleSVGRendererService: MultipleSVGRenderingService,
labelRescaler: LabelRescaler,
templateRepository: SpringTemplateRepository
): PreviewingService =
CachedPreviewingService(
LanguagePreviewingService(
templatingService,
svgSizeExtractor,
multipleSVGRendererService,
labelRescaler
)
)
@Bean
fun multipleSVGRendererService(): MultipleSVGRenderingService {
return MultipleSVGRenderingServiceImpl(
FlavorAwareRenderingService(
InkscapeRendererService(),
listOf(
QRCodeFlavor()
)
)
)
}