UNPKG

@drecom/scene-graph-schema

Version:

scene-graph-schema is a intermediate data schema that represents common data structure of a scene in game application.

52 lines (49 loc) 1.14 kB
{ "$schema": "http://json-schema.org/draft-04/schema#", "id": "/definitions/Transform.json", "definitions": { "Transform": { "id": "#Transform", "type": "object", "properties": { "width": { "type": "number" }, "height": { "type": "number" }, "x": { "type": "number" }, "y": { "type": "number" }, "rotation": { "type": "number" }, "scale": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "required": [ "x", "y" ] }, "anchor": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "required": [ "x", "y" ] }, "parent": { "type": "string" }, "children": { "type": "array", "items": { "type": "string" } } }, "required": [ "x", "y", "anchor" ] } } }