File tree Expand file tree Collapse file tree 5 files changed +28
-4
lines changed
Expand file tree Collapse file tree 5 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 11# tlmviewer
22
3+ ![ GitHub Actions Workflow Status] ( https://img.shields.io/github/actions/workflow/status/victorpoughon/tlmviewer/node.js.yml )
4+
35Three.js based 3D viewer for [ torchlensmaker] ( https://github.com/victorpoughon/torchlensmaker ) .
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 " />
5+ < title > tlmviewer example</ title >
6+
7+ < script type ="module ">
8+ import tlmviewer from 'https://cdn.jsdelivr.net/npm/tlmviewer/+esm' ;
9+ tlmviewer . loadAll ( ) ;
10+ </ script >
11+
12+ < style >
13+ .tlmviewer {
14+ height : 600px ;
15+ aspect-ratio : 1.5 ;
16+ }
17+ </ style >
18+ </ head >
19+ < body >
20+ < div class ="tlmviewer " data-url ="./testsEmbed/landscape.json "> </ div >
21+ </ body >
22+ </ html >
Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ export class TLMGui {
8686
8787 // If 'object' variable is available, default to it for valid and output rays
8888 if ( this . scene . variables . includes ( "object" ) ) {
89- console . log ( "setting obejct var" ) ;
9089 this . controller . validColor = this . colorOptions [ "object" ] ;
9190 this . controller . outputColor = this . colorOptions [ "object" ] ;
9291 }
Original file line number Diff line number Diff line change @@ -296,10 +296,11 @@ async function loadAll(): Promise<Promise<void>[]> {
296296 return promises ;
297297}
298298
299- export const tlmviewer = {
299+ export default {
300300 embed : embed ,
301301 load : load ,
302302 loadAll : loadAll ,
303303} ;
304304
305- console . log ( "tlmviewer loaded" ) ;
305+ // @ts -ignore
306+ console . log ( `tlmviewer-${ import . meta. env . PACKAGE_VERSION } loaded` ) ;
Original file line number Diff line number Diff line change 1- import { tlmviewer } from "../src/main.ts" ;
1+ import tlmviewer from "../src/main.ts" ;
22
33const embed_tests = [
44 "/tests2D/test_controls.json" ,
You can’t perform that action at this time.
0 commit comments