-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* Class to easily draw lines to connect items in the vis Timeline module. | ||
* | ||
* @version 4.4.0 | ||
* @version 4.5.0 | ||
* @date 2024-02-3 | ||
* | ||
* @copyright (c) Javi Domenech ([email protected]) | ||
|
@@ -312,6 +312,16 @@ export default class Arrow { | |
getArrow(id) { | ||
return this._dependency.find(dep => dep.id === id) ?? null; | ||
} | ||
|
||
|
||
/** | ||
* Get all Id arrows. | ||
* | ||
* @return {(ArrowIdType)[]} list of id arrows | ||
*/ | ||
getIdArrows() { | ||
return this._dependency.map(dep => dep.id); | ||
} | ||
|
||
/** | ||
* Finds arrow with the given id and removes it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters