{ "X3D": {
    "encoding":"UTF-8",
    "@profile":"Immersive",
    "@version":"3.3",
    "@xsd:noNamespaceSchemaLocation":"https://www.web3d.org/specifications/x3d-3.3.xsd",
    "JSON schema":"https://www.web3d.org/specifications/x3d-4.0-JSONSchema.autogenerated.json",
    "head": {
        "meta": [
          {
            "@name":"title",
            "@content":"TextStringPrototype.x3d"
          },
          {
            "@name":"description",
            "@content":"Simple Prototype for the display of text strings, combining functionality of Text and FontStyle nodes."
          },
          {
            "@name":"creator",
            "@content":"Leonard Daly and Don Brutzman"
          },
          {
            "@name":"created",
            "@content":"16 July 2006"
          },
          {
            "@name":"modified",
            "@content":"22 February 2022"
          },
          {
            "@name":"reference",
            "@content":"https://X3dGraphics.com"
          },
          {
            "@name":"reference",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dResources.html"
          },
          {
            "@name":"rights",
            "@content":"Copyright 2006, Daly Realism and Don Brutzman"
          },
          {
            "@name":"subject",
            "@content":"X3D book, X3D graphics, X3D-Edit, http://www.x3dGraphics.com"
          },
          {
            "@name":"identifier",
            "@content":"https://www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter14Prototypes/TextStringPrototype.x3d"
          },
          {
            "@name":"generator",
            "@content":"X3D-Edit 3.3, https://www.web3d.org/x3d/tools/X3D-Edit"
          },
          {
            "@name":"license",
            "@content":"../license.html"
          },
          {
            "@name":"translated",
            "@content":"17 April 2026"
          },
          {
            "@name":"generator",
            "@content":"X3dToJson.xslt, https://www.web3d.org/x3d/stylesheets/X3dToJson.html"
          },
          {
            "@name":"reference",
            "@content":"X3D JSON encoding: https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding"
          }
        ]
    },
    "Scene": {
        "-children":[
          { "WorldInfo":
            {
              "@title":"TextStringPrototype.x3d"
            }
          },
          { "ProtoDeclare":
            {
              "@name":"TextString",
              "ProtoInterface": {
                  "field": [
                    {
                      "@name":"offset",
                      "@accessType":"inputOutput",
                      "@type":"SFVec3f",
                      "@value":[0,0,0]
                    },
                    {
                      "@name":"string",
                      "@accessType":"inputOutput",
                      "@type":"MFString"
                    },
                    {
                      "@name":"size",
                      "@accessType":"initializeOnly",
                      "@type":"SFFloat",
                      "@value":1.0
                    },
                    {
                      "@name":"color",
                      "@accessType":"inputOutput",
                      "@type":"SFColor",
                      "@value":[0.2,0.6,1]
                    },
                    {
                      "@name":"justify",
                      "@accessType":"initializeOnly",
                      "@type":"MFString",
                      "@value":["MIDDLE","MIDDLE"]
                    },
                    {
                      "@name":"style",
                      "@accessType":"initializeOnly",
                      "@type":"SFString",
                      "@value":"PLAIN"
                    },
                    {
                      "@name":"family",
                      "@accessType":"initializeOnly",
                      "@type":"MFString",
                      "@value":["SANS","SERIF"]
                    }
                  ]
              },
              "ProtoBody": {
                  "-children":[
                    { "Transform":
                      {
                        "IS": {
                            "connect": [
                              {
                                "@nodeField":"translation",
                                "@protoField":"offset"
                              }
                            ]
                        },
                        "-children":[
                          { "Shape":
                            {
                              "-appearance":
                                { "Appearance":
                                  {
                                    "-material":
                                      { "Material":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"diffuseColor",
                                                  "@protoField":"color"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                },
                              "-geometry":
                                { "Text":
                                  {
                                    "IS": {
                                        "connect": [
                                          {
                                            "@nodeField":"string",
                                            "@protoField":"string"
                                          }
                                        ]
                                    },
                                    "-fontStyle":
                                      { "FontStyle":
                                        {
                                          "IS": {
                                              "connect": [
                                                {
                                                  "@nodeField":"family",
                                                  "@protoField":"family"
                                                },
                                                {
                                                  "@nodeField":"justify",
                                                  "@protoField":"justify"
                                                },
                                                {
                                                  "@nodeField":"size",
                                                  "@protoField":"size"
                                                },
                                                {
                                                  "@nodeField":"style",
                                                  "@protoField":"style"
                                                }
                                              ]
                                          }
                                        }
                                      }
                                  }
                                }
                            }
                          }
                        ]
                      }
                    }
                  ]
              }
            }
          },
          { "ProtoInstance":
            {
              "@name":"TextString",
              "@DEF":"MyTextStringInstance",
              "fieldValue": [
                {
                  "@name":"color",
                  "@value":[0.3,0.7,1]
                },
                {
                  "@name":"string",
                  "@value":["This example TextString node","creates a prototype instance","that combines functionality","of Text and FontStyle nodes"]
                },
                {
                  "@name":"size",
                  "@value":0.8
                },
                {
                  "@name":"style",
                  "@value":"BOLD"
                }
              ]
            }
          }
        ]
    }
  }
}