Add a hook that's called when the movement history is updated to the API

This commit is contained in:
Manuel Vögele
2021-04-30 00:01:41 +02:00
parent 6bf8083f7a
commit 56527ccf75
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -84,6 +84,12 @@ export class SpeedProvider {
return true
}
/**
* This hook is being called after Drag Ruler has updated the movement history for one or more tokens.
* It'll receive an array of tokens that have been updated
*/
async onMovementHistoryUpdate(tokens) {}
/**
* Returns the value that is currently set for the setting registered with the provided settingId.
*