@inglorious/renderer-react-dom 14.0.0 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/src/game/character/character.module.scss +17 -17
- package/src/game/cursor/cursor.module.scss +47 -47
- package/src/game/form/fields/field/field.module.scss +5 -5
- package/src/game/form/fields/fields.module.scss +48 -48
- package/src/game/form/form.module.scss +18 -18
- package/src/game/platform/platform.module.scss +7 -7
- package/src/game/scene/scene.module.scss +9 -9
- package/src/game/sprite/sprite.module.css +3 -3
- package/src/hocs/with-absolute-position/with-absolute-position.module.scss +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/renderer-react-dom",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.1",
|
|
4
4
|
"description": "A renderer for the Inglorious Engine, using React components.",
|
|
5
5
|
"author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"react": "^19.1.1",
|
|
29
29
|
"react-dom": "^19.1.1",
|
|
30
30
|
"react-redux": "^9.2.0",
|
|
31
|
-
"@inglorious/utils": "3.7.
|
|
32
|
-
"@inglorious/engine": "15.0.
|
|
31
|
+
"@inglorious/utils": "3.7.2",
|
|
32
|
+
"@inglorious/engine": "15.0.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"react": "^19.1.1",
|
|
36
36
|
"react-dom": "^19.1.1",
|
|
37
37
|
"react-redux": "^9.2.0",
|
|
38
|
-
"@inglorious/engine": "15.0.
|
|
39
|
-
"@inglorious/utils": "3.7.
|
|
38
|
+
"@inglorious/engine": "15.0.1",
|
|
39
|
+
"@inglorious/utils": "3.7.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"eslint": "^9.34.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@inglorious/eslint-config": "1.1.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
|
-
"format": "prettier --write
|
|
49
|
-
"lint": "eslint .
|
|
48
|
+
"format": "prettier --write .",
|
|
49
|
+
"lint": "eslint ."
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.character {
|
|
2
|
-
width: var(--size);
|
|
3
|
-
height: var(--size);
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
background-color: lightgrey;
|
|
6
|
-
border: 1px solid grey;
|
|
7
|
-
border-radius: 50%;
|
|
8
|
-
transform: translate(-50%, -50%) rotate(var(--angle));
|
|
9
|
-
|
|
10
|
-
&::after {
|
|
11
|
-
content:
|
|
12
|
-
position: absolute;
|
|
13
|
-
top: 50%;
|
|
14
|
-
right: 0;
|
|
15
|
-
transform: translate(50%, -50%) rotate(90deg);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
.character {
|
|
2
|
+
width: var(--size);
|
|
3
|
+
height: var(--size);
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
background-color: lightgrey;
|
|
6
|
+
border: 1px solid grey;
|
|
7
|
+
border-radius: 50%;
|
|
8
|
+
transform: translate(-50%, -50%) rotate(var(--angle));
|
|
9
|
+
|
|
10
|
+
&::after {
|
|
11
|
+
content: "🞁";
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 50%;
|
|
14
|
+
right: 0;
|
|
15
|
+
transform: translate(50%, -50%) rotate(90deg);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
.cursor {
|
|
2
|
-
width: 1px;
|
|
3
|
-
height: 1px;
|
|
4
|
-
background-color: black;
|
|
5
|
-
transform: rotate(var(--angle));
|
|
6
|
-
pointer-events: none;
|
|
7
|
-
|
|
8
|
-
.top,
|
|
9
|
-
.bottom,
|
|
10
|
-
.left,
|
|
11
|
-
.right {
|
|
12
|
-
background-color: black;
|
|
13
|
-
position: absolute;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.top,
|
|
17
|
-
.bottom {
|
|
18
|
-
width: 1px;
|
|
19
|
-
height: 4px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.top {
|
|
23
|
-
bottom: 5px;
|
|
24
|
-
left: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.bottom {
|
|
28
|
-
top: 5px;
|
|
29
|
-
left: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.left,
|
|
33
|
-
.right {
|
|
34
|
-
width: 4px;
|
|
35
|
-
height: 1px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.left {
|
|
39
|
-
top: 0;
|
|
40
|
-
right: 5px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.right {
|
|
44
|
-
top: 0;
|
|
45
|
-
left: 5px;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
.cursor {
|
|
2
|
+
width: 1px;
|
|
3
|
+
height: 1px;
|
|
4
|
+
background-color: black;
|
|
5
|
+
transform: rotate(var(--angle));
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
|
|
8
|
+
.top,
|
|
9
|
+
.bottom,
|
|
10
|
+
.left,
|
|
11
|
+
.right {
|
|
12
|
+
background-color: black;
|
|
13
|
+
position: absolute;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.top,
|
|
17
|
+
.bottom {
|
|
18
|
+
width: 1px;
|
|
19
|
+
height: 4px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.top {
|
|
23
|
+
bottom: 5px;
|
|
24
|
+
left: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.bottom {
|
|
28
|
+
top: 5px;
|
|
29
|
+
left: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.left,
|
|
33
|
+
.right {
|
|
34
|
+
width: 4px;
|
|
35
|
+
height: 1px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.left {
|
|
39
|
+
top: 0;
|
|
40
|
+
right: 5px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.right {
|
|
44
|
+
top: 0;
|
|
45
|
+
left: 5px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.field {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: 1fr 1fr auto;
|
|
4
|
-
column-gap: 0.5rem;
|
|
5
|
-
}
|
|
1
|
+
.field {
|
|
2
|
+
display: grid;
|
|
3
|
+
grid-template-columns: 1fr 1fr auto;
|
|
4
|
+
column-gap: 0.5rem;
|
|
5
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
$black: #282c34;
|
|
2
|
-
$dark-grey: #32363e;
|
|
3
|
-
$middle-grey: #5c6370;
|
|
4
|
-
$light-grey: #abb2bf;
|
|
5
|
-
$highlight: #c678dd;
|
|
6
|
-
|
|
7
|
-
.fields {
|
|
8
|
-
padding: 1rem;
|
|
9
|
-
display: grid;
|
|
10
|
-
row-gap: 0.5rem;
|
|
11
|
-
border-bottom: 1px solid $black;
|
|
12
|
-
|
|
13
|
-
label,
|
|
14
|
-
input,
|
|
15
|
-
button {
|
|
16
|
-
color: $light-grey;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
input {
|
|
20
|
-
background-color: $dark-grey;
|
|
21
|
-
border-top: 1px solid $black;
|
|
22
|
-
border-left: 1px solid $black;
|
|
23
|
-
border-bottom: 1px solid $light-grey;
|
|
24
|
-
border-right: 1px solid $light-grey;
|
|
25
|
-
outline: none;
|
|
26
|
-
|
|
27
|
-
&[type=
|
|
28
|
-
&[type=
|
|
29
|
-
accent-color: $dark-grey;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&[type=
|
|
33
|
-
text-align: right;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:focus {
|
|
37
|
-
outline: 1px solid $highlight;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
button {
|
|
42
|
-
background-color: $dark-grey;
|
|
43
|
-
border-top: 1px solid $light-grey;
|
|
44
|
-
border-left: 1px solid $light-grey;
|
|
45
|
-
border-bottom: 1px solid $black;
|
|
46
|
-
border-right: 1px solid $black;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
$black: #282c34;
|
|
2
|
+
$dark-grey: #32363e;
|
|
3
|
+
$middle-grey: #5c6370;
|
|
4
|
+
$light-grey: #abb2bf;
|
|
5
|
+
$highlight: #c678dd;
|
|
6
|
+
|
|
7
|
+
.fields {
|
|
8
|
+
padding: 1rem;
|
|
9
|
+
display: grid;
|
|
10
|
+
row-gap: 0.5rem;
|
|
11
|
+
border-bottom: 1px solid $black;
|
|
12
|
+
|
|
13
|
+
label,
|
|
14
|
+
input,
|
|
15
|
+
button {
|
|
16
|
+
color: $light-grey;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
input {
|
|
20
|
+
background-color: $dark-grey;
|
|
21
|
+
border-top: 1px solid $black;
|
|
22
|
+
border-left: 1px solid $black;
|
|
23
|
+
border-bottom: 1px solid $light-grey;
|
|
24
|
+
border-right: 1px solid $light-grey;
|
|
25
|
+
outline: none;
|
|
26
|
+
|
|
27
|
+
&[type="checkbox"],
|
|
28
|
+
&[type="radio"] {
|
|
29
|
+
accent-color: $dark-grey;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[type="number"] {
|
|
33
|
+
text-align: right;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&:focus {
|
|
37
|
+
outline: 1px solid $highlight;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
button {
|
|
42
|
+
background-color: $dark-grey;
|
|
43
|
+
border-top: 1px solid $light-grey;
|
|
44
|
+
border-left: 1px solid $light-grey;
|
|
45
|
+
border-bottom: 1px solid $black;
|
|
46
|
+
border-right: 1px solid $black;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
$black: #282c34;
|
|
2
|
-
$dark-grey: #32363e;
|
|
3
|
-
$middle-grey: #5c6370;
|
|
4
|
-
$light-grey: #abb2bf;
|
|
5
|
-
$highlight: #c678dd;
|
|
6
|
-
|
|
7
|
-
.form {
|
|
8
|
-
font-family: system-ui;
|
|
9
|
-
background-color: $dark-grey;
|
|
10
|
-
cursor: initial;
|
|
11
|
-
|
|
12
|
-
> .group {
|
|
13
|
-
color: $light-grey;
|
|
14
|
-
background-color: $middle-grey;
|
|
15
|
-
padding: 0.5rem;
|
|
16
|
-
border-top: 1px solid $light-grey;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
$black: #282c34;
|
|
2
|
+
$dark-grey: #32363e;
|
|
3
|
+
$middle-grey: #5c6370;
|
|
4
|
+
$light-grey: #abb2bf;
|
|
5
|
+
$highlight: #c678dd;
|
|
6
|
+
|
|
7
|
+
.form {
|
|
8
|
+
font-family: system-ui;
|
|
9
|
+
background-color: $dark-grey;
|
|
10
|
+
cursor: initial;
|
|
11
|
+
|
|
12
|
+
> .group {
|
|
13
|
+
color: $light-grey;
|
|
14
|
+
background-color: $middle-grey;
|
|
15
|
+
padding: 0.5rem;
|
|
16
|
+
border-top: 1px solid $light-grey;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.platform {
|
|
2
|
-
width: var(--width);
|
|
3
|
-
height: var(--height);
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
background-color: lightgrey;
|
|
6
|
-
border: 1px solid grey;
|
|
7
|
-
}
|
|
1
|
+
.platform {
|
|
2
|
+
width: var(--width);
|
|
3
|
+
height: var(--height);
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
background-color: lightgrey;
|
|
6
|
+
border: 1px solid grey;
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.scene {
|
|
2
|
-
background-color: lightgrey;
|
|
3
|
-
position: relative;
|
|
4
|
-
width: var(--width);
|
|
5
|
-
height: var(--height);
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
cursor: none;
|
|
8
|
-
user-select: none;
|
|
9
|
-
}
|
|
1
|
+
.scene {
|
|
2
|
+
background-color: lightgrey;
|
|
3
|
+
position: relative;
|
|
4
|
+
width: var(--width);
|
|
5
|
+
height: var(--height);
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
cursor: none;
|
|
8
|
+
user-select: none;
|
|
9
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
* {
|
|
2
|
-
image-rendering: pixelated;
|
|
3
|
-
}
|
|
1
|
+
* {
|
|
2
|
+
image-rendering: pixelated;
|
|
3
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.withAbsolutePosition {
|
|
2
|
-
position: absolute;
|
|
3
|
-
top: var(--y);
|
|
4
|
-
left: var(--x);
|
|
5
|
-
}
|
|
1
|
+
.withAbsolutePosition {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: var(--y);
|
|
4
|
+
left: var(--x);
|
|
5
|
+
}
|