forked from EXT/VR180-Web-Player
Folder organisation
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { setLucideIcon } from './icons.js';
|
||||
import { formatTime } from './time.js';
|
||||
import { formatTime } from '../utils/time.js';
|
||||
|
||||
type TwoDControlPanelCallbacks = {
|
||||
onForward: () => void;
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ProjectionMode } from './config.js';
|
||||
import type { ProjectionMode } from '../config.js';
|
||||
|
||||
type CameraControlsCallbacks = {
|
||||
hideControls: () => void;
|
||||
@@ -1,11 +1,11 @@
|
||||
import type { ProjectionMode } from './config.js';
|
||||
import type { ProjectionMode } from '../config.js';
|
||||
import type { FallbackCameraControls } from './fallback-camera-controls.js';
|
||||
import {
|
||||
hideRendererCanvas,
|
||||
resizeFallbackRenderer,
|
||||
showFallbackCanvas
|
||||
} from './renderer-lifecycle.js';
|
||||
import { TwoDControlPanel } from './two-d-control-panel.js';
|
||||
} from '../rendering/renderer-lifecycle.js';
|
||||
import { TwoDControlPanel } from '../dom/two-d-control-panel.js';
|
||||
|
||||
type TwoDModeCallbacks = {
|
||||
createMediaTexture: () => any;
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
PLANE_HEIGHT,
|
||||
PLANE_WIDTH,
|
||||
type ProjectionMode
|
||||
} from './config.js';
|
||||
} from '../config.js';
|
||||
|
||||
type ContentBeforeRender = (
|
||||
renderer: any,
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as THREE from 'https://unpkg.com/three/build/three.module.js';
|
||||
import { drawLucideIcon, type LucideIconName } from './icons.js';
|
||||
import { drawLucideIcon, type LucideIconName } from '../dom/icons.js';
|
||||
|
||||
type Radius = number | {
|
||||
tl?: number;
|
||||
@@ -6,35 +6,35 @@ import {
|
||||
type ProjectionMode,
|
||||
VALID_PROJECTIONS
|
||||
} from './config.js';
|
||||
import { createContentScene } from './content-scene.js';
|
||||
import { create2DControlPanel, createPlayButton, injectPlayerStyles } from './dom.js';
|
||||
import { createContentScene } from './rendering/content-scene.js';
|
||||
import { create2DControlPanel, createPlayButton, injectPlayerStyles } from './dom/dom.js';
|
||||
import {
|
||||
applySbsTextureWindow as applySbsTextureWindowCore,
|
||||
hideContentMeshes as hideContentMeshesCore,
|
||||
positionPlaneForPresentation as positionPlaneForPresentationCore,
|
||||
showActiveContentMesh as showActiveContentMeshCore
|
||||
} from './projection.js';
|
||||
import { createVideoTexture as createVideoTextureCore } from './three-utils.js';
|
||||
import { FallbackCameraControls } from './fallback-camera-controls.js';
|
||||
import { MediaController } from './media-controller.js';
|
||||
} from './rendering/projection.js';
|
||||
import { createVideoTexture as createVideoTextureCore } from './rendering/three-utils.js';
|
||||
import { FallbackCameraControls } from './modes/fallback-camera-controls.js';
|
||||
import { MediaController } from './media/media-controller.js';
|
||||
import {
|
||||
createVrController,
|
||||
handleVrControllerSelect
|
||||
} from './vr-controller-interactions.js';
|
||||
import { bindVideoEvents } from './video-events.js';
|
||||
} from './xr/vr-controller-interactions.js';
|
||||
import { bindVideoEvents } from './media/video-events.js';
|
||||
import {
|
||||
createVrControlPanel,
|
||||
type VrControlPanel,
|
||||
updateVrPlayPauseButtonIcon,
|
||||
updateVrSeekBarAppearance,
|
||||
updateVrVolumeButtonIcon
|
||||
} from './vr-control-panel.js';
|
||||
import { VrPanelVisibility } from './vr-panel-visibility.js';
|
||||
import { TwoDMode } from './two-d-mode.js';
|
||||
} from './xr/vr-control-panel.js';
|
||||
import { VrPanelVisibility } from './xr/vr-panel-visibility.js';
|
||||
import { TwoDMode } from './modes/two-d-mode.js';
|
||||
import {
|
||||
createPlayerRenderer,
|
||||
resizePlayerRenderer
|
||||
} from './renderer-lifecycle.js';
|
||||
} from './rendering/renderer-lifecycle.js';
|
||||
|
||||
const _playerBase = new URL('.', import.meta.url).href;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as THREE from 'https://unpkg.com/three/build/three.module.js';
|
||||
import { drawLucideIcon } from './icons.js';
|
||||
import { createLucideButtonTexture, drawRoundedRect } from './three-utils.js';
|
||||
import { drawLucideIcon } from '../dom/icons.js';
|
||||
import { createLucideButtonTexture, drawRoundedRect } from '../rendering/three-utils.js';
|
||||
|
||||
type ButtonLayout = {
|
||||
centerX: number;
|
||||
Reference in New Issue
Block a user