Skip to content

Commit

Permalink
viewport event subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
palhimanshu1991 committed Oct 22, 2023
1 parent 9b5ce08 commit 7e76628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/core/tools/base-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import { Color, Intersection, Line, LineBasicMaterial, Material, Mesh, MeshBasic
import { AnyControlPoint } from '../../modules/three-js/objects/control-point';
import { ObjectTypes } from '../../modules/tv-map/models/tv-common';
import { TvMapInstance } from '../../modules/tv-map/services/tv-map-source-file';
import { MonoBehaviour } from '../components/mono-behaviour';
import { ViewportEventSubscriber } from './viewport-event-subscriber';
import { KeyboardInput } from '../input';
import { ToolType } from '../models/tool-types.enum';
import { IEditorState } from './i-editor-state';

export abstract class BaseTool extends MonoBehaviour implements IEditorState {
export abstract class BaseTool extends ViewportEventSubscriber implements IEditorState {

abstract name: string;
abstract toolType: ToolType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Subscription } from 'rxjs';
import { Vector3 } from 'three';
import { AppService } from '../services/app.service';

export class MonoBehaviour {
export abstract class ViewportEventSubscriber {

subscribed: boolean = false;

Expand Down

0 comments on commit 7e76628

Please sign in to comment.