import VectorType from '../enum/VectorType.js' import CustomImage from '../Geometry/CustomImage.js' import { mathUtil } from '../MathUtil.js' import { floorplanService } from './FloorplanService' import Constant from '../Constant' export default class CustomImageService { constructor() { this.url = null; } setCustomImageUrl(url){ this.url = url; } createCustomImage(center,vectorId) { const customImage = new CustomImage(this.url, center,vectorId) floorplanService.addCustomImage(customImage) this.url = null; return customImage } deleteCustomImage(customImageId, floorNum) { floorplanService.deleteCustomImage(customImageId, floorNum) } } const customImageService = new CustomImageService() export { customImageService }