refactor(player): move things to addons

This commit is contained in:
Alex Kaminskii 2022-11-30 21:55:13 +01:00
parent ccb688e7fd
commit 8dad93a1ca
3 changed files with 10 additions and 10 deletions

View file

@ -4,8 +4,8 @@ import type { Store } from '../common/types'
import Player, { State as PlayerState } from '../player/Player'
import MessageManager from './MessageManager'
import InspectorController from './InspectorController'
import TargetMarker from './TargetMarker'
import InspectorController from './addons/InspectorController'
import TargetMarker from './addons/TargetMarker'
import AssistManager, {
INITIAL_STATE as ASSIST_INITIAL_STATE,
} from './assist/AssistManager'
@ -14,7 +14,7 @@ import Screen from './Screen/Screen'
// export type State = typeof WebPlayer.INITIAL_STATE
export default class WebPlayer extends Player {
static INITIAL_STATE = {
static readonly INITIAL_STATE = {
...Player.INITIAL_STATE,
...TargetMarker.INITIAL_STATE,

View file

@ -1,7 +1,7 @@
import Marker from './Screen/Marker'
import Inspector from './Screen/Inspector'
import Screen from './Screen/Screen'
import type { Dimensions } from './Screen/types'
import Marker from '../Screen/Marker'
import Inspector from '../Screen/Inspector'
import Screen from '../Screen/Screen'
import type { Dimensions } from '../Screen/types'
export default class InspectorController {

View file

@ -1,6 +1,6 @@
import type Screen from './Screen/Screen'
import type { Point } from './Screen/types'
import type { Store } from '../common/types'
import type Screen from '../Screen/Screen'
import type { Point } from '../Screen/types'
import type { Store } from '../../common/types'
function getOffset(el: Element, innerWindow: Window) {