<commit_before><!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>XML3D 5.0 Specification</title>
  <script src='http://www.w3.org/Tools/respec/respec-w3c-common' async class='remove'></script>

  <script class='remove'>
    var respecConfig = {
      // specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
      specStatus: "unofficial",

      // the specification's short name, as in http://www.w3.org/TR/short-name/
      shortName: "xml3d",

      // if your specification has a subtitle that goes below the main
      // formal title, define it here
      subtitle: "Interactive 3D Graphics for the Web",

      // if you wish the publication date to be other than today, set this
      publishDate:  "",

      // if the specification's copyright date is a range of years, specify
      // the start date here:
      // copyrightStart: "2005",

      // if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
      // and its maturity status
      // previousPublishDate:  "1977-03-15",
      // previousMaturity:  "WD",

      // if there a publicly available Editor's Draft, this is the link
      // edDraftURI: "http://dev.w3.org/2009/dap/ReSpec.js/documentation.html",
      previousURI: "http://www.xml3d.org/xml3d/specification/0.4.3/",

      // editors, add as many as you like
      // only "name" is required
      editors: [{
        name: "<NAME>"
      }],

      // authors, add as many as you like.
      // This is optional, uncomment if you have authors as well as editors.
      // only "name" is required. Same format as editors.

      authors: [{
        name: "<NAME>",
        company: "Intel Visual Computing Institute",
        companyURL: "http://www.intel-vci.uni-saarland.de/"
      }, {
        name: "<NAME>", company: "DFKI", companyURL: "http://www.dfki.de/"
      }],

      // name of the WG
      wg: "Declarative 3D Community Group",

      // URI of the public WG page
      wgURI: "http://www.w3.org/community/declarative3d/",

      // name (without the @w3c.org) of the public mailing to which comments are due
      wgPublicList: "public-declarative3d",

      // URI of the patent status for this WG, for Rec-track documents
      // !!!! IMPORTANT !!!!
      // This is important for Rec-track documents, do not copy a patent URI from a random
      // document unless you know what you're doing. If in doubt ask your friendly neighbourhood
      // Team Contact.
      wgPatentURI: "http://www.w3.org/community/about/agreements/cla/"
    };
  </script>
</head>
<body>
<section id='abstract'>
</section>

<section>
  <h2>Concepts</h2>
  <section>
    <h3>Generic data model</h3>
  </section>
  <section>
    <h3>Predefined material models</h3>
  </section>
  <section>
    <h3>Predefined light models</h3>
  </section>
</section>

<section>
  <h2>The elements of XML3D</h2>

  <section>
    <h3>The root element</h3>
    <section>
      <h4>The <code>xml3d</code> element</h4>

      <dl title='interface XML3DXml3dElement : HTMLElement' class='idl'>
        <dt>attribute unsigned long width</dt>
        <dd>Horizontal dimension</dd>
        <dt>attribute unsigned long height</dt>
        <dd>Vertical dimension</dd>
        <dt>readonly attribute boolean complete</dt>
        <dd>Returns true if all resources of the root element has been completely downloaded and rendered; otherwise,
          returns false.
        </dd>

        <dt>attribute DOMString activeview</dt>
        <dd>The activeview IDL attribute must reflect the respective content attribute of the same name.</dd>

        <dt>HTMLElement? getElementByPoint(unsigned long x, unsigned long y)</dt>
        <dd>Returns the element at the point with coordinates x, y if there is a scene element; otherwise, returns
          null.
        </dd>

        <dt>HTMLElement? getElementByRay(XML3DRay ray)</dt>
        <dd>Returns the first element that intersects with ray if the ray intersects with a a scene element; otherwise,
          returns null.
        </dd>

        <dt>XML3DBox getBoundingBox()</dt>
        <dd>TODO</dd>

        <dt>XML3DRay generateRay(unsigned int x, unsigned int y)</dt>
        <dd>Uses <a href="https://github.com/fintler/webgl-unproject">WebGL unProject</a> to generate a new XML3DRay from the given x,y <b>window</b> coordinates.</dd>

      </dl>
    </section>
  </section>

  <section>
    <h3>Scene elements</h3>
    <section>
      <h4>The <code>group</code> element</h4>
    </section>
    <section>
      <h4>The <code>view</code> element</h4>
        <dl title='interface XML3DViewElement : HTMLElement' class='idl'>
            <dt>attribute Function onkeypress</dt>
            <dd>Event listener to be executed when a key is pressed.</dd>
            <dt>attribute Function onkeydown</dt>
            <dd>Event listener to be executed when a key is depressed.</dd>
            <dt>attribute Function onkeyup</dt>
            <dd>Event listener to be executed when a key is released.</dd>

            <dt>attribute XML3DVec3 position</dt>
            <dd>The position of the camera in world space</dd>

            <dt>attribute XML3DRotation orientation</dt>
            <dd>The orientation (rotation) of the camera</dd>
