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