lightGallery
lightGallery copied to clipboard
plugins name
Summary
I am developing a plugin to extend the original functionality. I need to determine the names of other plugins, but I find that the current plugins have no names. Should I consider giving each built-in plugin a name?
Basic example
I currently do this, but I think it would be nice to give the built-in plugin a name
import lgZoom from 'lightgallery/plugins/zoom'
lgZoom.prototype.name = 'Zoom'
Motivation
I have a requirement to expand the long press event, I need to find the scale variable in the Zoom plugin, so it would be convenient to have a name