Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
47ad8e3a
Commit
47ad8e3a
authored
3 years ago
by
Xiao Gui
Browse files
Options
Downloads
Patches
Plain Diff
chore add comments for base abstract cls
parent
9af3ba38
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/atlasComponents/userAnnotations/tools/type.ts
+13
-1
13 additions, 1 deletion
src/atlasComponents/userAnnotations/tools/type.ts
with
13 additions
and
1 deletion
src/atlasComponents/userAnnotations/tools/type.ts
+
13
−
1
View file @
47ad8e3a
...
...
@@ -39,19 +39,31 @@ export type TNgMouseEvent = {
}
}
/**
* base class to be extended by all annotation tools
*/
export
abstract
class
AbsToolClass
{
public
abstract
name
:
string
public
abstract
iconClass
:
string
/**
* @description
check if any specific
annotation is relevant to the tool. Used for filtering annotations
* @description
to be overwritten by subclass. Check if a given
annotation is relevant to the tool. Used for filtering annotations
.
* @param {TNgAnnotationEv} annotation
* @returns {boolean} if annotation is relevant to this tool
*/
public
abstract
ngAnnotationIsRelevant
(
hoverEv
:
TNgAnnotationEv
):
boolean
/**
* @description to be overwritten by subclass. Emit the latest representation of NgAnnotations from the tool.
*/
public
abstract
allNgAnnotations$
:
Observable
<
INgAnnotationTypes
[
keyof
INgAnnotationTypes
][]
>
/**
* @description to be overwritten by subclass. Called once every mousemove event, if the tool is active.
* @param {[number, number, number]} mousepos
* @returns {INgAnnotationTypes[keyof INgAnnotationTypes][]} Array of NgAnnotation to be rendered.
*/
public
abstract
onMouseMoveRenderPreview
(
mousepos
:
[
number
,
number
,
number
]):
INgAnnotationTypes
[
keyof
INgAnnotationTypes
][]
constructor
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment