You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: v1-draft-0/specification/docs/Specification.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ The manifest file is a JSON file containing metadata about the Graphic. It consi
68
68
| supportsNonRealTime | boolean | X || Indicates whether the Graphic supports non-real-time rendering. If true, the Graphic MUST implement the non-real-time functions `goToTime()` and `setActionsSchedule()`. |
69
69
| schema | object ||| The JSON schema definition for the parameter of the `updateAction()` function. This schema can be seen as the (public) state model of the Graphic. |
70
70
| stepCount | integer || 1 | The number of steps a Graphic consists of. |
71
+
| renderRequirements | RenderRequirement[]||| A list of requirements that this Graphic has for the rendering environment. At least one of the requirements must be met for the graphic to be expected to work. |
71
72
72
73
#### Real-time vs. non-real-time
73
74
@@ -116,6 +117,46 @@ supports the following fields:
116
117
| description | string ||| A longer description of the action. |
117
118
| schema | object ||| The JSON schema definition for the payload of the action. |
118
119
120
+
#### RenderRequirements
121
+
122
+
A RenderRequirement in the manifest file is an object that describes which requirements a Graphic has for the rendering environment.
123
+
The `renderRequirements` is a list of RenderRequirements, where at least one requirement must be fulfilled by the renderer for a
124
+
Graphic to be expected to work.
125
+
126
+
The RenderRequirement object contains the following fields:
127
+
128
+
129
+
| Field | Type | Required | Default | Description |
| max | number ||| A number specifying the largest permissible value of the property it describes. If the value cannot remain equal to or less than this value, matching will fail. |
145
+
| min | number ||| A number specifying the smallest permissible value of the property it describes. If the value cannot remain equal to or greater than this value, matching will fail. |
146
+
| exact | number ||| A number specifying a specific, required, value the property must have to be considered acceptable. |
147
+
| ideal | number ||| A number specifying an ideal value for the property. If possible, this value will be used, but if it's not possible, the user agent will use the closest possible match. |
148
+
149
+
##### StringConstraint
150
+
151
+
A StringConstraint is an object that describes a constraints for a textual value.
152
+
(This is inspired by https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#constraindouble)
153
+
It contains the following fields:
154
+
155
+
| Field | Type | Required | Default | Description |
| exact | string ||| A string specifying a specific, required, value the property must have to be considered acceptable. |
158
+
| ideal | string, string[]||| A string (or an array of strings), specifying ideal values for the property. If possible, one of the listed values will be used, but if it's not possible, the user agent will use the closest possible match. |
159
+
119
160
#### Vendor-specific fields
120
161
121
162
Vendor-specific fields are additional fields that are not part of this specification, but used for vendor-specific means.
"description": "A list of requirements that this Graphic has for the rendering environment. At least one of the requirements must be met for the graphic to be expected to work.",
83
+
"type": "array",
84
+
"items": {
85
+
"type": "object",
86
+
"properties": {
87
+
"resolution": {
88
+
"description": "If set, specifies requirements for the resolution of the Renderer.",
"description": "The number constraint is used to specify a constraint for a numerical property. (Inspired by https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#constraindouble)",
6
+
"properties": {
7
+
"max": {
8
+
"description": "A number specifying the largest permissible value of the property it describes. If the value cannot remain equal to or less than this value, matching will fail.",
9
+
"type": "number"
10
+
},
11
+
"min": {
12
+
"description": "A number specifying the smallest permissible value of the property it describes. If the value cannot remain equal to or greater than this value, matching will fail.",
13
+
"type": "number"
14
+
},
15
+
"exact": {
16
+
"description": "A number specifying a specific, required, value the property must have to be considered acceptable.",
17
+
"type": "number"
18
+
},
19
+
"ideal": {
20
+
"description": "A number specifying an ideal value for the property. If possible, this value will be used, but if it's not possible, the user agent will use the closest possible match.",
"description": "The string constraint is used to specify a constraint for a string property. (Inspired by https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints#constraindomstring)",
6
+
"properties": {
7
+
"exact": {
8
+
"description": "A string or an array of strings, one of which must be the value of the property. If the property can't be set to one of the listed values, matching will fail.",
9
+
"type": "string"
10
+
},
11
+
"ideal": {
12
+
"description": "A string (or an array of strings), specifying ideal values for the property. If possible, one of the listed values will be used, but if it's not possible, the user agent will use the closest possible match.",
0 commit comments