Feature: first working version of inspecting 360° images

This commit is contained in:
Pieter Vander Vennet 2025-03-30 03:10:29 +02:00
parent 7d104b4266
commit 01ba98a820
24 changed files with 330 additions and 436 deletions

View file

@ -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
View 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"