source: node_modules/victory-vendor/lib-vendor/d3-shape/src/symbol/asterisk.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: 528 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7var _math = require("../math.js");
8const sqrt3 = (0, _math.sqrt)(3);
9var _default = exports.default = {
10 draw(context, size) {
11 const r = (0, _math.sqrt)(size + (0, _math.min)(size / 28, 0.75)) * 0.59436;
12 const t = r / 2;
13 const u = t * sqrt3;
14 context.moveTo(0, r);
15 context.lineTo(0, -r);
16 context.moveTo(-u, -t);
17 context.lineTo(u, t);
18 context.moveTo(-u, t);
19 context.lineTo(u, -t);
20 }
21};
Note: See TracBrowser for help on using the repository browser.