UNPKG
@core-graphics/rect
Version:
latest (0.1.7)
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
JS utilities for managing rects
github.com/segunadebayo/js-toolkit
segunadebayo/js-tookit
@core-graphics/rect
/
dist
/
declarations
/
src
/
create
/
from-points.d.ts
7 lines
(6 loc)
•
210 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
type
{
PointValue
}
from
"@core-graphics/point"
;
import
{
Rect
}
from
"../lite"
;
/** * Creates a rectangle from a set of points */
export
declare
function
fromPoints
(
...
pts
:
PointValue
[]
):
Rect
;