Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

empty svg path #2

@ryanrain

Description

@ryanrain

heya, i've tried passing in hardcoded numbers, and also css selectors to "from" and "to" in the config object, but always get a path in the svg without any coords!

let imgSelector = 'img.' + target.getAttribute('data-word'),
    spanSelector = 'span.' + target.getAttribute('data-word');
let connector = new ConnectionLine({
  from: imgSelector,
  to: spanSelector
});

console.log(imgSelector,spanSelector); // all good
this.lines.nativeElement.appendChild(connector.element); // this works too, i see the new element in the DOM

any ideas? thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions