cvisionai / tator

Video analytics web platform
https://tator.io
GNU Affero General Public License v3.0
98 stars 32 forks source link

Allow applets to respond to `freshData` callback on patches #1700

Open marktaipan-cvisionai opened 1 month ago

marktaipan-cvisionai commented 1 month ago

Category Feature Request

Problem Currently canvas applets don't get the freshData callback on patches. This forces applets to have a manual reset that is asynchronous with the update call.

Request Have a new base function similar to newData() that is updatedData() in the freshData event listener in annotation-page.js. Canvas applets can choose to override this function.