<commit_msg>Add more specification for the xml3d element<commit_after><!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>XML3D 5.0 Specification</title>
  <script src='http://www.w3.org/Tools/respec/respec-w3c-common' async class='remove'></script>

  <script class='remove'>
    var respecConfig = {
      // specification status (e.g. WD, LCWD, NOTE, etc.). If in doubt use ED.
      specStatus: "unofficial",

      // the specification's short name, as in http://www.w3.org/TR/short-name/
      shortName: "xml3d",

      // if your specification has a subtitle that goes below the main
      // formal title, define it here
      subtitle: "Interactive 3D Graphics for the Web",

      // if you wish the publication date to be other than today, set this
      publishDate:  "",

      // if the specification's copyright date is a range of years, specify
      // the start date here:
      // copyrightStart: "2005",

      // if there is a previously published draft, uncomment this and set its YYYY-MM-DD date
      // and its maturity status
      // previousPublishDate:  "1977-03-15",
      // previousMaturity:  "WD",

      // if there a publicly available Editor's Draft, this is the link
      // edDraftURI: "http://dev.w3.org/2009/dap/ReSpec.js/documentation.html",
      previousURI: "http://www.xml3d.org/xml3d/specification/0.4.3/",

      // editors, add as many as you like
      // only "name" is required
      editors: [{
        name: "<NAME>"
      }],

      // authors, add as many as you like.
      // This is optional, uncomment if you have authors as well as editors.
      // only "name" is required. Same format as editors.

      authors: [{
        name: "<NAME>",
        company: "Intel Visual Computing Institute",
        companyURL: "http://www.intel-vci.uni-saarland.de/"
      }, {
        name: "<NAME>", company: "DFKI", companyURL: "http://www.dfki.de/"
      }],

      // name of the WG
      wg: "Declarative 3D Community Group",

      // URI of the public WG page
      wgURI: "http://www.w3.org/community/declarative3d/",

      // name (without the @w3c.org) of the public mailing to which comments are due
      wgPublicList: "public-declarative3d",

      // URI of the patent status for this WG, for Rec-track documents
      // !!!! IMPORTANT !!!!
      // This is important for Rec-track documents, do not copy a patent URI from a random
      // document unless you know what you're doing. If in doubt ask your friendly neighbourhood
      // Team Contact.
      wgPatentURI: "http://www.w3.org/community/about/agreements/cla/"
    };
  </script>
</head>
<body>
<section id='abstract'>
</section>

<section>
  <h2>Concepts</h2>
  <section>
    <h3>Generic data model</h3>
  </section>
  <section>
    <h3>Predefined material models</h3>
  </section>
  <section>
    <h3>Predefined light models</h3>
  </section>
</section>

