From ac3ac4c2e7d331c3cb2575fd7c6632dc85564bb3 Mon Sep 17 00:00:00 2001 From: Andrzej Marciniak Date: Fri, 17 Dec 2021 17:31:44 +0100 Subject: [PATCH 1/2] [Update] Added mainTool widget configuration schema. --- schemas/widget.schema.json | 47 +++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/schemas/widget.schema.json b/schemas/widget.schema.json index cb7b6a5..d0e9a51 100644 --- a/schemas/widget.schema.json +++ b/schemas/widget.schema.json @@ -1016,6 +1016,50 @@ "type": "boolean" } } + }, + "mainTool": { + "$id": "#mainTool", + "description": "Widget defining properties of the entire manual tool.", + "type": "object", + "additionalProperties": false, + "properties": { + "activeViewer ": { + "description": "Defines which viewer will be initially the source of events", + "type": "string" + }, + "leftButtonMode": { + "description": "Defines which widget will be used initially on mouse left-click (important for mutually exclusive brush, fill, pin etc.). Widgets are encoded with numbers", + "type": "number", + "maximum": 10, + "minimum": 0, + "$comment": " NONE: 0,PIN: 2,BRUSH: 3,ERASER: 4,FILLING: 5,AZIMUTH: 6, RULER:7,SAMPLER:8,LEVEL:9,DRAW:10" + }, + "annotationsVisible": { + "description": "Defines whether annotations shall be visible on init", + "type": "boolean" + }, + "projectionsVisible": { + "description": "Defines whether annotation projections shall be visible on init", + "type": "boolean" + }, + "navigationModeLabel": { + "description": "Defines which transition after going to next/previous step should take place: to the next step or to the next case (keeping the same step)", + "type": "string", + "enum": ["step","case"], + "$comment": "By default step is used" + }, + "autosaving": { + "description": "Defines whether and how often autosaving for a chosen outputs shall be applied", + "type": "object", + "additionalProperties": false, + "properties": { + "interval": { + "description": "if set up, defines how often (in seconds) autosave should be performed", + "type": "number" + } + } + } + } } }, "properties": { @@ -1048,6 +1092,7 @@ "exportAnnotationsToServerTool": {"$ref": "#/definitions/exportAnnotationsToServerTool"}, "exportAnnotationsToDiskTool": {"$ref": "#/definitions/exportAnnotationsToDiskTool"}, "importAnnotationsFromDiskTool": {"$ref": "#/definitions/importAnnotationsFromDiskTool"}, - "roiTableTool": {"$ref": "#/definitions/roiTableTool"} + "roiTableTool": {"$ref": "#/definitions/roiTableTool"}, + "mainTool": {"$ref": "#/definitions/mainTool"} } } \ No newline at end of file From b6beaaf0816d38c5a50eddde0ad6736a06350c74 Mon Sep 17 00:00:00 2001 From: Andrzej Marciniak Date: Fri, 17 Dec 2021 17:35:20 +0100 Subject: [PATCH 2/2] [Update][#42] Propoerty docType is required in cohort document. --- schemas/cohort.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/cohort.schema.json b/schemas/cohort.schema.json index 64d43a2..5fa999d 100644 --- a/schemas/cohort.schema.json +++ b/schemas/cohort.schema.json @@ -138,5 +138,5 @@ } }, "additionalProperties": false, - "required": ["name","privacy","uuid","pi"] + "required": ["name","privacy","uuid","pi","docType"] } \ No newline at end of file