Vector.js

Vector is an open source javascript library for creating interactive graphics. View the repository, browse the API, run the tests, or meet the team.

Line Element Open in Sandbox

Description

This interactive demonstrates the ellipse element.

Script

/**
* @title Line Element
* @description This interactive demonstrates the ellipse element.
* @tags [elements]
*/
import { Interactive, getScriptName } from '../../index.js';
let interactive = new Interactive(getScriptName());
interactive.width = 768;
interactive.height = 150;
interactive.root.style.border = "1px solid grey";
let line = interactive.line(50, 25, 150, 125);
//# sourceMappingURL=line-element.js.map