Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
17
node_modules/d3-shape/src/symbol/asterisk.js
generated
vendored
Normal file
17
node_modules/d3-shape/src/symbol/asterisk.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import {min, sqrt} from "../math.js";
|
||||
|
||||
const sqrt3 = sqrt(3);
|
||||
|
||||
export default {
|
||||
draw(context, size) {
|
||||
const r = sqrt(size + min(size / 28, 0.75)) * 0.59436;
|
||||
const t = r / 2;
|
||||
const u = t * sqrt3;
|
||||
context.moveTo(0, r);
|
||||
context.lineTo(0, -r);
|
||||
context.moveTo(-u, -t);
|
||||
context.lineTo(u, t);
|
||||
context.moveTo(-u, t);
|
||||
context.lineTo(u, -t);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue