Add yet-another-react-lightbox package and update .gitignore to exclude node_modules
This commit is contained in:
32
frontend/node_modules/@svgdotjs/svg.js/src/elements/Polyline.js
generated
vendored
32
frontend/node_modules/@svgdotjs/svg.js/src/elements/Polyline.js
generated
vendored
@@ -1,32 +0,0 @@
|
||||
import {
|
||||
extend,
|
||||
nodeOrNew,
|
||||
register,
|
||||
wrapWithAttrCheck
|
||||
} from '../utils/adopter.js'
|
||||
import { registerMethods } from '../utils/methods.js'
|
||||
import PointArray from '../types/PointArray.js'
|
||||
import Shape from './Shape.js'
|
||||
import * as pointed from '../modules/core/pointed.js'
|
||||
import * as poly from '../modules/core/poly.js'
|
||||
|
||||
export default class Polyline extends Shape {
|
||||
// Initialize node
|
||||
constructor(node, attrs = node) {
|
||||
super(nodeOrNew('polyline', node), attrs)
|
||||
}
|
||||
}
|
||||
|
||||
registerMethods({
|
||||
Container: {
|
||||
// Create a wrapped polygon element
|
||||
polyline: wrapWithAttrCheck(function (p) {
|
||||
// make sure plot is called as a setter
|
||||
return this.put(new Polyline()).plot(p || new PointArray())
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
extend(Polyline, pointed)
|
||||
extend(Polyline, poly)
|
||||
register(Polyline, 'Polyline')
|
||||
Reference in New Issue
Block a user