UNPKG
@mui/x-charts-vendor
Version:
latest (8.19.0)
next (8.0.0-beta.3)
8.19.0
8.18.0
8.15.0
8.14.1
8.14.0
8.12.0
8.11.3
8.11.0
8.6.0
8.5.3
8.5.2
8.5.1
8.4.0
8.3.1
8.3.0
8.0.0
8.0.0-beta.3
8.0.0-beta.1
8.0.0-beta.0
8.0.0-alpha.13
8.0.0-alpha.10
8.0.0-alpha.8
8.0.0-alpha.7
8.0.0-alpha.5
8.0.0-alpha.4
8.0.0-alpha.3
8.0.0-alpha.1
8.0.0-alpha.0
7.20.0
7.19.0
7.18.0
7.16.0
7.15.0
7.14.0
7.13.0
7.12.1
7.12.0
Vendored dependencies for MUI X Charts.
github.com/mui/mui-x
mui/mui-x
@mui/x-charts-vendor
/
lib-vendor
/
d3-shape
/
src
/
symbol
/
square.js
14 lines
(13 loc)
•
295 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
default
=
void
0
;
var
_math =
require
(
"../math.js"
);
var
_default =
exports
.
default
= {
draw
(
context, size
) {
const
w = (
0
, _math.
sqrt
)(size);
const
x = -w /
2
; context.
rect
(x, x, w, w); } };