Skip to content

Commit

Permalink
chore: rebuild docs, format src after bumping devDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacek Pietal committed Sep 8, 2023
1 parent 3716818 commit d956864
Show file tree
Hide file tree
Showing 100 changed files with 2,605 additions and 5,468 deletions.
46 changes: 23 additions & 23 deletions dist/demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3907,7 +3907,7 @@ class TestCanvas {
this.context.fillText(
`FPS: ${this.fps ? this.fps.toFixed(0) : "?"}`,
24,
48
48,
);

if (this.test.drawCallback) {
Expand Down Expand Up @@ -4030,7 +4030,7 @@ class Stress {
// as last step update position, and bounding box
body.setPosition(
body.x + body.directionX * this.timeScale,
body.y + body.directionY * this.timeScale
body.y + body.directionY * this.timeScale,
);

this.physics.checkOne(body, this.checkBounce);
Expand Down Expand Up @@ -4084,7 +4084,7 @@ class Stress {
body = this.physics.createCircle(
{ x, y },
random(minSize, maxSize) / 2,
options
options,
);

++this.circles;
Expand All @@ -4103,7 +4103,7 @@ class Stress {
{ x, y },
random(minSize, maxSize),
random(minSize, maxSize),
options
options,
);

++this.boxes;
Expand All @@ -4116,7 +4116,7 @@ class Stress {
x: x + random(minSize, maxSize),
y: y + random(minSize, maxSize),
},
options
options,
);

++this.lines;
Expand All @@ -4131,7 +4131,7 @@ class Stress {
{ x: random(minSize, maxSize), y: -random(minSize, maxSize) },
{ x: -random(minSize, maxSize), y: -random(minSize, maxSize) },
],
options
options,
);

++this.polygons;
Expand Down Expand Up @@ -4190,7 +4190,7 @@ class Tank {
{ x: -11.25, y: -7.51 },
]
.map(mapVectorToArray)
.map(([x, y]) => [x * 10, y * 10])
.map(([x, y]) => [x * 10, y * 10]),
);

this.up = false;
Expand Down Expand Up @@ -4261,7 +4261,7 @@ class Tank {
if (this.player.velocity > 0) {
this.player.velocity = Math.max(
this.player.velocity - 0.1 * this.timeScale,
0
0,
);

if (this.player.velocity > 2) {
Expand All @@ -4270,7 +4270,7 @@ class Tank {
} else if (this.player.velocity < 0) {
this.player.velocity = Math.min(
this.player.velocity + 0.1 * this.timeScale,
0
0,
);

if (this.player.velocity < -2) {
Expand All @@ -4285,7 +4285,7 @@ class Tank {
if (this.player.velocity) {
this.player.setPosition(
this.player.x + x * this.player.velocity,
this.player.y + y * this.player.velocity
this.player.y + y * this.player.velocity,
);
}
}
Expand Down Expand Up @@ -4317,7 +4317,7 @@ class Tank {
const hit = this.physics.raycast(
this.playerTurret.start,
this.playerTurret.end,
(test) => test !== this.player
(test) => test !== this.player,
);

this.drawCallback = () => {
Expand All @@ -4336,13 +4336,13 @@ class Tank {
? this.physics.createCircle(
{ x: this.scaleX(x), y: this.scaleY(y) },
this.scaleX(size / 2),
{ isCentered: true }
{ isCentered: true },
)
: this.physics.createBox(
{ x: this.scaleX(x - size / 2), y: this.scaleY(y - size / 2) },
this.scaleX(size),
this.scaleX(size),
{ isCentered: true }
{ isCentered: true },
);

player.velocity = 0;
Expand All @@ -4353,7 +4353,7 @@ class Tank {
this.playerTurret = this.physics.createLine(
player,
{ x: player.x + this.scaleX(20) + this.scaleY(20), y: player.y },
{ angle: 0.2, isTrigger: true }
{ angle: 0.2, isTrigger: true },
);

return player;
Expand All @@ -4370,7 +4370,7 @@ class Tank {
createCircle(x, y, radius) {
this.physics.createCircle(
{ x: this.scaleX(x), y: this.scaleY(y) },
this.scaleX(radius)
this.scaleX(radius),
);
}

Expand All @@ -4380,7 +4380,7 @@ class Tank {
this.scaleX(radiusX),
this.scaleY(radiusY),
step,
{ angle }
{ angle },
);
}

Expand All @@ -4393,7 +4393,7 @@ class Tank {
return this.physics.createPolygon(
{ x: this.scaleX(x), y: this.scaleY(y) },
scaledPoints,
{ angle }
{ angle },
);
}

Expand Down Expand Up @@ -4427,7 +4427,7 @@ class Tank {
[50, 50],
[-50, 50],
],
0.4
0.4,
);
this.createPolygon(
190,
Expand All @@ -4438,7 +4438,7 @@ class Tank {
[20, 20],
[-20, 20],
],
0.4
0.4,
);
this.createCircle(170, 140, 6);
this.createCircle(185, 155, 6);
Expand All @@ -4455,7 +4455,7 @@ class Tank {
[150, 30],
[-150, 30],
],
0.4
0.4,
);

// HQ
Expand All @@ -4468,7 +4468,7 @@ class Tank {
[50, 50],
[-50, 50],
],
0.2
0.2,
);
this.createCircle(180, 490, 12);
this.createCircle(175, 540, 12);
Expand All @@ -4483,7 +4483,7 @@ class Tank {
[60, 20],
[-60, 20],
],
1.7
1.7,
);
this.createPolygon(
350,
Expand All @@ -4494,7 +4494,7 @@ class Tank {
[60, 20],
[-60, 20],
],
1.7
1.7,
);

// Mountains
Expand Down
2 changes: 1 addition & 1 deletion dist/demo/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand Down
7 changes: 4 additions & 3 deletions docs/assets/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

36 changes: 26 additions & 10 deletions docs/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
--light-color-ts-accessor: var(--light-color-ts-property);
--light-color-ts-get-signature: var(--light-color-ts-accessor);
--light-color-ts-set-signature: var(--light-color-ts-accessor);
/* object literal not included as it is not used and will be removed in 0.25 */
--light-color-ts-type-alias: #d51270;
/* reference not included as links will be colored with the kind that it points to */

Expand Down Expand Up @@ -72,7 +71,6 @@
--dark-color-ts-accessor: var(--dark-color-ts-property);
--dark-color-ts-get-signature: var(--dark-color-ts-accessor);
--dark-color-ts-set-signature: var(--dark-color-ts-accessor);
/* object literal not included as it is not used and will be removed in 0.25 */
--dark-color-ts-type-alias: #ff6492;
/* reference not included as links will be colored with the kind that it points to */

Expand Down Expand Up @@ -468,13 +466,12 @@ blockquote {
padding: 0 0 0 20px;
margin: 0;
}
.tsd-typography h4,
.tsd-typography .tsd-index-panel h3,
.tsd-index-panel .tsd-typography h3,
.tsd-typography h4,
.tsd-typography h5,
.tsd-typography h6 {
font-size: 1em;
margin: 0;
}
.tsd-typography h5,
.tsd-typography h6 {
Expand All @@ -485,6 +482,19 @@ blockquote {
.tsd-typography ol {
margin: 1em 0;
}
.tsd-typography table {
border-collapse: collapse;
border: none;
}
.tsd-typography td,
.tsd-typography th {
padding: 6px 13px;
border: 1px solid var(--color-accent);
}
.tsd-typography thead,
.tsd-typography tr:nth-child(even) {
background-color: var(--color-background-secondary);
}

.tsd-breadcrumb {
margin: 0;
Expand Down Expand Up @@ -900,21 +910,25 @@ a.tsd-index-link {
box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
#tsd-search .results li {
padding: 0 10px;
background-color: var(--color-background);
line-height: initial;
padding: 4px;
}
#tsd-search .results li:nth-child(even) {
background-color: var(--color-background-secondary);
}
#tsd-search .results li.state {
display: none;
}
#tsd-search .results li.current,
#tsd-search .results li:hover {
#tsd-search .results li.current:not(.no-results),
#tsd-search .results li:hover:not(.no-results) {
background-color: var(--color-accent);
}
#tsd-search .results a {
display: block;
display: flex;
align-items: center;
padding: 0.25rem;
box-sizing: border-box;
}
#tsd-search .results a:before {
top: 10px;
Expand Down Expand Up @@ -1070,7 +1084,9 @@ ul.tsd-type-parameter-list h5 {
overflow: hidden;
opacity: 0.8;
height: 40px;
transition: opacity 0.1s, background-color 0.2s;
transition:
opacity 0.1s,
background-color 0.2s;
vertical-align: bottom;
cursor: pointer;
}
Expand Down Expand Up @@ -1122,7 +1138,7 @@ img {
}

.deprecated {
text-decoration: line-through;
text-decoration: line-through !important;
}

.warning {
Expand Down
Loading

0 comments on commit d956864

Please sign in to comment.