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
@@ -923,9 +923,9 @@ Spot Audio Emitters _MAY_ have the following additional properties: [lookAt](#lo
923
923
"angle": 45.0,
924
924
"volume": {
925
925
"id": "https://example.org/iiif/value/1",
926
-
"type": "UnitValue",
926
+
"type": "Quantity",
927
927
"unit": "relative",
928
-
"value": 1.0
928
+
"quantityValue": 1.0
929
929
}
930
930
}
931
931
```
@@ -1065,24 +1065,24 @@ Services will also have specific requirements as to additional properties based
1065
1065
{: .note}
1066
1066
1067
1067
1068
-
#### Unit Value
1069
-
{: #UnitValue}
1068
+
#### Quantity
1069
+
{: #Quantity}
1070
1070
1071
-
> `"type": "UnitValue"`
1071
+
> `"type": "Quantity"`
1072
1072
1073
-
A UnitValue expresses a quantity through a numerical value and associated unit of measurement. The value of `unit`_MUST_ be drawn from the list of possible units, or a registered extension.
1073
+
A Quantity expresses a quantity through a numerical value and associated unit of measurement. The value of `unit`_MUST_ be drawn from the list of possible units, or a registered extension.
1074
1074
1075
1075
__Properties__<br/>
1076
-
A Unit Value _MUST_ have the following properties: [type](#type), [value](#value), and [unit](#unit).<br/><br/>
1077
-
A Unit Value_MAY_ have the following properties: [id](#id) and [label](#label).
1076
+
A Quantity _MUST_ have the following properties: [type](#type), [quantityValue](#value), and [unit](#unit).<br/><br/>
1077
+
A Quantity_MAY_ have the following properties: [id](#id) and [label](#label).
1078
1078
{: .note}
1079
1079
1080
1080
{% include api/code_header.html %}
1081
1081
```json
1082
1082
{
1083
1083
"id": "https://example.org/iiif/unit/2",
1084
-
"type": "UnitValue",
1085
-
"value": 1.0,
1084
+
"type": "Quantity",
1085
+
"quantityValue": 1.0,
1086
1086
"unit": "m"
1087
1087
}
1088
1088
```
@@ -1522,11 +1522,11 @@ A floating point number giving the time of the point in seconds from the beginni
1522
1522
### intensity
1523
1523
{: #intensity}
1524
1524
1525
-
This property sets the strength or brightness of a Light. The `value` of the referenced UnitValue indicates the desired intensity on a linear scale between 0.0 (no brightness) and 1.0 (as bright as the client will render). If this property is not specified, then the default intensity value is client-dependent.
1525
+
This property sets the strength or brightness of a Light. The `value` of the referenced Quantity indicates the desired intensity on a linear scale between 0.0 (no brightness) and 1.0 (as bright as the client will render). If this property is not specified, then the default intensity value is client-dependent.
1526
1526
1527
-
The value of this proerty_MUST_ be a UnitValue.
1528
-
The `unit` property of the UnitValue_MUST_ be `relative`.
1529
-
The `value` property of the UnitValue_MUST_ be between 0.0 and 1.0.
1527
+
The value of this property_MUST_ be a Quantity.
1528
+
The `unit` property of the Quantity_MUST_ be `relative`.
1529
+
The `value` property of the Quantity_MUST_ be between 0.0 and 1.0.
1530
1530
1531
1531
* A Light _SHOULD_ have the `intensity` property.<br/>
1532
1532
Clients _SHOULD_ process the `intensity` property on a Light.
@@ -1535,8 +1535,8 @@ The `value` property of the UnitValue _MUST_ be between 0.0 and 1.0.
1535
1535
{
1536
1536
"intensity": {
1537
1537
"id": "https://example.org/iiif/intensity/1",
1538
-
"type": "UnitValue",
1539
-
"value": 0.5,
1538
+
"type": "Quantity",
1539
+
"quantityValue": 0.5,
1540
1540
"unit": "relative"}
1541
1541
}
1542
1542
```
@@ -2088,14 +2088,15 @@ The value of the quality parameter in the IIIF Image API URL structure, as recor
2088
2088
{ "quality": "default" }
2089
2089
```
2090
2090
2091
-
### quantity
2091
+
### quantityValue
2092
+
{: #quantityValue}
2092
2093
2093
-
The `quantity` property of a Unit Value conveys its numerical component.
2094
+
The `quantityValue` property of a Quantity conveys its numerical component.
2094
2095
2095
-
The value _MUST_ be a floating point number.
2096
+
The value of `quantityValue`_MUST_ be a floating point number.
2096
2097
2097
-
* A UnitValue_MUST_ have the `quantity` property.<br/>
2098
-
Clients _MUST_ process the `quantity` property on a Unit Value.
2098
+
* A Quantity_MUST_ have the `quantity` property.<br/>
2099
+
Clients _MUST_ process the `quantity` property on a Quantity.
2099
2100
2100
2101
{% include api/code_header.html %}
2101
2102
```json-doc
@@ -2386,26 +2387,27 @@ The value _MUST_ be a string, and the value _MUST_ be a URI.
2386
2387
### spatialScale
2387
2388
{: #spatialScale}
2388
2389
2389
-
A single UnitValue that defines a real-world scale factor for the coordinate units of a Canvas or Scene. For a Canvas, this defines the physical distance corresponding to the length of a single Canvas coordinate unit. A Canvas with a `width` of 5000 and a `spatialScale` with `quantity` 0.00008 represents a physical space 0.4 meters wide. For a Scene, this defines the physical distance corresponding to the XYZ coordinate units, or in other words, the physical distance length of a unit vector in the 3D coordinate space. The value of `unit`_MUST_ be a length unit. In this specification, the only length unit defined is `m`, i.e., meters. Unless other values are defined externally as an [extension][prezi30-ldce], the value of `unit`_SHOULD_ always be `m`.
2390
+
A single Quantity that defines a real-world scale factor for the coordinate units of a Canvas or Scene. For a Canvas, this defines the physical distance corresponding to the length of a single Canvas coordinate unit. A Canvas with a `width` of 5000 and a `spatialScale` with `quantityValue` 0.00008 represents a physical space 0.4 meters wide. For a Scene, this defines the physical distance corresponding to the XYZ coordinate units, or in other words, the physical distance length of a unit vector in the 3D coordinate space. The value of `unit`_MUST_ be a length unit. In this specification, the only length unit defined is `m`, i.e., meters. Unless other values are defined externally as an [extension][prezi30-ldce], the value of `unit`_SHOULD_ always be `m`.
2390
2391
2391
2392
To assert a `spatialScale` for a Content Resource, the resource _MUST_ first be painted into a Container and the `spatialScale` is asserted on that Container. For example, a 3d model would be painted into a Scene, and then `spatialScale` is asserted on the Scene.
2392
2393
2394
+
* A Canvas _MAY_ have the `spatialScale` property.<br/>
2395
+
Clients _SHOULD_ process `spatialScale` on a Canvas.
2396
+
* A Scene _MAY_ have the `spatialScale` property.<br/>
2397
+
Clients _SHOULD_ process `spatialScale` on a Scene.
2398
+
2393
2399
{% include api/code_header.html %}
2394
2400
```json-doc
2395
2401
{
2396
2402
"type": "Scene",
2397
2403
"spatialScale": {
2398
-
"type": "UnitValue",
2399
-
"quantity": 22.0,
2404
+
"type": "Quantity",
2405
+
"quantityValue": 22.0,
2400
2406
"unit": "m"
2401
2407
}
2402
2408
}
2403
2409
```
2404
2410
2405
-
* A Canvas _MAY_ have the `spatialScale` property.<br/>
2406
-
Clients _SHOULD_ process `spatialScale` on a Canvas.
2407
-
* A Scene _MAY_ have the `spatialScale` property.<br/>
2408
-
Clients _SHOULD_ process `spatialScale` on a Scene.
2409
2411
2410
2412
### start
2411
2413
{: #start}
@@ -2555,7 +2557,7 @@ The value _MUST_ be an array of JSON objects.
2555
2557
### temporalScale
2556
2558
{: #temporalScale}
2557
2559
2558
-
A single UnitValue that defines a multiplier or scale factor for the `duration` property of a Container, indicating that one second in "Container time" represents some other real world duration. A Canvas with a `duration` of 450 seconds and a `temporalScale` with `quantity` 1000 represents a real-world duration of 450,000 seconds (5.2 days), for example a time-lapse video of a growing plant. The value of `unit`_MUST_ be a time unit. In this specification, the only time unit defined is `s`, i.e., seconds. Unless other values are defined externally as an [extension][prezi30-ldce], the value of `unit`_SHOULD_ always be `s`.
2560
+
A single Quantity that defines a multiplier or scale factor for the `duration` property of a Container, indicating that one second in "Container time" represents some other real world duration. A Canvas with a `duration` of 450 seconds and a `temporalScale` with `quantityValue` 1000 represents a real-world duration of 450,000 seconds (5.2 days), for example a time-lapse video of a growing plant. The value of `unit`_MUST_ be a time unit. In this specification, the only time unit defined is `s`, i.e., seconds. Unless other values are defined externally as an [extension][prezi30-ldce], the value of `unit`_SHOULD_ always be `s`.
2559
2561
2560
2562
To assert a `temporalScale` for a Content Resource, the resource _MUST_ first be painted into a Container with a `duration` and the `temporalScale` is asserted on that Container. For example, an Audio file is painted into a Timeline, and then `temporalScale` is asserted on the Timeline.
2561
2563
@@ -2572,8 +2574,8 @@ To assert a `temporalScale` for a Content Resource, the resource _MUST_ first be
2572
2574
{
2573
2575
"type": "Canvas",
2574
2576
"temporalScale": {
2575
-
"type": "UnitValue",
2576
-
"quantity": 1000,
2577
+
"type": "Quantity",
2578
+
"quantityValue": 1000,
2577
2579
"unit": "s"
2578
2580
}
2579
2581
}
@@ -2717,7 +2719,7 @@ For compatibility with previous versions, clients _SHOULD_ accept `Sound` as a s
2717
2719
2718
2720
### unit
2719
2721
2720
-
The unit of measurement of a quantity expressed by a UnitValue.
2722
+
The unit of measurement of a quantity expressed by a Quantity.
2721
2723
2722
2724
The value _MUST_ be a string value. This specification defines the values in the table below. Others may be defined externally as an [extension][prezi30-ldce].
2723
2725
@@ -2727,9 +2729,14 @@ The value _MUST_ be a string value. This specification defines the values in th
2727
2729
| s | seconds |
2728
2730
| relative | relative |
2729
2731
2730
-
* A UnitValue _MUST_ have the `unit` property
2732
+
* A Quantity _MUST_ have the `unit` property.<br/>
2733
+
Clients _SHOULD_ process the `unit` property on Quantity instances.
2734
+
2735
+
{% include api/code_header.html %}
2736
+
```json-doc
2737
+
{ "unit": "m" }
2738
+
```
2731
2739
2732
-
FIXME: possible values are 'm' and 's' and 'relative'. Is relative always 0-1.0, or context-dependent (see def of intensity)? Allow extensions?
2733
2740
2734
2741
### value
2735
2742
@@ -2805,18 +2812,18 @@ The value _MUST_ be a string.
2805
2812
### volume
2806
2813
{: #volume}
2807
2814
2808
-
The volume property represents the relative volume of an audio source. The `value` of the specified UnitValue represents the desired volume on a linear scale from 0.0 (silence) to 1.0 (maximum volume). If this property is not specified, then the default volume value is client-dependent.
2815
+
The volume property represents the relative volume of an audio source. The `quantityValue` of the specified Quantity represents the desired volume on a linear scale from 0.0 (silence) to 1.0 (maximum volume). If this property is not specified, then the default volume value is client-dependent.
2809
2816
2810
-
The value of this property _MUST_ be a UnitValue.
2811
-
The `unit` property of the UnitValue_MUST_ be `relative`.
2812
-
The `value` property of the UnitValue_MUST_ be between 0.0 and 1.0.
2817
+
The value of this property _MUST_ be a Quantity.
2818
+
The `unit` property of the Quantity_MUST_ be `relative`.
2819
+
The `value` property of the Quantity_MUST_ be between 0.0 and 1.0.
2813
2820
2814
2821
* Audio resource types _SHOULD_ have the `volume` property.<br/>
2815
2822
Clients _SHOULD_ process the `volume` property on an Audio resource.
0 commit comments