1
Fork 0
mirror of https://github.com/glassflame/glassflame.github.io.git synced 2024-11-25 17:44:26 +00:00

Remove unused code

This commit is contained in:
Steffo 2023-10-24 11:17:59 +02:00
parent c0c996b5c1
commit 2ead674928

View file

@ -20,13 +20,6 @@ export class EdgeElement extends CanvasItemElement {
const toSide = this.getAttribute("node-to-side") const toSide = this.getAttribute("node-to-side")
const [x2, y2] = toNode.getCenterCoordinatesOfSide(toSide) const [x2, y2] = toNode.getCenterCoordinatesOfSide(toSide)
const minX = Math.min(x1, x2)
const minY = Math.min(y1, y2)
const diffX = Math.abs(x1 - x2)
const diffY = Math.abs(y1 - y2)
const arrows = this.getAttribute("arrows") ?? "end"
this.svgSlotted = document.createElementNS("http://www.w3.org/2000/svg", "svg") this.svgSlotted = document.createElementNS("http://www.w3.org/2000/svg", "svg")
this.svgSlotted.slot = "edge-svg" this.svgSlotted.slot = "edge-svg"
this.svgSlotted.style.setProperty("position", "absolute") this.svgSlotted.style.setProperty("position", "absolute")