forked from MapComplete/MapComplete
Feature: first working version of inspecting 360° images
This commit is contained in:
parent
7d104b4266
commit
01ba98a820
24 changed files with 330 additions and 436 deletions
|
@ -9,6 +9,7 @@ import xml2js from "xml2js"
|
|||
export default class ScriptUtils {
|
||||
public static fixUtils() {
|
||||
Utils.externalDownloadFunction = ScriptUtils.Download
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
8
scripts/fixPannellum.sh
Executable file
8
scripts/fixPannellum.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Are you ready to feel really dirty?
|
||||
# Pannellum is a direct import (not a module!) which uses window.pannellum = function...
|
||||
# This breaks when importing this in nodeJS
|
||||
# So, we patch it up...
|
||||
echo "Fixing pannellum..."
|
||||
sed -i 's/^window./if(typeof window !== "undefined")\n&/' "./node_modules/pannellum/build/pannellum.js"
|
Loading…
Add table
Add a link
Reference in a new issue