INNER CODE UNIT · JavaScript

line

vasani-arpit/Social-Media-Automation · line-helper.js:37

        var line = this.allLines.find(line => line.from === startElement && line.to === EndElement);
        //remove the line 
        line.line.remove();
        this.allLines.splice(this.allLines.indexOf(line), 1);
        highlightLineConfigs.middleLabel = LeaderLine.pathLabel({ text: message || `New post received` });
        var highlightLine = new LeaderLine(
            checkOrGetElement(startElement),
            LeaderLine.pointAnchor({ element: checkOrGetElement(EndElement), x: -5, y: '50%' }),
            highlightLineConfigs,
        );
        highlightLine.show("draw");
        //create a new for a 1500ms
        setTimeout(() => {
            highlightLine.remove();
            this.drawLine(startElement, EndElement);
        }, 5000)
        //create the normal line again
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…