Schema definition Layout
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1510.png
location C:\x3d-code\www.web3d.org\specifications\x3d-3.3-JSONSchema.json
type Object
properties
Name   Occurrence
@DEF   Optional
@USE   Optional
IS   Optional
@align   Optional
@offset   Optional
@offsetUnits   Optional
@scaleMode   Optional
@size   Optional
@sizeUnits   Optional
-metadata   Optional
-children   Optional
used by Scene / -children > array items [0]+ / Schema / Layout
-allNodes > array items [0]+ / Schema / Layout
-child / Layout
-children > array items [0]+ / Schema / Layout
-layers > array items [0]+ / Schema / Layer
-layout / Layout
source code "Layout": {
    "type": "object",
    "properties": {
        "@DEF": {
            "type": "string"
        },
        "@USE": {
            "type": "string"
        },
        "IS": {
            "$ref": "#/definitions/IS"
        },
        "@align": {
            "oneOf": [
                {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 1,
                    "items": {
                        "type": "string",
                        "enum": [
                            "CENTER"
                        ],
                        "default": "CENTER"
                    }
                },
                {
                    "type": "array",
                    "minItems": 2,
                    "maxItems": 2,
                    "items": [
                        {
                            "type": "string",
                            "enum": [
                                "LEFT",
                                "CENTER",
                                "RIGHT"
                            ],
                            "default": "CENTER"
                        }
                    ],
                    "additionalItems": {
                        "type": "string",
                        "enum": [
                            "BOTTOM",
                            "CENTER",
                            "TOP"
                        ],
                        "default": "CENTER"
                    }
                }
            ]
        },
        "@offset": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
                "type": "number",
                "default": 0
            }
        },
        "@offsetUnits": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
                "type": "string",
                "enum": [
                    "WORLD",
                    "FRACTION",
                    "PIXEL"
                ],
                "default": "WORLD"
            }
        },
        "@scaleMode": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
                "type": "string",
                "enum": [
                    "NONE",
                    "FRACTION",
                    "STRETCH",
                    "PIXEL"
                ],
                "default": "NONE"
            }
        },
        "@size": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
                "type": "number",
                "default": 1
            }
        },
        "@sizeUnits": {
            "type": "array",
            "minItems": 1,
            "maxItems": 2,
            "items": {
                "type": "string",
                "enum": [
                    "WORLD",
                    "FRACTION",
                    "PIXEL"
                ],
                "default": "WORLD"
            }
        },
        "-metadata": {
            "$ref": "#/definitions/-metadata"
        },
        "-children": {
            "$ref": "#/definitions/-commentRoute"
        }
    },
    "additionalProperties": false
}

Property Layout / @DEF
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1511.png
property details
Occurrence  Optional
type String
source code "@DEF": {
    "type": "string"
}

Property Layout / @USE
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1512.png
property details
Occurrence  Optional
type String
source code "@USE": {
    "type": "string"
}

Property Layout / IS
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1513.png
property details
Occurrence  Optional
reference IS
source code "IS": {
    "$ref": "#/definitions/IS"
}

Property Layout / @align
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1514.png
property details
Occurrence  Optional
type Any
array items
[0]+  Any
property wildcard
Definition  Any
one of
(0)  Schema
(1)  Schema
source code "@align": {
    "oneOf": [
        {
            "type": "array",
            "minItems": 1,
            "maxItems": 1,
            "items": {
                "type": "string",
                "enum": [
                    "CENTER"
                ],
                "default": "CENTER"
            }
        },
        {
            "type": "array",
            "minItems": 2,
            "maxItems": 2,
            "items": [
                {
                    "type": "string",
                    "enum": [
                        "LEFT",
                        "CENTER",
                        "RIGHT"
                    ],
                    "default": "CENTER"
                }
            ],
            "additionalItems": {
                "type": "string",
                "enum": [
                    "BOTTOM",
                    "CENTER",
                    "TOP"
                ],
                "default": "CENTER"
            }
        }
    ]
}

Operator subschema Layout / @align > one of (0) / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1515.png
type Array
array constraints
Min Items  1
Max Items  1
array items
[0]  Schema
source code {
    "type": "array",
    "minItems": 1,
    "maxItems": 1,
    "items": {
        "type": "string",
        "enum": [
            "CENTER"
        ],
        "default": "CENTER"
    }
}

Array item wildcard Layout / @align > one of (0) / Schema > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1516.png
schema details
Default  "CENTER"
type String
enumerations
Type   Value
string   CENTER
source code {
    "type": "string",
    "enum": [
        "CENTER"
    ],
    "default": "CENTER"
}

Operator subschema Layout / @align > one of (1) / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1517.png
type Array
array constraints
Min Items  2
Max Items  2
array items
[0]  Schema
[1]  Schema
source code {
    "type": "array",
    "minItems": 2,
    "maxItems": 2,
    "items": [
        {
            "type": "string",
            "enum": [
                "LEFT",
                "CENTER",
                "RIGHT"
            ],
            "default": "CENTER"
        }
    ],
    "additionalItems": {
        "type": "string",
        "enum": [
            "BOTTOM",
            "CENTER",
            "TOP"
        ],
        "default": "CENTER"
    }
}

Array item Layout / @align > one of (1) / Schema > array items [0] / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1518.png
schema details
Default  "CENTER"
type String
enumerations
Type   Value
string   LEFT
string   CENTER
string   RIGHT
source code {
    "type": "string",
    "enum": [
        "LEFT",
        "CENTER",
        "RIGHT"
    ],
    "default": "CENTER"
}

Array item wildcard Layout / @align > one of (1) / Schema > array items [1]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1519.png
schema details
Default  "CENTER"
type String
enumerations
Type   Value
string   BOTTOM
string   CENTER
string   TOP
source code {
    "type": "string",
    "enum": [
        "BOTTOM",
        "CENTER",
        "TOP"
    ],
    "default": "CENTER"
}

Property Layout / @offset
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1520.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
Max Items  2
array items
[0]+  Schema
source code "@offset": {
    "type": "array",
    "minItems": 1,
    "maxItems": 2,
    "items": {
        "type": "number",
        "default": 0
    }
}

Array item wildcard Layout / @offset > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1521.png
schema details
Default  0
type Numeric
source code {
    "type": "number",
    "default": 0
}

Property Layout / @offsetUnits
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1522.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
Max Items  2
array items
[0]+  Schema
source code "@offsetUnits": {
    "type": "array",
    "minItems": 1,
    "maxItems": 2,
    "items": {
        "type": "string",
        "enum": [
            "WORLD",
            "FRACTION",
            "PIXEL"
        ],
        "default": "WORLD"
    }
}

Array item wildcard Layout / @offsetUnits > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1523.png
schema details
Default  "WORLD"
type String
enumerations
Type   Value
string   WORLD
string   FRACTION
string   PIXEL
source code {
    "type": "string",
    "enum": [
        "WORLD",
        "FRACTION",
        "PIXEL"
    ],
    "default": "WORLD"
}

Property Layout / @scaleMode
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1524.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
Max Items  2
array items
[0]+  Schema
source code "@scaleMode": {
    "type": "array",
    "minItems": 1,
    "maxItems": 2,
    "items": {
        "type": "string",
        "enum": [
            "NONE",
            "FRACTION",
            "STRETCH",
            "PIXEL"
        ],
        "default": "NONE"
    }
}

Array item wildcard Layout / @scaleMode > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1525.png
schema details
Default  "NONE"
type String
enumerations
Type   Value
string   NONE
string   FRACTION
string   STRETCH
string   PIXEL
source code {
    "type": "string",
    "enum": [
        "NONE",
        "FRACTION",
        "STRETCH",
        "PIXEL"
    ],
    "default": "NONE"
}

Property Layout / @size
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1526.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
Max Items  2
array items
[0]+  Schema
source code "@size": {
    "type": "array",
    "minItems": 1,
    "maxItems": 2,
    "items": {
        "type": "number",
        "default": 1
    }
}

Array item wildcard Layout / @size > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1527.png
schema details
Default  1
type Numeric
source code {
    "type": "number",
    "default": 1
}

Property Layout / @sizeUnits
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1528.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
Max Items  2
array items
[0]+  Schema
source code "@sizeUnits": {
    "type": "array",
    "minItems": 1,
    "maxItems": 2,
    "items": {
        "type": "string",
        "enum": [
            "WORLD",
            "FRACTION",
            "PIXEL"
        ],
        "default": "WORLD"
    }
}

Array item wildcard Layout / @sizeUnits > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1529.png
schema details
Default  "WORLD"
type String
enumerations
Type   Value
string   WORLD
string   FRACTION
string   PIXEL
source code {
    "type": "string",
    "enum": [
        "WORLD",
        "FRACTION",
        "PIXEL"
    ],
    "default": "WORLD"
}

Property Layout / -metadata
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1530.png
property details
Occurrence  Optional
reference -metadata
source code "-metadata": {
    "$ref": "#/definitions/-metadata"
}

Property Layout / -children
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p1531.png
property details
Occurrence  Optional
reference -commentRoute
source code "-children": {
    "$ref": "#/definitions/-commentRoute"
}


JSON Schema documentation generated by XMLSpy JSON Schema Editor http://www.altova.com/xmlspy/json-schema-editor.html