-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor three.js to add Orbitcontrols to preview3D
General: - Implement javascript modules (type="module", import and export) - implement default way of using three.js - add orbitcontrols (part of three.js) to preview3D app.js - import from index.js and three - export userFun - make canvas not draggable and dblclick for modal - preview3D: add orbitcontrols index.css: - rename box and column to screenBox and screenColumn - cursor: move only for screenBox, default cursor for canvas index.htm - replace r128/three.min.js by importmap 0.156.1/build/three.module.js index.js - import userFun from app.js - export jsonValues, gId and cE - add window eventlistener on Load - rename box and column to screenBox and screenColumn - dblclick for modal and textarea (instead of click) - simple nodes: disable drag of parent screenBox AppLedsV - NUM_LEDS_Preview 8192 (temp?) AppModLedFixGen - add geodesicDome3D (wip) SysModUI / SysModWeb - refactor addURL and add index.js and app.js (as they are now type="module" javascripts cdata.js - add writeChunks of index.js and app.js into html)js.h
- Loading branch information
Showing
12 changed files
with
1,315 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,12 +12,22 @@ | |
<title>StarMod by MoonModules</title> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="index.css"> | ||
<script src="app.js"></script> | ||
<script src="index.js"></script> | ||
<!-- https://www.foxy.io/blog/faster-pageloads-effectively-using-http-caching-cache-busting-and-a-cdn/ --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js" max-age=86400></script> | ||
|
||
<!-- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules --> | ||
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script> | ||
<script type="importmap"> | ||
{ | ||
"imports": { | ||
"three": "https://unpkg.com/[email protected]/build/three.module.js", | ||
"three/addons/": "https://unpkg.com/[email protected]/examples/jsm/" | ||
} | ||
} | ||
</script> | ||
<!-- tbd: add max-age=86400 to imports --> | ||
<script type="module" src="app.js"></script> | ||
<script type="module" src="index.js"></script> | ||
</head> | ||
<body onload="onLoad()"> | ||
<body> | ||
<h1>StarMod by MoonModules</h1> | ||
<div class="container"> | ||
<div id="screenColumn0" class = "screenColumn"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.