mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
Images and stylesheet files load as data: URLs, which hosts allow where some refuse blob: images; the scene-asset source gets an https app address the panel serves, since Codex pages use their own scheme; and a panel whose 3D context the browser takes back says so.
23 lines
779 B
JavaScript
23 lines
779 B
JavaScript
import { createAssetDirectorySource } from '../director/packs/source.js';
|
|
import { createApplicationTools } from '../app/tools.js';
|
|
import { startStandaloneChrome } from './startupChrome.js';
|
|
import { loadToolCatalog } from './toolCatalog.js';
|
|
export function createStandaloneTools(options) {
|
|
return createApplicationTools({
|
|
startChrome: startStandaloneChrome,
|
|
sceneDataPacks: {
|
|
sources: {
|
|
assets: createAssetDirectorySource({
|
|
// A panel names the app's address; see src/tools/globePanel.js.
|
|
baseUrl: new URL(
|
|
'/scene-assets/',
|
|
globalThis.GEV_APP_BASE_URL ?? document.baseURI,
|
|
).href,
|
|
}),
|
|
},
|
|
},
|
|
...options,
|
|
voice: { toolCatalog: loadToolCatalog, ...options?.voice },
|
|
});
|
|
}
|