Skip to content

Commit 8ee34f6

Browse files
update
1 parent c1276a1 commit 8ee34f6

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ HTML3D is a lightweight JavaScript library for creating interactive 3D scenes us
33

44
See the demo at: https://html3d.com
55

6-
![HTML3D demo](./html3d_demo_screenshot1.png?raw=true "HTML3D demo")
6+
![HTML3D demo](./html3d_demo.png?raw=true "HTML3D demo")
77

88
**src/index.html**<br>
99
index.html is a demo of HTML3D. The demo showcases a recursive game-within-a-game.

src/HTML3D.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ class HTML3D {
1414
this.panels = [];
1515
if (Array.isArray(scene?.panels)) {
1616
for (const scenePanel of scene.panels) {
17-
const panel = new HTML3D.Panel(this, scenePanel);
18-
this.panels.push(panel);
17+
this.panels.push(new HTML3D.Panel(this, scenePanel));
1918
}
2019
}
2120
this.requestRender = true;
@@ -82,7 +81,6 @@ class HTML3D {
8281
{
8382
HTML3D.Camera = class Camera {
8483
constructor(html3d, camera) {
85-
this.html3d = html3d;
8684
Object.assign(this, {
8785
html3d: html3d,
8886
x: ((typeof camera?.x === 'number') ? camera.x : 0),

src/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@
5757
this.panels = [];
5858
if (Array.isArray(scene?.panels)) {
5959
for (const scenePanel of scene.panels) {
60-
const panel = new HTML3D.Panel(this, scenePanel);
61-
this.panels.push(panel);
60+
this.panels.push(new HTML3D.Panel(this, scenePanel));
6261
}
6362
}
6463
this.requestRender = true;
@@ -125,7 +124,6 @@
125124
{
126125
HTML3D.Camera = class Camera {
127126
constructor(html3d, camera) {
128-
this.html3d = html3d;
129127
Object.assign(this, {
130128
html3d: html3d,
131129
x: ((typeof camera?.x === 'number') ? camera.x : 0),
@@ -2856,7 +2854,7 @@
28562854
backgroundColor: '#000000',
28572855
opacity: 0.6,
28582856
userData: {
2859-
fontSize: 16,
2857+
fontSize: 20,
28602858
characters: 'アァカサタナハマヤャラワガザダバパイィキシチニヒミリヰギジヂビピウゥクスツヌフムユュルグズブヅプエェケセテネヘメレヱゲゼデベペオォコソトノホモヨョロヲゴゾドボポヴッン0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split(''),
28612859
animateIntervalCount: 12,
28622860
pixelated: false

0 commit comments

Comments
 (0)