source: node_modules/d3-shape/src/symbol/plus.js@ e4c61dd

Last change on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 248 bytes
Line 
1import {min, sqrt} from "../math.js";
2
3export default {
4 draw(context, size) {
5 const r = sqrt(size - min(size / 7, 2)) * 0.87559;
6 context.moveTo(-r, 0);
7 context.lineTo(r, 0);
8 context.moveTo(0, r);
9 context.lineTo(0, -r);
10 }
11};
Note: See TracBrowser for help on using the repository browser.