<section>
  <h2>The elements of XML3D</h2>

  <section>
    <h3>The root element</h3>
    <section>
      <h4>The <code>xml3d</code> element</h4>

      <dl title='interface XML3DXml3dElement : HTMLElement' class='idl'>
        <dt>attribute unsigned long width</dt>
        <dd>Horizontal dimension</dd>
        <dt>attribute unsigned long height</dt>
        <dd>Vertical dimension</dd>
        <dt>readonly attribute boolean complete</dt>
        <dd>Returns true if all resources of the root element has been completely downloaded and rendered; otherwise,
          returns false.
        </dd>

        <dt>attribute DOMString activeview</dt>
        <dd>The activeview IDL attribute must reflect the respective content attribute of the same name.</dd>

        <dt>HTMLElement? getElementByPoint(unsigned long x, unsigned long y)</dt>
        <dd>Returns the element at the point with <b>window</b> coordinates x,y if there is a scene element; otherwise, returns
          null.
        </dd>

        <dt>HTMLElement? getElementByRay(XML3DRay ray)</dt>
        <dd>Returns the first element that intersects with ray if the ray intersects with a a scene element; otherwise,
          returns null.
        </dd>

        <dt>XML3DBox getLocalBoundingBox()</dt>
        <dd>Returns the bounding box of the scene. Because the XML3D element is the root element the bounding box will be in world space by definition.</dd>

        <dt>XML3DBox getWorldBoundingBox()</dt>
        <dd>Returns the bounding box of the scene in world space.</dd>

        <dt>XML3DRay generateRay(unsigned int x, unsigned int y)</dt>
        <dd>Uses <a href="https://github.com/fintler/webgl-unproject">WebGL unProject</a> to generate a new XML3DRay from the given x,y <b>window</b> coordinates.</dd>

          <dt>attribute Function onkeypress</dt>
          <dd>Event listener to be executed when a key is pressed.</dd>
          <dt>attribute Function onkeydown</dt>
          <dd>Event listener to be executed when a key is depressed.</dd>
          <dt>attribute Function onkeyup</dt>
          <dd>Event listener to be executed when a key is released.</dd>
          <dt>attribute Function onclick</dt>
          <dd>Event listener to be executed when the canvas is clicked.</dd>
          <dt>attribute Function onmousedown</dt>
          <dd>Event listener to be executed when a mouse button is depressed on the canvas.</dd>
          <dt>attribute Function onmouseup</dt>
          <dd>Event listener to be executed when a mouse button is released on the canvas.</dd>
          <dt>attribute Function ondblclick</dt>
          <dd>Event listener to be executed when the canvas is double clicked.</dd>
          <dt>attribute Function onmouseover</dt>
          <dd>Event listener to be executed when the mouse enters the canvas.</dd>
          <dt>attribute Function onmousemove</dt>
          <dd>Event listener to be executed when the mouse moves while over the canvas.</dd>
          <dt>attribute Function onmouseout</dt>
          <dd>Event listener to be executed when the mouse leaves the canvas.</dd>
          <dt>attribute Function onload</dt>
          <dd>Event listener to be executed when the XML3D element and all external resources (ie. textures, mesh data) have been loaded. This event is fired
          <i>after</i> the fully loaded scene has been drawn to the canvas. </dd>
          <dt>attribute Function onframedrawn</dt>
          <dd>Event listener to be executed whenever a new frame has been drawn. Is passed a FrameDrawn event.
          </dd>


      </dl>
    </section>
  </section>

  <section>
    <h3>Scene elements</h3>
    <section>
      <h4>The <code>group</code> element</h4>
    </section>
    <section>
      <h4>The <code>view</code> element</h4>
        <dl title='interface XML3DViewElement : HTMLElement' class='idl'>
            <dt>attribute Function onkeypress</dt>
            <dd>Event listener to be executed when a key is pressed.</dd>
            <dt>attribute Function onkeydown</dt>
            <dd>Event listener to be executed when a key is depressed.</dd>
            <dt>attribute Function onkeyup</dt>
            <dd>Event listener to be executed when a key is released.</dd>

            <dt>attribute XML3DVec3 position</dt>
            <dd>The position of the camera in world space</dd>

            <dt>attribute XML3DRotation orientation</dt>
            <dd>The orientation (rotation) of the camera</dd>

{'fraction_non_alphanumeric': 0.11550031665611146, 'fraction_numerical': 0.011241291956934768, 'mean_word_length': 2.534695019585898, 'pattern_counts': {'":': 0, '<': 297, '<?xml version=': 0, '>': 297, 'https://': 2, 'lorem ipsum': 0, 'www.': 14, 'xml': 9}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3573747', 'n_tokens_mistral': 3848, 'n_tokens_neox': 3697, 'n_words': 1276}