source: node_modules/d3-shape/src/symbol/diamond2.js

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

Prototype 1.1

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