source: node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/square2.js

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 385 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7var _math = require("../math.js");
8var _default = exports.default = {
9 draw(context, size) {
10 const r = (0, _math.sqrt)(size) * 0.4431;
11 context.moveTo(r, r);
12 context.lineTo(r, -r);
13 context.lineTo(-r, -r);
14 context.lineTo(-r, r);
15 context.closePath();
16 }
17};
Note: See TracBrowser for help on using the repository browser.