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.

Path Element Open in Sandbox

Description

This interactive demonstrates the path element.

Script

/**
* @title Path Element
* @description This interactive demonstrates the path 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 path = interactive.path("M 50 50 Q 100 150 150 50");
path.classList.add('default');
//# sourceMappingURL=path-element.js.map