source: node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/square.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: 295 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 w = (0, _math.sqrt)(size);
11 const x = -w / 2;
12 context.rect(x, x, w, w);
13 }
14};
Note: See TracBrowser for help on using the repository browser.