BgImage.js 487 B

12345678910111213141516171819202122
  1. import VectorType from '../enum/VectorType.js'
  2. import Geometry from './Geometry'
  3. export default class BgImage extends Geometry {
  4. constructor(src,vectorId, floor) {
  5. super()
  6. this.src = src;
  7. //this.src = src;
  8. this.image = null;
  9. this.floor = floor?floor:0
  10. this.geoType = VectorType.BgImage
  11. this.setId(vectorId)
  12. }
  13. setImageData(imgData){
  14. this.image = imgData;
  15. }
  16. setSrc(src){
  17. this.src = src;
  18. }
  19. }