@eturnity/eturnity_3d 1.0.36 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_3d",
3
3
  "private": false,
4
- "version": "1.0.36",
4
+ "version": "1.0.38",
5
5
  "main": "dist/main.js",
6
6
  "scripts": {
7
7
  "dev": "vue-cli-service serve --skip-plugins @vue/cli-plugin-eslint",
@@ -324,7 +324,6 @@ export default {
324
324
  //roofs
325
325
  let mesh=this.meshes.roofMeshes[roof.id]
326
326
  mesh.material=this.material.roof
327
- console.log(this.material.roof)
328
327
  if(this.material.roof && this.material.roof.project){
329
328
  this.material.roof.project(mesh)
330
329
  }
@@ -838,7 +837,17 @@ export default {
838
837
  this.renderBackground()
839
838
  },
840
839
  async loadProjectionMaterial() {
841
- if(!this.layoutSettings.base64_image_url) return
840
+ if(!this.layoutSettings.base64_image_url)
841
+ {
842
+ this.loader.load(require("../assets/images/white_tile.png"),(texture)=>{
843
+ let projectionMaterial = new ProjectedMaterial({
844
+ camera: _this.cameraprojection,
845
+ texture: texture
846
+ })
847
+ this.material.roof = projectionMaterial
848
+ })
849
+ return
850
+ }
842
851
  const _this=this
843
852
  let projectedMaterialLoaded= await new Promise((resolve,reject) => {
844
853
  this.loader.load(this.layoutSettings.base64_image_url,(texture)=>{
@@ -1,5 +1,5 @@
1
1
  import * as L from 'leaflet'
2
- import 'leaflet.gridlayer.googlemutant'
2
+ import 'leaflet.gridlayer.googlemutant/dist/Leaflet.GoogleMutant'
3
3
  import { leafletMapLayersConfig } from './leaflet-config.service'
4
4
 
5
5
  function getLayers() {