UNPKG
@benev/nubs
Version:
latest (0.3.0-dev.2)
0.3.0-dev.2
0.3.0-dev.1
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
0.0.0-dev.0
user-input system for web games
github.com/benevolent-games/nubs
benevolent-games/nubs
@benev/nubs
/
s
/
elements
/
stick-graphic
/
utils
/
transform.ts
10 lines
(7 loc)
•
166 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{noop
as
css}
from
"../../../tools/template-noop.js"
export
const
transform
= (
x
:
number
,
y
:
number
) => css`
transform
:
translate
(
${x}
px,
${y}
px ); `