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