sachinchoolur / lightGallery

A customizable, modular, responsive, lightbox gallery plugin.
https://www.lightgalleryjs.com/
Other
6.55k stars 1.29k forks source link

plugins name #1636

Closed coderlyu closed 3 months ago

coderlyu commented 5 months ago

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

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.