fix private properties.

This commit is contained in:
Miroslav Šedivý
2024-02-21 18:10:18 +01:00
parent 09acada1af
commit 37f93eae6b
4 changed files with 46 additions and 46 deletions

View File

@ -75,54 +75,54 @@
export default class extends Vue {
@Ref('overlay') readonly _overlay!: HTMLCanvasElement
@Ref('textarea') readonly _textarea!: HTMLTextAreaElement
private _ctx!: CanvasRenderingContext2D
_ctx!: CanvasRenderingContext2D
private canvasScale = window.devicePixelRatio
canvasScale = window.devicePixelRatio
private keyboard!: KeyboardInterface
private gestureHandler!: GestureHandler
private textInput = ''
keyboard!: KeyboardInterface
gestureHandler!: GestureHandler
textInput = ''
private focused = false
focused = false
@Prop()
private readonly control!: NekoControl
readonly control!: NekoControl
@Prop()
private readonly sessions!: Record<string, Session>
readonly sessions!: Record<string, Session>
@Prop()
private readonly hostId!: string
readonly hostId!: string
@Prop()
private readonly webrtc!: NekoWebRTC
readonly webrtc!: NekoWebRTC
@Prop()
private readonly scroll!: Scroll
readonly scroll!: Scroll
@Prop()
private readonly screenSize!: Dimension
readonly screenSize!: Dimension
@Prop()
private readonly canvasSize!: Dimension
readonly canvasSize!: Dimension
@Prop()
private readonly cursorDraw!: CursorDrawFunction | null
readonly cursorDraw!: CursorDrawFunction | null
@Prop()
private readonly isControling!: boolean
readonly isControling!: boolean
@Prop()
private readonly implicitControl!: boolean
readonly implicitControl!: boolean
@Prop()
private readonly inactiveCursors!: boolean
readonly inactiveCursors!: boolean
@Prop()
private readonly fps!: number
readonly fps!: number
@Prop()
private readonly hasMobileKeyboard!: boolean
readonly hasMobileKeyboard!: boolean
get cursor(): string {
if (!this.isControling || !this.cursorImage) {