updates fixes updates add another test updates updates updates updates updates updates add test for error; updates updates fixups updates updates fixes updates fixes updates fixes updates updates updates bump Signed-off-by: Jess Frazelle <github@jessfraz.com>
19014 lines
626 KiB
JSON
19014 lines
626 KiB
JSON
[
|
|
{
|
|
"name": "min",
|
|
"summary": "Returns the minimum of the given arguments.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "args",
|
|
"type_": "[number]",
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "legLen",
|
|
"summary": "Returns the length of the given leg.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "hypotenuse",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "leg",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "legAngX",
|
|
"summary": "Returns the angle of the given leg for x.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "hypotenuse",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "leg",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "legAngY",
|
|
"summary": "Returns the angle of the given leg for y.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "hypotenuse",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "leg",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "extrude",
|
|
"summary": "Extrudes by a given amount.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "length",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "ExtrudeGroup",
|
|
"schema": {
|
|
"description": "An extrude group is a collection of extrude surfaces.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"height",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"height": {
|
|
"description": "The height of the extrude group.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"id": {
|
|
"description": "The id of the extrude group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the extrude group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the extrude group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"value": {
|
|
"description": "The extrude surfaces.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "An extrude surface.",
|
|
"oneOf": [
|
|
{
|
|
"description": "An extrude plane.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"position",
|
|
"rotation",
|
|
"sourceRange",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"name": {
|
|
"description": "The name.",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"description": "The position.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"extrudePlane"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "getExtrudeWallTransform",
|
|
"summary": "Returns the extrude wall transform.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "surface_name",
|
|
"type_": "string",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "extrude_group",
|
|
"type_": "ExtrudeGroup",
|
|
"schema": {
|
|
"description": "An extrude group is a collection of extrude surfaces.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"height",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"height": {
|
|
"description": "The height of the extrude group.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"id": {
|
|
"description": "The id of the extrude group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the extrude group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the extrude group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"value": {
|
|
"description": "The extrude surfaces.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "An extrude surface.",
|
|
"oneOf": [
|
|
{
|
|
"description": "An extrude plane.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"position",
|
|
"rotation",
|
|
"sourceRange",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"name": {
|
|
"description": "The name.",
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"description": "The position.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"extrudePlane"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "ExtrudeTransform",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"position",
|
|
"rotation"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"position": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "segEndX",
|
|
"summary": "Returns the segment end of x.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "segment_name",
|
|
"type_": "string",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "segEndY",
|
|
"summary": "Returns the segment end of y.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "segment_name",
|
|
"type_": "string",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "lastSegX",
|
|
"summary": "Returns the last segment of x.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "lastSegY",
|
|
"summary": "Returns the last segment of y.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "segLen",
|
|
"summary": "Returns the length of the segment.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "segment_name",
|
|
"type_": "string",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "segAng",
|
|
"summary": "Returns the angle of the segment.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "segment_name",
|
|
"type_": "string",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angleToMatchLengthX",
|
|
"summary": "Returns the angle to match the given length for x.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "segment_name",
|
|
"type_": "string",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "to",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angleToMatchLengthY",
|
|
"summary": "Returns the angle to match the given length for y.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "segment_name",
|
|
"type_": "string",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "to",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "number",
|
|
"schema": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "lineTo",
|
|
"summary": "Draw a line to a point.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "LineToData",
|
|
"schema": {
|
|
"description": "Data to draw a line to a point.",
|
|
"anyOf": [
|
|
{
|
|
"description": "A point with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "line",
|
|
"summary": "Draw a line.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "LineData",
|
|
"schema": {
|
|
"description": "Data to draw a line.",
|
|
"anyOf": [
|
|
{
|
|
"description": "A point with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"anyOf": [
|
|
{
|
|
"description": "A point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
{
|
|
"description": "A string like `default`.",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
{
|
|
"description": "A string like `default`.",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "xLineTo",
|
|
"summary": "Draw a line to a point on the x-axis.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AxisLineToData",
|
|
"schema": {
|
|
"description": "Data to draw a line to a point on an axis.",
|
|
"anyOf": [
|
|
{
|
|
"description": "A point with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A point.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "xLine",
|
|
"summary": "Draw a line on the x-axis.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AxisLineData",
|
|
"schema": {
|
|
"description": "Data to draw a line on an axis.",
|
|
"anyOf": [
|
|
{
|
|
"description": "The length with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"length",
|
|
"tag"
|
|
],
|
|
"properties": {
|
|
"length": {
|
|
"description": "The length of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "The length.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "yLineTo",
|
|
"summary": "Draw a line to a point on the y-axis.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AxisLineToData",
|
|
"schema": {
|
|
"description": "Data to draw a line to a point on an axis.",
|
|
"anyOf": [
|
|
{
|
|
"description": "A point with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A point.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "yLine",
|
|
"summary": "Draw a line on the y-axis.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AxisLineData",
|
|
"schema": {
|
|
"description": "Data to draw a line on an axis.",
|
|
"anyOf": [
|
|
{
|
|
"description": "The length with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"length",
|
|
"tag"
|
|
],
|
|
"properties": {
|
|
"length": {
|
|
"description": "The length of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "The length.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angledLineToX",
|
|
"summary": "Draw an angled line to a given x coordinate.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AngledLineToData",
|
|
"schema": {
|
|
"description": "Data to draw an angled line to a point.",
|
|
"anyOf": [
|
|
{
|
|
"description": "An angle and point with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle",
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"angle": {
|
|
"description": "The angle of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The point to draw to.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angle and point to draw to.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angledLineToY",
|
|
"summary": "Draw an angled line to a given y coordinate.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AngledLineToData",
|
|
"schema": {
|
|
"description": "Data to draw an angled line to a point.",
|
|
"anyOf": [
|
|
{
|
|
"description": "An angle and point with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle",
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"angle": {
|
|
"description": "The angle of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The point to draw to.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angle and point to draw to.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angledLine",
|
|
"summary": "Draw an angled line.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AngledLineData",
|
|
"schema": {
|
|
"description": "Data to draw an angled line.",
|
|
"anyOf": [
|
|
{
|
|
"description": "An angle and length with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle",
|
|
"length",
|
|
"tag"
|
|
],
|
|
"properties": {
|
|
"angle": {
|
|
"description": "The angle of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"length": {
|
|
"description": "The length of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angle and length.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angledLineOfXLength",
|
|
"summary": "Draw an angled line of a given x length.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AngledLineData",
|
|
"schema": {
|
|
"description": "Data to draw an angled line.",
|
|
"anyOf": [
|
|
{
|
|
"description": "An angle and length with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle",
|
|
"length",
|
|
"tag"
|
|
],
|
|
"properties": {
|
|
"angle": {
|
|
"description": "The angle of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"length": {
|
|
"description": "The length of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angle and length.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angledLineOfYLength",
|
|
"summary": "Draw an angled line of a given y length.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AngledLineData",
|
|
"schema": {
|
|
"description": "Data to draw an angled line.",
|
|
"anyOf": [
|
|
{
|
|
"description": "An angle and length with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle",
|
|
"length",
|
|
"tag"
|
|
],
|
|
"properties": {
|
|
"angle": {
|
|
"description": "The angle of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"length": {
|
|
"description": "The length of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angle and length.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "angledLineThatIntersects",
|
|
"summary": "Draw an angled line that intersects with a given line.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "AngeledLineThatIntersectsData",
|
|
"schema": {
|
|
"description": "Data for drawing an angled line that intersects with a given line.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle",
|
|
"intersectTag"
|
|
],
|
|
"properties": {
|
|
"angle": {
|
|
"description": "The angle of the line.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"intersectTag": {
|
|
"description": "The tag of the line to intersect with.",
|
|
"type": "string"
|
|
},
|
|
"offset": {
|
|
"description": "The offset from the intersecting line.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "startSketchAt",
|
|
"summary": "Start a sketch at a given point.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "LineData",
|
|
"schema": {
|
|
"description": "Data to draw a line.",
|
|
"anyOf": [
|
|
{
|
|
"description": "A point with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"anyOf": [
|
|
{
|
|
"description": "A point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
{
|
|
"description": "A string like `default`.",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
{
|
|
"description": "A string like `default`.",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "close",
|
|
"summary": "Close the current sketch.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "arc",
|
|
"summary": "Draw an arc.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "ArcData",
|
|
"schema": {
|
|
"description": "Data to draw an arc.",
|
|
"anyOf": [
|
|
{
|
|
"description": "Angles and radius with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle_end",
|
|
"angle_start",
|
|
"radius",
|
|
"tag"
|
|
],
|
|
"properties": {
|
|
"angle_end": {
|
|
"description": "The end angle.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"angle_start": {
|
|
"description": "The start angle.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"radius": {
|
|
"description": "The radius.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "Angles and radius.",
|
|
"type": "object",
|
|
"required": [
|
|
"angle_end",
|
|
"angle_start",
|
|
"radius"
|
|
],
|
|
"properties": {
|
|
"angle_end": {
|
|
"description": "The end angle.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"angle_start": {
|
|
"description": "The start angle.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"radius": {
|
|
"description": "The radius.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "Center, to and radius with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"center",
|
|
"radius",
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"center": {
|
|
"description": "The center.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"radius": {
|
|
"description": "The radius.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "Center, to and radius.",
|
|
"type": "object",
|
|
"required": [
|
|
"center",
|
|
"radius",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"center": {
|
|
"description": "The center.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"radius": {
|
|
"description": "The radius.",
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
},
|
|
{
|
|
"name": "bezierCurve",
|
|
"summary": "Draw a bezier curve.",
|
|
"description": "",
|
|
"tags": [],
|
|
"args": [
|
|
{
|
|
"name": "data",
|
|
"type_": "BezierData",
|
|
"schema": {
|
|
"description": "Data to draw a bezier curve.",
|
|
"anyOf": [
|
|
{
|
|
"description": "Points with a tag.",
|
|
"type": "object",
|
|
"required": [
|
|
"control1",
|
|
"control2",
|
|
"tag",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"control1": {
|
|
"description": "The first control point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"control2": {
|
|
"description": "The second control point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"tag": {
|
|
"description": "The tag.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "Points.",
|
|
"type": "object",
|
|
"required": [
|
|
"control1",
|
|
"control2",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"control1": {
|
|
"description": "The first control point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"control2": {
|
|
"description": "The second control point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"required": true
|
|
},
|
|
{
|
|
"name": "sketch_group",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"return_value": {
|
|
"name": "",
|
|
"type_": "SketchGroup",
|
|
"schema": {
|
|
"description": "A sketch group is a collection of paths.",
|
|
"type": "object",
|
|
"required": [
|
|
"__meta",
|
|
"id",
|
|
"position",
|
|
"rotation",
|
|
"start",
|
|
"value"
|
|
],
|
|
"properties": {
|
|
"__meta": {
|
|
"description": "Metadata.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"id": {
|
|
"description": "The id of the sketch group.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"position": {
|
|
"description": "The position of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 3,
|
|
"minItems": 3
|
|
},
|
|
"rotation": {
|
|
"description": "The rotation of the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 4,
|
|
"minItems": 4
|
|
},
|
|
"start": {
|
|
"description": "The starting path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"value": {
|
|
"description": "The paths in the sketch group.",
|
|
"type": "array",
|
|
"items": {
|
|
"description": "A path.",
|
|
"oneOf": [
|
|
{
|
|
"description": "A path that goes to a point.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"toPoint"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A path that is horizontal.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type",
|
|
"x"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"horizontal"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "An angled line to.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"angledLineTo"
|
|
]
|
|
},
|
|
"x": {
|
|
"description": "The x coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
},
|
|
"y": {
|
|
"description": "The y coordinate.",
|
|
"type": "number",
|
|
"format": "double",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"description": "A base path.",
|
|
"type": "object",
|
|
"required": [
|
|
"__geoMeta",
|
|
"from",
|
|
"name",
|
|
"to",
|
|
"type"
|
|
],
|
|
"properties": {
|
|
"__geoMeta": {
|
|
"description": "Metadata.",
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"sourceRange"
|
|
],
|
|
"properties": {
|
|
"id": {
|
|
"description": "The id of the geometry.",
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"sourceRange": {
|
|
"description": "The source range.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer",
|
|
"format": "uint",
|
|
"minimum": 0.0
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
}
|
|
}
|
|
},
|
|
"from": {
|
|
"description": "The from point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"name": {
|
|
"description": "The name of the path.",
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"description": "The to point.",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "number",
|
|
"format": "double"
|
|
},
|
|
"maxItems": 2,
|
|
"minItems": 2
|
|
},
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"base"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": true
|
|
},
|
|
"unpublished": false,
|
|
"deprecated": false
|
|
}
|
|
] |