UNPKG
@xlit/grid
Version:
latest (2.8.1)
2.8.1
2.8.0
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.14
2.6.13
2.6.12
2.6.11
2.6.10
2.6.9
2.6.8
2.6.7
2.6.6
2.6.5
2.6.4
2.6.3
2.6.2
2.6.1
2.6.0
2.5.1
2.5.0
2.4.0
2.3.1
2.3.0
xlit draggable grid layout custom element
github.com/reekoheek/xlit
reekoheek/xlit
@xlit/grid
/
dist
/
Item.d.ts
13 lines
(12 loc)
•
311 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
{
Rect
}
from
'./types.js'
;
export
declare
class
Item
implements
Rect
{
readonly
key
:
string
;
static
nextId
():
string
;
x
:
number
;
y
:
number
;
w
:
number
;
h
:
number
;
constructor
(
key
:
string
, { x, y, w, h }?:
Partial
<
Rect
>
);
clone
():
Item
;
collide
(
item
:
Item
):
boolean
; }