source:
node_modules/d3-shape/src/symbol/plus.js@
e4c61dd
| Last change on this file since e4c61dd was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 248 bytes | |
| Rev | Line | |
|---|---|---|
| [e4c61dd] | 1 | import {min, sqrt} from "../math.js"; |
| 2 | ||
| 3 | export 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.
