Revert "Add yet-another-react-lightbox package and update .gitignore to exclude node_modules"

This reverts commit c92f4a5edd.
This commit is contained in:
Desktop
2025-11-13 00:36:40 +05:00
parent 77ec8af4d1
commit 84e12b5146
9304 changed files with 2008667 additions and 29 deletions

View File

@@ -0,0 +1,40 @@
import { SelectHandler, PointSelectHandler } from './src/SelectHandler.js'
interface SelectionOptions {
createHandle?: (el: Element) => Element
updateHandle?: (el: Element, point: number[]) => void
createRot?: (el: Element) => Element
updateRot?: (el: Element, rotPoint: number[], handlePoints: number[][]) => void
}
declare module '@svgdotjs/svg.js' {
interface Element {
select(): this
select(enable: boolean): this
select(options: SelectionOptions): this
select(handler: SelectHandler): this
select(attr?: SelectHandler | SelectionOptions | boolean): this
}
interface Polygon {
pointSelect(): this
pointSelect(enable: boolean): this
pointSelect(options: SelectionOptions): this
pointSelect(handler: PointSelectHandler): this
pointSelect(attr?: PointSelectHandler | SelectionOptions | boolean): this
}
interface Polyline {
pointSelect(): this
pointSelect(enable: boolean): this
pointSelect(options: SelectionOptions): this
pointSelect(handler: PointSelectHandler): this
pointSelect(attr?: PointSelectHandler | SelectionOptions | boolean): this
}
interface Line {
pointSelect(): this
pointSelect(enable: boolean): this
pointSelect(options: SelectionOptions): this
pointSelect(handler: PointSelectHandler): this
pointSelect(attr?: PointSelectHandler | SelectionOptions | boolean): this
}
}