X3D Model Documentation: newECMAscriptTest.x3d

  1  <?xml version="1.0" encoding="UTF-8"?>
  2  <!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "https://www.web3d.org/specifications/x3d-3.3.dtd">
  3  <X3D profile='Immersive' version='3.3 xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='https://www.web3d.org/specifications/x3d-3.3.xsd'>
  4       <head>
  5            <!-- local, master and online versions of script template -->
  6            <meta name='titlecontent='newECMAscriptTest.x3d'/>
  7            <meta name='descriptioncontent='Example scene providing a unit test for newECMAscript template javascript source code, first load this scene and then see console for test output.'/>
  8            <meta name='creatorcontent='Don Brutzman'/>
  9            <meta name='createdcontent='3 November 2013'/>
 10            <meta name='modifiedcontent='20 October 2019'/>
 11            <meta name='referencecontent='newECMAscriptTestConsole.txt'/>
 12            <meta name='referencecontent='newECMAscript.js'/>
 13            <meta name='referencecontent='../newECMAscript.js'/>
 14            <meta name='referencecontent='https://www.web3d.org/x3d/content/examples/newECMAscript.js'/>
 15            <meta name='referencecontent='../../build.xml#commonSetup'/>
 16            <meta name='subjectcontent='X3D javascript ECMAscript'/>
 17            <meta name='identifiercontent='https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/newECMAscriptTest.x3d'/>
 18            <meta name='generatorcontent='X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit'/>
 19            <meta name='licensecontent='../license.html'/>
 20       </head>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF node: TestScript

Index for Viewpoint node: Viewpoint_1
-->
 21       <Scene>
 22            <WorldInfo title='newECMAscriptTest.x3d'/>
 23            <Background skyColor='1 0.5 0'/>
 24            <Viewpoint description='Check X3D console to see outputposition='0 0 8'/>
 25            <Transform scale='0.4 0.4 0.4'>
 26                 <Shape>
 27                      <Text string='"newECMAscriptTest.x3d" "" "to check newECMAscript.js" "" "(see browser console for output)"'>
 28                           <FontStyle family='"SANS"justify='"MIDDLE" "MIDDLE"style='BOLD'/>
 29                      </Text>
 30                      <Appearance>
 31                           <Material diffuseColor='1 1 1'/>
 32                      </Appearance>
 33                 </Shape>
 34            </Transform>
 35            <Script DEF='TestScript'   url=' "newECMAscript.js" "../newECMAscript.js" "https://www.web3d.org/x3d/content/examples/newECMAscript.js" '>
 36                 <!-- initialize() method includes unit test with output on browser console -->
 37                 <!-- authors adding field definitions put them here -->
 38            </Script>
 39       </Scene>
 40  </X3D>
<!--

<!--
Event Graph ROUTE Table shows event connections.
-->
<!-- to top Index for DEF node: TestScript

Index for Viewpoint node: Viewpoint_1
-->
X3D Tooltips element index: Appearance, Background, FontStyle, head, Material, meta, Scene, Script, Shape, Text, Transform, Viewpoint, WorldInfo, X3D, plus documentation for accessType definitions, type definitions, XML data types, and field types

-->
<!-- Online at
https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/newECMAscriptTestIndex.html -->
<!-- Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09EventUtilitiesScripting/newECMAscriptTest.x3d -->

<!-- Color-coding legend: X3D terminology <X3dNode  DEF='idNamefield='value'/> matches XML terminology <XmlElement  DEF='idNameattribute='value'/>
(Light-blue background: event-based behavior node or statement) (Grey background inside box: inserted documentation) (Magenta background: X3D Extensibility)
-->

to top <!-- For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints. -->