[x3d-public] X3DJSAIL updates

Don Brutzman brutzman at nps.edu
Sun Dec 17 08:44:24 PST 2017


On 12/17/2017 12:16 AM, John Carlson wrote:
> More investigation reveals HelloWorldProgramOutput.java is not up to date.  Please update and check in.  Thanks!

Aha, good catch (the smoke test was run just before that modification last night).  Correction checked in, will publish update later today.

CDATA section is now gone from the following round-trip HelloWorldProgramOutput.java excerpt:

==============================================================

       .addChild(new ScriptObject("colorTypeConversionScript").setSourceCode("\n" +
"\n" +
"ecmascript:" + "\n" +
"\n" +
"function colorInput (eventValue) // Example source code" + "\n" +
"{" + "\n" +
"   colorsOutput = new MFColor(eventValue); // assigning value sends output event" + "\n" +
"// Browser.print('colorInput=' + eventValue + ', colorsOutput=' + colorsOutput + '\\n');" + "\n" +
"}" + "\n")
         .addField(new fieldObject().setAccessType("inputOnly").setName("colorInput").setType("SFColor"))
         .addField(new fieldObject().setAccessType("outputOnly").setName("colorsOutput").setType("MFColor")))

==============================================================
http://www.web3d.org/specifications/java/X3DJSAIL.html#Contact

Test programs, results and autogeneration build scripts are available in Sourceforge version control.

https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/

https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/stylesheets/java/examples/

commit history:
https://sourceforge.net/p/x3d/code/26059/log/
==============================================================

I have also started listing toStringJava() and toStringJSON() outputs in HelloWorldProgramOutputLog.txt so that diffs will become even more evident.

Must say that I don't yet eally understand your nashorn toStringJavaScript() invocations yet, will work on the patches later.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list