first commit
This commit is contained in:
9
node_modules/d3-shape/src/symbol/square.js
generated
vendored
Normal file
9
node_modules/d3-shape/src/symbol/square.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import {sqrt} from "../math.js";
|
||||
|
||||
export default {
|
||||
draw(context, size) {
|
||||
const w = sqrt(size);
|
||||
const x = -w / 2;
|
||||
context.rect(x, x, w, w);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user