lightGallery icon indicating copy to clipboard operation
lightGallery copied to clipboard

plugins name

Open coderlyu opened this issue 8 months ago • 0 comments

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

coderlyu avatar May 30 '24 08:05 coderlyu