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.

Control Circle Element Open in Sandbox

Description

This interactive demonstrates a draggable circle.

Script

/**
* @title Control Circle Element
* @description This interactive demonstrates a draggable circle.
* @tags [elements, input]
*/
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 control = interactive.controlCircle(100, 75);
//# sourceMappingURL=control-circle-element.js.map