[x3d-public] Foray into ES6 SAI HelloWorld.mjs. Look at x3d.py examples? Best way to do comments in ECMAScript?
John Carlson
yottzumm at gmail.com
Sat Apr 17 19:47:19 PDT 2021
New example for ECMAScript comments below. Note that I used native
JavaScript comments. This leads to XML generated from this program to
not have comments. Suggestions? Also, does x3d.py export comments in
XML? Are the SAI bindings distinct from the encodings such that they
cannot produce comments? Java does. Should it?
Puzzlingly yours at a standstill, ready to check in. Need to know how
SAI potentially produces comments, will check X3DJSAIL.
John
var X3D0 = new X3D({
profile : new SFString("Immersive"),
version : new SFString("3.3"),
head : new SFNode(
new head({
/*Alternate encodings: VRML97, X3D ClassicVRML Encoding, X3D
Compressed Binary Encoding (CBE), X3DOM, JSON*/
meta : new MFNode([
new meta({
name : new SFString("title"),
content : new SFString("HelloWorld.x3d")}),
new meta({
name : new SFString("description"),
content : new SFString("Simple X3D model example: Hello
World!")}),
new meta({
name : new SFString("created"),
content : new SFString("30 October 2000")}),
new meta({
name : new SFString("modified"),
content : new SFString("20 October 2019")}),
new meta({
More information about the x3d-public
mailing list